Skip to content

Commit

Permalink
Add requestBatchedFeeIncrease types
Browse files Browse the repository at this point in the history
  • Loading branch information
bkiac committed May 9, 2024
1 parent 6d84ba9 commit f7fc549
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions lnd_methods/onchain/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export * from './open_channels';
export * from './partially_sign_psbt';
export * from './prepare_for_channel_proposal';
export * from './propose_channel';
export * from './request_batched_fee_increase';
export * from './request_chain_fee_increase';
export * from './send_to_chain_address';
export * from './send_to_chain_addresses';
Expand Down
26 changes: 26 additions & 0 deletions lnd_methods/onchain/request_batched_fee_increase.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import {
AuthenticatedLightningArgs,
AuthenticatedLightningMethod,
} from '../../typescript';

export type RequestBatchedFeeIncreaseArgs = AuthenticatedLightningArgs<{
/** Maximum Tokens to Pay Into Chain Fees Number */
max_fee?: number;
/** Maximum Height To Reach a Confirmation Number */
max_height?: number;
/** Unconfirmed UTXO Transaction Id Hex String */
transaction_id: string;
/** Unconfirmed UTXO Transaction Index Number */
transaction_vout: number;
}>;

/**
* Request batched CPFP fee bumping of an unconfirmed outpoint on a deadline
*
* Requires `onchain:write` permission
*
* Requires LND built with `walletrpc` build tag
*
* This method is unsupported on LND 0.17.5 and below
*/
export const requestBatchedFeeIncrease: AuthenticatedLightningMethod<RequestBatchedFeeIncreaseArgs>;

0 comments on commit f7fc549

Please sign in to comment.