Menu

1 / 5

tx-explainer: read a Solana transaction in plain language

DEV Community: typescript·Abdeldjalil Chougui·19 days ago
#hZJpo5sG
#devtotypescript#devto#dev#token#transaction
Long article (1332 words) — no AI summary yet.
Reading 0:00
15s threshold

A Solana transaction is easy to find and hard to read. An explorer gives you a signature, a list of account keys, and instructions whose data is a string of bytes. To know what really happened you have to remember that the first byte of a Token instruction is a tag, that amounts are little-endian integers without decimals, and that an Anchor program hides the instruction name behind an 8-byte discriminator.

tx-explainer does that reading for you. You give it a signature, raw transaction bytes or a saved getTransaction response, and it prints what each instruction did in plain sentences, followed by the fee, the compute units and the balance changes.

It is a read-only decoder: it never signs or sends anything.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.