RRoburnaBuilders
Workspace
DEVELOPING ON ROBURNAGuide1 min read

Verify With Hardhat

Hardhat can verify your contract directly through the command line.

#1. Configure RBAScan

Add the RBAScan Testnet configuration to your hardhat.config.js or hardhat.config.ts.

typescript
etherscan: {
  apiKey: {
    "roburna-testnet": "empty",
  },

  customChains: [
    {
      network: "roburna-testnet",
      chainId: 159,

      urls: {
        apiURL: "https://testapi.rbascan.com:443/api/",
        browserURL: "https://testnet.rbascan.com",
      },
    },
  ],
},

RBAScan does not require a traditional API key for this configuration, so "empty" is used as the value.

#2. Verify the Contract

Run: npx hardhat verify
--network roburna-testnet
YOUR_CONTRACT_ADDRESS

Replace YOUR_CONTRACT_ADDRESS with the address of your deployed contract.

#3. Constructor Arguments

If your contract has constructor arguments, provide them after the contract address. For example: npx hardhat verify
--network roburna-testnet
YOUR_CONTRACT_ADDRESS
"Constructor Argument"

For multiple constructor arguments, provide each argument in the same order used during deployment.

#4. Check the Result

After successful verification, open the contract on RBAScan Testnet. The contract source code should now be available under the Contract section.

Last updated Sep 16, 2026

Hosted on Roburna Docs.