Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/lucid/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.
Very Popular
Go to Latest
class TxComplete
Re-export
import { TxComplete } from "https://deno.land/x/lucid@0.10.1/mod.ts";

Constructors

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

Properties

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

Methods

assemble(witnesses: TransactionWitnesses[]): TxComplete

Sign the transaction with the given witnesses.

complete(): Promise<TxSigned>
partialSign(): Promise<TransactionWitnesses>

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

partialSignWithPrivateKey(privateKey: PrivateKey): TransactionWitnesses

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

sign(): TxComplete
signWithPrivateKey(privateKey: PrivateKey): TxComplete

Add an extra signature from a private key.

toHash(): TxHash

Return the transaction hash.

toString(): Transaction

Return the transaction in Hex encoded Cbor.