Withdraw Tokens
By making a withdraw you can claim tokens back out of a channel on your account without having to close the channel itself.
Last updated
Was this helpful?
By making a withdraw you can claim tokens back out of a channel on your account without having to close the channel itself.
Last updated
Was this helpful?
Similar to depositing, a PATCH call to the channel endpoint is used for withdrawing with the difference that a value for total_withdraw
is provided in the request body.
So, whenever you'd like to make a withdraw your request needs to include:
The token address as a path parameter.
The address of the node you have the channel with as a path parameter.
The amount of tokens you want to withdraw as a body parameter.
In the next section we will take a look at how to withdraw all tokens for a channel and how to leave a token network completely.