litecore-archive / litecore-lib

A pure and powerful JavaScript Litecoin library
https://litecore.io/
Other
72 stars 85 forks source link

Transaction example #27

Closed Kycermann closed 3 years ago

Kycermann commented 3 years ago

Transactions can have multiple utxos? How would we add those in?

const transaction = new litecore.Transaction();
    .from(utxo)
    .to(targetAddress, target)
    .to(changeAddress, change)
    .sign(privateKey);

Could someone please provide an example of a transaction with multiple inputs?