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

x/lucid/src/lucid/tx_complete.ts>TxComplete

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
class TxComplete
import { TxComplete } from "https://deno.land/x/lucid@0.10.7/src/lucid/tx_complete.ts";

Constructors

new
TxComplete(lucid: Lucid, tx: C.Transaction)

Properties

private
lucid: Lucid
private
tasks: (() => Promise<void>)[]
exUnits: { cpu: number; mem: number; } | null
fee: number
txComplete: C.Transaction
witnessSetBuilder: C.TransactionWitnessSetBuilder

Methods

Sign the transaction with the given witnesses.

complete(): Promise<TxSigned>

Sign the transaction and return the witnesses that were just made.

Sign the transaction and return the witnesses that were just made. Add an extra signature from a private key.

Add an extra signature from a private key.

Return the transaction hash.

Return the transaction in Hex encoded Cbor.