foundry_wallets::utils

Function create_mnemonic_signer

Source
pub fn create_mnemonic_signer(
    mnemonic: &str,
    passphrase: Option<&str>,
    hd_path: Option<&str>,
    index: u32,
) -> Result<WalletSigner>
Expand description

Creates WalletSigner instance from given mnemonic parameters.

Mnemonic can be either a file path or a mnemonic phrase.