Polkadot Apps
    Preparing search index...

    Function seedToAccount

    • Derive a DerivedAccount from a BIP39 mnemonic phrase.

      Uses the specified key type for derivation with a hard derivation path (default "//0").

      Parameters

      • mnemonic: string

        BIP39 mnemonic phrase

      • derivationPath: string = "//0"

        Hard derivation path, defaults to "//0"

      • ss58Prefix: number = 42

        SS58 network prefix, defaults to 42 (generic)

      • keyType: "sr25519" | "ed25519" = "sr25519"

        Key type for derivation, either "sr25519" or "ed25519", defaults to "sr25519"

      Returns DerivedAccount