Class PhantomRouteHints


  • public class PhantomRouteHints
    extends Object
    Route hints used in constructing invoices for [phantom node payents]. [phantom node payments]: crate::chain::keysinterface::PhantomKeysManager
    • Method Detail

      • get_channels

        public ChannelDetails[] get_channels()
        The list of channels to be included in the invoice route hints.
      • set_channels

        public void set_channels​(ChannelDetails[] val)
        The list of channels to be included in the invoice route hints.
      • get_phantom_scid

        public long get_phantom_scid()
        A fake scid used for representing the phantom node's fake channel in generating the invoice route hints.
      • set_phantom_scid

        public void set_phantom_scid​(long val)
        A fake scid used for representing the phantom node's fake channel in generating the invoice route hints.
      • get_real_node_pubkey

        public byte[] get_real_node_pubkey()
        The pubkey of the real backing node that would ultimately receive the payment.
      • set_real_node_pubkey

        public void set_real_node_pubkey​(byte[] val)
        The pubkey of the real backing node that would ultimately receive the payment.
      • of

        public static PhantomRouteHints of​(ChannelDetails[] channels_arg,
                                           long phantom_scid_arg,
                                           byte[] real_node_pubkey_arg)
        Constructs a new PhantomRouteHints given each field
      • write

        public byte[] write()
        Serialize the PhantomRouteHints object into a byte array which can be read by PhantomRouteHints_read