pub struct AccountBalanceResponse {
pub block_identifier: BlockIdentifier,
pub balances: Vec<Amount>,
pub metadata: Option<Value>,
}Expand description
AccountBalanceResponse : 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.
Fields§
§block_identifier: BlockIdentifier§balances: Vec<Amount>A single account may have a balance in multiple currencies.
metadata: Option<Value>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.
Implementations§
Source§impl AccountBalanceResponse
impl AccountBalanceResponse
Sourcepub fn new(
block_identifier: BlockIdentifier,
balances: Vec<Amount>,
) -> AccountBalanceResponse
pub fn new( block_identifier: BlockIdentifier, balances: Vec<Amount>, ) -> AccountBalanceResponse
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.
Trait Implementations§
Source§impl Clone for AccountBalanceResponse
impl Clone for AccountBalanceResponse
Source§fn clone(&self) -> AccountBalanceResponse
fn clone(&self) -> AccountBalanceResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more