solana_rpc_client_nonce_utils::nonblocking

Function account_identity_ok

source
pub fn account_identity_ok<T: ReadableAccount>(account: &T) -> Result<(), Error>
Expand description

Perform basic checks that an account has nonce-like properties.

ยงErrors

Returns Error::InvalidAccountOwner if the account is not owned by the system program. Returns Error::UnexpectedDataSize if the account contains no data.