Make a Payment
When your node is connected to a token network, has channels open with one or more peers and have tokens deposited in the channels you're all set to start making payments.
Last updated
Was this helpful?
When your node is connected to a token network, has channels open with one or more peers and have tokens deposited in the channels you're all set to start making payments.
Last updated
Was this helpful?
A powerful feature of Raiden is the ability to let you pay anyone in the network by using a path of connected payment channels to mediate the payment and not only directly connected nodes. These payments are called mediated transfers.
Payments are made from the endpoint via a POST request that needs to include:
The address of the token you want to pay with as a path parameter.
The address of the node receiving your payment as a path parameter.
The amount you would like to pay as a body parameter.
Your payment will most likely succeed if:
The path of channels leading from your node to the node receiving your payment has enough capacity.
All nodes needed to mediate the payment are online.
You have enough tokens in the channel from which you intend to pay out the amount specified in the request body.
To get your tokens out of a channel and back on-chain you either have to withdraw the tokens or close the channel.
In the response you will be able to see all successful payments, all failed payments and all payments you have received.
You can view all transactions you've made with a partner node by querying the endpoint in a GET request, using the same path parameters as when .