import { EndlessConfig } from '../api/endlessConfig.mjs'; import { TransactionResponse, AnyNumber, Block, GasEstimation, HexInput, PaginationArgs, PaginationArgsOfIndexer, WaitForTransactionOptions, CommittedTransactionResponse } from '../types/index.mjs'; import { PageableU64 } from '../types/indexer.mjs'; import '../utils/apiEndpoints.mjs'; import '../utils/const.mjs'; /** * This file contains the underlying implementations for exposed API surface in * the {@link api/transaction}. By moving the methods out into a separate file, * other namespaces and processes can access these methods without depending on the entire * transaction namespace and without having a dependency cycle error. */ declare function getTransactions(args: { endlessConfig: EndlessConfig; options?: PaginationArgs; }): Promise; declare function getGasPriceEstimation(args: { endlessConfig: EndlessConfig; }): Promise; declare function getTransactionByVersion(args: { endlessConfig: EndlessConfig; ledgerVersion: AnyNumber; }): Promise; declare function getTransactionByHash(args: { endlessConfig: EndlessConfig; transactionHash: HexInput; }): Promise; declare function isTransactionPending(args: { endlessConfig: EndlessConfig; transactionHash: HexInput; }): Promise; declare function longWaitForTransaction(args: { endlessConfig: EndlessConfig; transactionHash: HexInput; }): Promise; declare function waitForTransaction(args: { endlessConfig: EndlessConfig; transactionHash: HexInput; options?: WaitForTransactionOptions; }): Promise; /** * This error is used by `waitForTransaction` when waiting for a * transaction to time out or when the transaction response is undefined */ declare class WaitForTransactionError extends Error { readonly lastSubmittedTransaction: TransactionResponse | undefined; constructor(message: string, lastSubmittedTransaction: TransactionResponse | undefined); } /** * This error is used by `waitForTransaction` if `checkSuccess` is true. * See that function for more information. */ declare class FailedTransactionError extends Error { readonly transaction: TransactionResponse; constructor(message: string, transaction: TransactionResponse); } declare function getBlockByVersion(args: { endlessConfig: EndlessConfig; ledgerVersion: AnyNumber; options?: { withTransactions?: boolean; }; }): Promise; declare function getBlockByHeight(args: { endlessConfig: EndlessConfig; blockHeight: AnyNumber; options?: { withTransactions?: boolean; }; }): Promise; declare function getDailyTransactions(args: { endlessConfig: EndlessConfig; options?: { days?: AnyNumber; tz?: number; }; }): Promise; declare function getUserTransactions(args: { endlessConfig: EndlessConfig; options?: PaginationArgsOfIndexer; }): Promise; export { FailedTransactionError, WaitForTransactionError, getBlockByHeight, getBlockByVersion, getDailyTransactions, getGasPriceEstimation, getTransactionByHash, getTransactionByVersion, getTransactions, getUserTransactions, isTransactionPending, longWaitForTransaction, waitForTransaction };