Package org.ldk.structs
Class Access
- java.lang.Object
-
- org.ldk.structs.Access
-
public class Access extends Object
The `Access` trait defines behavior for accessing chain data and state, such as blocks and UTXOs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Access.AccessInterface
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
finalize()
Result_TxOutAccessErrorZ
get_utxo(byte[] genesis_hash, long short_channel_id)
Returns the transaction output of a funding transaction encoded by [`short_channel_id`].static Access
new_impl(Access.AccessInterface arg)
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
new_impl
public static Access new_impl(Access.AccessInterface arg)
-
get_utxo
public Result_TxOutAccessErrorZ 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/lightningnetwork/lightning-rfc/blob/master/07-routing-gossip.md#definition-of-short_channel_id
-
-