Snip721Tx..::..Approve Method
Approve is used to grant an address permission to transfer a single token.
This can only be performed by the token's owner or, in compliance with CW-721, an address that has inventory-wide approval to transfer the owner's tokens.
Approve is provided to maintain compliance with CW-721, but the owner can use SetWhitelistedApproval to accomplish the same thing if specifying
a token_id and approve_token AccessLevel for transfer.
Namespace:
SecretNET.NFTAssembly: SecretNET.NFT (in SecretNET.NFT.dll)
Syntax
public Task<SingleSecretTx<ApproveResponse>> Approve( MsgApprove msg, Nullable<TxOptions> txOptions )
Public Function Approve ( _ msg As MsgApprove, _ txOptions As Nullable(Of TxOptions) _ ) As Task(Of SingleSecretTx(Of ApproveResponse))
public: Task<SingleSecretTx<ApproveResponse^>^>^ Approve( MsgApprove^ msg, Nullable<TxOptions^> txOptions )
Parameters
- msg
- Type: SecretNET.NFT..::..MsgApprove
The MSG.
- txOptions
- Type: Nullable<(Of <(<'TxOptions>)>)>
The tx options.