import { NetworkId } from '../networks/index.js'; import type { PortalNetwork } from './client.js'; import type { RpcTx } from './types.js'; import type { BeaconLightClientNetwork, HistoryNetwork, StateNetwork } from '../networks/index.js'; import type { Block } from '@ethereumjs/block'; export declare class ETH { history?: HistoryNetwork; state?: StateNetwork; beacon?: BeaconLightClientNetwork; activeNetworks: NetworkId[]; constructor(portal: PortalNetwork); /** * Implements logic required for `eth_getBalance` JSON-RPC call * @param address address to be looked up * @param blockNumber block number from which balance should be returned * @returns returns the ETH balance of an address at the specified block number or undefined if not available */ ethGetBalance: (address: string, blockNumber: bigint) => Promise; /** * Implements logic required for `eth_getBlockByNumber` JSON-RPC call * @param blockNumber number of block sought, `latest`, `finalized` * @param includeTransactions whether to include transactions with the block * @returns returns an @ethereumjs/block formatted `Block` object */ getBlockByNumber: (blockNumber: number | bigint | 'latest' | 'finalized', includeTransactions: boolean) => Promise; /** * Implements functionality needed for making `eth_call` RPC calls over Portal Network data * @param tx an `RpcTx` object matching the `eth_call` input spec * @param blockNumber a block number as a `bigint` * @returns An execution result as defined by the `eth_call` spec */ ethCall: (tx: RpcTx, blockNumber: bigint) => Promise; private networkCheck; } //# sourceMappingURL=eth.d.ts.map