Large First Coin Selector

cardano_error_t cardano_large_first_coin_selector_new(cardano_coin_selector_t **coin_selector)

Creates a new coin selector using the “large first” strategy.

The cardano_large_first_coin_selector_new function initializes a new coin selector object that implements the “large first” strategy. In this strategy, UTXOs (Unspent Transaction Outputs) with larger amounts of assets are selected first to satisfy the target amount. This strategy can be more efficient for reducing the number of UTXOs involved in transactions, but may result in lower UTXO fragmentation.

Note

The caller is responsible for managing the memory of the created coin_selector object, and must ensure it is properly freed when no longer needed using the appropriate deallocation function.

Parameters:
cardano_coin_selector_t **coin_selector

[out] A pointer to the coin selector object that will be created and returned by this function.

Returns:

CARDANO_SUCCESS if the coin selector was successfully created, or an appropriate error code indicating failure.