Struct clightningrpc::lightningrpc::PayOptions[][src]

pub struct PayOptions {
    pub msatoshi: Option<i64>,
    pub description: Option<String>,
    pub riskfactor: Option<f64>,
    pub maxfeepercent: Option<f64>,
    pub exemptfee: Option<i64>,
    pub retry_for: Option<i64>,
    pub maxdelay: Option<i64>,
}

Optional arguments for pay() request

Fields

{msatoshi} (if and only if {bolt11} does not have amount)

{description} (required if {bolt11} uses description hash)

{riskfactor} (default 1.0)

{maxfeepercent} (default 0.5) the maximum acceptable fee as a percentage (e.g. 0.5 => 0.5%)

{exemptfee} (default 5000 msat) disables the maxfeepercent check for fees below the threshold

{retry_for} (default 60) the integer number of seconds before we stop retrying

{maxdelay} (default 500) the maximum number of blocks we allow the funds to possibly get locked

Trait Implementations

impl Debug for PayOptions
[src]

Formats the value using the given formatter. Read more

impl Clone for PayOptions
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for PayOptions
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for PayOptions

impl Sync for PayOptions