Function secret_toolkit_snip721::query::num_tokens_query
source · pub fn num_tokens_query<C: CustomQuery>(
querier: QuerierWrapper<'_, C>,
viewer: Option<ViewerInfo>,
block_size: usize,
code_hash: String,
contract_addr: String
) -> StdResult<NumTokens>
Expand description
Returns a StdResult<NumTokens
> from performing NumTokens
query
Arguments
querier
- a reference to the Querier dependency of the querying contractviewer
- Optional ViewerInfo holding the address and viewing key of the querierblock_size
- pad the message to blocks of this sizecode_hash
- String holding the code hash of the contract being queriedcontract_addr
- address of the contract being queried