[][src]Struct solana_tokens::thin_client::ThinClient

pub struct ThinClient<'a> { /* fields omitted */ }

Implementations

impl<'a> ThinClient<'a>[src]

pub fn new<C: Client + 'a>(client: C, dry_run: bool) -> Self[src]

pub fn send_transaction(&self, transaction: Transaction) -> Result<Signature>[src]

pub fn poll_for_confirmation(&self, signature: &Signature) -> Result<()>[src]

pub fn get_signature_statuses(
    &self,
    signatures: &[Signature]
) -> Result<Vec<Option<TransactionStatus>>>
[src]

pub fn send_and_confirm_message<S: Signers>(
    &self,
    message: Message,
    signers: &S
) -> Result<(Transaction, Slot)>
[src]

pub fn transfer<S: Signer>(
    &self,
    lamports: u64,
    sender_keypair: &S,
    to_pubkey: &Pubkey
) -> Result<(Transaction, u64)>
[src]

pub fn get_fees(&self) -> Result<(Hash, FeeCalculator, Slot)>[src]

pub fn get_slot(&self) -> Result<Slot>[src]

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

pub fn get_account(&self, pubkey: &Pubkey) -> Result<Option<Account>>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for ThinClient<'a>

impl<'a> !Send for ThinClient<'a>

impl<'a> !Sync for ThinClient<'a>

impl<'a> Unpin for ThinClient<'a>

impl<'a> !UnwindSafe for ThinClient<'a>

Blanket Implementations

impl<T> AbiExample for T[src]

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, 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<V, T> VZip<V> for T where
    V: MultiLane<T>,