Function solana_client_wasm::utils::nonce_utils::get_account_with_commitment
source · pub async fn get_account_with_commitment(
rpc_client: &WasmClient,
nonce_pubkey: &Pubkey,
commitment_config: CommitmentConfig
) -> Result<Account, NonceError>
Expand description
Get a nonce account from the network.
This is like WasmClient::get_account_with_commitment
except:
- it returns this module’s
NonceError
type, - it returns an error if the account does not exist,
- it returns an error if any of the checks from
account_identity_ok
fail.