Struct solana_rpc::rpc::JsonRpcRequestProcessor [−][src]
pub struct JsonRpcRequestProcessor { /* fields omitted */ }
Implementations
pub fn new(
config: JsonRpcConfig,
snapshot_config: Option<SnapshotConfig>,
bank_forks: Arc<RwLock<BankForks>>,
block_commitment_cache: Arc<RwLock<BlockCommitmentCache>>,
blockstore: Arc<Blockstore>,
validator_exit: Arc<RwLock<Exit>>,
health: Arc<RpcHealth>,
cluster_info: Arc<ClusterInfo>,
genesis_hash: Hash,
bigtable_ledger_storage: Option<LedgerStorage>,
optimistically_confirmed_bank: Arc<RwLock<OptimisticallyConfirmedBank>>,
largest_accounts_cache: Arc<RwLock<LargestAccountsCache>>,
max_slots: Arc<MaxSlots>,
leader_schedule_cache: Arc<LeaderScheduleCache>,
max_complete_transaction_status_slot: Arc<AtomicU64>
) -> (Self, Receiver<TransactionInfo>)
pub fn get_account_info(
&self,
pubkey: &Pubkey,
config: Option<RpcAccountInfoConfig>
) -> Result<RpcResponse<Option<UiAccount>>>
pub fn get_multiple_accounts(
&self,
pubkeys: Vec<Pubkey>,
config: Option<RpcAccountInfoConfig>
) -> Result<RpcResponse<Vec<Option<UiAccount>>>>
pub fn get_minimum_balance_for_rent_exemption(
&self,
data_len: usize,
commitment: Option<CommitmentConfig>
) -> u64
pub fn get_program_accounts(
&self,
program_id: &Pubkey,
config: Option<RpcAccountInfoConfig>,
filters: Vec<RpcFilterType>,
with_context: bool
) -> Result<OptionalContext<Vec<RpcKeyedAccount>>>
pub async fn get_inflation_reward(
&self,
addresses: Vec<Pubkey>,
config: Option<RpcEpochConfig>
) -> Result<Vec<Option<RpcInflationReward>>>
pub fn get_inflation_governor(
&self,
commitment: Option<CommitmentConfig>
) -> RpcInflationGovernor
pub fn get_balance(
&self,
pubkey: &Pubkey,
commitment: Option<CommitmentConfig>
) -> RpcResponse<u64>
pub fn confirm_transaction(
&self,
signature: &Signature,
commitment: Option<CommitmentConfig>
) -> RpcResponse<bool>
pub async fn get_block(
&self,
slot: Slot,
config: Option<RpcEncodingConfigWrapper<RpcBlockConfig>>
) -> Result<Option<UiConfirmedBlock>>
pub async fn get_blocks(
&self,
start_slot: Slot,
end_slot: Option<Slot>,
commitment: Option<CommitmentConfig>
) -> Result<Vec<Slot>>
pub async fn get_blocks_with_limit(
&self,
start_slot: Slot,
limit: usize,
commitment: Option<CommitmentConfig>
) -> Result<Vec<Slot>>
pub fn get_signature_confirmation_status(
&self,
signature: Signature,
commitment: Option<CommitmentConfig>
) -> Option<RpcSignatureConfirmation>
pub fn get_signature_status(
&self,
signature: Signature,
commitment: Option<CommitmentConfig>
) -> Option<Result<()>>
pub async fn get_signature_statuses(
&self,
signatures: Vec<Signature>,
config: Option<RpcSignatureStatusConfig>
) -> Result<RpcResponse<Vec<Option<TransactionStatus>>>>
pub async fn get_transaction(
&self,
signature: Signature,
config: Option<RpcEncodingConfigWrapper<RpcTransactionConfig>>
) -> Result<Option<EncodedConfirmedTransaction>>
pub fn get_confirmed_signatures_for_address(
&self,
pubkey: Pubkey,
start_slot: Slot,
end_slot: Slot
) -> Vec<Signature>
pub async fn get_signatures_for_address(
&self,
address: Pubkey,
before: Option<Signature>,
until: Option<Signature>,
limit: usize,
commitment: Option<CommitmentConfig>
) -> Result<Vec<RpcConfirmedTransactionStatusWithSignature>>
pub fn get_stake_activation(
&self,
pubkey: &Pubkey,
config: Option<RpcEpochConfig>
) -> Result<RpcStakeActivation>
pub fn get_token_account_balance(
&self,
pubkey: &Pubkey,
commitment: Option<CommitmentConfig>
) -> Result<RpcResponse<UiTokenAmount>>
pub fn get_token_supply(
&self,
mint: &Pubkey,
commitment: Option<CommitmentConfig>
) -> Result<RpcResponse<UiTokenAmount>>
pub fn get_token_largest_accounts(
&self,
mint: &Pubkey,
commitment: Option<CommitmentConfig>
) -> Result<RpcResponse<Vec<RpcTokenAccountBalance>>>
pub fn get_token_accounts_by_owner(
&self,
owner: &Pubkey,
token_account_filter: TokenAccountsFilter,
config: Option<RpcAccountInfoConfig>
) -> Result<RpcResponse<Vec<RpcKeyedAccount>>>
pub fn get_token_accounts_by_delegate(
&self,
delegate: &Pubkey,
token_account_filter: TokenAccountsFilter,
config: Option<RpcAccountInfoConfig>
) -> Result<RpcResponse<Vec<RpcKeyedAccount>>>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for JsonRpcRequestProcessor
impl Send for JsonRpcRequestProcessor
impl Sync for JsonRpcRequestProcessor
impl Unpin for JsonRpcRequestProcessor
impl !UnwindSafe for JsonRpcRequestProcessor
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more