EVM JSON-RPC Endpoints

Complete reference for Ethereum-compatible JSON-RPC API endpoints supported by Citrea. These endpoints provide compatibility with existing EVM tooling and libraries.

Base URLs

  • Local node: http://0.0.0.0:8080

  • Public Testnet: https://rpc.testnet.citrea.xyz

  • Alternative RPC Providers: Check BlastAPI as an alternative RPC service with generous free limits & better rate limits for Citrea Testnet.


Supported JSON-RPC Methods

Web3 Methods

Net Methods

Ethereum Methods

Synchronization & Status

Gas & Fees

  • eth_gasPrice - Returns current gas price estimate

  • eth_feeHistory - Returns historical base fees and reward percentiles (EIP-1559)

  • eth_maxPriorityFeePerGas - Returns suggested priority fee (tip) per gas

  • eth_maxFeePerGas - Returns estimated maximum fee per gas

    • curl -H "Content-type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_maxFeePerGas","params":[],"id":1}' https://rpc.testnet.citrea.xyz | jq .

Account & Balance

Block Information

Transaction Methods

Call & Execution

  • eth_call - Executes a read-only call

  • eth_estimateGas - Returns gas estimate for a transaction

    • Note: eth_estimateGas carries a tiny overhead for the L1 fee costs. For a more precise estimation that separates L1 and L2 costs, please use eth_estimateDiffSize (Citrea-specific).

Logs

State Proofs & Access Lists

Bulk Operations

  • eth_getBlockReceipts - Returns all transaction receipts for a block

    • Note: There are extra fields in some objects of the response, such as l1FeeRate and l1DiffSize.

Citrea-Specific Extensions

Debug Endpoints

Subscription Methods (WebSocket only)


Notes

  • Almost all methods follow the standard Ethereum JSON-RPC specification formats (see notes above)

  • You can use WebSocket connections for subscription methods (eth_subscribe/eth_unsubscribe) on your full node

  • You can use eth_getLogs for log filtering instead of filter-based methods

  • Please visit Citrea-Specific RPC Documentation for Citrea-specific endpoints

Last updated

Was this helpful?