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

x/lucid/src/mod.ts>C.TransactionBuilder#balance

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
method C.TransactionBuilder.prototype.balance
import { C } from "https://deno.land/x/lucid@0.10.6/src/mod.ts";
const { TransactionBuilder } = C;

Warning: this function will mutate the /fee/ field Make sure to call this function last after setting all other tx-body properties Editing inputs, outputs, mint, etc. after change been calculated might cause a mismatch in calculated fee versus the required fee

Parameters

change_address
datum