-
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
51 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,50 @@ | ||
import type { | ||
AuthenticatedLightningArgs, | ||
AuthenticatedLightningMethod, | ||
} from '../../typescript'; | ||
|
||
export type CreateFundedPsbtArgs = AuthenticatedLightningArgs<{ | ||
/** Chain Fee Tokens Per Virtual Byte Number */ | ||
fee_tokens_per_vbyte?: number; | ||
inputs?: Array<{ | ||
/** Sequence Number */ | ||
sequence?: number; | ||
/** Unspent Transaction Id Hex String */ | ||
transaction_id: string; | ||
/** Unspent Transaction Output Index Number */ | ||
transaction_vout: number; | ||
}>; | ||
/** Select Inputs With Minimum Confirmations Number */ | ||
min_confirmations?: number; | ||
outputs?: Array<{ | ||
/** Use This Output For Change Bool */ | ||
is_change?: boolean; | ||
/** Output Script Hex String> */ | ||
script: string; | ||
/** Send Tokens Tokens Number */ | ||
tokens: number; | ||
}>; | ||
/** Blocks To Wait for Confirmation Number */ | ||
target_confirmations?: number; | ||
/** Spendable Lock Time on Transaction Number */ | ||
timelock?: number; | ||
/** Select Inputs Using Selection Methodology Type String */ | ||
utxo_selection?: string; | ||
/** Transaction Version Number */ | ||
version?: number; | ||
}>; | ||
|
||
/** | ||
* Create an unsigned funded PSBT given inputs or outputs | ||
* | ||
* When specifying local inputs, they must be locked before using | ||
* | ||
* `utxo_selection` methods: 'largest', 'random' | ||
* | ||
* Requires `onchain:write` permission | ||
* | ||
* Requires LND built with `walletrpc` tag | ||
* | ||
* This method is not supported on LND 0.17.5 or below | ||
*/ | ||
export const createFundedPsbt: AuthenticatedLightningMethod<CreateFundedPsbtArgs>; |
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