Function restoreWallet

  • Recovers a wallet associated with the seed phrase.

    Parameters

    • seedPhrase: string

      the magic words that allow everyone in the world to steal your funds

    • OptionalaccountIndex: number

      0 for the first account on the list, 1 for the second, etc.

    • OptionalcoinType: number

      use 118 if the seed phrase was generated with a sei-native wallet, or 60 if the seed phrase was generated with an ethereum-native wallet, like metamask.

    Returns Promise<DirectSecp256k1HdWallet>