Deposit Tokens
You deposit in a channel by making a PATCH request to the channels
endpoint that includes:
The address of the W-ETH token as a path parameter.
The address of the partner node as a path parameter.
The amount of tokens you want to deposit in the channel as a body parameter.
curl -i -X PATCH \
http://localhost:5001/api/v1/channels/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/<partner_address> \
-H 'Content-Type: application/json' \
--data-raw '{"total_deposit":"4000"}'
Last updated
Was this helpful?