Function secret_toolkit_snip721::query::transaction_history_query
source · pub fn transaction_history_query<C: CustomQuery>(
querier: QuerierWrapper<'_, C>,
address: String,
viewing_key: String,
page: Option<u32>,
page_size: Option<u32>,
block_size: usize,
code_hash: String,
contract_addr: String
) -> StdResult<TransactionHistory>
Expand description
Returns a StdResult<TransactionHistory
> from performing TransactionHistory
query
Arguments
querier
- a reference to the Querier dependency of the querying contractaddress
- the address whose transaction history should be displayedviewing_key
- String holding the authentication key needed to view transactionspage
- Optional u32 representing the page number of transactions to displaypage_size
- Optional u32 number of transactions to returnblock_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