OP Mainnet is an optimistic rollup Layer 2 built with the OP Stack that settles to Ethereum, uses ETH for gas, and is EVM-equivalent.
OP Mainnet, developed by Optimism, posts transaction data to Ethereum and secures withdrawals with permissionless fault proofs, which let anyone challenge an invalid state claim during the challenge period. Its execution layer is EVM-equivalent, so Ethereum contracts, wallets, and libraries work unchanged over the standard Ethereum JSON-RPC API. ETH pays transaction fees, which combine an L2 execution fee with an L1 data fee for publishing data to Ethereum.
Plans, pricing and dedicated nodes: Optimism RPC nodes on tatum.io. Network tiers: Supported Blockchains. Chain documentation: Optimism official website.
Optimism RPC at a glance
| Networks | Mainnet and Testnet |
|---|---|
| Chain ID | Mainnet 10 (0xa) · Testnet 11155420 (0xaa37dc) |
| Interfaces | JSON-RPC |
| Supported methods | 53 · JSON-RPC methods |
| Debug and trace methods | Available on Mainnet and Testnet |
| Native token | ETH |
| Authentication | API key in the x-api-key header, see Authentication |
Optimism RPC endpoints
Optimism RPC networks
Get the latest Optimism block
Sends eth_blockNumber to Optimism Mainnet through Tatum RPC Gateway and shows the latest block number.
Get the Optimism node version
Sends web3_clientVersion to Optimism Mainnet through Tatum RPC Gateway and shows the node version and status.
Test Optimism RPC methods in Postman
The Optimism Postman collection has a ready request for the supported methods. Import it, set the gateway-api-key variable of the Tatum Gateway environment to your API key from Tatum Dashboard, and send any request.
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_chainIdeth_estimateGaseth_feeHistoryeth_gasPriceeth_getBalanceeth_getBlockByHasheth_getBlockByNumbereth_getBlockReceiptseth_getBlockTransactionCountByHasheth_getBlockTransactionCountByNumbereth_getCodeeth_getLogseth_getProofeth_getStorageAteth_getTransactionByBlockHashAndIndexeth_getTransactionByBlockNumberAndIndexeth_getTransactionByHasheth_getTransactionCounteth_getTransactionReceipteth_getUncleByBlockHashAndIndexeth_getUncleByBlockNumberAndIndexeth_getUncleCountByBlockHasheth_getUncleCountByBlockNumbereth_maxPriorityFeePerGaseth_sendRawTransactioneth_signTypedDataeth_signTypedData_v3eth_simulateV1eth_syncingnet_listeningnet_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_chainIdeth_estimateGaseth_feeHistoryeth_gasPriceeth_getBalanceeth_getBlockByHasheth_getBlockByNumbereth_getBlockReceiptseth_getBlockTransactionCountByHasheth_getBlockTransactionCountByNumbereth_getCodeeth_getLogseth_getProofeth_getStorageAteth_getTransactionByBlockHashAndIndexeth_getTransactionByBlockNumberAndIndexeth_getTransactionByHasheth_getTransactionCounteth_getTransactionReceipteth_getUncleByBlockHashAndIndexeth_getUncleByBlockNumberAndIndexeth_getUncleCountByBlockHasheth_getUncleCountByBlockNumbereth_maxPriorityFeePerGaseth_sendRawTransactioneth_signTypedDataeth_signTypedData_v3eth_simulateV1eth_syncingnet_listeningnet_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.
Testing without an API key? Free public endpoints are listed on Optimism RPC at FREERPC.com.