Create a WalletAPI from a Lucid wallet instance that can work both in the backend (Node.js/Deno) and in the browser

  import { mkLucidWallet } from "@marlowe.io/wallet/lucid";
import { Lucid, Blockfrost } from "lucid-cardano";

const lucid = await Lucid.new(
new Blockfrost(config.blockfrostUrl, config.blockfrostProjectId),
config.network
);
lucid.selectWalletFromSeed(config.seedPhrase);

const wallet = mkLucidWallet(lucid);

Index

Functions