SecretNET.NFT Namespace

Snip721Querier..::..GetTokens Method

Tokens displays an optionally paginated list of all the token IDs that belong to the specified owner. It will only display the owner's tokens on which the querier has view_owner permission. If no viewing key is provided, it will only display the owner's tokens that have public ownership. When paginating, supply the last token ID received in a response as the start_after string of the next query to continue listing where the previous query stopped.

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

Syntax


public Task<SecretQueryContractResult<GetTokensResponse>> GetTokens(
	string contractAddress,
	string owner,
	string viewer,
	string viewingKey,
	Nullable<Permit> permit,
	string startAfter,
	Nullable<int> limit,
	Nullable<string> codeHash
)
Public Function GetTokens ( _
	contractAddress As String, _
	owner As String, _
	viewer As String, _
	viewingKey As String, _
	permit As Nullable(Of Permit), _
	startAfter As String, _
	limit As Nullable(Of Integer), _
	codeHash As Nullable(Of String) _
) As Task(Of SecretQueryContractResult(Of GetTokensResponse))
public:
Task<SecretQueryContractResult<GetTokensResponse^>^>^ GetTokens(
	String^ contractAddress, 
	String^ owner, 
	String^ viewer, 
	String^ viewingKey, 
	Nullable<Permit^> permit, 
	String^ startAfter, 
	Nullable<int^> limit, 
	Nullable<String^> codeHash
)

Parameters

contractAddress
Type: String
The contract address.
owner
Type: String
The address whose inventory is being queried.
viewer
Type: String
The querier's address if different from the owner.
viewingKey
Type: String
The querier's viewing key.
permit
Type: Nullable<(Of <(<'Permit>)>)>
Authenticate with permit.
startAfter
Type: String
Results will only list token IDs that come after this token ID in the list.
limit
Type: Nullable<(Of <(<'Int32>)>)>
Number of token IDs to return.
codeHash
Type: Nullable<(Of <(<'String>)>)>
CodeHash is (not really) optional and makes a call way faster.

Return Value

SecretQueryContractResult<GetTokensResponse>.