Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fundPsbt type #188

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions lnd_methods/onchain/fund_psbt.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import {MergeExclusive} from 'type-fest';

export type FundPsbtArgs = AuthenticatedLightningArgs<
{
/** Change Address Address Format String */
change_format?: 'p2tr';
/** Chain Fee Tokens Per Virtual Byte */
fee_tokens_per_vbyte?: number;
inputs?: {
Expand All @@ -15,12 +17,12 @@ export type FundPsbtArgs = AuthenticatedLightningArgs<
/** Unspent Transaction Output Index */
transaction_vout: number;
}[];

/** Spend UTXOs With Minimum Confirmations */
min_confirmations?: number;

/** Confirmations To Wait */
target_confirmations?: number;
/** Select UTXOs Using Method String */
utxo_selection?: 'largest' | 'random';
} & MergeExclusive<
{
/** Existing PSBT Hex */
Expand Down Expand Up @@ -58,8 +60,6 @@ export type FundPsbtResult = {
}[];
/** Unsigned PSBT Hex */
psbt: string;
/** Select UTXOs Using Method String */
utxo_selection?: UtxoSelection;
};

/**
Expand All @@ -69,6 +69,10 @@ export type FundPsbtResult = {
*
* If there are no inputs passed, internal UTXOs will be selected and locked
*
* `utxo_selection` methods: 'largest', 'random'
*
* `change_format` options: `p2tr` (only one change type is supported)
*
* Requires `onchain:write` permission
*
* Requires LND built with `walletrpc` tag
Expand Down
Loading