pub struct Wallet { /* private fields */ }
Implementations§
Source§impl Wallet
impl Wallet
pub fn new( api_key: String, env: NetEnv, token: String, secretKey: String, ) -> Wallet
pub async fn transfer_spltoken( &self, payload: (&str, &str, &str, &str), ) -> Result<Option<TransferSpltoken>, Box<dyn Error>>
pub async fn transfer_sol( &self, payload: (&str, &str), ) -> Result<Option<TransferSpltoken>, Box<dyn Error>>
pub async fn get_tokens( &self, ) -> Result<Option<GetSolanaTokens>, Box<dyn Error>>
pub async fn get_transactions( &self, ) -> Result<Option<GetTransactions>, Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for Wallet
impl RefUnwindSafe for Wallet
impl Send for Wallet
impl Sync for Wallet
impl Unpin for Wallet
impl UnwindSafe for Wallet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more