You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// defaultNetwork: "zkTestnet", // optional (if not set, use '--network zkTestnet')
80
+
```
81
+
82
+
#### Updates introduced in plugin version 1.7.0
83
+
Etherscan verification is supported. To enable it, configure the etherscan property in the Hardhat configuration:
84
+
85
+
```typescript
86
+
etherscan: {
87
+
apiKey: 'APIKEY'
88
+
}
89
+
```
90
+
91
+
If the etherscan property is configured and enabled, verification will run on Etherscan.
92
+
Otherwise, the plugin will default to verifying on the ZKsync block explorer.
93
+
For more information on how to create api keys, please [visit the documentation](https://docs.zksync.network/getting-started/viewing-api-usage-statistics).
94
+
For more information on how to configure etherscan for multiple api keys, please [visit the documentation](https://hardhat.org/hardhat-runner/plugins/nomicfoundation-hardhat-verify#multiple-api-keys-and-alternative-block-explorers)
95
+
The plugin provides pre-configured chain settings `zksyncsepolia` and `zksyncmainnet`, so users don't need to create custom chains.
96
+
97
+
```typescript
98
+
etherscan: {
99
+
apiKey: {
100
+
......
101
+
zksyncsepolia: 'APIKEY',
102
+
zksyncmainnet: 'APIKEY'
103
+
}
104
+
}
85
105
```
86
106
87
107
Additional network properties:
@@ -97,24 +117,19 @@ or the default `ethers` provider for the network if the configuration is not pro
97
117
-`zksync` is a flag that indicates a ZKsync Era network configuration. This field is set to `true` for all ZKsync Era networks.
98
118
If you want to run a `hardhat-verify` verification, this field needs to be set to `false`.
99
119
If set to `true`, the verification process will try to run the verification process on the ZKsync Era network.
100
-
-`verifyURL` is a field that points to the verification endpoint for the specific ZKsync network.
101
-
This parameter is optional, and its default value is the testnet verification url.
0 commit comments