A class representing a client to interact with connext.
Creates a connext client.
A map of expected invoices by hash. This is equivalent to invoices of lnd with the difference being that we're managing the state of invoice on xud level.
A map of currencies to promises representing balance requests.
The set of hashes for outgoing transfers.
A map of currencies to promises representing collateral requests.
A map of currency symbols to token addresses.
Time in milliseconds between attempts to recheck connectivity to the client.
Checks whether there is sufficient inbound capacity to receive the specified amount and throws an error if there isn't, otherwise does nothing.
Ends all connections, subscriptions, and timers for for this client.
Deposits more of a token to an existing client.
Connext client specific cleanup.
Create a HashLock Transfer on the Connext network.
Gets the configuration of Connext client.
Gets the connext version.
Initiates wallet for the Connext client
true if the client is enabled and configured properly.
Checks whether we have a pending collateral request for the currency and, if one doesn't exist, starts a new request for the specified amount. Then calls channelBalance to refresh the inbound capacity for the currency.
Sends a request to the Connext REST API.
the URL endpoint
an HTTP request method
the request payload
Associate connext with currencies that have a token address
Resolves a HashLock Transfer on the Connext network.
Returns the balances available in wallet for a specified currency.
The minimum incremental quantity that we may use for collateral requests.
Generated using TypeDoc