/* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { Consumption } from '../models/Consumption'; import type { CancelablePromise } from '../core/CancelablePromise'; import { request as __request } from '../core/request'; export class ServiceUtilsService { /** * Get information about your credit consumption for the last month *
1 credit per API call
*Get information about your credit consumption for the last month (used credits per day).
* * @returns Consumption OK * @throws ApiError */ public static getCredits(): CancelablePromiseGet current version of the API.
* @returns any OK * @throws ApiError */ public static getVersion(): CancelablePromise<{ version?: string; status?: string; testnet?: boolean; planName?: string; planCode?: string; price?: number; expiration?: number; creditLimit?: number; usage?: number; rolloverDay?: number; }> { return __request({ method: 'GET', path: `/v3/tatum/version`, errors: { 401: `Unauthorized. Not valid or inactive subscription key present in the HTTP Header.`, 500: `Internal server error. There was an error on the server while processing the request.`, }, }); } /** * Freeze API Key *Freeze the API Key. * It's not possible to perform sensitive operations like send ledger transaction, send off-chain transaction, send blockchain transaction, * broadcast blockchain transaction, perform Order book trade or create blockage. Only read operations are permitted.
* * @returns void * @throws ApiError */ public static freezeApiKey(): CancelablePromiseUnfreeze the API Key. * It's possible to perform sensitive operations like send ledger transaction, send off-chain transaction, send blockchain transaction, * broadcast blockchain transaction, perform Order book trade or create blockage again.
* * @returns void * @throws ApiError */ public static unfreezeApiKey(): CancelablePromise