AccountBalanceResponse class
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
.
Constructors
-
AccountBalanceResponse(BlockIdentifier block_identifier, List<
Amount> balances, Map<String, dynamic> ? metadata) -
AccountBalanceResponse.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
balances
↔ List<
Amount> -
A single account may have a balance in multiple currencies.
getter/setter pair
- block_identifier ↔ BlockIdentifier
-
getter/setter pair
- 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.
getter/setter pair
- 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