Class UtxoLookup


  • public class UtxoLookup
    extends Object
    The `UtxoLookup` trait defines behavior for accessing on-chain UTXOs.
    • Method Detail

      • 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.
      • 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