A base class to represent an external swap client such as lnd or Raiden.
The number of blocks of lock time to expect on the final hop of an incoming swap payment.
Time in milliseconds between updating the maximum outbound capacity.
The maximum amount of time we will wait for the connection to be verified during initialization.
Time in milliseconds between attempts to recheck connectivity to the client.
the amount of the invoice denominated in the smallest units supported by its currency
Returns the total balance available across all channels and updates the maximum outbound capacity.
the currency whose balance to query for, otherwise all/any currencies supported by this client are included in the balance.
Ends all connections, subscriptions, and timers for for this client.
Gets the block height of the chain backing this swap client.
Gets routes for the given currency, amount, and swap identifier.
the capacity the route must support denominated in the smallest units supported by its currency
the identifier for the receiving node
Checks to see whether we've made a payment using a given rHash.
the preimage for the payment, or
undefined if no payment was made
Opens a payment channel given peerIdentifier, amount optional currency and optional lndUris.
Sends payment according to the terms of a swap deal.
the preimage for the swap
Sends the smallest amount supported by the client to the given destination. Throws an error if the payment fails.
the preimage for the payment hash
Verifies that the swap client can be reached and is in an operational state and sets the ClientStatus accordingly.
Generated using TypeDoc