[−][src]Struct solana_tokens::thin_client::ThinClient
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]
&self,
signatures: &[Signature]
) -> Result<Vec<Option<TransactionStatus>>>
pub fn send_and_confirm_message<S: Signers>(
&self,
message: Message,
signers: &S
) -> Result<(Transaction, Slot)>
[src]
&self,
message: Message,
signers: &S
) -> Result<(Transaction, Slot)>
pub fn transfer<S: Signer>(
&self,
lamports: u64,
sender_keypair: &S,
to_pubkey: &Pubkey
) -> Result<(Transaction, u64)>
[src]
&self,
lamports: u64,
sender_keypair: &S,
to_pubkey: &Pubkey
) -> Result<(Transaction, u64)>
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]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,