loop

post/v1/loop/in

Request body

amountinteger required

< amount in satoshi.

last_hopstring

Bitcoin public key in 33 bytes length

pair_idstring

Pair of cryptoCode

labelstring nullable

< Additional label for this request.

max_miner_feeinteger nullable

< Maximum on-chain fees that we are willing to spend. If we want to publish the on-chain htlc and the fee estimate turns out higher than this value, we cancel the swap.

max_swap_feeinteger nullable

< Maximum we are willing to pay the server for the swap. This value is not disclosed in the swap initiation call, but if the server asks for a higher fee, we abort the swap. For multi-asset swap, the unit of this value is off-chain currency. We use a rate information from external exchanges to calculate the value.

htlc_conf_targetinteger nullable

< Confimation target for sweeping the HTLC (a.k.a. swaptx, lockuptx)

Example request

{
  "last_hop": "03afbba930dc74d6412b71c31f72bfb8d4615121174dd4290cbbf83960961ba9ab",
  "channel_id": "140x10x1"
}

Response

OK

{"stackTrail":"components:schemas:LoopInResponse:properties:id","oasType":"schema","type":"unknown","description":"Swap identifier to track status.\n"}
addressstring

Example response

{
  "address": "bc1q2y7lfmmm7xhv2dpf0n0mx6w26zspmvszm3hvkc4yn785xp8dvs5shejlc5"
}

Changes