Explore Optimism, a Layer 2 scaling solution for Ethereum. Build fast and low-cost decentralized applications using its RPC gateway.
The Optimism RPC documentation provides developers with a comprehensive guide to interact with Optimism, a Layer 2 scaling solution for Ethereum. Optimism uses optimistic rollups to achieve low-cost and fast transactions while maintaining the security of the Ethereum mainnet. The documentation includes key API endpoints for querying blockchain data, managing transactions, and interacting with smart contracts. Developers can build scalable decentralized applications (dApps) with enhanced performance and lower transaction costs using Optimism’s RPC gateway.
– Related: 📚 Supported Blockchains • 🌐 RPC Nodes → Optimism • 🔗 Official Optimism Website
RPC Gateway for Optimism blockchain
Optimism RPC networks
Connect to Optimism and Fetch the Latest Block
This widget lets you instantly query the latest block height (or equivalent) for Optimism using a chain-specific RPC method like eth_blockNumber, getblockcount, or getBlockHeight. Useful for connectivity checks, uptime monitoring, or API testing.
Retrieve Optimism Node Status or Client Version via RPC
Use this pre-configured request to get version or status information for your connected Optimism node. Whether it's web3_clientVersion, getblockchaininfo, or chain-specific endpoints, the method is optimized for each supported blockchain.
Test Optimism RPC Methods in Postman
Explore and test Optimism blockchain methods instantly using our pre-configured Postman collection. Perfect for developers who want to experiment with Optimism RPC endpoints, validate API responses, or integrate Optimism into their applications.
How to use the Optimism Postman Collection
- Get your API key: Visit Tatum Dashboard to obtain your free API key
- Import the collection: Click the "Run in Postman" button below to import the Optimism collection
- Configure your environment: Update the
gateway-api-keyvariable in the Tatum Gateway environment - Start testing: Execute any Optimism RPC method and see real-time responses
Available Optimism interfaces and methods
Each Optimism network and interface below exposes its own set of RPC methods, listed live from Tatum's RPC Gateway. Query these endpoints for any interface to explore what it supports:
/_methods– machine-readable list of interfaces and methods/llms.txt– human- and AI-readable documentation context
Optimism Mainnet
JSON-RPC
Base URL: https://optimism-mainnet.gateway.tatum.io
Discovery: /_methods · /llms.txt
debug_getBadBlocksdebug_storageRangeAtdebug_traceBlockdebug_traceBlockByHashdebug_traceBlockByNumberdebug_traceCalldebug_traceTransactioneth_blockNumbereth_calleth_callManyeth_estimateGaseth_feeHistoryeth_gasPriceeth_getBalanceeth_getBlockByHasheth_getBlockByNumbereth_getBlockReceiptseth_getBlockTransactionCountByHasheth_getBlockTransactionCountByNumbereth_getCodeeth_getLogseth_getProofeth_getStorageAteth_getTransactionByBlockHashAndIndexeth_getTransactionByBlockNumberAndIndexeth_getTransactionByHasheth_getTransactionCounteth_getTransactionReceipteth_getUncleByBlockHashAndIndexeth_getUncleByBlockNumberAndIndexeth_getUncleCountByBlockHasheth_getUncleCountByBlockNumbereth_chainIdeth_maxPriorityFeePerGaseth_sendRawTransactioneth_signTypedDataeth_signTypedData_v3eth_syncingnet_peerCountnet_versiontrace_blocktrace_calltrace_callManytrace_rawTransactiontrace_replayBlockTransactionstrace_replayTransactiontrace_transactiontxpool_contenttxpool_inspecttxpool_statusweb3_clientVersion
Optimism Testnet
JSON-RPC
Base URL: https://optimism-testnet.gateway.tatum.io
Discovery: /_methods · /llms.txt
debug_getBadBlocksdebug_storageRangeAtdebug_traceBlockdebug_traceBlockByHashdebug_traceBlockByNumberdebug_traceCalldebug_traceTransactioneth_blockNumbereth_calleth_callManyeth_estimateGaseth_feeHistoryeth_gasPriceeth_getBalanceeth_getBlockByHasheth_getBlockByNumbereth_getBlockReceiptseth_getBlockTransactionCountByHasheth_getBlockTransactionCountByNumbereth_getCodeeth_getLogseth_getProofeth_getStorageAteth_getTransactionByBlockHashAndIndexeth_getTransactionByBlockNumberAndIndexeth_getTransactionByHasheth_getTransactionCounteth_getTransactionReceipteth_getUncleByBlockHashAndIndexeth_getUncleByBlockNumberAndIndexeth_getUncleCountByBlockHasheth_getUncleCountByBlockNumbereth_chainIdeth_maxPriorityFeePerGaseth_sendRawTransactioneth_signTypedDataeth_signTypedData_v3eth_syncingnet_peerCountnet_versiontrace_blocktrace_calltrace_callManytrace_rawTransactiontrace_replayBlockTransactionstrace_replayTransactiontrace_transactiontxpool_contenttxpool_inspecttxpool_statusweb3_clientVersion
Method unavailable?If you need a method we don't support yet, please contact our support.
We'd be happy to assist.