Struct space_lib::Solana

source ·
pub struct Solana { /* private fields */ }

Implementations§

source§

impl Solana

source

pub fn new<T>(url: T) -> Selfwhere
    T: Into<String>,

source

pub fn get_account_info(&self, pubkey: &str) -> Result<Response, HostError>

source

pub fn get_balance(&self, pubkey: &str) -> Result<Response, HostError>

source

pub fn get_block(&self, slot: u64) -> Result<Response, HostError>

source

pub fn get_block_height(&self) -> Result<Response, HostError>

source

pub fn get_block_production(&self) -> Result<Response, HostError>

source

pub fn get_block_commitment(&self, slot: u64) -> Result<Response, HostError>

source

pub fn get_blocks(
    &self,
    start_slot: u64,
    end_slot: Option<u64>
) -> Result<Response, HostError>

source

pub fn get_blocks_with_limit(
    &self,
    start_slot: u64,
    limit: u64
) -> Result<Response, HostError>

source

pub fn get_block_time(&self, slot: u64) -> Result<Response, HostError>

source

pub fn get_cluster_nodes(&self) -> Result<Response, HostError>

source

pub fn get_epoch_info(&self) -> Result<Response, HostError>

source

pub fn get_epoch_schedule(&self) -> Result<Response, HostError>

source

pub fn get_fee_for_message(&self, message: &str) -> Result<Response, HostError>

source

pub fn get_first_available_block(&self) -> Result<Response, HostError>

source

pub fn get_genesis_hash(&self) -> Result<Response, HostError>

source

pub fn get_health(&self) -> Result<Response, HostError>

source

pub fn get_highest_snapshot_slot(&self) -> Result<Response, HostError>

source

pub fn get_identity(&self) -> Result<Response, HostError>

source

pub fn get_inflation_governor(&self) -> Result<Response, HostError>

source

pub fn get_inflation_rate(&self) -> Result<Response, HostError>

source

pub fn get_inflation_reward(
    &self,
    pubkeys: Vec<&str>
) -> Result<Response, HostError>

source

pub fn get_largest_accounts(&self) -> Result<Response, HostError>

source

pub fn get_latest_blockhash(&self) -> Result<Response, HostError>

source

pub fn get_leader_schedule(&self) -> Result<Response, HostError>

source

pub fn get_max_retransmit_slot(&self) -> Result<Response, HostError>

source

pub fn get_max_shred_insert_slot(&self) -> Result<Response, HostError>

source

pub fn get_minimum_balance_for_rent_exemption(
    &self
) -> Result<Response, HostError>

source

pub fn get_multiple_accounts(
    &self,
    pubkeys: Vec<&str>
) -> Result<Response, HostError>

source

pub fn get_program_accounts(&self, pubkey: &str) -> Result<Response, HostError>

source

pub fn get_recent_performance_samples(&self) -> Result<Response, HostError>

source

pub fn get_signatures_for_address(
    &self,
    pubkey: &str
) -> Result<Response, HostError>

source

pub fn get_signature_statuses(
    &self,
    signatures: Vec<&str>
) -> Result<Response, HostError>

source

pub fn get_slot(&self) -> Result<Response, HostError>

source

pub fn get_slot_leader(&self) -> Result<Response, HostError>

source

pub fn get_slot_leaders(
    &self,
    start_slot: u64,
    limit: u64
) -> Result<Response, HostError>

source

pub fn get_stake_activation(&self, pubkey: &str) -> Result<Response, HostError>

source

pub fn get_stake_minimum_delegation(&self) -> Result<Response, HostError>

source

pub fn get_supply(&self) -> Result<Response, HostError>

source

pub fn get_token_account_balance(
    &self,
    pubkey: &str
) -> Result<Response, HostError>

source

pub fn get_token_accounts_by_delegate_mint(
    &self,
    pubkey: &str,
    mint: &str
) -> Result<Response, HostError>

source

pub fn get_token_accounts_by_delegate_program(
    &self,
    pubkey: &str,
    program: &str
) -> Result<Response, HostError>

source

pub fn get_token_accounts_by_owner_mint(
    &self,
    pubkey: &str,
    mint: &str
) -> Result<Response, HostError>

source

pub fn get_token_accounts_by_owner_program(
    &self,
    pubkey: &str,
    program: &str
) -> Result<Response, HostError>

source

pub fn get_token_largest_accounts(
    &self,
    pubkey: &str
) -> Result<Response, HostError>

source

pub fn get_token_supply(&self, pubkey: &str) -> Result<Response, HostError>

source

pub fn get_transaction(&self, signature: &str) -> Result<Response, HostError>

source

pub fn get_transaction_count(&self) -> Result<Response, HostError>

source

pub fn get_vote_accounts(&self) -> Result<Response, HostError>

source

pub fn is_blockhash_valid(&self, blockhash: &str) -> Result<Response, HostError>

source

pub fn minimum_ledger_slot(&self) -> Result<Response, HostError>

source

pub fn request_airdrop(
    &self,
    pubkey: &str,
    lamports: u64
) -> Result<Response, HostError>

source

pub fn send_transaction(&self, transaction: &str) -> Result<Response, HostError>

source

pub fn simulate_transaction(
    &self,
    transaction: &str
) -> Result<Response, HostError>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.