pub fn tokens_query<Q: Querier>(
    querier: &Q,
    owner: HumanAddr,
    viewer: Option<HumanAddr>,
    viewing_key: Option<String>,
    start_after: Option<String>,
    limit: Option<u32>,
    block_size: usize,
    callback_code_hash: String,
    contract_addr: HumanAddr
) -> StdResult<TokenList>
Expand description

Returns a StdResult<TokenList> from performing Tokens query

Arguments

  • querier - a reference to the Querier dependency of the querying contract
  • owner - the address whose token inventory is being requested
  • viewer - Optional address of the querier if different from the owner
  • viewing_key - Optional String holding the viewing key of the querier
  • start_after - Optionally display only token ids that come after this String in lexicographical order
  • limit - Optional u32 number of token ids to display
  • block_size - pad the message to blocks of this size
  • callback_code_hash - String holding the code hash of the contract being queried
  • contract_addr - address of the contract being queried