/* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { KmsSignatureIds } from '../models/KmsSignatureIds'; import type { PendingTransaction } from '../models/PendingTransaction'; import type { CancelablePromise } from '../core/CancelablePromise'; import { request as __request } from '../core/request'; export class KeyManagementSystemService { /** * Get pending transactions to sign *
1 credit per API call
*Get the list of pending transactions to sign and broadcast using KMS.
* * @param chain Blockchain to get pending transactions for. * @param signatures Signature IDs of the KMS which invokes this endpoint. If multiple, they should be separated by comma. * @returns PendingTransaction OK * @throws ApiError */ public static getPendingTransactionsToSign( chain: 'BNB' | 'BTC' | 'ETH' | 'XLM' | 'XRP' | 'BCH' | 'LTC' | 'DOGE' | 'VET' | 'BSC' | 'MATIC' | 'CELO' | 'FLOW' | 'TRON' | 'ONE' | 'XDC' | 'EGLD' | 'KLAY' | 'SOL', signatures?: string, ): CancelablePromise1 credit for every 500 signature IDs per API call
*Get the list of pending transactions to sign and broadcast using KMS.
*NOTE: This API works only in KMS v5.0 or later. If you use KMS older than v5.0, use this API instead.
* * @param chain Blockchain to get pending transactions for. * @param requestBody Signature IDs of the KMS which invokes this endpoint. * @returns PendingTransaction OK * @throws ApiError */ public static receivePendingTransactionsToSign( chain: 'BNB' | 'BTC' | 'ETH' | 'XLM' | 'XRP' | 'BCH' | 'LTC' | 'DOGE' | 'VET' | 'BSC' | 'MATIC' | 'CELO' | 'FLOW' | 'TRON' | 'ONE' | 'XDC' | 'EGLD' | 'KLAY' | 'SOL', requestBody?: KmsSignatureIds, ): CancelablePromiseMark pending transaction to sign as a complete and update it with a transactionID from the blockchain.
* * @param id ID of pending transaction * @param txId transaction ID of blockchain transaction * @returns void * @throws ApiError */ public static completePendingSignature( id: string, txId: string, ): CancelablePromiseGet detail of transaction to be signed / that was already signed and contains transactionId.
* @param id ID of transaction * @returns PendingTransaction OK * @throws ApiError */ public static getPendingTransactionToSign( id: string, ): CancelablePromiseDelete transaction to be signed. When deleting offchain transaction, linked withdrawal will be cancelled automatically.
* @param id ID of transaction * @param revert Defines whether fee should be reverted to account balance as well as amount. Defaults to true. Revert true would be typically used when withdrawal was not broadcast to blockchain. False is used usually for Ethereum ERC20 based currencies. * @returns void * @throws ApiError */ public static deletePendingTransactionToSign( id: string, revert: boolean = true, ): CancelablePromise