pub async fn get_account_balance(
provider: Arc<dyn Provider>,
account_id: AccountId,
) -> Result<AccountBalance, Box<dyn Error>>
Expand description
Retrieves the balance details of a specific account on the NEAR blockchain.
§Arguments
provider
- The provider through which to query the blockchain.account_id
- The account ID whose balance details are being queried.
§Returns
A Result
containing the balance details of the account, structured as AccountBalance
, or an error if the query fails.