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

x/lucid/src/mod.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
Re-export
import { TxComplete } from "https://deno.land/x/lucid@0.5.2/src/mod.ts";

Constructors

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

Properties

private
lucid: Lucid
private
tasks: (() => Promise<void>)[]
txComplete: Core.Transaction
witnessSetBuilder: Core.TransactionWitnessSetBuilder

Methods

assemble(witnesses: TransactionWitnesses[])

Signs the transaction with the given witnesses

partialSign(): Promise<TransactionWitnesses>

Signs the transaction and returns the witnesses that were just made

partialSignWithPrivateKey(privateKey: PrivateKey): TransactionWitnesses

Signs the transaction and returns the witnesses that were just made

Add an extra signature from a private key

signWithPrivateKey(privateKey: PrivateKey)

Add an extra signature from a private key

UNSTABLE

toString(): Transaction

Returns the transaction in hex encoded CBOR