Logo

Starknet RPC Endpoints & API Access | OnFinality

It is the secure scaling technology bringing Ethereum’s benefits to the world.

Connect to Starknet in seconds with OnFinality RPC endpoints, request analytics, scalable rate limits, and 99.99% uptime for production Web3 apps.

It is the secure scaling technology bringing Ethereum’s benefits to the world.

Starknet RPC Endpoint

The below example uses the public API endpoint*. This endpoint is only suitable for testing. To avoid rate limiting and service interruption, sign up now to get your own API key.
curl -H 'content-type:application/json' -d '{"id": 1, "jsonrpc": "2.0", "method": "starknet_blockNumber"}' 'https://starknet.api.onfinality.io/public'
https://starknet.api.onfinality.io/public
wss://starknet.api.onfinality.io/public-ws

* The public endpoint is rate limited

RPC API Service

RPC API Features

Archive

Starknet RPC Endpoints on OnFinality

OnFinality provides managed Starknet RPC endpoints and API access for developers building on Starknet, a permissionless Validity-Rollup (ZK-rollup) for Ethereum. With OnFinality, you can connect to Starknet mainnet without running your own node, using authenticated endpoints designed for production workloads.

What is Starknet?

Starknet is a Layer 2 scaling solution for Ethereum that uses STARK cryptographic proofs to achieve high throughput, low transaction costs, and Ethereum-level security. It supports general computation through its native Cairo programming language, enabling complex dApps, DeFi protocols, and on-chain games. Starknet's native account abstraction and recursive proofs make it a powerful platform for scalable Web3 applications.

Why Use OnFinality for Starknet RPC?

Running a Starknet full node requires significant hardware and maintenance effort. OnFinality eliminates this overhead by offering:

  • Managed RPC endpoints: HTTP and WebSocket access to Starknet mainnet.
  • Archive data support: Access historical state for analytics and backends.
  • Observability: Request analytics and usage metrics for supported plans.
  • Scalable infrastructure: From shared endpoints to dedicated nodes where supported.

Common Use Cases for Starknet RPC

Developers use Starknet RPC endpoints for:

  • Wallet integrations: Query balances, send transactions, and interact with smart contracts.
  • dApp backends: Read on-chain data and submit user transactions.
  • DeFi products: Monitor liquidity, execute swaps, and manage positions.
  • Analytics tools: Index blockchain data for dashboards and reporting.
  • Games and NFTs: Fetch metadata, process game logic, and handle asset transfers.

How to Connect to Starknet with OnFinality

  1. Create or sign in to your OnFinality account.
  2. Select Starknet from the supported networks list.
  3. Create an API endpoint (or deploy a dedicated node if available).
  4. Test the endpoint using the starknet_blockNumber method.
  5. Monitor request usage, errors, and limits before moving critical traffic.

Starknet RPC Key Facts

  • Network: Mainnet
  • Protocol: JSON-RPC over HTTP and WebSocket
  • Advanced access: Archive data available
  • Typical users: Production dApps, wallets, DeFi, analytics, games, bots

Comparison: Public vs OnFinality Starknet RPC

Public Starknet RPC endpoints are suitable for lightweight testing but often lack reliability and visibility for production use. OnFinality provides authenticated endpoints with clearer limits, request analytics, and a path to higher capacity.

RPC API SERVICE
Reliable RPC endpoints with high rate limits
Powerful RPC request analytics
99.99% uptime
Connect via HTTPS or websocket
Decentralised servers hosted globally
Full archive access at no extra cost
PRICING

Calculate Your Costs

Only pay for what you need.

Million Standard Requests
0100M200M300M400M
Total Cost
$49/ month

Recommended Plan: GROWTH

Continue with this plan

Latest Starknet Updates!

OnFinality Supports Starknet with High-Speed RPC Endpoints

Feb 24,2025

OnFinality Supports Starknet with High-Speed RPC Endpoints

OnFinality provides easy to use, reliable and scalable API endpoints for builders to deploy and run their dApps on Starknet quickly and easily!

Never Worry about Infrastructure Again

OnFinality takes away the heavy lifting of DevOps so you can build smarter and faster.

Get Started