AccountBalanceResponse
An AccountBalanceResponse is returned on the /account/balance endpoint. If an account has a balance for each AccountIdentifier describing it (ex: an ERC-20 token balance on a few smart contracts), an account balance request must be made with each AccountIdentifier. The coins
field was removed and replaced by by /account/coins
in v1.4.7
.
Properties
Name | Type | Description | Required |
---|---|---|---|
block_identifier | BlockIdentifier | The block_identifier uniquely identifies a block in a particular network. | True |
balances | []Amount | A single account may have a balance in multiple currencies. | True |
metadata | Object | Account-based blockchains that utilize a nonce or sequence number should include that number in the metadata. This number could be unique to the identifier or global across the account address. | False |
Example
{
"block_identifier": {
"index": 1123941,
"hash": "0x1f2cc6c5027d2f201a5453ad1119574d2aed23a392654742ac3c78783c071f85"
},
"balances": [
{
"value": "1238089899992",
"currency": {
"symbol": "BTC",
"decimals": 8,
"metadata": {
"Issuer": "Satoshi"
}
},
"metadata": {}
}
],
"metadata": {
"sequence_number": 23
}
}