> ## Documentation Index
> Fetch the complete documentation index at: https://docs.moralis.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> Explore Optimism JSON-RPC methods

## Introduction

Optimism is a Layer 2 scaling solution built on Ethereum that uses optimistic rollups to bundle transactions, providing faster and cheaper transactions while retaining the security of Ethereum. Optimism focuses on scalability, low gas fees, and maintaining compatibility with the Ethereum ecosystem, making it an ideal platform for decentralized applications (dApps), decentralized finance (DeFi), and NFTs.

## Supported Networks

The Optimism RPC API is available for the following networks:

1. **Optimism Mainnet**
2. **Optimism Sepolia Testnet**

## Network Details

| **Network**          | **Chain ID**        | **Path Parameter** |
| :------------------- | :------------------ | :----------------- |
| **Optimism Mainnet** | 0xa (10)            | `optimism`         |
| **Optimism Sepolia** | 0xaa37dc (11155420) | `optimism-sepolia` |

## Supported RPC Methods

* [eth\_blockNumber](/rpc-nodes/optimism/eth-blockNumber)
* [eth\_call](/rpc-nodes/optimism/eth-call)
* [eth\_chainId](/rpc-nodes/optimism/eth-chain-id)
* [eth\_createAccessList](/rpc-nodes/optimism/eth-create-access-list)
* [eth\_estimateGas](/rpc-nodes/optimism/eth-estimate-gas)
* [eth\_feeHistory](/rpc-nodes/optimism/eth-fee-history)
* [eth\_gasPrice](/rpc-nodes/optimism/eth-gas-price)
* [eth\_getBalance](/rpc-nodes/optimism/eth-get-balance)
* [eth\_getBlockByHash](/rpc-nodes/optimism/eth-get-block-by-hash)
* [eth\_getBlockByNumber](/rpc-nodes/optimism/eth-get-block-by-number)
* [eth\_getBlockTransactionCountByHash](/rpc-nodes/optimism/eth-get-block-transaction-count-by-hash)
* [eth\_getBlockTransactionCountByNumber](/rpc-nodes/optimism/eth-get-block-transaction-count-by-number)
* [eth\_getBlockReceipts](/rpc-nodes/optimism/eth-get-block-receipts)
* [eth\_getCode](/rpc-nodes/optimism/eth-get-code)
* [eth\_getLogs](/streams/api-reference/history/get-logs)
* [eth\_getProof](/rpc-nodes/optimism/eth-get-proof)
* [eth\_getStorageAt](/rpc-nodes/optimism/eth-get-storage-at)
* [eth\_getTransactionByHash](/rpc-nodes/optimism/eth-get-transaction-by-hash)
* [eth\_getTransactionByBlockHashAndIndex](/rpc-nodes/optimism/eth-get-transaction-by-block-hash-and-index)
* [eth\_getTransactionByBlockNumberAndIndex](/rpc-nodes/optimism/eth-get-transaction-by-block-number-and-index)
* [eth\_getTransactionCount](/rpc-nodes/optimism/eth-get-transaction-count)
* [eth\_getTransactionReceipt](/rpc-nodes/optimism/eth-get-transaction-receipt)
* [eth\_getUncleByBlockHashAndIndex](/rpc-nodes/optimism/eth-get-uncle-by-block-hash-and-index)
* [eth\_getUncleByBlockNumberAndIndex](/rpc-nodes/optimism/eth-get-uncle-by-block-number-and-index)
* [eth\_getUncleCountByBlockHash](/rpc-nodes/optimism/eth-get-uncle-count-by-block-hash)
* [eth\_getUncleCountByBlockNumber](/rpc-nodes/optimism/eth-get-uncle-count-by-block-number)
* [eth\_maxPriorityFeePerGas](/rpc-nodes/optimism/eth-max-priority-fee-per-gas)
* [eth\_sendRawTransaction](/rpc-nodes/optimism/eth-send-raw-transaction)
