/** * barkd REST API * A simple REST API for barkd, a wallet daemon for integrating bitcoin payments into your app over HTTP. Supports self-custodial Lightning, Ark, and on-chain out of the box. barkd is a long-running daemon best suited for always-on or high-connectivity environments like nodes, servers, desktops, and point-of-sale terminals. All endpoints return JSON. Amounts are denominated in satoshis. * * The version of the OpenAPI document: 0.6.1 * Contact: hello@second.tech * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { WalletVtxoInfo } from './WalletVtxoInfo'; /** * * @export * @interface LightningReceiveInfo */ export interface LightningReceiveInfo { /** * The amount of the lightning receive, if known. * @type {number} * @memberof LightningReceiveInfo */ amountSat: number; /** * The timestamp at which the lightning receive was finished. * @type {Date} * @memberof LightningReceiveInfo * @deprecated */ finishedAt?: Date | null; /** * IDs of the HTLC-recv VTXOs granted by the server, if any. * * Empty until the inbound HTLC has been received and prepared. * @type {Array} * @memberof LightningReceiveInfo */ htlcVtxoIds: Array; /** * The HTLC VTXOs granted by the server for the lightning receive. * @type {Array} * @memberof LightningReceiveInfo */ htlcVtxos: Array; /** * The invoice string, if known. * @type {string} * @memberof LightningReceiveInfo */ invoice: string; /** * The payment hash linked to the lightning receive * @type {string} * @memberof LightningReceiveInfo */ paymentHash: string; /** * The payment preimage, if known. * @type {string} * @memberof LightningReceiveInfo */ paymentPreimage?: string | null; /** * The timestamp at which the preimage was revealed. * @type {Date} * @memberof LightningReceiveInfo * @deprecated */ preimageRevealedAt?: Date | null; /** * The timestamp at which the receive settled, if it has. * @type {Date} * @memberof LightningReceiveInfo */ settledAt?: Date | null; /** * Lifecycle phase of the receive: `awaiting-payment`, `htlcs-ready`, * `preimage-revealed`, `delivering`, or `settled`. * @type {string} * @memberof LightningReceiveInfo */ state: string; } /** * Check if a given object implements the LightningReceiveInfo interface. */ export declare function instanceOfLightningReceiveInfo(value: object): value is LightningReceiveInfo; export declare function LightningReceiveInfoFromJSON(json: any): LightningReceiveInfo; export declare function LightningReceiveInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LightningReceiveInfo; export declare function LightningReceiveInfoToJSON(json: any): LightningReceiveInfo; export declare function LightningReceiveInfoToJSONTyped(value?: LightningReceiveInfo | null, ignoreDiscriminator?: boolean): any;