import { type EIP1193RequestFn, type EIP1474Methods, type GetBlockReturnType, type Hash } from "viem"; type GetBlockByHashParams = { /** Whether or not to include transaction data in the response. */ includeTransactions?: TIncludeTransactions; } & { /** Hash of the block. */ blockHash: Hash; }; /** * Retrieves a block by its hash. * @param request - The EIP1193 request function. * @param params - The parameters for the block retrieval. * @returns A promise that resolves to the retrieved block. * @throws An error if the block is not found. * @rpc * @example * ```ts * import { getRpcClient, eth_getBlockByHash } from "thirdweb/rpc"; * const rpcRequest = getRpcClient({ client, chain }); * const block = await eth_getBlockByHash(rpcRequest, { * blockHash: "0x...", * includeTransactions: true, * }); * ``` */ export declare function eth_getBlockByHash(request: EIP1193RequestFn, params: GetBlockByHashParams): Promise>; export {}; //# sourceMappingURL=eth_getBlockByHash.d.ts.map