Eth-Reveal
Dive into Ethereum transactions from the CLI or via a module.
Use it live in Codepen: https://codepen.io/justinjmoses/full/vwexLj
Features
- Decodes method calls, function parameters and logs (with formatted dates and numbers) using ABI from Etherscan (if any)
- Looks for
target
of contract if any (i.e. aProxy
) and adds that ABI as well - Shows errors and revert reasons
Note: due to storage limitations of popular Ethereum providers, you won't get revert reasons for most transactions more than 128 blocks in the past unless you use an Infura archive node (see https://infura.io/docs/ethereum/add-ons/archiveData)
Browser API
Node API
const reveal = ; async { const hash blockNumber timestamp to from isContract contract underlyingContract method decodedLogs gasPrice gasLimit gasUsed gasFormat // handy format of gas price, limit and used params status errorMessage revertReason value nonce } = await ;};
CLI Usage:
npx eth-reveal -h [hash]
e.g. npx eth-reveal -h 0x203d9f5ec035ddaa02fc3a61b113bcfc6a8c0ee965fed7508e3627fc39f1a18f
(SynthetixFeePool.claimFees
)
e.g. npx eth-reveal -h 0xa9cfa1dc823f35e230ba1b785f359df0fa3056fe6b3689516216f3c6fc7599ac
(Send ETH to NEPay
)
e.g. npx eth-reveal -h 0x7f370b9f6647762d1a04f55b6a34195da98b749da01bed58d600c87658cf7b90
(DMSCOIN.transfer
)
e.g. npx eth-reveal -h 0x7a8d26e929dba1146cb3eb3ef5ed48883d2460a365f0e7bab2acecbbbdf47f05
(Synthetix.burnSynths
)