{"id":24955360,"url":"https://github.com/ericxstone/hardhat-blockscout-verify","last_synced_at":"2025-06-11T11:14:10.647Z","repository":{"id":57111923,"uuid":"433682070","full_name":"EricxStone/hardhat-blockscout-verify","owner":"EricxStone","description":"Hardhat plugin for solidity contract verification on Blockscout block explorer","archived":false,"fork":false,"pushed_at":"2023-10-24T12:43:32.000Z","size":125,"stargazers_count":14,"open_issues_count":2,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-21T16:18:08.412Z","etag":null,"topics":["blockscout","ethereum","hardhat","hardhat-plugin","plugins","solidity"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/EricxStone.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":"2021-12-01T04:27:11.000Z","updated_at":"2023-11-08T15:56:33.000Z","dependencies_parsed_at":"2024-06-21T04:17:09.172Z","dependency_job_id":"0d00bc41-880f-4190-b4c6-ac1fb57d0ac4","html_url":"https://github.com/EricxStone/hardhat-blockscout-verify","commit_stats":{"total_commits":24,"total_committers":3,"mean_commits":8.0,"dds":0.125,"last_synced_commit":"7f6185aa66c3a2a5f8705605f7b5536bd6e9877d"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":"NomicFoundation/hardhat-ts-plugin-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricxStone%2Fhardhat-blockscout-verify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricxStone%2Fhardhat-blockscout-verify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricxStone%2Fhardhat-blockscout-verify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricxStone%2Fhardhat-blockscout-verify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EricxStone","download_url":"https://codeload.github.com/EricxStone/hardhat-blockscout-verify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EricxStone%2Fhardhat-blockscout-verify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259253180,"owners_count":22829142,"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":["blockscout","ethereum","hardhat","hardhat-plugin","plugins","solidity"],"created_at":"2025-02-03T06:00:05.097Z","updated_at":"2025-06-11T11:14:10.580Z","avatar_url":"https://github.com/EricxStone.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hardhat-blockscout-verify\n\n[Hardhat](https://hardhat.org) plugin for solidity contract verification on Blockscout block explorer\n\n## What\n\nThis plugin will help you to verify your solidity contract on Blockscout block explorer. Blockscout block explorer is a block explorer implmented for EVM-supported blockchain. Unlike Ethscan, Blockscout is an open-sourced project. There are many EVM-supported blockchain and sidechains has adopted Blockscout as their block explorer, including Moonriver (Moonbeam on Kusama), POA Network, xDai Chain, Ethereum Classic. Blockscout block explorer offers an API where you can verify your solidity contracts, but you will have to flatten the contract beforehand. This plugin helps you to do it in one shot.\n\n## Installation\n\n```bash\nnpm install @ericxstone/hardhat-blockscout-verify\n```\n\nImport the plugin in your `hardhat.config.js`:\n\n```js\nrequire(\"@ericxstone/hardhat-blockscout-verify\");\n```\n\nOr if you are using TypeScript, in your `hardhat.config.ts`:\n\n```ts\nimport \"@ericxstone/hardhat-blockscout-verify\";\nimport {SOLIDITY_VERSION, EVM_VERSION} from \"@ericxstone/hardhat-blockscout-verify\";\n```\n\n## Tasks\n\nThis plugin adds the `blockscout-verify` task to Hardhat:\n```bash\nnpx hardhat blockscout-verify \u003ccontract file path\u003e \u003ccontract address\u003e\n```\n\n## Configuration\n\nThis plugin extends the `HardhatUserConfig` object with an optional `blockscoutVerify` field.\n\nThis is an example of how to set it:\n\n```js\nmodule.exports = {\n  blockscoutVerify: {\n    blockscoutURL: \"\u003cBLOCKSCOUT_EXPLORER_URL\u003e\",\n    contracts: {\n      \"\u003cCONTRACT_NAME\u003e\": {\n        compilerVersion: SOLIDITY_VERSION.\u003cCONTRACT_COMPILER_VERSION\u003e, // checkout enum SOLIDITY_VERSION\n        optimization: true,\n        evmVersion: EVM_VERSION.\u003cEVM_VERSION\u003e, // checkout enum EVM_VERSION\n        optimizationRuns: 999999,\n      },\n    },\n  },\n};\n```\n\n## Usage\n\nThere are no additional steps you need to take for this plugin to work.\n\nInstall it and access ethers through the Hardhat Runtime Environment anywhere\nyou need it (tasks, scripts, tests, etc).\n\nYou can use the plugin as CLI\n```bash\nnpx hardhat blockscout-verify \u003ccontract file path\u003e \u003ccontract address\u003e\n```\n\nIf you use it in a script, the task parameters are `filePath` and `address`.\n\nExample:\n```js\nawait hre.run(\"blockscout-verify\", {\n    filePath: \"\u003ccontract file path\u003e\",\n    address: \"\u003ccontract address\u003e\"\n})\n```\n\n## Known Issue\n\n- Upgradeable contracts is current not supported.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericxstone%2Fhardhat-blockscout-verify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericxstone%2Fhardhat-blockscout-verify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericxstone%2Fhardhat-blockscout-verify/lists"}