File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
modules/express/src/typedRoutes/api/v2 Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -5,25 +5,23 @@ import { WalletState } from '../../../lightning/codecs';
55
66/**
77 * Path parameters for getting lightning node state
8- * @property {string } coin - A lightning coin name (e.g., lnbtc or tlnbtc)
9- * @property {string } walletId - The ID of the lightning self-custody wallet
108 */
119export const LightningStateParams = {
10+ /** A lightning coin name (e.g., lnbtc or tlnbtc) */
1211 coin : t . string ,
12+ /** The ID of the lightning self-custody wallet */
1313 walletId : t . string ,
1414} ;
1515
1616/**
17- * Response
18- * - 200: Returns the current Lightning wallet/node state('NON_EXISTING' | 'LOCKED' | 'UNLOCKED' | 'RPC_ACTIVE' | 'SERVER_ACTIVE' | 'WAITING_TO_START'.
19- * - 400: BitGo Express error payload when the request is invalid (e.g., invalid coin or wallet not a self-custody lightning wallet).
20- *
21- * See platform spec: GET /api/v2/{coin}/wallet/{walletId}/state
17+ * Response for getting lightning node state
2218 */
2319export const LightningStateResponse = {
20+ /** Current Lightning wallet/node state('NON_EXISTING' | 'LOCKED' | 'UNLOCKED' | 'RPC_ACTIVE' | 'SERVER_ACTIVE' | 'WAITING_TO_START') */
2421 200 : t . type ( {
2522 state : WalletState ,
2623 } ) ,
24+ /** BitGo Express error payload when the request is invalid (e.g., invalid coin or wallet not a self-custody lightning wallet). */
2725 400 : BitgoExpressError ,
2826} as const ;
2927
You can’t perform that action at this time.
0 commit comments