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

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

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.

change_address is required here in order to determine the min ada requirement precisely

Parameters

inputs
change_address
weights