Snip721Querier..::..GetNumTokens Method
NumTokens returns the number of tokens 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.
Namespace:
SecretNET.NFTAssembly: SecretNET.NFT (in SecretNET.NFT.dll)
Syntax
public Task<SecretQueryContractResult<GetNumTokensResponse>> GetNumTokens( string contractAddress, string address, string viewingKey, Nullable<Permit> permit, Nullable<string> codeHash )
Parameters
- contractAddress
- Type: String
The contract address.
- address
- Type: String
Address of the querier if supplying optional ViewerInfo.
- viewingKey
- Type: String
Viewer's key if supplying optional ViewerInfo.
- permit
- Type: Nullable<(Of <(<'Permit>)>)>
Authenticate with permit.