[][src]Trait solana::rpc::RpcSol

pub trait RpcSol: Sized + Send + Sync + 'static {
    type Metadata: Metadata;
    fn confirm_transaction(&self, _: Self::Metadata, _: String) -> Result<bool>;
fn get_account_info(&self, _: Self::Metadata, _: String) -> Result<Account>;
fn get_balance(&self, _: Self::Metadata, _: String) -> Result<u64>;
fn get_cluster_nodes(
        &self,
        _: Self::Metadata
    ) -> Result<Vec<RpcContactInfo>>;
fn get_recent_blockhash(
        &self,
        _: Self::Metadata
    ) -> Result<(String, FeeCalculator)>;
fn get_signature_status(
        &self,
        _: Self::Metadata,
        _: String
    ) -> Result<Option<Result<()>>>;
fn get_slot(&self, _: Self::Metadata) -> Result<u64>;
fn get_transaction_count(&self, _: Self::Metadata) -> Result<u64>;
fn get_total_supply(&self, _: Self::Metadata) -> Result<u64>;
fn request_airdrop(
        &self,
        _: Self::Metadata,
        _: String,
        _: u64
    ) -> Result<String>;
fn send_transaction(&self, _: Self::Metadata, _: Vec<u8>) -> Result<String>;
fn get_slot_leader(&self, _: Self::Metadata) -> Result<String>;
fn get_epoch_vote_accounts(
        &self,
        _: Self::Metadata
    ) -> Result<Vec<RpcVoteAccountInfo>>;
fn get_storage_blockhash(&self, _: Self::Metadata) -> Result<String>;
fn get_storage_slot(&self, _: Self::Metadata) -> Result<u64>;
fn get_storage_pubkeys_for_slot(
        &self,
        _: Self::Metadata,
        _: u64
    ) -> Result<Vec<Pubkey>>;
fn fullnode_exit(&self, _: Self::Metadata) -> Result<bool>;
fn get_num_blocks_since_signature_confirmation(
        &self,
        _: Self::Metadata,
        _: String
    ) -> Result<Option<usize>>;
fn get_signature_confirmation(
        &self,
        _: Self::Metadata,
        _: String
    ) -> Result<Option<(usize, Result<()>)>>; fn to_delegate(self) -> IoDelegate<Self, Self::Metadata> { ... } }

Associated Types

Loading content...

Required methods

fn confirm_transaction(&self, _: Self::Metadata, _: String) -> Result<bool>

fn get_account_info(&self, _: Self::Metadata, _: String) -> Result<Account>

fn get_balance(&self, _: Self::Metadata, _: String) -> Result<u64>

fn get_cluster_nodes(&self, _: Self::Metadata) -> Result<Vec<RpcContactInfo>>

fn get_recent_blockhash(
    &self,
    _: Self::Metadata
) -> Result<(String, FeeCalculator)>

fn get_signature_status(
    &self,
    _: Self::Metadata,
    _: String
) -> Result<Option<Result<()>>>

fn get_slot(&self, _: Self::Metadata) -> Result<u64>

fn get_transaction_count(&self, _: Self::Metadata) -> Result<u64>

fn get_total_supply(&self, _: Self::Metadata) -> Result<u64>

fn request_airdrop(
    &self,
    _: Self::Metadata,
    _: String,
    _: u64
) -> Result<String>

fn send_transaction(&self, _: Self::Metadata, _: Vec<u8>) -> Result<String>

fn get_slot_leader(&self, _: Self::Metadata) -> Result<String>

fn get_epoch_vote_accounts(
    &self,
    _: Self::Metadata
) -> Result<Vec<RpcVoteAccountInfo>>

fn get_storage_blockhash(&self, _: Self::Metadata) -> Result<String>

fn get_storage_slot(&self, _: Self::Metadata) -> Result<u64>

fn get_storage_pubkeys_for_slot(
    &self,
    _: Self::Metadata,
    _: u64
) -> Result<Vec<Pubkey>>

fn fullnode_exit(&self, _: Self::Metadata) -> Result<bool>

fn get_num_blocks_since_signature_confirmation(
    &self,
    _: Self::Metadata,
    _: String
) -> Result<Option<usize>>

fn get_signature_confirmation(
    &self,
    _: Self::Metadata,
    _: String
) -> Result<Option<(usize, Result<()>)>>

Loading content...

Provided methods

fn to_delegate(self) -> IoDelegate<Self, Self::Metadata>

Create an IoDelegate, wiring rpc calls to the trait methods.

Loading content...

Implementors

impl RpcSol for RpcSolImpl[src]

type Metadata = Meta

Loading content...