Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lucid/src/mod.ts>WalletApi

Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.
Go to Latest
type alias WalletApi
Re-export
import { type WalletApi } from "https://deno.land/x/lucid@0.7.7/src/mod.ts";
definition: { experimental: { getCollateral(): Promise<string[]>; on(eventName: string, callback: (...args: unknown[]) => void): void; off(eventName: string, callback: (...args: unknown[]) => void): void; }; getNetworkId(): Promise<number>; getUtxos(): Promise<string[] | undefined>; getBalance(): Promise<string>; getUsedAddresses(): Promise<string[]>; getUnusedAddresses(): Promise<string[]>; getChangeAddress(): Promise<string>; getRewardAddresses(): Promise<string[]>; signTx(tx: string, partialSign: boolean): Promise<string>; signData(address: string, payload: string): Promise<{ signature: string; key: string; }>; submitTx(tx: string): Promise<string>; getCollateral(): Promise<string[]>; }