要连接到以太坊测试网,配置hardhat.config.js
如下:
networks: {
ropsten: {
url: `https://eth-ropsten.alchemyapi.io/v2/${ALCHEMY_API_KEY}`,
accounts: [`${ROPSTEN_PRIVATE_KEY}`]
}
}
(取自这里:https ://hardhat.org/tutorial/deploying-to-a-live-network.html )
如何为 RSK 测试网添加网络配置?
(请注意,我使用的是助记词而不是原始私钥)