block_identifier objectThe block_identifier uniquely identifies a block in a particular network. hash stringThis is also known as the block hash. | index integerThis is also known as the block height. |
|
balances object[]A single account balance may have multiple currencies value stringValue of the transaction in atomic units represented as an arbitrary-sized signed integer. For example, 1 BTC would be represented by a value of 100000000. | currency objectCurrency is composed of a canonical Symbol and Decimals. This Decimals value is used to convert an Amount.Value from atomic units (Satoshis) to standard units (Bitcoins). symbol stringCanonical symbol associated with a currency. | decimals integerNumber of decimal places in the standard unit representation of the amount. For example, BTC has 8 decimals. Note that it is not possible to represent the value of some currency in atomic units that is not base 10. | metadata object — OPTIONALAny additional information related to the currency itself. For example, it would be useful to populate this object with the contract address of an ERC-20 token. |
| metadata object — OPTIONAL |
|
coins object[] — OPTIONALIf a blockchain is UTXO-based, all unspent Coins owned by an account_identifier should be returned alongside the balance. It is highly recommended to populate this field so that users of the Rosetta API implementation don't need to maintain their own indexer to track their UTXOs. coin_identifier objectCoinIdentifier uniquely identifies a Coin. identifier stringIdentifier should be populated with a globally unique identifier of a Coin. In Bitcoin, this identifier would be transaction_hash:index. |
| amount objectAmount is some Value of a Currency. It is considered invalid to specify a Value without a Currency. value stringValue of the transaction in atomic units represented as an arbitrary-sized signed integer. For example, 1 BTC would be represented by a value of 100000000. | currency objectCurrency is composed of a canonical Symbol and Decimals. This Decimals value is used to convert an Amount.Value from atomic units (Satoshis) to standard units (Bitcoins). symbol stringCanonical symbol associated with a currency. | decimals integerNumber of decimal places in the standard unit representation of the amount. For example, BTC has 8 decimals. Note that it is not possible to represent the value of some currency in atomic units that is not base 10. | metadata object — OPTIONALAny additional information related to the currency itself. For example, it would be useful to populate this object with the contract address of an ERC-20 token. |
| metadata object — OPTIONAL |
|
|
metadata object — OPTIONALAccount-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. |