pub trait AccountsData: Sized + Send + Sync + 'static {
    type Metadata: Metadata;

Show 13 methods fn get_account_info(
        &self,
        meta: Self::Metadata,
        pubkey_str: String,
        config: Option<RpcAccountInfoConfig>
    ) -> Result<RpcResponse<Option<UiAccount>>>; fn get_multiple_accounts(
        &self,
        meta: Self::Metadata,
        pubkey_strs: Vec<String>,
        config: Option<RpcAccountInfoConfig>
    ) -> Result<RpcResponse<Vec<Option<UiAccount>>>>; fn get_program_accounts(
        &self,
        meta: Self::Metadata,
        program_id_str: String,
        config: Option<RpcProgramAccountsConfig>
    ) -> Result<OptionalContext<Vec<RpcKeyedAccount>>>; fn get_block_commitment(
        &self,
        meta: Self::Metadata,
        block: Slot
    ) -> Result<RpcBlockCommitment<BlockCommitmentArray>>; fn get_largest_accounts(
        &self,
        meta: Self::Metadata,
        config: Option<RpcLargestAccountsConfig>
    ) -> Result<RpcResponse<Vec<RpcAccountBalance>>>; fn get_supply(
        &self,
        meta: Self::Metadata,
        config: Option<RpcSupplyConfig>
    ) -> Result<RpcResponse<RpcSupply>>; fn get_stake_activation(
        &self,
        meta: Self::Metadata,
        pubkey_str: String,
        config: Option<RpcEpochConfig>
    ) -> Result<RpcStakeActivation>; fn get_token_account_balance(
        &self,
        meta: Self::Metadata,
        pubkey_str: String,
        commitment: Option<CommitmentConfig>
    ) -> Result<RpcResponse<UiTokenAmount>>; fn get_token_supply(
        &self,
        meta: Self::Metadata,
        mint_str: String,
        commitment: Option<CommitmentConfig>
    ) -> Result<RpcResponse<UiTokenAmount>>; fn get_token_largest_accounts(
        &self,
        meta: Self::Metadata,
        mint_str: String,
        commitment: Option<CommitmentConfig>
    ) -> Result<RpcResponse<Vec<RpcTokenAccountBalance>>>; fn get_token_accounts_by_owner(
        &self,
        meta: Self::Metadata,
        owner_str: String,
        token_account_filter: RpcTokenAccountsFilter,
        config: Option<RpcAccountInfoConfig>
    ) -> Result<RpcResponse<Vec<RpcKeyedAccount>>>; fn get_token_accounts_by_delegate(
        &self,
        meta: Self::Metadata,
        delegate_str: String,
        token_account_filter: RpcTokenAccountsFilter,
        config: Option<RpcAccountInfoConfig>
    ) -> Result<RpcResponse<Vec<RpcKeyedAccount>>>; fn to_delegate(self) -> IoDelegate<Self, Self::Metadata> { ... }
}

Required Associated Types

Required Methods

Provided Methods

Create an IoDelegate, wiring rpc calls to the trait methods.

Implementors