Verifying a contract enables public access to the code of the deployed contract. Oasys utilizes Blockscout, which is a prominent open-source explorer. Therefore, it's essential to follow its specifications. Please refer to the Blockscout documentation for guidance. We will provide you with an exact example of the configuration.
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: {
oasysmainnet: {
url: "https://rpc.mainnet.oasys.games",
},
},
etherscan: {
apiKey: {
oasysmainnet: "abc"
},
customChains: [
{
network: "oasysmainnet",
chainId: 248,
urls: {
apiURL: "https://explorer.oasys.games/api",
browserURL: "https://explorer.oasys.games/"
}
}
]
},
...
}