A Hardhat 3 plugin that automatically launches a local OpenScan Explorer and adds clickable transaction links to your terminal.
- Local block explorer — auto-launches on
hardhat nodeand opens your browser - Clickable terminal links — transaction hashes, addresses, and blocks are OSC 8 hyperlinks to the explorer
- Contract deployment tracking — matches bytecode to artifacts so the explorer shows contract names, ABIs, and source code
- Works with Hardhat Ignition and raw deploy scripts
npm install --save-dev @openscan/hardhat-pluginAdd the plugin to your hardhat.config.ts:
import { defineConfig } from "hardhat/config";
import openScanPlugin from "@openscan/hardhat-plugin";
export default defineConfig({
plugins: [openScanPlugin],
solidity: "0.8.29",
});Start a node:
npx hardhat nodeThe OpenScan Explorer will launch at http://localhost:3030 and your browser will open automatically.
See the plugin README for full configuration options, usage examples, and troubleshooting.
This repository is a pnpm monorepo. Make sure you have pnpm installed.
pnpm install
pnpm build
pnpm testpackages/plugin— the plugin source codepackages/example-project— a Hardhat 3 project for manual testing
Running pnpm watch in the root is useful during development — it rebuilds the plugin as you edit, so changes are picked up when you test in packages/example-project.
GitHub Actions runs on every push to main and on pull requests: install, build, test, and lint using Node.js 24.
MIT

