SecretNET.NFT Namespace

Snip721Querier..::..GetInventoryApprovals Method

InventoryApprovals returns whether all the address' tokens have public ownership and/or public display of private metadata, and lists all the inventory-wide approvals the address has granted. Only the viewing key for this specified address will be accepted. (This query MUST be authenticated)

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

Syntax


public Task<SecretQueryContractResult<GetInventoryApprovalsResponse>> GetInventoryApprovals(
	string contractAddress,
	string tokenId,
	string viewingKey,
	Nullable<Permit> permit,
	Nullable<bool> includeExpired,
	Nullable<string> codeHash
)
Public Function GetInventoryApprovals ( _
	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 GetInventoryApprovalsResponse))
public:
Task<SecretQueryContractResult<GetInventoryApprovalsResponse^>^>^ GetInventoryApprovals(
	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<GetInventoryApprovalsResponse>.