tx.txbuilder.usecoinselector
Home > @blaze-cardano/tx > TxBuilder > useCoinSelector
TxBuilder.useCoinSelector() method
Sets a custom coin selector function for the transaction builder. This function will be used to select inputs during the transaction building process.
Signature:
useCoinSelector(selector: (inputs: TransactionUnspentOutput[], dearth: Value) => SelectionResult): TxBuilder;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| selector | (inputs: TransactionUnspentOutput[], dearth: Value) => SelectionResult | The coin selector function to use. | 
Returns:
{TxBuilder} The same transaction builder