Skip to content

Commit

Permalink
Merge pull request #179 from bkiac/update-types
Browse files Browse the repository at this point in the history
Add getMinimumRelayFee types
  • Loading branch information
alexbosworth authored Aug 13, 2024
2 parents 561d350 + 957da5b commit ef1fbdf
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lnd_methods/onchain/get_minimum_relay_fee.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import type {
AuthenticatedLightningArgs,
AuthenticatedLightningMethod,
} from '../../typescript';

export type GetMinimumRelayFeeArgs = AuthenticatedLightningArgs;

export interface GetMinimumRelayFeeResult {
/** Minimum Relayable Tokens Per Virtual Byte Number */
tokens_per_vbyte: number;
}

/**
* Get the current minimum relay fee for the chain backend
*
* Requires LND built with `walletrpc` tag
*
* Requires `onchain:read` permission
*
* This method is not supported on LND 0.18.2 and below
*/
export const getMinimumRelayFee: AuthenticatedLightningMethod<
GetMinimumRelayFeeArgs,
GetMinimumRelayFeeResult
>;
1 change: 1 addition & 0 deletions lnd_methods/onchain/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export * from './get_chain_transaction';
export * from './get_chain_transactions';
export * from './get_locked_utxos';
export * from './get_master_public_keys';
export * from './get_minimum_relay_fee';
export * from './get_pending_chain_balance';
export * from './get_pending_sweeps';
export * from './get_sweep_transactions';
Expand Down

0 comments on commit ef1fbdf

Please sign in to comment.