Body
AccountCoinsRequest is utilized to make a request on the /account/coins endpoint.
The network_identifier specifies which network a particular object is associated with.
The account_identifier uniquely identifies an account within a network. All fields in the account_identifier are utilized to determine this uniqueness (including the metadata field, if populated).
Include state from the mempool when looking up an account's unspent coins. Note, using this functionality breaks any guarantee of idempotency.
In some cases, the caller may not want to retrieve coins for all currencies for an AccountIdentifier. If the currencies field is populated, only coins for the specified currencies will be returned. If not populated, all unspent coins will be returned.
Response
Expected response to a valid request
AccountCoinsResponse is returned on the /account/coins endpoint and includes all unspent Coins owned by an AccountIdentifier.
The block_identifier uniquely identifies a block in a particular network.
If 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.
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.
{ "sequence_number": 23 }