SecretNET.NFT Namespace

Snip721Querier..::..GetNumTokensOfOwner Method

Displays the number of tokens that the querier has permission to see the owner and that belong to the specified address.

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

Syntax


public Task<SecretQueryContractResult<GetNumTokensOfOwnerResponse>> GetNumTokensOfOwner(
	string contractAddress,
	string owner,
	string viewer,
	string viewingKey,
	Nullable<Permit> permit,
	Nullable<string> codeHash
)
Public Function GetNumTokensOfOwner ( _
	contractAddress As String, _
	owner As String, _
	viewer As String, _
	viewingKey As String, _
	permit As Nullable(Of Permit), _
	codeHash As Nullable(Of String) _
) As Task(Of SecretQueryContractResult(Of GetNumTokensOfOwnerResponse))
public:
Task<SecretQueryContractResult<GetNumTokensOfOwnerResponse^>^>^ GetNumTokensOfOwner(
	String^ contractAddress, 
	String^ owner, 
	String^ viewer, 
	String^ viewingKey, 
	Nullable<Permit^> permit, 
	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.
codeHash
Type: Nullable<(Of <(<'String>)>)>
CodeHash is (not really) optional and makes a call way faster.

Return Value

SecretQueryContractResult<GetNumTokensOfOwnerResponse>.