Deezy.io: Do onchain to offchain and vice-versa swaps

Link : https://deezy.io/

API DOCS

Created by, Uthpala

Get the current info about the swap service for converting LN btc to on-chain BTC.
GET (mainnet) https://api.deezy.io/v1/swap/info
GET (testnet) https://api-testnet.deezy.io/v1/swap/info
Response
            {
              "liquidity_fee_ppm": 2000,
              "on_chain_bytes_estimate": 300,
              "max_swap_amount_sats": 100000000,
              "min_swap_amount_sats": 100000,
              "available": true
            }
          
Initiate a new swap to send lightning btc in exchange for on-chain btc
POST (mainnet) https://api.deezy.io/v1/swap
POST (testnet) https://api-testnet.deezy.io/v1/swap
Payload
            {
              "amount_sats": 500000,
              "on_chain_address": "tb1qrcdhlm0m...",
              "on_chain_sats_per_vbyte": 2
            }
          
Response
            {
              "bolt11_invoice": "lntb603u1p3vmxj7p...",
              "fee_sats": 600
            }
          
Lookup the on-chain transaction information for an existing swap
GET (mainnet) https://api.deezy.io/v1/swap/lookup
GET (testnet) https://api-testnet.deezy.io/v1/swap/lookup
Query Parameter
            "bolt11_invoice": "lntb603u1p3vmxj7pp54...",
          
Response
            {
              "on_chain_txid": "string",
              "tx_hex": "string"
            }
          
Generate an on-chain deposit address for your lnurl or lightning address.
POST (mainnet) https://api.deezy.io/v1/source
POST (testnet) https://api-testnet.deezy.io/v1/source
Payload
            {
              "lnurl_or_lnaddress": "LNURL1DP68GURN8GHJ...",
              "secret_access_key": "b3c6056d2845867fa7..",
              "webhook_url": "https://your.website.com/dee.."
            }
          
Response
            {
              "address": "bc1qkceyc5...",
              "secret_access_key": "b3c6056d28458...",
              "commitment": "for any satoshis sent to bc1..",
              "signature": "d69j6aj1ssz5egmsr..",
              "webhook_url": "https://your.website.com/deez.."
            }
          
Lookup (BTC to LN) swaps
GET (mainnet) https://api.deezy.io/v1/source/lookup
GET (testnet) https://api-testnet.deezy.io/v1/source/lookup
Response
            {
              "swaps": [
                {
                  "lnurl_or_lnaddress": "string",
                  "deposit_address": "string",
                  "utxo_key": "string",
                  "deposit_amount_sats": 0,
                  "target_payout_amount_sats": 0,
                  "paid_amount_sats": 0,
                  "deezy_fee_sats": 0,
                  "status": "string"
                }
              ],
              "total_sent_sats": 0,
              "total_received_sats": 0,
              "total_pending_payout_sats": 0,
              "total_deezy_fees_sats": 0
            }