/* 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(): CancelablePromise> { return __request({ method: 'GET', path: `/v3/tatum/usage`, errors: { 401: `Unauthorized. Not valid or inactive subscription key present in the HTTP Header.`, 403: `Forbidden. The request is authenticated, but it is not possible to required perform operation due to logical error or invalid permissions.`, 500: `Internal server error. There was an error on the server while processing the request.`, }, }); } /** * Get API version *

1 credit per API call.


Get 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 *

2 credits per API call.


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(): CancelablePromise { return __request({ method: 'PUT', path: `/v3/tatum/freeze`, 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.`, }, }); } /** * Unfreeze API Key *

2 credits per API call.


Unfreeze 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 { return __request({ method: 'DELETE', path: `/v3/tatum/freeze`, 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.`, }, }); } }