/* 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.2 * 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'; /** * Query parameters for emergency (unilateral) exit fee estimates. * @export * @interface EmergencyExitFeeEstimateQuery */ export interface EmergencyExitFeeEstimateQuery { /** * The destination address for the claim. Only affects the claim-fee weight; when omitted a * placeholder of the configured network is used. * @type {string} * @memberof EmergencyExitFeeEstimateQuery */ destination?: string | null; /** * The fee rate to price the estimate at, in sat/vB. Applied to both the broadcast and claim * legs. When omitted, the broadcast leg uses the current `fast` rate and the claim leg the * `regular` rate. * @type {number} * @memberof EmergencyExitFeeEstimateQuery */ feeRateSatPerVb?: number | null; /** * Comma-separated VTXO ids to estimate the exit for. When omitted, every spendable VTXO in * the wallet is used (i.e. exit the entire wallet). * @type {string} * @memberof EmergencyExitFeeEstimateQuery */ vtxoIds?: string | null; } /** * Check if a given object implements the EmergencyExitFeeEstimateQuery interface. */ export function instanceOfEmergencyExitFeeEstimateQuery(value: object): value is EmergencyExitFeeEstimateQuery { return true; } export function EmergencyExitFeeEstimateQueryFromJSON(json: any): EmergencyExitFeeEstimateQuery { return EmergencyExitFeeEstimateQueryFromJSONTyped(json, false); } export function EmergencyExitFeeEstimateQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmergencyExitFeeEstimateQuery { if (json == null) { return json; } return { 'destination': json['destination'] == null ? undefined : json['destination'], 'feeRateSatPerVb': json['fee_rate_sat_per_vb'] == null ? undefined : json['fee_rate_sat_per_vb'], 'vtxoIds': json['vtxo_ids'] == null ? undefined : json['vtxo_ids'], }; } export function EmergencyExitFeeEstimateQueryToJSON(json: any): EmergencyExitFeeEstimateQuery { return EmergencyExitFeeEstimateQueryToJSONTyped(json, false); } export function EmergencyExitFeeEstimateQueryToJSONTyped(value?: EmergencyExitFeeEstimateQuery | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'destination': value['destination'], 'fee_rate_sat_per_vb': value['feeRateSatPerVb'], 'vtxo_ids': value['vtxoIds'], }; }