pub struct SendToBuilder {
from: AccountId,
receiver_id: AccountId,
}Fields§
§from: AccountId§receiver_id: AccountIdImplementations§
Source§impl SendToBuilder
impl SendToBuilder
Sourcepub fn near(self, amount: NearToken) -> ConstructTransaction
pub fn near(self, amount: NearToken) -> ConstructTransaction
Prepares a new transaction for sending NEAR tokens to another account.
Sourcepub fn ft(
self,
ft_contract: AccountId,
amount: FTBalance,
) -> Result<TransactionWithSign<FTTransactionable>, BuilderError>
pub fn ft( self, ft_contract: AccountId, amount: FTBalance, ) -> Result<TransactionWithSign<FTTransactionable>, BuilderError>
Prepares a new transaction contract call (ft_transfer, ft_metadata, storage_balance_of, storage_deposit) for sending FT tokens to another account.
Please note that if the receiver does not have enough storage, we will automatically deposit 100 milliNEAR for storage from the sender.
The provided function depends that the contract implements NEP-141
Sourcepub fn nft(
self,
nft_contract: AccountId,
token_id: String,
) -> Result<ConstructTransaction, BuilderError>
pub fn nft( self, nft_contract: AccountId, token_id: String, ) -> Result<ConstructTransaction, BuilderError>
Prepares a new transaction contract call (nft_transfer) for sending NFT tokens to another account.
The provided function depends that the contract implements NEP-171
Trait Implementations§
Source§impl Clone for SendToBuilder
impl Clone for SendToBuilder
Source§fn clone(&self) -> SendToBuilder
fn clone(&self) -> SendToBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SendToBuilder
impl RefUnwindSafe for SendToBuilder
impl Send for SendToBuilder
impl Sync for SendToBuilder
impl Unpin for SendToBuilder
impl UnwindSafe for SendToBuilder
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