/** * 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. */ /** * Information about a single VTXO (Virtual Transaction Output). * * A VTXO is a chain of off-chain, pre-signed transactions rooted in an * on-chain output. It represents spendable bitcoin on Ark. * @export * @interface VtxoInfo */ export interface VtxoInfo { /** * The value of this VTXO in sats. * @type {number} * @memberof VtxoInfo */ amountSat: number; /** * The on-chain outpoint that roots this VTXO, formatted as * `txid:vout`. Typically an output of a round transaction or a * board transaction. * @type {string} * @memberof VtxoInfo */ chainAnchor: string; /** * The relative timelock, in blocks, that must elapse before the * final on-chain claim in an emergency exit. * @type {number} * @memberof VtxoInfo */ exitDelta: number; /** * The number of off-chain transactions in this VTXO. Each must * be broadcast and confirmed on-chain in sequence during an * emergency exit. * @type {number} * @memberof VtxoInfo */ exitDepth?: number | null; /** * The block height at which this VTXO expires. After expiry, the * server can reclaim the sats. Refresh before expiry to receive * new VTXOs, or exit to move them on-chain. * @type {number} * @memberof VtxoInfo */ expiryHeight: number; /** * Unique identifier for this VTXO, formatted as `txid:vout`. * @type {string} * @memberof VtxoInfo */ id: string; /** * The spending policy that governs this VTXO. * @type {string} * @memberof VtxoInfo */ policyType: string; /** * The Ark server's public key used to co-sign transactions * involving this VTXO. * @type {string} * @memberof VtxoInfo */ serverPubkey: string; /** * The owner's public key. Only the holder of the corresponding * private key can spend this VTXO. * @type {string} * @memberof VtxoInfo */ userPubkey: string; } /** * Check if a given object implements the VtxoInfo interface. */ export declare function instanceOfVtxoInfo(value: object): value is VtxoInfo; export declare function VtxoInfoFromJSON(json: any): VtxoInfo; export declare function VtxoInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): VtxoInfo; export declare function VtxoInfoToJSON(json: any): VtxoInfo; export declare function VtxoInfoToJSONTyped(value?: VtxoInfo | null, ignoreDiscriminator?: boolean): any;