Skip to main content
Version: 0.13.0

tx.coinselector

Home > @blaze-cardano/tx > CoinSelector

CoinSelector namespace

Variables

Variable

Description

hvfSelector

This coin selection algorithm follows a Highest Value First (HVF) function, taking into consideration things like fee estimation. Inspiration taken from Lucid Evolution: https://github.com/Anastasia-Labs/lucid-evolution/blob/main/packages/lucid/src/tx-builder/internal/CompleteTxBuilder.ts\#L789

micahsSelector

The main coin selection function executes wideSelection and then deepSelection, combining the two. It greedily selects the smallest set of utxos, and then any extra is done with the depth search.