import { Lucid } from "https://deno.land/x/lucid@0.7.0/mod.ts";
Properties
network: Network
provider: Provider
txBuilderConfig: Core.TransactionBuilderConfig
utils: Utils
wallet: Wallet
Methods
currentSlot(): Slot
delegationAt(rewardAddress: RewardAddress): Promise<Delegation>
fromTx(tx: Transaction): TxComplete
newMessage(address: Address | RewardAddress, payload: Payload): Message
Signs a message. Expects the payload to be Hex encoded.
selectWallet(api: WalletApi): Lucid
selectWalletFrom(unnamed 0: ExternalWallet): Lucid
Emulates a wallet by constructing it with the utxos and an address. If utxos are not set, utxos are fetched from the provided address.
selectWalletFromPrivateKey(privateKey: PrivateKey): Lucid
Cardano Private key in bech32; not the BIP32 private key or any key that is not fully derived. Only an Enteprise address (without stake credential) is derived.
selectWalletFromSeed(seed: string, options?: { addressType?: "Base" | "Enterprise"; accountIndex?: number; }): Lucid
Select wallet from a seed phrase (e.g. 15 or 24 words). You have the option to choose between a Base address (with stake credential) and Enterprise address (without stake credential). You can also decide which account index to derive. By default account 0 is derived.
utxosAtWithUnit(address: Address, unit: Unit): Promise<UTxO[]>
utxosByOutRef(outRefs: Array<OutRef>): Promise<UTxO[]>
verifyMessage(): boolean
Verify a message. Expects the payload to be Hex encoded.