Raiden Network
  • What is Raiden?
  • Installation
    • Quick Start
      • Get MetaMask
      • Get an Infura ID
      • Download and run the Raiden Wizard
      • Handle Limitations
    • Starting Raiden Manually
  • Using Raiden on Mainnet
    • Overview
    • Get Whitelisted Tokens
    • Deposit Tokens to the UDC
    • Open a Channel
    • Make a Payment
    • Deposit Tokens
    • View Channel Status
    • Mediation Fees
  • The Raiden Web Interface
    • Overview
    • Navigate the WebUI
    • Join a Token Network
    • Make a Payment
    • Add More Tokens
    • Settle Payments and Close Channels
  • Using Raiden on testnet
    • Quick Start on Görli Testnet
    • Use Custom Token
      • Get Goerli Testnet ETH (GÖETH)
      • Import Custom Token
      • Compile Imported Token Code
      • Deploy Custom Token
  • Raiden API
    • Introduction
    • Resources
      • Address
      • Version
      • Settings
      • Contracts Information
      • Tokens
      • Channels
      • Payments
      • Connections
      • Pending Transfers
      • Shutdown
      • Testing
    • API Tutorial
      • Create a Token Network
      • Open a Channel
      • Deposit Tokens
      • Make a Payment
      • Withdraw Tokens
      • Settle Payments and Close Channels
  • Other
    • Safe Usage
    • Known Issues
    • Glossary
    • v1.0 Documentation
    • Trademark Attributions
Powered by GitBook
On this page
  • Connections Resource Overview
  • Connections Resource Details
  • Details of All Joined Token Networks
  • Leave a Token Network

Was this helpful?

  1. Raiden API
  2. Resources

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

Name
Type
Description

version

string

Version of the API

{
    "0x2a65Aca4D5fC5B5C859090a6c34d164135398226": {
        "sum_deposits": "67",
        "channels": "3"
    },
    "0x0f114A1E9Db192502E7856309cc899952b3db1ED": {
        "sum_deposits": "31",
        "channels": "1"
    }
}
Internal Raiden node error

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

Name
Type
Description

version

string

Version of the API

token_address

string

Address of a token

[
    "0x41BCBC2fD72a731bcc136Cf6F7442e9C19e9f313",
    "0x5A5f458F6c1a034930E45dC9a64B99d7def06D7E",
    "0x8942c06FaA74cEBFf7d55B79F9989AdfC85C6b85"
]
The token address is not a valid EIP55-encoded Ethereum address
Internal Raiden node error
PreviousPaymentsNextPending Transfers

Last updated 4 years ago

Was this helpful?

/api/<version>/connections
/api/<version>/connections/<token_address>