Class TxInitRbf


  • public class TxInitRbf
    extends Object
    A tx_init_rbf message which initiates a replacement of the transaction after it's been completed.
    • Method Detail

      • get_channel_id

        public byte[] get_channel_id()
        The channel ID
      • set_channel_id

        public void set_channel_id​(byte[] val)
        The channel ID
      • get_locktime

        public int get_locktime()
        The locktime of the transaction
      • set_locktime

        public void set_locktime​(int val)
        The locktime of the transaction
      • get_feerate_sat_per_1000_weight

        public int get_feerate_sat_per_1000_weight()
        The feerate of the transaction
      • set_feerate_sat_per_1000_weight

        public void set_feerate_sat_per_1000_weight​(int val)
        The feerate of the transaction
      • get_funding_output_contribution

        public Option_i64Z get_funding_output_contribution()
        The number of satoshis the sender will contribute to or, if negative, remove from (e.g. splice-out) the funding output of the transaction
      • set_funding_output_contribution

        public void set_funding_output_contribution​(Option_i64Z val)
        The number of satoshis the sender will contribute to or, if negative, remove from (e.g. splice-out) the funding output of the transaction
      • of

        public static TxInitRbf of​(byte[] channel_id_arg,
                                   int locktime_arg,
                                   int feerate_sat_per_1000_weight_arg,
                                   Option_i64Z funding_output_contribution_arg)
        Constructs a new TxInitRbf given each field
      • clone

        public TxInitRbf clone()
        Creates a copy of the TxInitRbf
        Overrides:
        clone in class Object
      • eq

        public boolean eq​(TxInitRbf b)
        Checks if two TxInitRbfs contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
      • write

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