@@ -21172,6 +21172,36 @@ paths:
2117221172 oneOf:
2117321173 - $ref: '#/components/schemas/PlatformError3'
2117421174 - $ref: '#/components/schemas/InvalidWalletId'
21175+ /api/v2/{coin}/wallet/{walletId}/lightning/withdraw:
21176+ post:
21177+ tags:
21178+ - Express
21179+ summary: Lightning - Withdraw to an onchain address
21180+ operationId: express.lightning.withdrawOnchain
21181+ description: Withdraw onchain balance from a lightning wallet to a regular onchain address.
21182+ parameters:
21183+ - $ref: '#/components/parameters/pathLightningCoin'
21184+ - $ref: '#/components/parameters/pathWalletId'
21185+ requestBody:
21186+ content:
21187+ application/json:
21188+ schema:
21189+ $ref: '#/components/schemas/ExpressOnchainWithdrawRequest'
21190+ responses:
21191+ '200':
21192+ description: OK
21193+ content:
21194+ application/json:
21195+ schema:
21196+ $ref: '#/components/schemas/ExpressOnchainWithdrawResponse'
21197+ '400':
21198+ description: Bad Request
21199+ content:
21200+ application/json:
21201+ schema:
21202+ oneOf:
21203+ - $ref: '#/components/schemas/PlatformError3'
21204+ - $ref: '#/components/schemas/InvalidWalletId'
2117521205 /api/v2/wallet/{walletId}/lightning/backup:
2117621206 get:
2117721207 tags:
@@ -47435,6 +47465,65 @@ components:
4743547465 amtPaidMsat:
4743647466 type: string
4743747467 description: Amount actually paid in millisatoshis (may be greater than valueMsat)
47468+ ExpressOnchainWithdrawRequest:
47469+ type: object
47470+ properties:
47471+ passphrase:
47472+ type: string
47473+ description: The wallet passphrase.
47474+ recipients:
47475+ type: array
47476+ description: A list of on-chain recipients with their withdrawal amounts.
47477+ items:
47478+ type: object
47479+ properties:
47480+ amountSat:
47481+ type: string
47482+ description: The amount to send in satoshis.
47483+ address:
47484+ type: string
47485+ description: The on-chain Bitcoin address of the recipient.
47486+ satsPerVbyte:
47487+ type: string
47488+ description: The fee rate for the transaction in satoshis per virtual byte.
47489+ sequenceId:
47490+ type: string
47491+ description: Optional sequence ID for the withdrawal transfer.
47492+ comment:
47493+ type: string
47494+ description: Optional comment for the withdrawal transfer.
47495+ required:
47496+ - passphrase
47497+ - recipients
47498+ - satsPerVbyte
47499+ ExpressOnchainWithdrawResponse:
47500+ type: object
47501+ properties:
47502+ txRequestId:
47503+ type: string
47504+ description: Transaction request identifier.
47505+ txRequestState:
47506+ $ref: '#/components/schemas/TransactionRequestState1'
47507+ pendingApproval:
47508+ $ref: '#/components/schemas/PendingApproval1'
47509+ withdrawStatus:
47510+ type: object
47511+ description: The status of the on-chain withdrawal transaction.
47512+ properties:
47513+ status:
47514+ type: string
47515+ enum:
47516+ - delivered
47517+ - failed
47518+ description: State of the withdrawal.
47519+ txid:
47520+ type: string
47521+ description: The transaction ID on the blockchain.
47522+ failureReason:
47523+ type: string
47524+ description: The reason for failure, if any.
47525+ transfer:
47526+ $ref: '#/components/schemas/AnnotatedTransferWithInputsOutputs'
4743847527 ExpressPayInvoiceRequest:
4743947528 type: object
4744047529 properties:
@@ -51104,6 +51193,10 @@ components:
5110451193 - approved
5110551194 - rejected
5110651195 - pending
51196+ - qrscanned
51197+ - inreview
51198+ - flagged
51199+ - flagged_retry_allowed
5110751200 LegalIdentifiers:
5110851201 title: LegalIdentifiers
5110951202 type: object
0 commit comments