Package org.ldk.structs
Class RoutingFees
- java.lang.Object
-
- org.ldk.structs.RoutingFees
-
public class RoutingFees extends Object
Fees for routing via a given channel or a node
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RoutingFees
clone()
Creates a copy of the RoutingFeesboolean
eq(RoutingFees b)
Checks if two RoutingFeess contain equal inner contents.protected void
finalize()
int
get_base_msat()
Flat routing fee in satoshisint
get_proportional_millionths()
Liquidity-based routing fee in millionths of a routed amount.static RoutingFees
of(int base_msat_arg, int proportional_millionths_arg)
Constructs a new RoutingFees given each fieldstatic Result_RoutingFeesDecodeErrorZ
read(byte[] ser)
Read a RoutingFees from a byte array, created by RoutingFees_writevoid
set_base_msat(int val)
Flat routing fee in satoshisvoid
set_proportional_millionths(int val)
Liquidity-based routing fee in millionths of a routed amount.byte[]
write()
Serialize the RoutingFees object into a byte array which can be read by RoutingFees_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_base_msat
public int get_base_msat()
Flat routing fee in satoshis
-
set_base_msat
public void set_base_msat(int val)
Flat routing fee in satoshis
-
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.
-
clone
public RoutingFees clone()
Creates a copy of the RoutingFees
-
write
public byte[] write()
Serialize the RoutingFees object into a byte array which can be read by RoutingFees_read
-
read
public static Result_RoutingFeesDecodeErrorZ read(byte[] ser)
Read a RoutingFees from a byte array, created by RoutingFees_write
-
-