您正在查看: 2022年5月

hardhat create address

web3

let singer = await web3.eth.accounts.create();

ethers

const pKey = new ethers.Wallet.createRandom();
const signer = new ethers.Wallet(pKey, ethers.provider);