UNPKG

@tatumio/tatum-v1

Version:

Tatum API client allows browsers and Node.js clients to interact with Tatum API.

35 lines (34 loc) 1.93 kB
import BigNumber from 'bignumber.js'; import { EstimateGasEth, EthBlock, EthEstimateGas, EthTx, TransactionHash } from '../model'; /** * For more details, see <a href="https://apidoc.tatum.io/#operation/XdcBroadcast" target="_blank">Tatum API documentation</a> */ export declare const xdcBroadcast: (txData: string, signatureId?: string | undefined) => Promise<TransactionHash>; /** * For more details, see <a href="https://apidoc.tatum.io/#operation/XdcGetTransactionCount" target="_blank">Tatum API documentation</a> */ export declare const xdcGetTransactionsCount: (address: string) => Promise<number>; /** * For more details, see <a href="https://apidoc.tatum.io/#operation/XdcGetCurrentBlock" target="_blank">Tatum API documentation</a> */ export declare const xdcGetCurrentBlock: () => Promise<number>; /** * For more details, see <a href="https://apidoc.tatum.io/#operation/XdcGetBlock" target="_blank">Tatum API documentation</a> */ export declare const xdcGetBlock: (hash: string) => Promise<EthBlock>; /** * For more details, see <a href="https://apidoc.tatum.io/#operation/XdcGetBalance" target="_blank">Tatum API documentation</a> */ export declare const xdcGetAccountBalance: (address: string) => Promise<BigNumber>; /** * For more details, see <a href="https://apidoc.tatum.io/#operation/XdcErc20GetBalance" target="_blank">Tatum API documentation</a> */ export declare const xdcGetAccountErc20Balance: (address: string, contractAddress: string) => Promise<number>; /** * For more details, see <a href="https://apidoc.tatum.io/#operation/XdcGetTransaction" target="_blank">Tatum API documentation</a> */ export declare const xdcGetTransaction: (hash: string) => Promise<EthTx>; /** * For more details, see <a href="https://apidoc.tatum.io/#operation/XdcEstimateGas" target="_blank">Tatum API documentation</a> */ export declare const xdcEstimateGas: (body: EstimateGasEth) => Promise<EthEstimateGas>;