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.

Annotations

Constructors

AccountBalanceResponse(BlockIdentifier blockIdentifier, List<Amount> balances, Map<String, dynamic>? metadata)
const
AccountBalanceResponse.fromJson(Map<String, dynamic> map)
factory

Properties

balances List<Amount>
A single account may have a balance in multiple currencies.
final
blockIdentifier BlockIdentifier
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