PrivateKeySigner.fromMnemonic constructor
PrivateKeySigner.fromMnemonic(})
Creates a signer from a mnemonic phrase.
Implementation
factory PrivateKeySigner.fromMnemonic(
List<String> words,
int chainId, {
String path = "m/44'/60'/0'/0/0",
}) {
final wallet = HDWallet.fromMnemonic(words).derive(path);
return PrivateKeySigner(wallet.getPrivateKey(), chainId);
}