Function secret_toolkit_snip721::query::private_metadata_query
source · [−]pub fn private_metadata_query<Q: Querier>(
querier: &Q,
token_id: String,
viewer: Option<ViewerInfo>,
block_size: usize,
callback_code_hash: String,
contract_addr: HumanAddr
) -> StdResult<Metadata>
Expand description
Returns a StdResult<Metadata
> from performing PrivateMetadata
query
Arguments
querier
- a reference to the Querier dependency of the querying contracttoken_id
- ID of the token whose info is being requestedviewer
- Optional ViewerInfo holding the address and viewing key of the querierblock_size
- pad the message to blocks of this sizecallback_code_hash
- String holding the code hash of the contract being queriedcontract_addr
- address of the contract being queried