COMMAND
Decode an Ethereum transaction from the terminal
glnc tx takes a transaction hash and prints a human summary: what the transaction did, which protocol routed it, the token movements observed in the receipt, and the gas cost in both gwei and USD. Works on the 8 EVM chains plus Solana. Bitcoin is intentionally out of scope.
Synopsis
glnc tx <hash> [--chain <name>] [--json]If the hash exists on multiple chains, pass --chain to disambiguate. Otherwise glnc probes the supported chains in parallel and prints the first hit.
Example output
glnc tx 0x02d15281c5514a447192cc8d6140216050f8d3bf92efccd420b635274764fb94What gets decoded
Calldata decoding covers ERC-20, WETH, Uniswap V2 / V3 / Universal Router, plus the nested governance and treasury call patterns that move real money on mainnet:
| Flag | Description |
|---|---|
ERC-20 | transfer, approve, transferFrom |
WETH | deposit, withdraw |
Uniswap V2 Router | swapExact* and swap*ForExact variants for tokens, ETH, and tokens-for-ETH |
Uniswap V3 SwapRouter | exactInputSingle, exactOutputSingle, exactInput, exactOutput |
Uniswap Universal Router | execute, with V2 / V3 sub-command decoding |
GovernorBravo / OZ Governor | propose, queue, execute (with inner call decoding) |
OZ Timelock | schedule, scheduleBatch, execute, executeBatch |
Safe | execTransaction (inner data only; signatures are not treated as calldata) |
Gnosis MultiSend | Packed byte-walker with depth-3 recursion (Governor → Timelock → MultiSend → leaf) |
Receipt logs are decoded for token movements: ERC-20 Transfer and Approval, WETH Deposit and Withdrawal. Movements show from the tx.from perspective. Internal hops between contracts are filtered out so the output reflects what the sender actually saw on their balance sheet.
Flags
| Flag | Description |
|---|---|
--chain <name> | Query a single chain instead of probing all chains in parallel. |
--json | Emit the glnc.tx/v1 envelope on stdout. |
--no-color | Disable ANSI colors. NO_COLOR env and --json also disable colors. |
--verbose / -v | Show full addresses instead of 0x….1234 short form. |
JSON envelope
Under --json, tx emits a single glnc.tx/v1 document. The data block carries the decoded summary, an array of token movements, gas details, and the protocol identification; same shape across all EVM chains. See the JSON envelope reference.
glnc tx 0x02d15281... --json | jq '.data.movements'