-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { | ||
AuthenticatedLightningArgs, | ||
AuthenticatedLightningMethod, | ||
} from '../../typescript'; | ||
|
||
export type GetPendingSweepsArgs = AuthenticatedLightningArgs; | ||
|
||
export interface Sweep { | ||
/** Total Sweep Broadcast Attempts Count Number */ | ||
broadcasts_count: number; | ||
/** Current Chain Fee Rate Tokens Per VByte Number */ | ||
current_fee_rate?: number; | ||
/** Requested Chain Fee Rate Tokens per VByte Number */ | ||
initial_fee_rate?: number; | ||
/** Requested Waiting For Batching Bool */ | ||
is_batching: boolean; | ||
/** Maximum Total Fee Tokens Allowed Number */ | ||
max_fee?: number; | ||
/** Targeted Maximum Confirmation Height Number */ | ||
max_height?: number; | ||
/** Sweep Outpoint Tokens Value Number */ | ||
tokens: number; | ||
/** Sweeping Outpoint Transaction Id Hex String */ | ||
transaction_id: string; | ||
/** Sweeping Outpoint Transaction Output Index Number */ | ||
transaction_vout: number; | ||
/** Outpoint Constraint Script Type String */ | ||
type: string; | ||
} | ||
|
||
export interface GetPendingSweepsResult { | ||
sweeps: Sweep[]; | ||
} | ||
|
||
/** | ||
* Get pending self-transfer spends | ||
* | ||
* Requires `onchain:read` permission | ||
* | ||
* Requires LND built with `walletrpc` build tag | ||
* | ||
* This method is not supported in LND 0.17.5 or below | ||
*/ | ||
export const getPendingSweeps: AuthenticatedLightningMethod< | ||
GetPendingSweepsArgs, | ||
GetPendingSweepsResult | ||
>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters