SecretNET.NFT Namespace

Snip721Querier..::..GetAllNftInfo Method

AllNftInfo displays the result of both OwnerOf and NftInfo in a single query. This is provided for CW-721 compliance, but for more complete information about a token, use NftDossier, which will include private metadata and view_owner and view_private_metadata approvals if the querier is permitted to view this information.

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

Syntax


public Task<SecretQueryContractResult<GetAllNftInfoResponse>> GetAllNftInfo(
	string contractAddress,
	string tokenId,
	ViewerInfo viewerInfo,
	Nullable<Permit> permit,
	Nullable<bool> includeExpired,
	Nullable<string> codeHash
)
Public Function GetAllNftInfo ( _
	contractAddress As String, _
	tokenId As String, _
	viewerInfo As ViewerInfo, _
	permit As Nullable(Of Permit), _
	includeExpired As Nullable(Of Boolean), _
	codeHash As Nullable(Of String) _
) As Task(Of SecretQueryContractResult(Of GetAllNftInfoResponse))
public:
Task<SecretQueryContractResult<GetAllNftInfoResponse^>^>^ GetAllNftInfo(
	String^ contractAddress, 
	String^ tokenId, 
	ViewerInfo^ viewerInfo, 
	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.
viewerInfo
Type: SecretNET.NFT..::..ViewerInfo
The address and viewing key performing this query.
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<GetAllNftInfoResponse>.