15.3.0 • Published 5 months ago

@exodus/wallet v15.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@exodus/wallet

Exodus SDK feature that manages bip39 mnemonic phrase(s) for a single-seed or multi-seed wallet.

!IMPORTANT This feature uses the injected seedStorage implementation to store mnemonic phrases. It passes the passphrase provided to wallet.create|import|changePassphrase down to seedStorage.set, e.g. seedStorage.set(value, { passphrase }). Depending on the security of the platform where you're running the wallet, and the media that seedStorage uses on that platform, you may want to use a seedStorage implementation that supports encryption, e.g. storage-seco.

Install

yarn add @exodus/wallet

Usage

This feature is designed to be used together with @exodus/headless. See using the sdk.

Play with it

  1. Open the playground https://exodus-hydra.pages.dev/features/wallet
  2. Try out some methods via the UI. These correspond 1:1 with the exodus.wallet API.
  3. Run the following in the Dev Tools Console:
await exodus.wallet.isLocked() // false. The playground auto-unlocks for ease of use
await exodus.wallet.lock()
await exodus.wallet.isLocked() // true
await exodus.wallet.unlock({ passphrase: 'abracadabra' }) // passphrase used in playground

API Side

See using the sdk for more details on how features plug into the SDK and the API interface in the type declaration.

Usage example:

// kick of various processes that might not require a mnemonic to be present
await exodus.application.start()
await exodus.application.load()
// create a new wallet
await exodus.wallet.create({ passphrase })
// alternatively, import a 12 word mnemonic phrase
// await exodus.wallet.import({ mnemonic, passphrase })

await exodus.wallet.exists() // now true

// by default a wallet is locked until explicitly unlocked
await exodus.wallet.isLocked() // true
await exodus.wallet.unlock({ passphrase })
await exodus.wallet.isLocked() // false

await exodus.wallet.lock()
// change the passphrase. Reminder: encryption is the responsibility of `seedStorage`!
await exodus.wallet.changePassphrase({ currentPassphrase, newPassphrase })

UI Side

This feature doesn't export any redux state or selectors.

15.3.0

5 months ago

15.2.0

6 months ago

15.1.2

9 months ago

15.1.1

10 months ago

15.1.0

1 year ago

15.0.0

1 year ago

14.7.0

1 year ago

14.6.0

1 year ago

14.5.5

1 year ago

14.5.4

1 year ago

14.5.3

1 year ago

14.5.2

1 year ago

14.5.1

1 year ago

14.5.0

1 year ago

14.4.1

1 year ago

14.4.0

1 year ago

14.3.0

1 year ago

14.2.1

1 year ago

14.2.0

1 year ago

14.1.1

1 year ago

14.1.0

2 years ago

11.1.0

2 years ago

14.0.0

2 years ago

13.0.0

2 years ago

13.0.0-rc.2

2 years ago

13.0.0-rc.1

2 years ago

13.0.0-rc.0

2 years ago

12.0.0

2 years ago

12.0.0-rc.0

2 years ago

11.0.0

2 years ago

10.5.0

2 years ago

10.4.0

2 years ago

10.3.0

2 years ago

10.2.1

2 years ago

10.2.0

2 years ago

10.1.0

2 years ago

10.0.2

2 years ago

10.0.1

2 years ago

10.0.0

2 years ago

9.4.0

2 years ago

9.3.1

2 years ago

9.3.0

2 years ago

9.2.0

2 years ago

9.1.0

2 years ago

9.0.0

2 years ago

8.1.1

2 years ago

8.1.0

2 years ago

8.0.1

2 years ago

8.0.0

2 years ago

7.0.1

2 years ago

7.0.0

2 years ago

6.3.0

2 years ago

6.2.0

2 years ago

6.1.0

2 years ago

6.0.1

2 years ago

6.0.0

3 years ago

5.1.0

3 years ago

5.0.1

3 years ago

5.0.0

3 years ago

4.1.0

3 years ago

4.0.0

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago