/chainflip/broker/channel - Opening a Chainflip deposit channel
To initiate a swap through the CHAINFLIP
or CHAINFLIP_STREAMING
providers, a deposit channel must be opened first.
Method: POST
URL: https://api.swapkit.dev/chainflip/broker/channel
The information needed to open a channel is included inside the meta.chainflip
object of the /quote
response, as in the example below. The object needs to be passed to the /chainflip/broker/channel
endpoint, which creates a deposit channel.
It contains a deposit address for the chain initiating the swap, where the tokens can be sent to.
As an example a channel can be requested as:
The response contains a depositAddress
which funds can be sent to.
No approval is needed for this address in the case of ERC-20 tokens, and a memo is not needed either.
Here is an example integrating a /quote
request with opening a channel:
Last updated