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
BalanceRequest
Parameter
Description
address: string
Address to check balance(s)
assets?: string | string[]
Asset ID or script hash to check balance
fetchUTXO?: boolean
Fetches to UTXO data for NEO and/or GAS if attribute is 'true'
Success Response
BalanceResponse
UTXO
Parameter
Description
asset: string
Script hash of the native asset
createdAtBlock: int
Block number where this utxo was created
index: int
Output index of the UTXO relative to the txid in which it was created
txid: string
The transaction id of this UTXO
value: string
The double value of this UTXO represented as a String
Example
Request
Response
最后更新于
这有帮助吗?