ListPendingSwapsOutput
Output from the actionable swap list endpoint.
Unique identifier of the swap.
Swap type name, for example FROM_BTC, TO_BTCLN, or FROM_BTCLN.
state objectrequired
Current swap state information. This varies for every swap type.
Numeric state representation of the state.
Human-readable state name.
Human-readable state description.
quote objectrequired
Quote data captured when the swap was created.
inputAmount objectrequired
Input source amount that will be paid by the user (including fees, but excluding source network fees).
Decimal format of the amount, e.g. 1.5.
Raw base units as string, e.g. 1500000000000000000.
Possible values: Value must match regular expression ^[+-]?\d+$
1500000000000000000Token decimals, e.g. 18.
Token ticker, e.g. STRK.
Chain identifier, e.g. STARKNET, BITCOIN, LIGHTNING.
outputAmount objectrequired
Output destination amount that will be paid out to the user.
Decimal format of the amount, e.g. 1.5.
Raw base units as string, e.g. 1500000000000000000.
Possible values: Value must match regular expression ^[+-]?\d+$
1500000000000000000Token decimals, e.g. 18.
Token ticker, e.g. STRK.
Chain identifier, e.g. STARKNET, BITCOIN, LIGHTNING.
fees objectrequired
Fee breakdown included in the quote.
swap objectrequired
Swap service fee (charged in source token).
Decimal format of the amount, e.g. 1.5.
Raw base units as string, e.g. 1500000000000000000.
Possible values: Value must match regular expression ^[+-]?\d+$
1500000000000000000Token decimals, e.g. 18.
Token ticker, e.g. STRK.
Chain identifier, e.g. STARKNET, BITCOIN, LIGHTNING.
networkOutput object
Swap fee to cover the transaction network fees on the destination side (charged in source token).
Decimal format of the amount, e.g. 1.5.
Raw base units as string, e.g. 1500000000000000000.
Possible values: Value must match regular expression ^[+-]?\d+$
1500000000000000000Token decimals, e.g. 18.
Token ticker, e.g. STRK.
Chain identifier, e.g. STARKNET, BITCOIN, LIGHTNING.
Quote expiration timestamp in milliseconds since Unix epoch.
Output address of the swap, the destination tokens will be sent here.
Swap creation timestamp in milliseconds since Unix epoch.
steps object[]required
Swap execution steps.
- SwapExecutionStepSetup
- SwapExecutionStepPayment
- SwapExecutionStepSettlement
- SwapExecutionStepRefund
Possible values: [Setup]
Possible values: [destination]
Possible values: [awaiting, completed, soft_expired, expired]
lnurl object
LNURL metadata attached to Lightning-based swaps when applicable.
LNURL-withdraw link for Lightning to smart-chain flows.
LNURL-pay link for smart-chain to Lightning flows.
successAction object
LNURL success action returned after a successful payment via LNURL-pay link, if specified in the LNURL.
Whether the swap reached a terminal state.
Whether the swap finished successfully.
Whether the swap finished in a failed state.
Whether the quote expired before completion.
[
{
"swapId": "string",
"swapType": "string",
"state": {
"number": 0,
"name": "string",
"description": "string"
},
"quote": {
"inputAmount": {
"amount": "string",
"rawAmount": "1500000000000000000",
"decimals": 0,
"symbol": "string",
"chain": "string"
},
"outputAmount": {
"amount": "string",
"rawAmount": "1500000000000000000",
"decimals": 0,
"symbol": "string",
"chain": "string"
},
"fees": {
"swap": {
"amount": "string",
"rawAmount": "1500000000000000000",
"decimals": 0,
"symbol": "string",
"chain": "string"
},
"networkOutput": {
"amount": "string",
"rawAmount": "1500000000000000000",
"decimals": 0,
"symbol": "string",
"chain": "string"
}
},
"expiry": 0,
"outputAddress": "string"
},
"createdAt": 0,
"steps": [
{
"type": "Setup",
"side": "destination",
"chain": "string",
"title": "string",
"description": "string",
"status": "awaiting",
"setupTxId": "string"
},
{
"type": "Payment",
"side": "source",
"chain": "string",
"title": "string",
"description": "string",
"status": "inactive",
"confirmations": {
"current": 0,
"target": 0,
"etaSeconds": 0
},
"initTxId": "string",
"settleTxId": "string"
},
{
"type": "Settlement",
"side": "destination",
"chain": "string",
"title": "string",
"description": "string",
"status": "inactive",
"initTxId": "string",
"settleTxId": "string"
},
{
"type": "Refund",
"side": "source",
"chain": "string",
"title": "string",
"description": "string",
"status": "inactive",
"refundTxId": "string"
}
],
"lnurl": {
"withdraw": "string",
"pay": "string",
"successAction": {
"description": "string",
"text": "string",
"url": "string"
}
},
"isFinished": true,
"isSuccess": true,
"isFailed": true,
"isExpired": true
}
]