/* 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'; /** * A fee estimate for an Ark wallet operation. * @export * @interface FeeEstimateResponse */ export interface FeeEstimateResponse { /** * The fee portion (in satoshis) * @type {number} * @memberof FeeEstimateResponse */ feeSat: number; /** * The total amount including fees (in satoshis) * @type {number} * @memberof FeeEstimateResponse */ grossAmountSat: number; /** * The amount excluding fees (in satoshis). For sends, this is the amount * the recipient receives. For receives, this is the amount the user gets. * @type {number} * @memberof FeeEstimateResponse */ netAmountSat: number; /** * The VTXOs that would be spent for this operation * @type {Array} * @memberof FeeEstimateResponse */ vtxosSpent: Array; } /** * Check if a given object implements the FeeEstimateResponse interface. */ export function instanceOfFeeEstimateResponse(value: object): value is FeeEstimateResponse { if (!('feeSat' in value) || value['feeSat'] === undefined) return false; if (!('grossAmountSat' in value) || value['grossAmountSat'] === undefined) return false; if (!('netAmountSat' in value) || value['netAmountSat'] === undefined) return false; if (!('vtxosSpent' in value) || value['vtxosSpent'] === undefined) return false; return true; } export function FeeEstimateResponseFromJSON(json: any): FeeEstimateResponse { return FeeEstimateResponseFromJSONTyped(json, false); } export function FeeEstimateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeeEstimateResponse { if (json == null) { return json; } return { 'feeSat': json['fee_sat'], 'grossAmountSat': json['gross_amount_sat'], 'netAmountSat': json['net_amount_sat'], 'vtxosSpent': json['vtxos_spent'], }; } export function FeeEstimateResponseToJSON(json: any): FeeEstimateResponse { return FeeEstimateResponseToJSONTyped(json, false); } export function FeeEstimateResponseToJSONTyped(value?: FeeEstimateResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'fee_sat': value['feeSat'], 'gross_amount_sat': value['grossAmountSat'], 'net_amount_sat': value['netAmountSat'], 'vtxos_spent': value['vtxosSpent'], }; }