/* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { CancelablePromise } from '../core/CancelablePromise'; import { request as __request } from '../core/request'; export class BlockchainUtilsService { /** * Get contract address from transaction *
Get smart contract address from deploy transaction.
* @param chain Blockchain to work with * @param hash Transaction hash * @returns any OK * @throws ApiError */ public static scGetContractAddress( chain: 'ETH' | 'ONE' | 'CELO' | 'TRON' | 'MATIC' | 'BSC', hash: string, ): CancelablePromise<{ /** * Address of the smart contract. */ contractAddress?: string; }> { return __request({ method: 'GET', path: `/v3/blockchain/sc/address/${chain}/${hash}`, errors: { 400: `Bad Request. Validation failed for the given object in the HTTP Body or Request parameters.`, 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.`, }, }); } /** * Estimate block height based on time *Get estimated block height at given time. This is estimation, not an exact block height.
* Supported blockchains:
*