SecretNET.NFT Namespace

Snip721Querier..::..GetTokenApprovals Method

TokenApprovals returns whether the owner and private metadata of a token is public, and lists all the approvals specific to this token. Only the token's owner may perform TokenApprovals. (This query MUST be authenticated)

Namespace:  SecretNET.NFT
Assembly:  SecretNET.NFT (in SecretNET.NFT.dll)

Syntax


public Task<SecretQueryContractResult<GetTokenApprovalsResponse>> GetTokenApprovals(
	string contractAddress,
	string tokenId,
	string viewingKey,
	Nullable<Permit> permit,
	Nullable<bool> includeExpired,
	Nullable<string> codeHash
)
Public Function GetTokenApprovals ( _
	contractAddress As String, _
	tokenId As String, _
	viewingKey As String, _
	permit As Nullable(Of Permit), _
	includeExpired As Nullable(Of Boolean), _
	codeHash As Nullable(Of String) _
) As Task(Of SecretQueryContractResult(Of GetTokenApprovalsResponse))
public:
Task<SecretQueryContractResult<GetTokenApprovalsResponse^>^>^ GetTokenApprovals(
	String^ contractAddress, 
	String^ tokenId, 
	String^ viewingKey, 
	Nullable<Permit^> permit, 
	Nullable<bool^> includeExpired, 
	Nullable<String^> codeHash
)

Parameters

contractAddress
Type: String
The contract address.
tokenId
Type: String
ID of the token being queried.
viewingKey
Type: String
The token owner's viewing key.
permit
Type: Nullable<(Of <(<'Permit>)>)>
Authenticate with permit.
includeExpired
Type: Nullable<(Of <(<'Boolean>)>)>
True if expired transfer approvals should be included in the response.
codeHash
Type: Nullable<(Of <(<'String>)>)>
CodeHash is (not really) optional and makes a call way faster.

Return Value

SecretQueryContractResult<GetTokenApprovalsResponse>.