SecretNET.NFT Namespace

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.NFT
Assembly:  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
)
Public Function GetVerifyTransferApproval ( _
	contractAddress As String, _
	tokenIds As String(), _
	address As String, _
	viewingKey As String, _
	permit As Nullable(Of Permit), _
	codeHash As Nullable(Of String) _
) As Task(Of SecretQueryContractResult(Of GetVerifyTransferApprovalResponse))
public:
Task<SecretQueryContractResult<GetVerifyTransferApprovalResponse^>^>^ GetVerifyTransferApproval(
	String^ contractAddress, 
	array<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.
codeHash
Type: Nullable<(Of <(<'String>)>)>
CodeHash is (not really) optional and makes a call way faster.

Return Value

SecretQueryContractResult<GetVerifyTransferApprovalResponse>.