diff --git a/client/src/rpc_client.rs b/client/src/rpc_client.rs index 1d562d7e6b..dd7d0e9304 100644 --- a/client/src/rpc_client.rs +++ b/client/src/rpc_client.rs @@ -642,6 +642,8 @@ impl RpcClient { } } + /// Note that `get_account` returns `Err(..)` if the account does not exist whereas + /// `get_account_with_commitment` returns `Ok(None)` if the account does not exist. pub fn get_account(&self, pubkey: &Pubkey) -> ClientResult { self.get_account_with_commitment(pubkey, self.commitment_config)? .value