import { ApiClient } from './api-client'; import { BlockParams, TransactionParams, PaginationParams, SendTransactionParams, SendTransactionBatchParams } from '../types'; export interface Transaction { hash: string; block_height: number; sequence_index: number; account_index: number; nonce: number; type: string | number; info?: string; event_info?: string; data?: any; status: number | 'pending' | 'confirmed' | 'failed'; transaction_index?: number; l1_address?: string; expire_at?: number; queued_at?: number; committed_at?: number; verified_at?: number; executed_at?: number; parent_hash?: string; created_at?: string; updated_at?: string; code?: number; message?: string; } export interface Block { height: number; hash: string; parent_hash: string; timestamp: number; transactions_count: number; created_at: string; } export interface NextNonce { account_index: number; api_key_index: number; nonce: number; } export interface TxHash { hash?: string; tx_hash?: string; code?: number; message?: string; predicted_execution_time_ms?: number; } export interface TxHashes { hashes?: string[]; tx_hash?: string[]; code?: number; message?: string; predicted_execution_time_ms?: number; } export declare class TransactionApi { private client; constructor(client: ApiClient); getBlock(params: BlockParams): Promise; getBlocks(params?: PaginationParams): Promise; getCurrentHeight(): Promise<{ height: number; }>; getTransaction(params: TransactionParams): Promise; getTransactions(params?: PaginationParams): Promise; getBlockTransactions(params: BlockParams & PaginationParams): Promise; getAccountTransactions(accountIndex: number, params: PaginationParams & { auth: string; }): Promise; getAccountPendingTransactions(accountIndex: number, params?: PaginationParams): Promise; getPendingTransactions(params?: PaginationParams): Promise; getNextNonce(accountIndex: number, apiKeyIndex: number): Promise; sendTransaction(params: SendTransactionParams): Promise; sendTx(txType: number, txInfo: string): Promise; sendTxWithIndices(txType: number, txInfo: string, accountIndex: number, apiKeyIndex: number): Promise; sendTxJson(txType: number, txInfo: string, accountIndex: number, apiKeyIndex: number): Promise; sendTransactionBatch(params: SendTransactionBatchParams): Promise; getTransactionFromL1TxHash(l1TxHash: string): Promise; getDepositHistory(accountIndex: number, params?: PaginationParams): Promise; getWithdrawHistory(accountIndex: number, params?: PaginationParams): Promise; } //# sourceMappingURL=transaction-api.d.ts.map