Verify Contract on Saakuru Explorer

Contract Verification

Verifying a contract enables public access to the code of the deployed contract. Saakuru Protocol utilizes Blockscoutarrow-up-right, which is a prominent open-source explorer. Therefore, it's essential to follow its specifications. Please refer to the Blockscout documentationarrow-up-right for guidance. We will provide you with an exact example of the configuration.

Configuring the Hardhat Settings File

I will present you with a practical example of the config file (hardhat.config.js) for our mainnet case. Please note that it's not necessary to login and generate an apiKey; any value is acceptable.

const config = {
  ...
  networks: {
    saakuruTestnet:{
      url: 'https://rpc-testnet.saakuru.network',
      chainId: 247253,
      accounts: [`0x${privateKey}`],
      live: true,
      saveDeployments: true,
      gasPrice: 0,
    },
    saakuruMainnet:{
      url: 'https://rpc.saakuru.network',
      accounts: [`0x${privateKey}`],
      chainId: 7225878,
      live: true,
      saveDeployments: true,
      gasPrice: 0,
    },
  },
  etherscan: {
    apiKey: {
      saakuruMainnet: ‘’,
      saakuruTestnet: ‘’,
    },
    customChains: [
      {
        network: ‘saakuruMainnet’,
        chainId: 7225878,
        urls: {
          apiURL: ‘https://explorer.saakuru.network/api’,
          browserURL: ‘https://explorer.saakuru.network/’,
        },
      },
      {
        network: ‘saakuruTestnet’,
        chainId: 247253,
        urls: {
          apiURL: ‘https://explorer-testnet.saakuru.network/api’,
          browserURL: ‘https://explorer-testnet.saakuru.network/’,
        },
      },
    ],
  },`
  ...
}