/* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { BroadcastKMS } from '../models/BroadcastKMS'; import type { SignatureId } from '../models/SignatureId'; import type { TransactionHash } from '../models/TransactionHash'; import type { TransferXlmBlockchain } from '../models/TransferXlmBlockchain'; import type { TransferXlmBlockchainAsset } from '../models/TransferXlmBlockchainAsset'; import type { TransferXlmBlockchainKMS } from '../models/TransferXlmBlockchainKMS'; import type { TransferXlmBlockchainKMSAsset } from '../models/TransferXlmBlockchainKMSAsset'; import type { TrustLineXlmBlockchain } from '../models/TrustLineXlmBlockchain'; import type { TrustLineXlmBlockchainKMS } from '../models/TrustLineXlmBlockchainKMS'; import type { XlmAccount } from '../models/XlmAccount'; import type { XlmLedger } from '../models/XlmLedger'; import type { XlmTx } from '../models/XlmTx'; import type { XlmWallet } from '../models/XlmWallet'; import type { CancelablePromise } from '../core/CancelablePromise'; import { request as __request } from '../core/request'; export class StellarService { /** * Generate XLM account *
Generate XLM account. Tatum does not support HD wallet for XLM, only specific address and private key can be generated.
* * @returns XlmWallet OK * @throws ApiError */ public static xlmWallet(): CancelablePromiseGet XLM Blockchain last closed ledger.
* @returns XlmLedger OK * @throws ApiError */ public static xlmGetLastClosedLedger(): CancelablePromiseGet XLM Blockchain ledger for ledger sequence.
* @param sequence Sequence of the ledger. * @returns XlmLedger OK * @throws ApiError */ public static xlmGetLedger( sequence: string, ): CancelablePromiseGet XLM Blockchain transactions in the ledger.
* @param sequence Sequence of the ledger. * @returns XlmTx OK * @throws ApiError */ public static xlmGetLedgerTx( sequence: string, ): CancelablePromiseGet XLM Blockchain fee in 1/10000000 of XLM (stroop)
* @returns number OK * @throws ApiError */ public static xlmGetFee(): CancelablePromiseList all XLM account transactions.
* @param account Address of XLM account. * @param pagination Paging token from the last transaction gives you next page * @returns XlmTx OK * @throws ApiError */ public static xlmGetAccountTx( account: string, pagination?: string, ): CancelablePromiseGet XLM Transaction by transaction hash.
* @param hash Transaction hash * @returns XlmTx OK * @throws ApiError */ public static xlmGetTransaction( hash: string, ): CancelablePromiseGet XLM Account detail.
* @param account Account address you want to get balance of * @returns XlmAccount OK * @throws ApiError */ public static xlmGetAccountInfo( account: string, ): CancelablePromiseSend XLM from account to account. It is possbile to send native XLM asset, or any other custom asset present on the network.
* This operation needs the private key of the blockchain address. Every time the funds are transferred, the transaction must be signed with the corresponding private key.
* No one should ever send it's own private keys to the internet because there is a strong possibility of stealing keys and loss of funds. In this method, it is possible to enter privateKey
* or signatureId. PrivateKey should be used only for quick development on testnet versions of blockchain when there is no risk of losing funds. In production,
* Tatum KMS should be used for the highest security standards, and signatureId should be present in the request.
* Alternatively, using the Tatum client library for supported languages.
*
*
Create / Update / Delete XLM trust line between accounts to transfer private assets.
* By creating trustline for the first time, the asset is created automatically and can be used in the transactions.
* This operation needs the private key of the blockchain address. Every time the funds are transferred, the transaction must be signed with the corresponding private key.
* No one should ever send it's own private keys to the internet because there is a strong possibility of stealing keys and loss of funds. In this method, it is possible to enter privateKey
* or signatureId. PrivateKey should be used only for quick development on testnet versions of blockchain when there is no risk of losing funds. In production,
* Tatum KMS should be used for the highest security standards, and signatureId should be present in the request.
* Alternatively, using the Tatum client library for supported languages.
*
Broadcast signed transaction to XLM blockchain. This method is used internally from Tatum KMS, Tatum Middleware or Tatum client libraries. * It is possible to create custom signing mechanism and use this method only for broadcasting data to the blockchain.
* * @param requestBody * @returns TransactionHash OK * @throws ApiError */ public static xlmBroadcast( requestBody: BroadcastKMS, ): CancelablePromise