Function account_with_context

Source
pub async fn account_with_context<T: AccountDeserialize>(
    client: &RpcClient,
    address: &Pubkey,
    config: RpcAccountInfoConfig,
) -> Result<WithContext<Option<T>>>
Expand description

Return the decoded account at the given address, along with context.

The value inside the context will be None if the account does not exist.