pub trait NonFungibleTokenWithdrawer: NonFungibleTokenReceiver + NonFungibleTokenWithdrawResolver {
// Required method
fn nft_withdraw(
&mut self,
token: AccountId,
receiver_id: AccountId,
token_id: TokenId,
memo: Option<String>,
msg: Option<String>,
) -> PromiseOrValue<bool>;
}
Required Methods§
Sourcefn nft_withdraw(
&mut self,
token: AccountId,
receiver_id: AccountId,
token_id: TokenId,
memo: Option<String>,
msg: Option<String>,
) -> PromiseOrValue<bool>
fn nft_withdraw( &mut self, token: AccountId, receiver_id: AccountId, token_id: TokenId, memo: Option<String>, msg: Option<String>, ) -> PromiseOrValue<bool>
Returns number of tokens were successfully withdrawn
Optionally can specify storage_deposit
for receiver_id
on token
.
The amount will be subtracted from user’s NEP-141 wNEAR
balance.
NOTE: MUST attach 1 yⓃ for security purposes.