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

pub struct JsonRpcRequestProcessor { /* fields omitted */ }

Methods

impl JsonRpcRequestProcessor[src]

pub fn new(
    config: JsonRpcConfig,
    bank_forks: Arc<RwLock<BankForks>>,
    block_commitment_cache: Arc<RwLock<BlockCommitmentCache>>,
    blockstore: Arc<Blockstore>,
    storage_state: StorageState,
    validator_exit: Arc<RwLock<Option<ValidatorExit>>>
) -> Self
[src]

pub fn get_account_info(
    &self,
    pubkey: Result<Pubkey>,
    commitment: Option<CommitmentConfig>
) -> Result<Response<Option<RpcAccount>>>
[src]

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

pub fn get_program_accounts(
    &self,
    program_id: &Pubkey,
    commitment: Option<CommitmentConfig>
) -> Result<Vec<RpcKeyedAccount>>
[src]

pub fn get_inflation(
    &self,
    commitment: Option<CommitmentConfig>
) -> Result<Inflation>
[src]

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

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

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

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

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

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

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

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

Trait Implementations

impl Clone for JsonRpcRequestProcessor[src]

Auto Trait Implementations

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

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, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,