For AI agents: an LLM-friendly Markdown version of every page is available by appending .md to its URL or by sending an Accept: text/markdown request header. The full documentation index is at https://www.ankr.com/docs/llms.txt
Skip to main content

Optimism


Optimism API is available on Web3 API platform.

Optimism is a fast, stable, and scalable L2 blockchain built by Ethereum developers, for Ethereum developers. Built as a minimal extension to existing Ethereum software, Optimism’s EVM-equivalent architecture scales your Ethereum apps without surprises. If it works on Ethereum, it works on Optimism at a fraction of the cost.

In order for your Web3 application to interact with Optimism — either by reading blockchain data or sending transactions to the network — it must connect to an Optimism node. Developers interact with the blockchain using the methods provided by the API.

The API interaction follows the JSON-RPC which is a stateless, light-weight remote procedure call (RPC) protocol. It defines several data structures and the rules around their processing. It is transport agnostic in that the concepts can be used within the same process, over sockets, over HTTP, or in other message-passing environments. It uses JSON (RFC 4627) as data format.

For Optimism, we support the following methods:


EVM JSON-RPC methods



Flashblocks methods

Flashblocks is a core Optimism feature that provides preconfirmation of the upcoming block's transaction ordering (~250 milliseconds) before the full block is sealed (~2 seconds).

This enables ultra-fast transaction feedback, allowing applications to deliver instant and interactive user experiences. Flashblocks are particularly valuable for high-frequency trading platforms, real-time games, live dashboards, and other latency-sensitive use cases where even a brief delay feels disruptive.

Flashblocks are integrated directly into Optimism’s block production process, therefore developers gain the advantages of low-latency feedback without compromising security or reliability. The result is a seamless foundation for applications that demand speed, responsiveness, and trust.

The following RPC methods can return Flashblocks specific data:


Methods

web3, net, eth

eth