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

pub struct JsonRpcRequestProcessor { /* fields omitted */ }

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<ValidatorExit>>,
    health: Arc<RpcHealth>,
    cluster_info: Arc<ClusterInfo>,
    genesis_hash: Hash,
    runtime: Arc<Runtime>,
    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>)
[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>,
    with_context: bool
) -> Result<OptionalContext<Vec<RpcKeyedAccount>>>
[src]

pub fn get_inflation_reward(
    &self,
    addresses: Vec<Pubkey>,
    config: Option<RpcEpochConfig>
) -> Result<Vec<Option<RpcInflationReward>>>
[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_block(
    &self,
    slot: Slot,
    config: Option<RpcEncodingConfigWrapper<RpcBlockConfig>>
) -> Result<Option<UiConfirmedBlock>>
[src]

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

pub fn get_blocks_with_limit(
    &self,
    start_slot: Slot,
    limit: usize,
    commitment: Option<CommitmentConfig>
) -> 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_transaction(
    &self,
    signature: Signature,
    config: Option<RpcEncodingConfigWrapper<RpcTransactionConfig>>
) -> Result<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_signatures_for_address(
    &self,
    address: Pubkey,
    before: Option<Signature>,
    until: Option<Signature>,
    limit: usize,
    commitment: Option<CommitmentConfig>
) -> Result<Vec<RpcConfirmedTransactionStatusWithSignature>>
[src]

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

pub fn get_stake_activation(
    &self,
    pubkey: &Pubkey,
    config: Option<RpcEpochConfig>
) -> 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]

Trait Implementations

impl Clone for JsonRpcRequestProcessor[src]

fn clone(&self) -> JsonRpcRequestProcessor[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Metadata for JsonRpcRequestProcessor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> AbiExample for T[src]

pub default fn example() -> T[src]

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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

pub fn into(self) -> U[src]

Performs the conversion.

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

pub fn into_request(self) -> Request<T>[src]

Wrap the input message T in a tonic::Request

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

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.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

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

pub fn vzip(self) -> V

impl<T> WithSubscriber for T[src]

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
    S: Into<Dispatch>, 
[src]

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

fn with_current_subscriber(self) -> WithDispatch<Self>[src]

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more