AccountCoinsResponse class

AccountCoinsResponse is returned on the /account/coins endpoint and includes all unspent Coins owned by an AccountIdentifier.

Annotations
  • @immutable

Constructors

AccountCoinsResponse(BlockIdentifier blockIdentifier, List<Coin> coins, Map<String, dynamic>? metadata)
const
AccountCoinsResponse.fromJson(Map<String, dynamic> map)
factory

Properties

blockIdentifier BlockIdentifier
final
coins List<Coin>
If a blockchain is UTXO-based, all unspent Coins owned by an AccountIdentifier should be returned alongside the balance. It is highly recommended to poputhis field so that users of the Rosetta API implementation don't need to maintain their own indexer to track their UTXOs.
final
hashCode int
The hash code for this object.
no setterinherited
metadata Map<String, dynamic>?
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.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited