/* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { Account } from '../models/Account'; import type { TransactionResult } from '../models/TransactionResult'; import type { VC } from '../models/VC'; import type { VirtualCurrency } from '../models/VirtualCurrency'; import type { VirtualCurrencyOperation } from '../models/VirtualCurrencyOperation'; import type { VirtualCurrencyUpdate } from '../models/VirtualCurrencyUpdate'; import type { CancelablePromise } from '../core/CancelablePromise'; import { request as __request } from '../core/request'; export class VirtualCurrencyService { /** * Create new virtual currency *
Create new virtual currency with given supply stored in account. This will create Tatum internal virtual currency. Every virtual currency must be prefixed with VC_.
* Every virtual currency must be pegged to existing FIAT or supported cryptocurrency. 1 unit of virtual currency has then the same amount as 1 unit of the base currency it is pegged to. It is possible to set a custom base rate for the virtual currency. (baseRate = 2 => 1 VC unit = 2 basePair units)
* Tatum virtual currency acts as any other asset within Tatum. For creation of ERC20 token, see ERC20 .
* This operation returns the newly created Tatum Ledger account with an initial balance set to the virtual currency's total supply. Total supply can be changed in the future.
Change base pair and/or base rate of existing virtual currency.
* @param requestBody * @returns void * @throws ApiError */ public static updateCurrency( requestBody: VirtualCurrencyUpdate, ): CancelablePromiseGet detail of virtual currency.
* @param name
* @returns VC OK
* @throws ApiError
*/
public static getCurrency(
name: string,
): CancelablePromise Create new supply of virtual currency linked on the given accountId. Method increases the total supply of the currency.
*
* @param requestBody
* @returns TransactionResult OK
* @throws ApiError
*/
public static mintCurrency(
requestBody: VirtualCurrencyOperation,
): CancelablePromise Destroy supply of virtual currency linked on the given accountId. Method decreases the total supply of the currency.2 credits per API call.
*
* This method creates Ledger transaction with operationType MINT with undefined counterAccountId.2 credits per API call.
*
* This method creates Ledger transaction with operationType REVOKE with undefined counterAccountId.