getBalance
Return balance of a specific asset for the given account.
If the asset is omited from a request to MainNet, all asset and token balances will be returned.
Input Arguments
Parameter | Description |
---|---|
A list of Balance Request Objects, specifying which addresses, and which assets to query | |
| Network to submit this request to. If omitted, will default to network the wallet is currently set to. |
BalanceRequest
Parameter | Description |
---|---|
| Address to check balance(s) |
| Asset ID or script hash to check balance |
| Fetches to UTXO data for NEO and/or GAS if attribute is 'true' |
Success Response
Parameter | Description |
---|---|
This key is the actual address of the query eg. "AWSEU4BXpjGVdw9ajnFBXh8Rg8cgw9f3Zo" |
BalanceResponse
Parameter | Description |
---|---|
| ID of the given asset |
| Symbol of the given asset |
| Double Value of the balance represented as a String |
If fetch utxo's was turned on then the utxo array will be returned for the native assets NEO and GAS |
UTXO
Parameter | Description |
---|---|
| Script hash of the native asset |
| Block number where this utxo was created |
| Output index of the UTXO relative to the txid in which it was created |
| The transaction id of this UTXO |
| The double value of this UTXO represented as a String |
Example
Request
Response
最后更新于