{"id":22084056,"url":"https://github.com/dbadoy/signature","last_synced_at":"2026-05-02T15:35:53.981Z","repository":{"id":165510880,"uuid":"640843696","full_name":"dbadoy/signature","owner":"dbadoy","description":"Go implementation of the Ethereum 4byte, openchain API client","archived":false,"fork":false,"pushed_at":"2023-06-07T13:36:06.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-21T01:10:28.388Z","etag":null,"topics":["4byte","4bytes","ethereum","ethereum-lists","openchain","signature"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dbadoy.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":"2023-05-15T08:43:21.000Z","updated_at":"2024-02-26T16:02:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"6644c4b5-7be3-491d-a9b1-908a6d566400","html_url":"https://github.com/dbadoy/signature","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/dbadoy/signature","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbadoy%2Fsignature","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbadoy%2Fsignature/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbadoy%2Fsignature/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbadoy%2Fsignature/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbadoy","download_url":"https://codeload.github.com/dbadoy/signature/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbadoy%2Fsignature/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32540115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T12:25:33.646Z","status":"ssl_error","status_checked_at":"2026-05-02T12:24:51.733Z","response_time":132,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["4byte","4bytes","ethereum","ethereum-lists","openchain","signature"],"created_at":"2024-12-01T00:19:47.305Z","updated_at":"2026-05-02T15:35:53.976Z","avatar_url":"https://github.com/dbadoy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# signature\nsignature is a client implemented in Go that can query signatures from [4byte.directory](https://www.4byte.directory/), [ethereum-lists](https://github.com/ethereum-lists/4bytes), [openchainxyz](https://openchain.xyz/signatures). \u003cbr\u003e\n`e.g. \"0xa9059cbb\" -\u003e transfer(address,uint256)` \u003cbr\u003e\n\n\n'ethereum-lists' is tied to '4byte.directory', and the difference is that '4byte.directory' is more real-time('ethereum-lists' has fewer signatures than '4byte.directory'). However, it's better for API users to have more endpoint options than one (4byte.directory, github.com, openchain.xyz).\n\n### They have (2023-05-15)\nethereum-lists: `915,173` \u003cbr\u003e\n4byte.directory: `1,210,015` \u003cbr\u003e\nopenchain: method `2,361,806`, event `372,441` \u003cbr\u003e\n\n# Usage\n\n## Install\n```bash\n$ go get -u github.com/dbadoy/signature\n# OR `go mod tidy`\n$ go get -u github.com/dbadoy/signature/file \n$ go get -u github.com/dbadoy/signature/fourbytes\n$ go get -u github.com/dbadoy/signature/openchain\n```\n\n### file client\nGet the signature from the [ethereum-lists](https://github.com/ethereum-lists/4bytes) repository.\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/dbadoy/signature/file\"\n)\n\nfunc main() {\n\tclient, err := file.New(0)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// [transfer(address,uint256)] \u003cnil\u003e\n\tfmt.Println(client.Signature(\"0xa9059cbb\"))\n\tfmt.Println(client.Signature(\"a9059cbb\"))\n}\n\n```\n\n### fourbytes client\nGet the signature from the [4byte.directory](https://www.4byte.directory/) API.\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/dbadoy/signature/fourbytes\"\n)\n\nfunc main() {\n\tclient, err := fourbytes.New(fourbytes.DefaultConfig())\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// [join_tg_invmru_haha_fd06787(address,bool) func_2093253501(bytes) transfer(bytes4[9],bytes5[6],int48[11]) many_msg_babbage(bytes1) transfer(address,uint256)] \u003cnil\u003e\n\tfmt.Println(client.Signature(\"0xa9059cbb\"))\n\tfmt.Println(client.Signature(\"a9059cbb\"))\n}\n```\n\n### openchain client\nGet the signature from the [openchainxyz](https://openchain.xyz/signatures) API.\n\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/dbadoy/signature/openchain\"\n)\n\nfunc main() {\n\tclient, err := openchain.New(openchain.DefaultConfig())\n\tif err != nil {\n\t\tpanic(err)\n\t}\n    \n\t// [transfer(address,uint256)] \u003cnil\u003e\n\tfmt.Println(client.Signature(\"0xa9059cbb\"))\n\tfmt.Println(client.Signature(\"a9059cbb\"))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbadoy%2Fsignature","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbadoy%2Fsignature","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbadoy%2Fsignature/lists"}