{"id":28662763,"url":"https://github.com/subscan-explorer/solidity-verification-tool","last_synced_at":"2026-04-26T08:37:02.411Z","repository":{"id":291712290,"uuid":"943102733","full_name":"subscan-explorer/solidity-verification-tool","owner":"subscan-explorer","description":"Subscan solidity contract verification tool","archived":false,"fork":false,"pushed_at":"2026-04-16T10:18:26.000Z","size":2844,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-16T12:27:29.163Z","etag":null,"topics":["evm","solidity","subscan"],"latest_commit_sha":null,"homepage":"","language":"Go","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/subscan-explorer.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-05T07:07:03.000Z","updated_at":"2026-02-24T03:28:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"3a7803f8-1e2a-4d19-adec-bd2f5f987f6b","html_url":"https://github.com/subscan-explorer/solidity-verification-tool","commit_stats":null,"previous_names":["subscan-explorer/solidity-verification-tool"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/subscan-explorer/solidity-verification-tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subscan-explorer%2Fsolidity-verification-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subscan-explorer%2Fsolidity-verification-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subscan-explorer%2Fsolidity-verification-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subscan-explorer%2Fsolidity-verification-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subscan-explorer","download_url":"https://codeload.github.com/subscan-explorer/solidity-verification-tool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subscan-explorer%2Fsolidity-verification-tool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32291098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T08:29:33.829Z","status":"ssl_error","status_checked_at":"2026-04-26T08:29:18.366Z","response_time":129,"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":["evm","solidity","subscan"],"created_at":"2025-06-13T11:12:42.535Z","updated_at":"2026-04-26T08:37:02.406Z","avatar_url":"https://github.com/subscan-explorer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solidity Smart Contract Verification Tool\n\nThis tool allows you to verify Solidity smart contracts by comparing the bytecode on the blockchain with the recompiled\nbytecode.\n\n## Features\n\n- Recompiles Solidity smart contracts using a specified compiler version.\n- Compares the on-chain bytecode with the recompiled bytecode.\n- Provides detailed error messages if verification fails.\n- Preserves metadata settings such as `evmVersion` and `eofVersion` when recompiling.\n- Polkadot revive(https://github.com/paritytech/revive) support.\n- No dependency on external services or third-party libraries.\n\n## Installation\n\n1. Clone the repository:\n```sh\ngit clone https://github.com/subscan-explorer/solidity-verification-tool.git\n```\n\n2. Navigate to the project directory:\n\n```sh\ncd solidity-verification-tool\n```\n\n3. Install dependencies:\n\n```sh\ngo mod tidy\n```\n\n## Usage\n\n1. Start the server:\n\n```sh\ngo run main.go\n```\n\n2. Send a POST request to `/verify` with the contract metadata and compiler version.\n   If the contract was compiled for EOF, include `settings.eofVersion` in the metadata JSON.\n\n```sh\ncurl -X POST -H \"Content-Type: application/json\" -d '{\"metadata\": {...}, \"compilerVersion\": \"v0.8.26+commit.8a97fa7a\",\"chain\":46,\"address\":\"xxxx\"}' http://localhost:8081/verify\n```\n\nExample EOF metadata fragment:\n\n```json\n{\n  \"settings\": {\n    \"evmVersion\": \"osaka\",\n    \"eofVersion\": 1\n  }\n}\n```\n\n## Revive support\n\nBuilding Solidity contracts for PolkaVM requires installing extra dependencies. To install revive, run the following command:\n\n```sh\ngo run . download # if will auto download latest resolc binary in static folder\n```\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubscan-explorer%2Fsolidity-verification-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubscan-explorer%2Fsolidity-verification-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubscan-explorer%2Fsolidity-verification-tool/lists"}