Klayr Service API v2 vs v3
A comprehensive comparison between Klayr Service v2 and Klayr Service v3 API specification.
To see an overview of the available events in Klayr Service API v3, please check out the Publish/Subscribe API (Klayr Service) reference. |
v2 endpoint (/api/v2) | v3 endpoint (/api/v3) | Comments |
---|---|---|
Accounts |
||
|
X |
Deprecated. Split into module-specific endpoints. Following are some of the endpoints that can be used to reconstruct the account-related information: |
Auth |
||
X |
|
New endpoint to fetch all the auth information for a given address from the Auth module. |
Blockchain |
||
X |
|
New endpoint to list all the Klayr applications on the network. This is expected to be supported only on the main chain by observing the registration CCMs. Sidechains proxy through the mainchain deployment. |
X |
|
New endpoint to fetch the current network statistics with regard to interoperability. |
X |
|
New endpoint to list the Klayr applications for which the off-chain metadata is available in the app-registry. |
X |
|
New endpoint to fetch the off-chain metadata for Klayr applications, available in the app-registry. |
X |
|
New endpoint to fetch the off-chain metadata for Klayr application tokens, available in the app-registry. |
X |
|
New endpoint to fetch the off-chain metadata for all the supported tokens, available for a specified chain. |
Blocks |
||
|
|
|
X |
|
New endpoint to query the block assets, introduced with SDK v6. |
Events |
||
X |
|
New endpoint to query blockchain events, introduced with SDK v6. |
Export |
||
|
|
Refactored the endpoint to emphasise it as a separate microservice. |
Exports |
||
|
|
|
Fees |
||
|
|
Updated response structure. Merges some constants from the Fee module. |
Generators |
||
|
|
Updated the endpoint to make it consensus-algorithm-generic. The response structure also varies. |
Index |
||
X |
|
New endpoint to list the current indexing status. |
Invoke |
||
X |
|
Responds with the requested |
Legacy |
||
X |
|
Used to be part of the response of |
Market |
||
|
|
X |
Network |
||
|
|
X |
|
|
Updated response structure. |
Newsfeed |
||
|
X |
Discontinued. |
Peers |
||
|
|
The endpoint has now been moved under the |
|
X |
Removed the redundant endpoints.
|
|
X |
|
PoS |
||
X |
|
New endpoint to fetch the module constants for the PoS module.
Some of this information was priorly available through the |
X |
|
New endpoint to fetch the list of block generation rewards currently locked by the PoS module for the specified validator. |
X |
|
New endpoint to fetch the claimable rewards currently locked by the PoS module for the specified staker.
Subset of |
|
|
New endpoint that returns a list of stakes sent by the specified user by their |
|
|
Changed the name of the endpoint. Retrieves the list of stakers (received stakes) for the specified validator. |
X |
|
Used to be part of the response of |
X |
|
Equivalent of |
Reward |
||
X |
|
New endpoint to fetch the annual inflation of the reward token at the specified height. |
X |
|
New endpoint to fetch the module constants for the Reward module.
Some of this information was priorly available through the |
X |
|
New endpoint to fetch the expected reward value at the specified height as per the node config.
The actual reward might vary and can be determined from the |
Token |
||
X |
|
New endpoint to fetch all the token information for a given address from the Token module. |
X |
|
New endpoint to fetch all the token summary which includes |
With request param |
|
New endpoint to fetch all the tokenIDs for which we currently index the balances. |
|
New endpoint to fetch all the addresses on the chain sorted by their balances for a specified |
|
Transactions |
||
|
|
|
X |
|
New endpoint to dry run the transactions, introduced with SDK v6.
Takes a mandatory |
|
|
X |
X |
|
New endpoint to estimate the transaction fees for a signed/unsigned transaction. |
|
|
Returns all the available schemas for the Klayr application including blocks, header, transactions, event, all event data, and all command params, etc. |
|
|
Now takes a mandatory query param |
Validator |
||
X |
|
New endpoint to fetch all the validator information for a given address from the Validator module. |
X |
|
New endpoint to verify a BLS key against its corresponding Proof of Possession. |