Function secret_toolkit_snip721::query::tokens_query
source · pub fn tokens_query<C: CustomQuery>(
querier: QuerierWrapper<'_, C>,
owner: String,
viewer: Option<String>,
viewing_key: Option<String>,
start_after: Option<String>,
limit: Option<u32>,
block_size: usize,
code_hash: String,
contract_addr: String
) -> StdResult<TokenList>
Expand description
Returns a StdResult<TokenList
> from performing Tokens
query
Arguments
querier
- a reference to the Querier dependency of the querying contractowner
- the address whose token inventory is being requestedviewer
- Optional address of the querier if different from the ownerviewing_key
- Optional String holding the viewing key of the querierstart_after
- Optionally display only token ids that come after this String in lexicographical orderlimit
- Optional u32 number of token ids to displayblock_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