import type { GetRequest } from './get-request.js'; import type { EtherscanResponse } from './types.js'; export declare function proxy(getRequest: GetRequest): { /** Returns the number of the most recent block (hex). */ eth_blockNumber(): Promise>; /** * Returns information about a block by block number. * @param tag - Block number tag, e.g. `'0x10d4f'` * @param fullTransactions - When true (default) returns full transaction objects, otherwise only hashes */ eth_getBlockByNumber(tag: string, fullTransactions?: boolean): Promise; /** * Returns information about an uncle by block number and index. * @param tag - Block number tag * @param index - Uncle index position */ eth_getUncleByBlockNumberAndIndex(tag: string, index: string): Promise; /** * Returns the number of transactions in a block matching the given block number (hex). * @param tag - Block number tag */ eth_getBlockTransactionCountByNumber(tag: string): Promise>; /** * Returns information about a transaction by hash. * @param txhash - Transaction hash */ eth_getTransactionByHash(txhash: string): Promise; /** * Returns information about a transaction by block number and index. * @param tag - Block number tag * @param index - Transaction index position */ eth_getTransactionByBlockNumberAndIndex(tag: string, index: string): Promise; /** * Returns the number of transactions sent from an address (hex). * @param address - Account address */ eth_getTransactionCount(address: string): Promise>; /** * Submits a pre-signed transaction for broadcast. Resolves with the tx hash. * @param hex - Serialized signed message */ eth_sendRawTransaction(hex: string): Promise>; /** * Returns the receipt of a transaction by hash. * @param txhash - Transaction hash */ eth_getTransactionReceipt(txhash: string): Promise; /** * Executes a new message call immediately without creating a transaction (hex). * @param to - Address to execute against * @param data - Hash of the method signature and encoded parameters * @param tag - Block number tag */ eth_call(to: string, data: string, tag: string): Promise>; /** * Returns code at a given address (hex). * @param address - Address to get code from * @param tag - Block number tag */ eth_getCode(address: string, tag: string): Promise>; /** * Returns the value from a storage position at a given address (hex). * @param address - Address to get storage from * @param position - Storage position * @param tag - Block number tag */ eth_getStorageAt(address: string, position: string, tag: string): Promise>; /** Returns the current price per gas in wei (hex). */ eth_gasPrice(): Promise>; /** * Estimates the gas needed for a transaction without adding it to the chain (hex). * @param to - Address to interact with * @param value - Value sent in the transaction * @param gasPrice - Gas price in wei * @param gas - Gas provided */ eth_estimateGas(to: string, value: string, gasPrice: string, gas: string): Promise>; };