Package org.ldk.structs
Class UtxoLookup
- java.lang.Object
-
- org.ldk.structs.UtxoLookup
-
public class UtxoLookup extends Object
The `UtxoLookup` trait defines behavior for accessing on-chain UTXOs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
UtxoLookup.UtxoLookupInterface
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
Destroys the object, freeing associated resources.protected void
finalize()
UtxoResult
get_utxo(byte[] genesis_hash, long short_channel_id)
Returns the transaction output of a funding transaction encoded by [`short_channel_id`].static UtxoLookup
new_impl(UtxoLookup.UtxoLookupInterface arg)
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
destroy
public void destroy()
Destroys the object, freeing associated resources. After this call, any access to this object may result in a SEGFAULT or worse. You should generally NEVER call this method. You should let the garbage collector do this for you when it finalizes objects. However, it may be useful for types which represent locks and should be closed immediately to avoid holding locks until the GC runs.
-
new_impl
public static UtxoLookup new_impl(UtxoLookup.UtxoLookupInterface arg)
-
get_utxo
public UtxoResult get_utxo(byte[] genesis_hash, long short_channel_id)
Returns the transaction output of a funding transaction encoded by [`short_channel_id`]. Returns an error if `genesis_hash` is for a different chain or if such a transaction output is unknown. [`short_channel_id`]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#definition-of-short_channel_id
-
-