Account APIs
GetAccount
This API returns the details of the account being queried with address.
REST Uri: /account/{address}
Query Parameters
address: the address of the account
Returns
address: the account address
balance: the native token balance
reserved_funds: fund reserved for micropayment through the off-chain resource-oriented payment pool
sequence: the current sequence number of the account
txs_counter: the counter map contains how many transactions of each transaction type include this account
GetAccountTxHistory
This API returns the details of the account being queried with address.
REST Uri: /accountTx/:address
Query Parameters
address: the address of the account
type: type of the transaction
isEqualType: true returns a transaction list only include the type above, false returns a transaction list exclude the type above.
pageNumber: the number of page
limitNumber: the size of each page
Returns
currentPageNumber: the number of current page
totalPageNumber: the total number of page
For each transaction it is similar to the returns of the GetTransaction API.
GetTopTokenHolders
This API returns the list of top token holders.
REST Uri: /account/top/:tokenType/:limit
Query Parameters
tokenType: type of the token(SPAY)
limit: the size of returns
Returns
For each account it is similar to the returns of the GetAccount API.
Last updated