/* tslint:disable */ /* eslint-disable */ /** * 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 { mapValues } from '../runtime'; /** * * @export * @interface OffboardVtxosRequest */ export interface OffboardVtxosRequest { /** * Optional Bitcoin address to send to. If not provided, uses the onchain wallet's address * @type {string} * @memberof OffboardVtxosRequest */ address?: string | null; /** * List of VTXO IDs to offboard. The sum of the VTXOs being refreshed must be * >= [P2TR_DUST](bitcoin_ext::P2TR_DUST) after the server-configured * [OffboardFees](crate::cli::fees::OffboardFees) are deducted. * @type {Array} * @memberof OffboardVtxosRequest */ vtxos: Array; } /** * Check if a given object implements the OffboardVtxosRequest interface. */ export function instanceOfOffboardVtxosRequest(value: object): value is OffboardVtxosRequest { if (!('vtxos' in value) || value['vtxos'] === undefined) return false; return true; } export function OffboardVtxosRequestFromJSON(json: any): OffboardVtxosRequest { return OffboardVtxosRequestFromJSONTyped(json, false); } export function OffboardVtxosRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OffboardVtxosRequest { if (json == null) { return json; } return { 'address': json['address'] == null ? undefined : json['address'], 'vtxos': json['vtxos'], }; } export function OffboardVtxosRequestToJSON(json: any): OffboardVtxosRequest { return OffboardVtxosRequestToJSONTyped(json, false); } export function OffboardVtxosRequestToJSONTyped(value?: OffboardVtxosRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'address': value['address'], 'vtxos': value['vtxos'], }; }