SecretNET.NFT Namespace

Snip721Querier..::..GetAllTokens Method

AllTokens returns an optionally paginated list of all the token IDs controlled by the contract. If the contract's token supply is private, only an authenticated minter's address will be allowed to perform this query. When paginating, supply the last token ID received in a response as the start_after token ID 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<GetAllTokensResponse>> GetAllTokens(
	string contractAddress,
	string address,
	string viewingKey,
	Nullable<Permit> permit,
	string startAfter,
	Nullable<int> limit,
	Nullable<string> codeHash
)
Public Function GetAllTokens ( _
	contractAddress As String, _
	address 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 GetAllTokensResponse))
public:
Task<SecretQueryContractResult<GetAllTokensResponse^>^>^ GetAllTokens(
	String^ contractAddress, 
	String^ address, 
	String^ viewingKey, 
	Nullable<Permit^> permit, 
	String^ startAfter, 
	Nullable<int^> limit, 
	Nullable<String^> codeHash
)

Parameters

contractAddress
Type: String
The contract address.
address
Type: String
The address.
viewingKey
Type: String
The viewing key.
permit
Type: Nullable<(Of <(<'Permit>)>)>
Authenticate with permit.
startAfter
Type: String
The start after.
limit
Type: Nullable<(Of <(<'Int32>)>)>
The limit.
codeHash
Type: Nullable<(Of <(<'String>)>)>
CodeHash is (not really) optional and makes a call way faster.

Return Value

SecretQueryContractResult<GetAllTokensResponse>.