Indexer block query asset destruction

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:


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?

1 Like

Good question. Should probably be added to the next version of algod.

By definition if apar is empty/not present, it means this is asset destruction.

What do you mean by:

why indexer does not report metadata hash on creation?

In all Algorand transactions, if a field is empty, it’s omitted.

1 Like

Thank Fabrice, I am not sure you understood my question. Yes algod is fine, apar missing = destruction.
My question is regarding the indexer, when you get the “blocks” from it. In that case “params” is not missing and I am not sure how you can understand if this is modification or destruction. When getting the block from indexer and not algod, there is nothing I can see that tells you if it’s destruction.

That’s a very good point!
Can you open an issue in
And you can link to this forum post too.

1 Like

Thank you: Getting blocks from the indexer (and not algod), not possible to determine asset destruction · Issue #804 · algorand/indexer · GitHub

1 Like