Skip to Content
DocumentationWalletWallet CreationFrom Seed

Make Wallet From Seed

Similar to instantiating a wallet object from seed without binding it with the Lucid object by calling the walletFromSeed function, you can instantiate a wallet from seed by calling the makeWalletFromSeed() function to get a wallet object with some functionalities, such as signing and submitting transactions (not just the { address, rewardAddress, paymentKey, stakeKey } fields).

Steps to Create a Wallet Object

Specify the Provider

It can be Blockfrost, Koios, Maestro, etc. Even a custom provider, as long as it implements the Provider interface.

For example, here’s how to instantiate a Blockfrost provider:

import { Blockfrost, Provider } from "@evolution-sdk/lucid"; const blockfrostURL: string = process.env.BF_URL!; const blockfrostPID: string = process.env.BF_PID!; const blockfrost: Provider = new Blockfrost( blockfrostURL, // The endpoint based on the Cardano network, please refer to Blockfrost documentation blockfrostPID, // Your secret Blockfrost Project ID );
💡
Other providers follow a similar pattern.

Create the Wallet Object

import { makeWalletFromSeed, Network } from "@evolution-sdk/lucid"; const provider = blockfrost;@evolution-sdk const network: Network = "Mainnet"; // "Mainnet" | "Preview" | "Preprod" | "Custom" const seedPhrase = "your seed phrase here ..."; const wallet = makeWalletFromSeed(provider, network, seedPhrase); // CIP-30
Last updated on