Skip to content

Commit 0818335

Browse files
authored
docs(express): lightning withdraw v2
2 parents c1dd567 + 74285ff commit 0818335

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

modules/express/src/typedRoutes/api/v2/lightningWithdraw.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { BitgoExpressError } from '../../schemas/error';
99
export const LightningWithdrawParams = {
1010
/** The coin identifier (e.g., 'lnbtc', 'tlnbtc') */
1111
coin: t.string,
12-
/** The ID of the wallet */
12+
/** The wallet ID. */
1313
id: t.string,
1414
} as const;
1515

@@ -27,17 +27,17 @@ const LightningOnchainRecipient = t.type({
2727
* Request body for lightning onchain withdrawal
2828
*/
2929
export const LightningWithdrawRequestBody = {
30-
/** Array of recipients to pay */
30+
/** A list of on-chain recipients with their withdrawal amounts. */
3131
recipients: t.array(LightningOnchainRecipient),
32-
/** Wallet passphrase for signing */
32+
/** The wallet passphrase. */
3333
passphrase: t.string,
34-
/** Fee rate in satoshis per virtual byte (as string that will be converted to BigInt) */
34+
/** Optional fee rate for the transaction in satoshis per virtual byte. Cannot be used with numBlocks. */
3535
satsPerVbyte: optional(BigIntFromString),
36-
/** Target number of blocks for confirmation */
36+
/** The number of blocks required to confirm a transaction. You can use numBlocks to estimate the fee rate by targeting confirmation within a given number of blocks. If both satsPerVbyte and numBlocks are absent, the transaction defaults to 2 blocks for confirmation. */
3737
numBlocks: optional(t.number),
38-
/** Optional sequence ID for the withdraw transfer */
38+
/** Optional sequence ID for the withdrawal transfer. */
3939
sequenceId: optional(t.string),
40-
/** Optional comment for the withdraw transfer */
40+
/** Optional comment for the withdrawal transfer. */
4141
comment: optional(t.string),
4242
} as const;
4343

@@ -174,7 +174,7 @@ const PendingApproval = t.intersection([
174174
*/
175175
const LightningWithdrawResponse = t.intersection([
176176
t.type({
177-
/** Unique identifier for withdraw request submitted to BitGo */
177+
/** Transaction request identifier. */
178178
txRequestId: t.string,
179179
/** Status of withdraw request submission to BitGo */
180180
txRequestState: TxRequestState,
@@ -199,12 +199,10 @@ export const LightningWithdrawResponseType = {
199199
} as const;
200200

201201
/**
202-
* Lightning Onchain Withdrawal API
203-
*
204-
* Withdraws lightning balance to an onchain Bitcoin address
202+
* Withdraw onchain balance from a lightning wallet to a regular onchain address.
205203
*
206204
* @operationId express.v2.wallet.lightningWithdraw
207-
* @tag express
205+
* @tag Express
208206
*/
209207
export const PostLightningWalletWithdraw = httpRoute({
210208
path: '/api/v2/{coin}/wallet/{id}/lightning/withdraw',

0 commit comments

Comments
 (0)