Not sure if liquidation addresses are right for you? See Choose Your Integration for a comparison of all three integration patterns.
bc1... address and you do not want to call /quote and /submit per deposit.
How It Works
- You create a liquidation address with a fixed destination chain, asset, and address.
- Flashnet returns an L1 deposit address (
l1DepositAddress). - Any BTC deposit to that address creates an order.
- You track the order by receiving partner webhooks.
sourceChain = bitcoinsourceAsset = BTCdestinationChainanddestinationAssetfrom the liquidation address configurationquoteId = null
Create a Liquidation Address
liquidationAddressId: stable idl1DepositAddress: Bitcoin deposit address (bc1...)sparkAddress: Spark address used internally for deposit claiming and sweepsdestination.chain,destination.asset, anddestination.address: fixed payout destination
Deposit Lifecycle
Each Bitcoin deposit is identified by(txid, vout), where vout is the output index that paid the liquidation address.
A single Bitcoin transaction can contain multiple outputs to different liquidation addresses (or multiple outputs to the same address). For reliable attribution, use webhooks and store order.id from the payload.
Webhooks
Liquidation deposits create normalorder.* webhook events.
To receive them:
- Register an endpoint with
POST /v1/webhooks. - Verify
X-Flashnet-Signatureon inbound requests. - Treat webhook delivery as at least once.
Manage Addresses
List enabled liquidation addresses:GET /v1/liquidation-addresses
GET /v1/liquidation-addresses/:id
DELETE /v1/liquidation-addresses/:id(requiresX-Idempotency-Key)
ZeroConf
Liquidation addresses support thezeroconfEnabled flag. When enabled, each deposit generates a ZeroConf offer requiring partner resolution. When disabled, deposits wait for 3 on-chain confirmations. See ZeroConf for the full offer flow, confirmation behavior, and accept/decline endpoints.
Some deployments require ZeroConf to be configured for liquidation address provisioning. If address creation returns a configuration error, contact your Flashnet operator.