Closed s0b0lev closed 5 years ago
Documentation Link
GET /api/(version)/connections
Example request
$ curl -i http://localhost:5001/api/v1/connections
Example Response
{ "0x2a65Aca4D5fC5B5C859090a6c34d164135398226": { "funds": 100, "sum_deposits": 67, "channels": 3 }, "0x0f114A1E9Db192502E7856309cc899952b3db1ED": { "funds": 49, "sum_deposits": 31, "channels": 1 } }
Response JSON Array of Objects:
Status Codes
PUT /api/(version)/connections/(token_address)
Example Request
$ curl -i -X PUT http://localhost:5001/api/v1/connections/0x2a65Aca4D5fC5B5C859090a6c34d164135398226 -H 'Content-Type: application/json' --data-raw '{"funds": 1337}'
Payload
DELETE /api/(version)/connections/(token_address)
$ curl -i -X DELETE http://localhost:5001/api/v1/connections/0x2a65Aca4D5fC5B5C859090a6c34d164135398226 -H 'Content-Type: application/json'
[ "0x41BCBC2fD72a731bcc136Cf6F7442e9C19e9f313", "0x5A5f458F6c1a034930E45dC9a64B99d7def06D7E", "0x8942c06FaA74cEBFf7d55B79F9989AdfC85C6b85" ]
Status codes
Connection management interfaces were implemented.
Query details of all joined token networks
Documentation Link
GET /api/(version)/connections
Example request
Example Response
Response JSON Array of Objects:
Status Codes
Automatically join a token network
Documentation Link
PUT /api/(version)/connections/(token_address)
Example Request
Payload
Status Codes
Leave a token network
Documentation Link
DELETE /api/(version)/connections/(token_address)
Example Request
Example Response
Status codes