Transaction Creation

With a Wollet you can generate an address,

Transaction Creation

With a Wollet you can generate an address,
which can be used to receive some funds.
You can fetch the transactions receiving the funds using a "client",
and apply them to the wallet.
Now that the Wollet has a balance, it is able to craft transactions sending funds to desired destination.

The first step is constructing a TxBuilder (or WolletTxBuilder), using TxBuilder::new() or Wollet::tx_builder().
You can now specify how to build the transaction using the methods exposed by the TxBuilder.

Add a Recipient

If you want to send some funds you need this information:

  • Address: destination (confidential) address provided by the receiver
  • Amount: number of units of the asset (satoshi) to be sent.
  • Asset: identifier of the asset that should be sent

Then you can call TxBuilder::add_recipient() to create an output which sends the amount of the asset, to the specified address.

You can add multiple recipients to the same transaction.

Advanced Options

LWK allows to construct complex transactions, here there are few examples

Construct the Transaction (PSET)

Once you set all the desired options to the TxBuilder.
You can construct the transaction calling TxBuilder::finish().
This will return a Partially Signed Elements Transaction (PSET),
a transaction encoded in a format that facilitates sharing the transaction with signers.

let txs = wollet.transactions()?;
let balance = wollet.balance()?;
txs = wollet.transactions()
balance = wollet.balance()
const txs = wollet.transactions();
const balance = wollet.balance();
	txs, err := wollet.Transactions()
	if err != nil {
		log.Fatal(err)
	}
	balance, err := wollet.Balance()
	if err != nil {
		log.Fatal(err)
	}

Next: Sign Transaction


The Liquid Network is a production Bitcoin sidechain built with Elements, supporting confidential transactions, asset issuance and programmable smart contracts.

© 2026 Liquid Network
All rights reserved.

Feedback and Requests

We'd be happy to hear your suggestions on how to improve this site.

Simplicity Forum

Discuss SimplicityHL, tooling and applications on Liquid at community.simplicity-lang.org.

Liquid Dev Community

Community Telegram group where most of the Liquid developers hang out. Go to t.me/liquid_devel to join.