Connections
The connections endpoints allow you to automatically connect to a token network as well as leave a token network by closing and settling all open channels.
Connections Resource Overview
HTTP Method
Resource
Description
GET
Details of all joined token networks
DELETE
Leave a token network
Currently all API calls are blocking. In case of long running API calls like joining or leaving a token network, if any concurrent API calls are made they will be queued.
Connections Resource Details
Details of All Joined Token Networks
GET
http://localhost:5001/api/v1/connections
Each key in the JSON response object is a token address for which you have open channels.
Path Parameters
version
string
Version of the API
Leave a Token Network
DELETE
http://localhost:5001/api/v1/connections/0x2a65...8226
The request might take some time and will only return once all blockchain calls for closing and settling a channel have been completed. The response is a list with addresses of all closed channels.
Path Parameters
version
string
Version of the API
token_address
string
Address of a token
Last updated