Documentation
¶
Overview ¶
Command txdecode decodes an Ethereum transaction's calldata into a human-readable call tree and flags dangerous operations (unlimited approvals, setApprovalForAll, permits, ownership transfers, proxy upgrades). Give it a transaction hash or a raw 0x calldata blob. It is read-only and never signs.
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
chains
Package chains is the static registry of EVM chains txdecode understands.
|
Package chains is the static registry of EVM chains txdecode understands. |
|
cli
Package cli wires the cobra command and turns flags into a decode.
|
Package cli wires the cobra command and turns flags into a decode. |
|
decode
Package decode turns transaction calldata into a human-readable call tree and flags dangerous operations.
|
Package decode turns transaction calldata into a human-readable call tree and flags dangerous operations. |
|
etherscan
Package etherscan fetches a verified contract's ABI from the Etherscan V2 API.
|
Package etherscan fetches a verified contract's ABI from the Etherscan V2 API. |
|
fourbyte
Package fourbyte resolves a 4-byte function selector to candidate signatures using the public 4byte.directory database (no API key).
|
Package fourbyte resolves a 4-byte function selector to candidate signatures using the public 4byte.directory database (no API key). |
|
render
Package render presents a decoded call tree as a colourised, human-readable report or as JSON.
|
Package render presents a decoded call tree as a colourised, human-readable report or as JSON. |
|
text
Package text holds string helpers shared across txdecode.
|
Package text holds string helpers shared across txdecode. |
Click to show internal directories.
Click to hide internal directories.
