-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
35 lines (31 loc) · 791 Bytes
/
Copy pathhardhat.config.ts
File metadata and controls
35 lines (31 loc) · 791 Bytes
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
33
34
35
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import { env } from "process";
import * as dotenv from "dotenv";
dotenv.config();
const PRIVATE_KEY = env.PRIVATE_KEY as string;
const config: HardhatUserConfig = {
solidity: "0.8.20",
networks: {
swisstronik: {
url: "https://json-rpc.testnet.swisstronik.com/",
accounts: [PRIVATE_KEY],
},
},
etherscan: {
apiKey: {
swisstronik: "ANY_STRING_WILL_DO"
},
customChains: [
{
network: "swisstronik",
chainId: 1291,
urls: {
apiURL: "https://explorer-evm.testnet.swisstronik.com/api",
browserURL: "https://explorer-evm.testnet.swisstronik.com",
},
},
],
},
};
export default config;