diff --git a/lnd_methods/onchain/get_minimum_relay_fee.d.ts b/lnd_methods/onchain/get_minimum_relay_fee.d.ts new file mode 100644 index 0000000..e4d2e64 --- /dev/null +++ b/lnd_methods/onchain/get_minimum_relay_fee.d.ts @@ -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 +>; diff --git a/lnd_methods/onchain/index.d.ts b/lnd_methods/onchain/index.d.ts index 233f8de..60eea8b 100644 --- a/lnd_methods/onchain/index.d.ts +++ b/lnd_methods/onchain/index.d.ts @@ -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';