Snip721Querier..::..GetVerifyTransferApproval Method
VerifyTransferApproval will verify that the specified address has approval to transfer the entire provided list of tokens.
As explained above, queries may experience a delay in revealing expired approvals, so it is possible that a transfer attempt will still fail
even after being verified by VerifyTransferApproval. If the address does not have transfer approval on all the tokens,
the response will indicate the first token encountered that can not be transferred by the address.
Because the intent of VerifyTransferApproval is to provide contracts a way to know before-hand whether an attempt to transfer tokens will fail,
this implementation will consider any SNIP-722 non-transferable token as unapproved for transfer.
(This query MUST be authenticated)
Namespace:
SecretNET.NFTAssembly: SecretNET.NFT (in SecretNET.NFT.dll)
Syntax
public Task<SecretQueryContractResult<GetVerifyTransferApprovalResponse>> GetVerifyTransferApproval( string contractAddress, string[] tokenIds, string address, string viewingKey, Nullable<Permit> permit, Nullable<string> codeHash )
Parameters
- contractAddress
- Type: String
The contract address.
- tokenIds
- Type: array<String>[]()[][]
List of tokens to check for the address' transfer approval.
- address
- Type: String
Address being checked for transfer approval.
- viewingKey
- Type: String
The address' viewing key.
- permit
- Type: Nullable<(Of <(<'Permit>)>)>
Authenticate with permit.