@gala-chain/chaincode ∙ API
API > fetchBurns
Function: fetchBurns()
fetchBurns(
ctx
,data
):Promise
\<TokenBurn
[]>
Parameters
▪ ctx: GalaChainContext
▪ data: FetchBurnParams
Returns
Description
Query TokenBurn
entries from on-chain World State using the provided
filtering parameters.
Results will be sorted by ascending creation date (oldest first).
Non-paginated. Broad queries with many results could exceed the
configured maximum and throw an error. Refer to the
TokenBurn
class definition, and use @ChainKeys
of
increasing specificity to limit queries.
The @ChainKeys
that make up the World State composite key are ordered,
and cannot be skipped when making partial composite key queries.
Be advised that broad queries can lead
to performance issues for large result sets.