Skip to main content

Create & Choose Wallets

Create a wallet

You are provided with multiple options to create and import a wallet:

Generate a new private key:

import { generatePrivateKey } from "@lucid-evolution/lucid";

const privateKey = generatePrivateKey(); // Bech32 encoded private key
// console.log(privateKey);

Choosing Wallet

Use any suitable method to select a wallet and interact with the blockchain through it:

Select a wallet using a private key:

lucid.selectWallet.fromPrivateKey(privateKey);