Looking at blocks: using algod, asset destruction has no “apar” section. using indexer, how can one determine this is destruction?
For example 455266410 in block: https://algoexplorerapi.io/idx2/v2/blocks/17826484
{“asset-config-transaction”:{“asset-id”:455266410,“params”:{“creator”:“GC5ICHM3HWCZR6AJETA3RXQVCFLKZU6LQCFQH2I42ACSJ7UHEAO4R63TIM”,“decimals”:0,“default-frozen”:false,“total”:0}},“close-rewards”:0,“closing-amount”:0,“confirmed-round”:17826484,“fee”:1000,“first-valid”:17826478,“genesis-hash”:“wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=”,“genesis-id”:“mainnet-v1.0”,“id”:“AIVMXYU6HR27QHIIOIDQZBP7Y5DL4ERBAR5GRFTQRDGPHQVKIB6A”,“intra-round-offset”:16,“last-valid”:17827478,“receiver-rewards”:0,“round-time”:1638647723,“sender”:“GC5ICHM3HWCZR6AJETA3RXQVCFLKZU6LQCFQH2I42ACSJ7UHEAO4R63TIM”,“sender-rewards”:0,“signature”:{“sig”:“PyTzeXp/kqE63kHhT+HJ+AQklpKVzavLsFQjYTQVx2gbpG6ov8k3ulr8yIeCLeTdtMss2BfH9aO7rxssxYmeBw==”},“tx-type”:“acfg”}
I suggest the “params” section is removed or if that’s useful a “deleted”:“true” is added somewhere.
Regarding “params”, it seems that in modifications, totals is always 0, so not sure how this can be useful. I believe it should only include what has changed for asset modifications, and should be absent in destruction.
Please clarify. Thanks.
P.S. Also, any reason why indexer does not report metadata hash on creation?