Boltz.exchange: Do onchain to offchain and vice-versa swaps

Submarine and Reverse Submarine Swaps on LNbits via boltz.exchange API

Link : https://boltz.exchange

More details

Created by, dni

GET /boltz/api/v1/swap/reverse
Returns 200 OK (application/json)
JSON list of reverse submarine swaps
Curl example
curl -X GET {{ root_url }}/boltz/api/v1/swap/reverse -H "X-Api-Key: {{ user.wallets[0].adminkey }}"
POST /boltz/api/v1/swap/reverse
Body (application/json)
{"wallet": <string>, "onchain_address": <string>, "amount": <integer>, "instant_settlement": <boolean>}
Returns 200 OK (application/json)
JSON create a reverse-submarine swaps
Curl example
curl -X POST {{ root_url }}/boltz/api/v1/swap/reverse -H "X-Api-Key: {{ user.wallets[0].adminkey }}"
GET /boltz/api/v1/swap
Returns 200 OK (application/json)
JSON list of submarine swaps
Curl example
curl -X GET {{ root_url }}/boltz/api/v1/swap -H "X-Api-Key: {{ user.wallets[0].adminkey }}"
POST /boltz/api/v1/swap
Body (application/json)
{"wallet": <string>, "refund_address": <string>, "amount": <integer>}
Returns 200 OK (application/json)
JSON create a submarine swaps
Curl example
curl -X POST {{ root_url }}/boltz/api/v1/swap -H "X-Api-Key: {{ user.wallets[0].adminkey }}"
POST /boltz/api/v1/swap/refund/{swap_id}
Returns 200 OK (application/json)
JSON submarine swap
Curl example
curl -X GET {{ root_url }}/boltz/api/v1/swap/refund/{swap_id} -H "X-Api-Key: {{ user.wallets[0].adminkey }}"
POST /boltz/api/v1/swap/status/{swap_id}
Returns 200 OK (text/plain)
swap status
Curl example
curl -X GET {{ root_url }}/boltz/api/v1/swap/status/{swap_id} -H "X-Api-Key: {{ user.wallets[0].adminkey }}"
GET /boltz/api/v1/swap/check
Returns 200 OK (application/json)
JSON pending swaps
Curl example
curl -X GET {{ root_url }}/boltz/api/v1/swap/check -H "X-Api-Key: {{ user.wallets[0].adminkey }}"
GET /boltz/api/v1/swap/boltz
Returns 200 OK (text/plain)
JSON boltz config
Curl example
curl -X GET {{ root_url }}/boltz/api/v1/swap/boltz -H "X-Api-Key: {{ user.wallets[0].inkey }}"
GET /boltz/api/v1/swap/mempool
Returns 200 OK (text/plain)
mempool url
Curl example
curl -X GET {{ root_url }}/boltz/api/v1/swap/mempool -H "X-Api-Key: {{ user.wallets[0].inkey }}"