{"id":13621063,"url":"https://github.com/cleanunicorn/abi2signature","last_synced_at":"2026-01-12T09:55:51.298Z","repository":{"id":57171972,"uuid":"113828344","full_name":"cleanunicorn/abi2signature","owner":"cleanunicorn","description":"Use the ABI of a smart contract to find out the function signatures","archived":false,"fork":false,"pushed_at":"2019-01-07T20:29:56.000Z","size":66,"stargazers_count":57,"open_issues_count":0,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T09:16:38.110Z","etag":null,"topics":["ethereum","ethereum-contract","solidity"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cleanunicorn.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-11T07:45:07.000Z","updated_at":"2025-02-28T08:43:35.000Z","dependencies_parsed_at":"2022-08-24T13:30:50.617Z","dependency_job_id":null,"html_url":"https://github.com/cleanunicorn/abi2signature","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleanunicorn%2Fabi2signature","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleanunicorn%2Fabi2signature/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleanunicorn%2Fabi2signature/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleanunicorn%2Fabi2signature/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cleanunicorn","download_url":"https://codeload.github.com/cleanunicorn/abi2signature/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248972773,"owners_count":21191856,"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-contract","solidity"],"created_at":"2024-08-01T21:01:02.221Z","updated_at":"2026-01-12T09:55:51.289Z","avatar_url":"https://github.com/cleanunicorn.png","language":"JavaScript","funding_links":[],"categories":["Tools"],"sub_categories":[],"readme":"# abi2signature\n\nGenerates the Ethereum ABI 4 byte signatures if you provide the ABI or the function signature.\n\n## Installation\n```console\n$ npm i -g abi2signature\n```\n\n## Usage examples\n\n#### From stdin\n```console\n$ abi2signature \u003c cryptokitties-abi.json\n0x06fdde03 -\u003e [ function ] name\n0x095ea7b3 -\u003e [ function ] approve\n0x18160ddd -\u003e [ function ] totalSupply\n0x23b872dd -\u003e [ function ] transferFrom\n0x313ce567 -\u003e [ function ] decimals\n0x475a9fa9 -\u003e [ function ] issueTokens\n0x70a08231 -\u003e [ function ] balanceOf\n0x95d89b41 -\u003e [ function ] symbol\n0xa9059cbb -\u003e [ function ] transfer\n0xdd62ed3e -\u003e [ function ] allowance\n0xddf252ad -\u003e [ event ] Transfer\n0x8c5be1e5 -\u003e [ event ] Approval\n```\n\n#### From function string\n```console\n$ abi2signature func2sig \"receive(address)\"\nreceive(address) -\u003e 0x9d01174f\n```\n\n#### From ABI string\n```console\n$ abi2signature string2sig '[{...your abi...}]' \n```\n\n#### Vyper one liner\n```console\n$ vyper -f abi contracts/uniswap_exchange.vy | abi2signature\n```\n\n#### Solidity one liner\nSolidity outputs a header so I could not find a way to do this\n```console\n$ solc --abi --pretty-json contracts/ballot.sol | abi2signature\n======= contracts/ballot.sol:Crowdfunding =======\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleanunicorn%2Fabi2signature","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcleanunicorn%2Fabi2signature","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleanunicorn%2Fabi2signature/lists"}