import type { EIP1193RequestFn, EIP1474Methods } from "viem"; import type { Chain } from "../chains/types.js"; import type { ThirdwebClient } from "../client/client.js"; type RPCOptions = Readonly<{ client: ThirdwebClient; chain: Chain; config?: { maxBatchSize?: number; batchTimeoutMs?: number; requestTimeoutMs?: number; }; }>; /** * Returns an RPC request that can be used to make JSON-RPC requests. * @param options - The RPC options. * @returns The RPC request function. * @rpc * @example * ```ts * import { createThirdwebClient } from "thirdweb"; * import { getRpcClient } from "thirdweb/rpc"; * import { ethereum } from "thirdweb/chains"; * const client = createThirdwebClient({ clientId: "..." }); * const rpcRequest = getRpcClient({ client, chain: ethereum, }); * const blockNumber = await rpcRequest({ * method: "eth_blockNumber", * }); * ``` */ export declare function getRpcClient(options: RPCOptions): EIP1193RequestFn; export {}; //# sourceMappingURL=rpc.d.ts.map