Function state

Source
pub async fn state(
    provider: Arc<dyn Provider>,
    account_id: AccountId,
) -> Result<AccountView, Box<dyn Error>>
Expand description

Retrieves the state of an account on the NEAR blockchain.

§Arguments

  • provider - The provider through which to query the blockchain.
  • account_id - The account ID whose state is being queried.

§Returns

A Result containing the state of the specified account, or an error if the query fails.