ILP Address of the remote party to this connection.
Code of the asset used by the remote party to this connection
Scale of the asset used by the remote party to this connection
Calculates the last exchange rate based on last packet successfully sent.
Connections minimum exchange rate with slippage included, if not set '0' is returned.
ILP Address of the plugin passed to this connection.
Code of the asset used by the plugin passed to this connection
Scale of the asset used by the plugin passed to this connection
Total delivered so far, denominated in the connection plugin's units.
Total received so far by the local side, denominated in the connection plugin's units.
Total sent so far, denominated in the connection plugin's units.
Start sending or receiving.
Returns a new bidirectional DataAndMoneyStream
Immediately close the connection and all streams.
This function must never return a rejection, since startSendLoop
is run
as a floating promise and returns destroy()
on errors, so the rejection
would be unhandled.
This function must never return a rejection, since startSendLoop
is run
as a floating promise and returns destroy()
on errors, so the rejection
would be unhandled.
Close the connection when all streams have finished sending their money and data
(Internal) Handle incoming ILP Prepare packets.
This will automatically fulfill all valid and expected Prepare packets, or
defer to custom application logic using the shouldFulfill
callback, if provided.
It passes the incoming money and/or data to the relevant streams.
Generated using TypeDoc
Application identifier for a certain connection