Function safecoin_client::nonce_utils::get_account_with_commitment
source · pub fn get_account_with_commitment(
rpc_client: &RpcClient,
nonce_pubkey: &Pubkey,
commitment: CommitmentConfig
) -> Result<Account, Error>
Expand description
Get a nonce account from the network.
This is like RpcClient::get_account_with_commitment
except:
- it returns this module’s
Error
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.