{"id":17724378,"url":"https://github.com/jjgonecrypto/eth-reveal","last_synced_at":"2025-10-14T08:14:38.767Z","repository":{"id":55359842,"uuid":"187399292","full_name":"jjgonecrypto/eth-reveal","owner":"jjgonecrypto","description":"Dig into Ethereum transactions and reveal their secrets; kinda like having Etherscan in your code.","archived":false,"fork":false,"pushed_at":"2021-01-05T08:14:27.000Z","size":496,"stargazers_count":69,"open_issues_count":1,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-19T08:58:01.036Z","etag":null,"topics":["abi","cli","ethereum","ethereum-transactions","etherscan"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jjgonecrypto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-18T19:50:25.000Z","updated_at":"2025-02-14T15:52:44.000Z","dependencies_parsed_at":"2022-08-14T22:12:35.524Z","dependency_job_id":null,"html_url":"https://github.com/jjgonecrypto/eth-reveal","commit_stats":null,"previous_names":["justinjmoses/eth-reveal"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/jjgonecrypto/eth-reveal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjgonecrypto%2Feth-reveal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjgonecrypto%2Feth-reveal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjgonecrypto%2Feth-reveal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjgonecrypto%2Feth-reveal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jjgonecrypto","download_url":"https://codeload.github.com/jjgonecrypto/eth-reveal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jjgonecrypto%2Feth-reveal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018305,"owners_count":26086334,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["abi","cli","ethereum","ethereum-transactions","etherscan"],"created_at":"2024-10-25T15:46:40.583Z","updated_at":"2025-10-14T08:14:38.751Z","avatar_url":"https://github.com/jjgonecrypto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Eth-Reveal\n\n[![CircleCI](https://circleci.com/gh/justinjmoses/eth-reveal.svg?style=svg)](https://circleci.com/gh/justinjmoses/eth-reveal)\n[![npm version](https://badge.fury.io/js/eth-reveal.svg)](https://badge.fury.io/js/eth-reveal)\n\nDive into Ethereum transactions from the CLI or via a module.\n\nUse it live in Codepen: https://codepen.io/justinjmoses/full/vwexLj\n\n## Features\n\n- Decodes method calls, function parameters and logs (with formatted dates and numbers) using ABI from Etherscan (if any)\n- Looks for `target` of contract if any (i.e. a `Proxy`) and adds that ABI as well\n- Shows errors and revert reasons\n\n\u003e 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)\n\n## Browser API\n\n```html\n\u003cscript src=\"//cdn.jsdelivr.net/npm/eth-reveal/browser.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n\t// assumes browser supports modern JS (can use Babel preprocesser for this, see settings in Codepen linked above)\n\t(async () =\u003e {\n\t\tconst { reveal } = window;\n\t\tconst {\n\t\t\thash,\n\t\t\tblockNumber,\n\t\t\ttimestamp,\n\t\t\tto,\n\t\t\tfrom,\n\t\t\tisContract,\n\t\t\tcontract,\n\t\t\tunderlyingContract,\n\t\t\tmethod,\n\t\t\tdecodedLogs,\n\t\t\tgasPrice,\n\t\t\tgasLimit,\n\t\t\tgasUsed,\n\t\t\tgasFormat, // handy format of gas price, limit and used params\n\t\t\tstatus,\n\t\t\terrorMessage,\n\t\t\trevertReason,\n\t\t\tvalue,\n\t\t\tnonce,\n\t\t} = await reveal({\n\t\t\thash: '0x92031f1cafad71bdfaa2d326b222972df2c2dcdc2931b5e8c1a32bda2dc7b2c8',\n\t\t\tnetwork: 'mainnet', // default (supports kovan, ropsten and rinkeby)\n\t\t\tetherscanKey: 'demo', // optionally for better ES performance\n\t\t\t// to access historical data such as previous proxy targets and revert reasons, either supply a provider URI\n\t\t\tproviderURI: undefined,\n\t\t\tinfuraProjectID: '123321', // or optionally an infura project ID for an archive node\n\t\t});\n\t})();\n\u003c/script\u003e\n```\n\n## Node API\n\n```javascript\nconst reveal = require('eth-reveal');\n\n(async () =\u003e {\n\tconst {\n\t\thash,\n\t\tblockNumber,\n\t\ttimestamp,\n\t\tto,\n\t\tfrom,\n\t\tisContract,\n\t\tcontract,\n\t\tunderlyingContract,\n\t\tmethod,\n\t\tdecodedLogs,\n\t\tgasPrice,\n\t\tgasLimit,\n\t\tgasUsed,\n\t\tgasFormat, // handy format of gas price, limit and used params\n\t\tstatus,\n\t\terrorMessage,\n\t\trevertReason,\n\t\tvalue,\n\t\tnonce,\n\t} = await reveal({\n\t\thash: '0x92031f1cafad71bdfaa2d326b222972df2c2dcdc2931b5e8c1a32bda2dc7b2c8',\n\t\tnetwork: 'mainnet', // default (supports kovan, ropsten and rinkeby)\n\t\tetherscanKey: process.env.ETHERSCAN_API_KEY, // optionally for better ES performance\n\t\t// to access historical data such as previous proxy targets and revert reasons, either supply a provider URI\n\t\tproviderURI: undefined,\n\t\tinfuraProjectID: '123321', // or optionally an infura project ID for an archive node\n\t});\n})();\n```\n\n## CLI Usage:\n\n`npx eth-reveal -h [hash]`\n\ne.g. `npx eth-reveal -h 0x203d9f5ec035ddaa02fc3a61b113bcfc6a8c0ee965fed7508e3627fc39f1a18f` (`SynthetixFeePool.claimFees`)\n\n![image](https://user-images.githubusercontent.com/799038/80411361-13fe5e80-889a-11ea-8ba9-e55edca7ad59.png)\n\ne.g. `npx eth-reveal -h 0xa9cfa1dc823f35e230ba1b785f359df0fa3056fe6b3689516216f3c6fc7599ac` (Send ETH to `NEPay`)\n\n![image](https://user-images.githubusercontent.com/799038/80411110-9fc3bb00-8899-11ea-8463-d17ea36003b4.png)\n\ne.g. `npx eth-reveal -h 0x7f370b9f6647762d1a04f55b6a34195da98b749da01bed58d600c87658cf7b90`\n\n![image](https://user-images.githubusercontent.com/799038/57975591-e62a4d80-7999-11e9-82a5-7d80cbb361ae.png) (`DMSCOIN.transfer`)\n\ne.g. `npx eth-reveal -h 0x7a8d26e929dba1146cb3eb3ef5ed48883d2460a365f0e7bab2acecbbbdf47f05` (`Synthetix.burnSynths`)\n\n![image](https://user-images.githubusercontent.com/799038/80411232-d26db380-8899-11ea-84cd-5fa81de2560d.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjgonecrypto%2Feth-reveal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjjgonecrypto%2Feth-reveal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjjgonecrypto%2Feth-reveal/lists"}