{"id":13692424,"url":"https://github.com/ConsenSys/abi-decoder","last_synced_at":"2025-05-02T19:32:01.148Z","repository":{"id":43751224,"uuid":"82057939","full_name":"Consensys/abi-decoder","owner":"Consensys","description":"Nodejs and Javascript library for decoding data params and events from ethereum transactions","archived":false,"fork":false,"pushed_at":"2024-06-24T13:23:45.000Z","size":1013,"stargazers_count":642,"open_issues_count":64,"forks_count":222,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-04-08T17:16:14.946Z","etag":null,"topics":["ethereum","ethereum-dapp"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Consensys.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-15T12:23:12.000Z","updated_at":"2025-04-04T03:04:29.000Z","dependencies_parsed_at":"2024-06-18T11:24:23.875Z","dependency_job_id":"a92f9c90-3723-4276-93fa-6fcac39db2fa","html_url":"https://github.com/Consensys/abi-decoder","commit_stats":{"total_commits":54,"total_committers":14,"mean_commits":3.857142857142857,"dds":0.5,"last_synced_commit":"a9ed4923433ad32069e2ea963d683ed2ff49fa07"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Consensys%2Fabi-decoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Consensys%2Fabi-decoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Consensys%2Fabi-decoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Consensys%2Fabi-decoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Consensys","download_url":"https://codeload.github.com/Consensys/abi-decoder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252095319,"owners_count":21693899,"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","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":["ethereum","ethereum-dapp"],"created_at":"2024-08-02T17:00:57.798Z","updated_at":"2025-05-02T19:32:00.860Z","avatar_url":"https://github.com/Consensys.png","language":"JavaScript","funding_links":[],"categories":["dApps directory","Roadmap","Development"],"sub_categories":["ABI Tools"],"readme":"# abi-decoder\nNodejs and Javascript library for decoding data params and events from etherem transactions\n\n# Install\n```\nnpm install abi-decoder\nbower install abi-decoder\n```\n\n# Instantiate\n```js\n\u003cscript src=\"bower_components/abi-decoder/dist/abi-decoder.js\"\u003e // Javascript\nconst abiDecoder = require('abi-decoder'); // NodeJS\n```\n\n# Add ABI's\nNeed to pass the ABI's manually to the library in order to be able to decode params later\n```js\nconst testABI = [{\"inputs\": [{\"type\": \"address\", \"name\": \"\"}], \"constant\": true, \"name\": \"isInstantiation\", \"payable\": false, \"outputs\": [{\"type\": \"bool\", \"name\": \"\"}], \"type\": \"function\"}, {\"inputs\": [{\"type\": \"address[]\", \"name\": \"_owners\"}, {\"type\": \"uint256\", \"name\": \"_required\"}, {\"type\": \"uint256\", \"name\": \"_dailyLimit\"}], \"constant\": false, \"name\": \"create\", \"payable\": false, \"outputs\": [{\"type\": \"address\", \"name\": \"wallet\"}], \"type\": \"function\"}, {\"inputs\": [{\"type\": \"address\", \"name\": \"\"}, {\"type\": \"uint256\", \"name\": \"\"}], \"constant\": true, \"name\": \"instantiations\", \"payable\": false, \"outputs\": [{\"type\": \"address\", \"name\": \"\"}], \"type\": \"function\"}, {\"inputs\": [{\"type\": \"address\", \"name\": \"creator\"}], \"constant\": true, \"name\": \"getInstantiationCount\", \"payable\": false, \"outputs\": [{\"type\": \"uint256\", \"name\": \"\"}], \"type\": \"function\"}, {\"inputs\": [{\"indexed\": false, \"type\": \"address\", \"name\": \"sender\"}, {\"indexed\": false, \"type\": \"address\", \"name\": \"instantiation\"}], \"type\": \"event\", \"name\": \"ContractInstantiation\", \"anonymous\": false}];\nabiDecoder.addABI(testABI);\n```\n\n# Decode Tx data\n```js\nconst testData = \"0x53d9d9100000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000a6d9c5f7d4de3cef51ad3b7235d79ccc95114de5000000000000000000000000a6d9c5f7d4de3cef51ad3b7235d79ccc95114daa\";\nconst decodedData = abiDecoder.decodeMethod(testData);\n```\n\n# Decode Logs from Tx Receipt\n```js\nweb3.eth.getTransactionReceipt(\"0x9199e262aaab0a6ec99558b3e9f42397c07a2bb9c6befb637643aebfb03cc32a\", function(e, receipt) {\n  const decodedLogs = abiDecoder.decodeLogs(receipt.logs);\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FConsenSys%2Fabi-decoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FConsenSys%2Fabi-decoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FConsenSys%2Fabi-decoder/lists"}