{"id":16092273,"url":"https://github.com/shanefontaine/4byte","last_synced_at":"2025-08-03T16:32:37.429Z","repository":{"id":53502070,"uuid":"351992626","full_name":"shanefontaine/4byte","owner":"shanefontaine","description":"💻  Look up an Ethereum function signature by the 4 bytes of its hash","archived":false,"fork":false,"pushed_at":"2022-03-24T10:47:21.000Z","size":81,"stargazers_count":20,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-28T02:11:05.747Z","etag":null,"topics":["4byte","blockchain","eth","ethereum","function-signature","hash","keccack","sha3"],"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/shanefontaine.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":"2021-03-27T05:44:28.000Z","updated_at":"2023-07-06T01:43:46.000Z","dependencies_parsed_at":"2022-08-22T21:41:05.134Z","dependency_job_id":null,"html_url":"https://github.com/shanefontaine/4byte","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/shanefontaine%2F4byte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shanefontaine%2F4byte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shanefontaine%2F4byte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shanefontaine%2F4byte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shanefontaine","download_url":"https://codeload.github.com/shanefontaine/4byte/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243871911,"owners_count":20361380,"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":["4byte","blockchain","eth","ethereum","function-signature","hash","keccack","sha3"],"created_at":"2024-10-09T16:06:29.791Z","updated_at":"2025-03-17T17:30:56.929Z","avatar_url":"https://github.com/shanefontaine.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 4byte\n\n\u003e Look up an Ethereum function signature by the 4 bytes of its hash\n\n[![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/shanefontaine/4byte/master/LICENSE)\n[![NPM version](https://badge.fury.io/js/4byte.svg)](http://badge.fury.io/js/4byte)\n\n## Install\n\n```bash\nnpm install 4byte\n```\n\n## Getting started\n\n```javascript\nconst fourByte = require('4byte')\n\nconst signatures = fourByte('0x51c6590a')\nconsole.log(signatures) // ['addLiquidity(uint256)']\n```\n\n## CLI\n\nInstall:\n\n```bash\nnpm install -g 4byte\n```\n\nLook up a function signature:\n\n```bash\n$ 4byte 0xa9059cbb\ntransfer(bytes4[9],bytes5[6],int48[11])\nmany_msg_babbage(bytes1)\ntransfer(address,uint256)\n```\n\n```bash\n$ 4byte 0xa9059cbb --format=json\n[\n  \"transfer(bytes4[9],bytes5[6],int48[11])\",\n  \"many_msg_babbage(bytes1)\",\n  \"transfer(address,uint256)\"\n]\n```\n\n## Test\n\n```bash\nnpm test\n```\n\n## License\n\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshanefontaine%2F4byte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshanefontaine%2F4byte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshanefontaine%2F4byte/lists"}