-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
32 lines (30 loc) · 991 Bytes
/
hardhat.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-verify");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.20", //replace your own solidity compiler version
networks: {
opbnb: {
url: "https://opbnb-mainnet-rpc.bnbchain.org/",
chainId: 204, // Replace with the correct chainId for the "opbnb" network
accounts: ["{{YOUR-PRIVATE-KEY}}"], // Add private keys or mnemonics of accounts to use
gasPrice: 20000000000,
},
},
etherscan: {
apiKey: {
opbnb: "{{YOUR-NODEREAL-API-KEY}}", //replace your nodereal API key
},
customChains: [
{
network: "opbnb",
chainId: 204, // Replace with the correct chainId for the "opbnb" network
urls: {
apiURL:
"https://open-platform.nodereal.io/{{YOUR-NODEREAL-API-KEY}}/op-bnb-mainnet/contract/",
browserURL: "https://opbnbscan.com/",
},
},
],
},
};