Struct solana_core::rpc::JsonRpcRequestProcessor [−][src]
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]
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>)
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]
&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>>>>
[src]
&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
[src]
&self,
data_len: usize,
commitment: Option<CommitmentConfig>
) -> u64
pub fn get_program_accounts(
&self,
program_id: &Pubkey,
config: Option<RpcAccountInfoConfig>,
filters: Vec<RpcFilterType>
) -> Result<Vec<RpcKeyedAccount>>
[src]
&self,
program_id: &Pubkey,
config: Option<RpcAccountInfoConfig>,
filters: Vec<RpcFilterType>
) -> Result<Vec<RpcKeyedAccount>>
pub fn get_inflation_governor(
&self,
commitment: Option<CommitmentConfig>
) -> RpcInflationGovernor
[src]
&self,
commitment: Option<CommitmentConfig>
) -> RpcInflationGovernor
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]
&self,
pubkey: &Pubkey,
commitment: Option<CommitmentConfig>
) -> RpcResponse<u64>
pub fn confirm_transaction(
&self,
signature: &Signature,
commitment: Option<CommitmentConfig>
) -> RpcResponse<bool>
[src]
&self,
signature: &Signature,
commitment: Option<CommitmentConfig>
) -> RpcResponse<bool>
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]
&self,
slot: Slot,
encoding: Option<UiTransactionEncoding>
) -> Result<Option<EncodedConfirmedBlock>>
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]
&self,
start_slot: Slot,
end_slot: Option<Slot>
) -> Result<Vec<Slot>>
pub fn get_confirmed_blocks_with_limit(
&self,
start_slot: Slot,
limit: usize
) -> Result<Vec<Slot>>
[src]
&self,
start_slot: Slot,
limit: usize
) -> Result<Vec<Slot>>
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]
&self,
signature: Signature,
commitment: Option<CommitmentConfig>
) -> Option<RpcSignatureConfirmation>
pub fn get_signature_status(
&self,
signature: Signature,
commitment: Option<CommitmentConfig>
) -> Option<Result<()>>
[src]
&self,
signature: Signature,
commitment: Option<CommitmentConfig>
) -> Option<Result<()>>
pub fn get_signature_statuses(
&self,
signatures: Vec<Signature>,
config: Option<RpcSignatureStatusConfig>
) -> Result<RpcResponse<Vec<Option<TransactionStatus>>>>
[src]
&self,
signatures: Vec<Signature>,
config: Option<RpcSignatureStatusConfig>
) -> Result<RpcResponse<Vec<Option<TransactionStatus>>>>
pub fn get_confirmed_transaction(
&self,
signature: Signature,
encoding: Option<UiTransactionEncoding>
) -> Option<EncodedConfirmedTransaction>
[src]
&self,
signature: Signature,
encoding: Option<UiTransactionEncoding>
) -> Option<EncodedConfirmedTransaction>
pub fn get_confirmed_signatures_for_address(
&self,
pubkey: Pubkey,
start_slot: Slot,
end_slot: Slot
) -> Vec<Signature>
[src]
&self,
pubkey: Pubkey,
start_slot: Slot,
end_slot: Slot
) -> Vec<Signature>
pub fn get_confirmed_signatures_for_address2(
&self,
address: Pubkey,
before: Option<Signature>,
until: Option<Signature>,
limit: usize
) -> Result<Vec<RpcConfirmedTransactionStatusWithSignature>>
[src]
&self,
address: Pubkey,
before: Option<Signature>,
until: Option<Signature>,
limit: usize
) -> Result<Vec<RpcConfirmedTransactionStatusWithSignature>>
pub fn get_first_available_block(&self) -> Slot
[src]
pub fn get_stake_activation(
&self,
pubkey: &Pubkey,
config: Option<RpcStakeConfig>
) -> Result<RpcStakeActivation>
[src]
&self,
pubkey: &Pubkey,
config: Option<RpcStakeConfig>
) -> Result<RpcStakeActivation>
pub fn get_token_account_balance(
&self,
pubkey: &Pubkey,
commitment: Option<CommitmentConfig>
) -> Result<RpcResponse<UiTokenAmount>>
[src]
&self,
pubkey: &Pubkey,
commitment: Option<CommitmentConfig>
) -> Result<RpcResponse<UiTokenAmount>>
pub fn get_token_supply(
&self,
mint: &Pubkey,
commitment: Option<CommitmentConfig>
) -> Result<RpcResponse<UiTokenAmount>>
[src]
&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>>>
[src]
&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>>>
[src]
&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>>>
[src]
&self,
delegate: &Pubkey,
token_account_filter: TokenAccountsFilter,
config: Option<RpcAccountInfoConfig>
) -> Result<RpcResponse<Vec<RpcKeyedAccount>>>
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]
fn clone(&self) -> JsonRpcRequestProcessor
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,