文档
Optimism
Optimism JSON-RPC API documentation on TheRPC — methods, guides, and SDK examples.
Getting started
Quick StartGet an API key and make your first OP Mainnet JSON-RPC call with curl, JavaScript, and Python in minutes on TheRPC.
AuthenticationHow to obtain, use, and secure a TheRPC API key for OP Mainnet requests, including Bearer header placement, environment variable setup, and error handling.
Rate LimitsHow TheRPC rate-limits OP Mainnet API requests, what the error responses look like, and how to handle them with retries, batching, caching, and WebSocket.
API OverviewTechnical overview of TheRPC's OP Mainnet JSON-RPC 2.0 API: HTTP and WebSocket endpoints, request/response formats, auth, method categories, and error codes.
FAQFrequently asked questions about the OP Mainnet API on TheRPC — authentication, rate limits, error codes, transaction tracking, reorgs, and performance.
Basic OperationsPerform the most common OP Mainnet operations via TheRPC: check ETH balances, query transactions and receipts, read blocks, and call smart contracts.
All MethodsReference of every supported OP Mainnet JSON-RPC method on TheRPC across the eth_, debug_, trace_, net_, txpool_, and web3_ namespaces with CU costs.