Snip721Tx..::..TransferNft Method (MsgTransferNft, Nullable<(Of <(<'TxOptions>)>)>)
TransferNft is used to transfer ownership of the token to the recipient address.
This requires a valid token_id and the message sender must either be the owner or an address with valid transfer approval.
If the recipient address is the same as the current owner, the contract will throw an error. If the token is transferred to a new owner, its single-token approvals will be cleared.
This implementation will throw an error if trying to transfer a SNIP-722 non-transferable token.
Namespace:
SecretNET.NFTAssembly: SecretNET.NFT (in SecretNET.NFT.dll)
Syntax
public Task<SingleSecretTx<TransferNftResponse>> TransferNft( MsgTransferNft msg, Nullable<TxOptions> txOptions )
Public Function TransferNft ( _ msg As MsgTransferNft, _ txOptions As Nullable(Of TxOptions) _ ) As Task(Of SingleSecretTx(Of TransferNftResponse))
public: Task<SingleSecretTx<TransferNftResponse^>^>^ TransferNft( MsgTransferNft^ msg, Nullable<TxOptions^> txOptions )
Parameters
- msg
- Type: SecretNET.NFT..::..MsgTransferNft
The MSG.
- txOptions
- Type: Nullable<(Of <(<'TxOptions>)>)>
The tx options.