Class RoutingFees


  • public class RoutingFees
    extends Object
    Fees for routing via a given channel or a node
    • Method Detail

      • get_base_msat

        public int get_base_msat()
        Flat routing fee in millisatoshis.
      • set_base_msat

        public void set_base_msat​(int val)
        Flat routing fee in millisatoshis.
      • get_proportional_millionths

        public int get_proportional_millionths()
        Liquidity-based routing fee in millionths of a routed amount. In other words, 10000 is 1%.
      • set_proportional_millionths

        public void set_proportional_millionths​(int val)
        Liquidity-based routing fee in millionths of a routed amount. In other words, 10000 is 1%.
      • of

        public static RoutingFees of​(int base_msat_arg,
                                     int proportional_millionths_arg)
        Constructs a new RoutingFees given each field
      • eq

        public boolean eq​(RoutingFees b)
        Checks if two RoutingFeess 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.
      • hash

        public long hash()
        Generates a non-cryptographic 64-bit hash of the RoutingFees.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • write

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