import { ethers } from 'ethers'; const randomMnemonic = ethers.Wallet.createRandom().mnemonic; const wallet = ethers.Wallet.fromMnemonic(randomMnemonic.phrase);