Package org.ldk.structs
Interface WalletSource.WalletSourceInterface
-
- Enclosing class:
- WalletSource
public static interface WalletSource.WalletSourceInterface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Result_CVec_u8ZNoneZget_change_script()Returns a script to use for change above dust resulting from a successful coin selection attempt.Result_CVec_UtxoZNoneZlist_confirmed_utxos()Returns all UTXOs, with at least 1 confirmation each, that are available to spend.Result_TransactionNoneZsign_tx(byte[] tx)Signs and provides the full [`TxIn::script_sig`] and [`TxIn::witness`] for all inputs within the transaction known to the wallet (i.e., any provided via [`WalletSource::list_confirmed_utxos`]).
-
-
-
Method Detail
-
list_confirmed_utxos
Result_CVec_UtxoZNoneZ list_confirmed_utxos()
Returns all UTXOs, with at least 1 confirmation each, that are available to spend.
-
get_change_script
Result_CVec_u8ZNoneZ get_change_script()
Returns a script to use for change above dust resulting from a successful coin selection attempt.
-
sign_tx
Result_TransactionNoneZ sign_tx(byte[] tx)
Signs and provides the full [`TxIn::script_sig`] and [`TxIn::witness`] for all inputs within the transaction known to the wallet (i.e., any provided via [`WalletSource::list_confirmed_utxos`]).
-
-