Loading…
page and limit (max 100), with a 10,000 record result window.curl http://localhost:3000/api/transaction/0x<hash> curl "http://localhost:3000/api/address/0x<address>/transactions?type=erc20&page=1&limit=25"
http://localhost:3000/api?module=…&action=… mirrors the Etherscan API request and response format ({ status, message, result }), so existing tooling works unchanged.
curl "http://localhost:3000/api?module=account&action=txlist&address=0x<address>&startblock=0&endblock=99999999&page=1&offset=10&sort=desc" curl "http://localhost:3000/api?module=contract&action=getabi&address=0x<contract>" curl "http://localhost:3000/api?module=logs&action=getLogs&address=0x<contract>&topic0=0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
Hardhat (hardhat.config.js)
etherscan: {
apiKey: { explorer: "any-non-empty-string" },
customChains: [{
network: "explorer",
chainId: <chain id>,
urls: { apiURL: "http://localhost:3000/api", browserURL: "http://localhost:3000" },
}],
},
// npx hardhat verify --network explorer <address> <constructor args...>Foundry
forge verify-contract <address> src/Token.sol:Token \ --verifier etherscan --verifier-url http://localhost:3000/api --etherscan-api-key any \ --compiler-version <version> --watch