Open a Channel
Opening a channel and depositing tokens in it allows you to transfer these tokens to your channel partner -- and indirectly to other nodes connected to you partner.
Last updated
Was this helpful?
Opening a channel and depositing tokens in it allows you to transfer these tokens to your channel partner -- and indirectly to other nodes connected to you partner.
Last updated
Was this helpful?
To open a channel, a PUT request is made to the endpoint that includes a JSON object containing:
The address of the node you'd like to open the channel with. If you don't know to which partner you should connect, have a look at "".
The token address. We use W-ETH token in this example.
The amount of tokens you want to deposit in the channel (Remember that it is always possible to later). 1 W-ETH is equivialent to 10^18 WEI.
The settle timeout period which corresponds to the number of blocks that have to be mined before a closed channel can be settled.
This will create a new channel and a successful request will return you the following response object:
As you can tell by the response object a channel identifier has been generated. This means that there now is a channel with that identifier inside the token network.
We're now ready to start sending W-ETH tokens!