-
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.
Merge pull request #179 from bkiac/update-types
Add getMinimumRelayFee types
- Loading branch information
Showing
2 changed files
with
26 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,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 | ||
>; |
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