Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/lucid/src/core/mod.ts>Core.TransactionBuilder#add_inputs_from

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

This automatically selects and adds inputs from {inputs} consisting of just enough to cover the outputs that have already been added. This should be called after adding all certs/outputs/etc and will be an error otherwise. Adding a change output must be called after via TransactionBuilder::balance() inputs to cover the minimum fees. This does not, however, set the txbuilder's fee.