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.NFTAssembly: 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))
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.