Struct solana_core::rpc::JsonRpcRequestProcessor[][src]

pub struct JsonRpcRequestProcessor {
    pub blockstore: Arc<Blockstore>,
    // some fields omitted
}

Fields

blockstore: Arc<Blockstore>

Implementations

impl JsonRpcRequestProcessor[src]

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<Option<ValidatorExit>>>,
    health: Arc<RpcHealth>,
    cluster_info: Arc<ClusterInfo>,
    genesis_hash: Hash,
    runtime: &Runtime,
    bigtable_ledger_storage: Option<LedgerStorage>,
    optimistically_confirmed_bank: Arc<RwLock<OptimisticallyConfirmedBank>>,
    largest_accounts_cache: Arc<RwLock<LargestAccountsCache>>,
    max_slots: Arc<MaxSlots>
) -> (Self, Receiver<TransactionInfo>)
[src]

pub fn new_from_bank(bank: &Arc<Bank>) -> Self[src]

pub fn get_account_info(
    &self,
    pubkey: &Pubkey,
    config: Option<RpcAccountInfoConfig>
) -> Result<RpcResponse<Option<UiAccount>>>
[src]

pub fn get_multiple_accounts(
    &self,
    pubkeys: Vec<Pubkey>,
    config: Option<RpcAccountInfoConfig>
) -> Result<RpcResponse<Vec<Option<UiAccount>>>>
[src]

pub fn get_minimum_balance_for_rent_exemption(
    &self,
    data_len: usize,
    commitment: Option<CommitmentConfig>
) -> u64
[src]

pub fn get_program_accounts(
    &self,
    program_id: &Pubkey,
    config: Option<RpcAccountInfoConfig>,
    filters: Vec<RpcFilterType>
) -> Result<Vec<RpcKeyedAccount>>
[src]

pub fn get_inflation_governor(
    &self,
    commitment: Option<CommitmentConfig>
) -> RpcInflationGovernor
[src]

pub fn get_inflation_rate(&self) -> RpcInflationRate[src]

pub fn get_epoch_schedule(&self) -> EpochSchedule[src]

pub fn get_balance(
    &self,
    pubkey: &Pubkey,
    commitment: Option<CommitmentConfig>
) -> RpcResponse<u64>
[src]

pub fn confirm_transaction(
    &self,
    signature: &Signature,
    commitment: Option<CommitmentConfig>
) -> RpcResponse<bool>
[src]

pub fn get_slot(&self, commitment: Option<CommitmentConfig>) -> Slot[src]

pub fn set_log_filter(&self, filter: String)[src]

pub fn validator_exit(&self) -> bool[src]

pub fn get_confirmed_block(
    &self,
    slot: Slot,
    encoding: Option<UiTransactionEncoding>
) -> Result<Option<EncodedConfirmedBlock>>
[src]

pub fn get_confirmed_block_hash(&self, slot: Slot) -> Result<Option<String>>[src]

pub fn get_confirmed_blocks(
    &self,
    start_slot: Slot,
    end_slot: Option<Slot>
) -> Result<Vec<Slot>>
[src]

pub fn get_confirmed_blocks_with_limit(
    &self,
    start_slot: Slot,
    limit: usize
) -> Result<Vec<Slot>>
[src]

pub fn get_block_time(&self, slot: Slot) -> Result<Option<UnixTimestamp>>[src]

pub fn get_signature_confirmation_status(
    &self,
    signature: Signature,
    commitment: Option<CommitmentConfig>
) -> Option<RpcSignatureConfirmation>
[src]

pub fn get_signature_status(
    &self,
    signature: Signature,
    commitment: Option<CommitmentConfig>
) -> Option<Result<()>>
[src]

pub fn get_signature_statuses(
    &self,
    signatures: Vec<Signature>,
    config: Option<RpcSignatureStatusConfig>
) -> Result<RpcResponse<Vec<Option<TransactionStatus>>>>
[src]

pub fn get_confirmed_transaction(
    &self,
    signature: Signature,
    encoding: Option<UiTransactionEncoding>
) -> Option<EncodedConfirmedTransaction>
[src]

pub fn get_confirmed_signatures_for_address(
    &self,
    pubkey: Pubkey,
    start_slot: Slot,
    end_slot: Slot
) -> Vec<Signature>
[src]

pub fn get_confirmed_signatures_for_address2(
    &self,
    address: Pubkey,
    before: Option<Signature>,
    until: Option<Signature>,
    limit: usize
) -> Result<Vec<RpcConfirmedTransactionStatusWithSignature>>
[src]

pub fn get_first_available_block(&self) -> Slot[src]

pub fn get_stake_activation(
    &self,
    pubkey: &Pubkey,
    config: Option<RpcStakeConfig>
) -> Result<RpcStakeActivation>
[src]

pub fn get_token_account_balance(
    &self,
    pubkey: &Pubkey,
    commitment: Option<CommitmentConfig>
) -> Result<RpcResponse<UiTokenAmount>>
[src]

pub fn get_token_supply(
    &self,
    mint: &Pubkey,
    commitment: Option<CommitmentConfig>
) -> Result<RpcResponse<UiTokenAmount>>
[src]

pub fn get_token_largest_accounts(
    &self,
    mint: &Pubkey,
    commitment: Option<CommitmentConfig>
) -> Result<RpcResponse<Vec<RpcTokenAccountBalance>>>
[src]

pub fn get_token_accounts_by_owner(
    &self,
    owner: &Pubkey,
    token_account_filter: TokenAccountsFilter,
    config: Option<RpcAccountInfoConfig>
) -> Result<RpcResponse<Vec<RpcKeyedAccount>>>
[src]

pub fn get_token_accounts_by_delegate(
    &self,
    delegate: &Pubkey,
    token_account_filter: TokenAccountsFilter,
    config: Option<RpcAccountInfoConfig>
) -> Result<RpcResponse<Vec<RpcKeyedAccount>>>
[src]

pub fn get_frist_available_evm_block(&self) -> u64[src]

pub fn get_last_available_evm_block(&self) -> Option<u64>[src]

pub fn get_evm_receipt_by_hash(&self, hash: H256) -> Option<TransactionReceipt>[src]

pub fn get_evm_block_by_id(&self, id: BlockNum) -> Option<(Block, bool)>[src]

pub fn get_evm_block_id_by_hash(&self, hash: H256) -> Option<u64>[src]

Trait Implementations

impl Clone for JsonRpcRequestProcessor[src]

impl Metadata for JsonRpcRequestProcessor[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]