import TransactionInfo from "../../blockchain/transaction/transactionInfo"; import { AccountType } from "../../blockchain/types"; import { Log } from "./types"; import { EventLog } from "../../blockchain/transaction/api"; import Transaction from "../../blockchain/transaction/transaction"; import ContractAbi from "../../smartcontract/contractAbi"; import ContractApi from "../../smartcontract/contractApi"; export default class HttpApi { private readonly url; private contractLoader; constructor(url?: string); getUrl(): string; /** * Retrieve TransactionInfo for the given address * * @param txHash {string} Transaction hash */ findTransactionInfoByHash(txHash: string): Promise; /** * Retrieve Transaction for the given address * * @param txHash {string} Transaction hash */ findTransactionByHash(txHash: string): Promise; /** * Retrieve smart contract input data from a transaction * @param transaction */ getSmartContractInputFromTransaction(transaction: Transaction): Promise<{ name: string; params: any; }>; /** * Retrieves the current block */ getNowBlock(): Promise; /** * Retrieves the current block */ getBlockByNum(num: number): Promise; /** * Retrieves the current block */ getBlockRange(from: number, to: number): Promise; /** * Parse log */ parseLog(log: Log[]): Promise; findTransactionsFromAddress(address: string): import("rxjs").Observable<{}>; /** * Retrieve a contract * * @param address */ getContractAbi(address: string): Promise; /** * Retrieve a contract * * @param address */ getContract(address: string): Promise; /** * Broadcast transaction */ broadcastTransaction(transaction: any): Promise; getAccountType(address: string): Promise; }