// 自动生成钱包
const mnemonic = ethers.Wallet.createRandom();
// 私钥生成钱包信息
const mnemonic = new ethers.Wallet('私钥')
// 生成助记词
const bip39 = require('bip39');
let words = bip39.generateMnemonic(256);
const mnemonic = ethers.Wallet.fromMnemonic(words);
// 获取到余额
const dds = await web3.eth.getBalance('0x00000000219ab540356cbb839cbe05303d7705fa')
// 自定义助记词生成私钥
const crypto = require('crypto');
const hash = crypto.createHash('sha256');
hash.update('助记词');
const adds = hash.digest('hex')