UNPKG

@atomiqlabs/base

Version:

Base classes and interfaces for atomiq protocol

24 lines (23 loc) 621 B
/** * A type defining total capacity of a given lightning network node * * @category Lightning */ export type LNNodeLiquidity = { publicKey: string; capacity: bigint; numChannels: number; }; /** * An interface for Lightning API, provides view of the public lightning network data like channel graph * * @category Lightning */ export interface LightningNetworkApi { /** * Returns the lightning network's node liquidity as identified by an identity public key * * @param pubkey */ getLNNodeLiquidity(pubkey: string): Promise<LNNodeLiquidity | null>; }