Wallet Management
This section covers everything you need to know about creating, selecting, and querying wallets using Evolution-SDK.
Create
You are provided with different methods to create a wallet. Please refer to wallet creation.
Seed Phrase
Generate a new seed phrase (mnemonic).
import { generateSeedPhrase } from "@evolution-sdk/lucid";
const seedPhrase = generateSeedPhrase(); // BIP-39
console.log(seedPhrase);
Select
Use any suitable method to select a wallet and interact with the blockchain through it.
Seed Phrase
Select a wallet using a seed phrase (mnemonic).
const seedPhrase = "your seed phrase here ...";
lucid.selectWallet.fromSeed(seedPhrase);
Query
You can fetch data associated with the selected wallet using the following methods.
Address
Get the wallet address. Typically this is the change address.
const address: string = await lucid.wallet().address(); // Bech32 address
Last updated on