Docs
Docs
Home
Getting Started
Agent Tooling
CLI
Supported Chains
Acala
Aptos
Arbitrum
Arc
Asset Hub
Astar
Avalanche
Base
Berachain
Bifrost
Binance Smart Chain
Bittensor
Blast
Boba Network
Bridge Hub
Celo
Centrifuge
Chiliz
Cronos
Enjin
Ethereum
Etherlink
Flow EVM Gateway
Gnosis
Hydration
Hyperliquid
Immutable
Ink
IoTeX
Kusama
Linea
LISK
Manta Atlantic
Manta Pacific
Mantle
MegaETH
Monad
Movement
Neuroweb
opBNB
Optimism
Plasma
Polkadot
Polygon
Pulsechain
Robinhood
Ronin
Scroll
Sonic
Starknet
Taiko
Tempo
Sui
TRON
Unichain
Viction
World Chain
XDC Network
XX Network
Zetachain
zkSync Era
Zora
Supported Chains

Starknet - Cairo-Powered Validity Rollup Documentation

Complete guide to Starknet integration with Dwellir RPC. Learn how to build on Cairo-powered Starknet, access JSON-RPC methods, and deploy scalable dApps with STARK proof security.

Starknet RPC endpoint: endpoint URLs, plans and pricing.

Starknet icon

Starknet RPC

With Dwellir, you get access to our global Starknet network which always routes your API requests to the nearest available location, ensuring low latency and the fastest speeds.

Get your API key

Starknet RPC plans and rate limits

  • Free plan: 20 responses per second, up to 100,000 responses a day.
  • Plans: $49/mo, $299/mo, $999/mo with 25M, 150M, and 500M included responses. Overages billed at $5/$3/$2 per million responses respectively.
  • Paid rate limits: 100 to 5,000 responses per second (bursts from 500 to 10,000), no daily limit.
  • Billing: 1 response = 1 API credit on every shared plan, over HTTPS or WebSocket (WSS) where Starknet supports it.

Details: Pricing · Rate limits · Authentication · Archive nodes

Why Build on Starknet?

Starknet is the leading validity rollup (zk-rollup) that executes Cairo smart contracts with STARK proof security, offering unparalleled scalability while maintaining Ethereum-grade security:

Revolutionary Cairo Performance

  • Native account abstraction - Every account is a programmable smart contract
  • Cairo VM execution - Provable computation with mathematical guarantees
  • Sub-second finality - Fast transaction confirmation with L1 security
  • 99%+ cost reduction compared to Ethereum mainnet

STARK Proof Security

  • Zero-knowledge proofs - Cryptographically secure state transitions
  • Ethereum settlement - Inherits L1 security with validity proof verification
  • Decentralized proving - Robust network with permissionless participation

Developer-First Ecosystem

  • Cairo language - Safe, powerful programming language for contracts
  • Rich tooling - starknet.js, starknet.py, Protostar, Scarb, and more
  • Growing DeFi - Leading protocols like Avnu, Ekubo, Nostra, JediSwap
  • Account abstraction native - Flexible wallet experiences out of the box

Quick Start with Starknet

Connect to Starknet in seconds with Dwellir's optimized endpoints:

Starknet iconStarknet RPC Endpoints
HTTPS
curl -sS -X POST https://api-starknet-mainnet.n.dwellir.com/<your-api-key> \  -H 'Content-Type: application/json' \  -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'

Installation & Setup

Network Information

ParameterValueDetails
Chain IDSN_MAIN0x534e5f4d41494e
Block Time~10 secondsSTARK proof batches
Native TokenETHFee token
Account ModelAA NativeSmart contract accounts

Network Details

ParameterValueDetails
Mainnet Chain ID0x534e5f4d41494e (SN_MAIN)
Testnet (Sepolia) Chain ID0x534e5f5345504f4c4941 (SN_SEPOLIA)
Fee TokensETH (primary), STRK (governance, future staking)
FinalityL2 confirmation (~10s), L1 finality (~1-4 hours)
TPS50+ current, 100+ roadmap with parallel execution

API Reference

starknet_blockHashAndNumber
starknet_blockNumber
starknet_call
starknet_chainId
starknet_estimateFee
starknet_estimateMessageFee
starknet_getBlockTransactionCount
starknet_getBlockWithReceipts
starknet_getBlockWithTxHashes
starknet_getBlockWithTxs
starknet_getClass
starknet_getClassAt
starknet_getClassHashAt
starknet_getEvents
starknet_getMessagesStatus
starknet_getNonce
starknet_getStateUpdate
starknet_getStorageAt
starknet_getStorageProof
starknet_getTransactionByBlockIdAndIndex
starknet_getTransactionByHash
starknet_getTransactionReceipt
starknet_getTransactionStatus
starknet_specVersion
starknet_syncing

Starknet implements its own JSON-RPC namespace (starknet_*) with Cairo-specific functionality. Access all Starknet methods with STARK proof security.

Common Integration Patterns

Account Management

TypeScript
import { Account, RpcProvider } from 'starknet';

const provider = new RpcProvider({
  nodeUrl: 'https://api-starknet-mainnet.n.dwellir.com/YOUR_API_KEY'
});

const account = new Account(provider, accountAddress, privateKey);
const nonce = await account.getNonce();

Token Operations

TypeScript
// Get token balance
const { result } = await provider.callContract({
  contractAddress: tokenAddress,
  entrypoint: 'balanceOf',
  calldata: [accountAddress]
});

Contract Calls

TypeScript
// Execute contract function
const call = {
  contractAddress: contractAddress,
  entrypoint: functionName,
  calldata: [param1, param2]
};

const { transaction_hash } = await account.execute(call);

Resources & Tools

Official Resources

  • Starknet Documentation
  • Cairo Language Guide
  • Starknet JSON-RPC Spec

Block Explorers

  • Voyager Explorer - Comprehensive block explorer
  • Starkscan - Alternative explorer with rich features

Developer Tools

  • Starknet.js - TypeScript SDK
  • Starknet.py - Python SDK
  • Scarb - Cairo package manager
  • Starknet Foundry - Testing framework
  • Protostar - Cairo development toolchain

Ecosystem Projects

  • Avnu - DEX aggregator
  • Ekubo Protocol - Concentrated liquidity AMM
  • Nostra - Money market protocol

Need Help?

  • Email: support@dwellir.com
  • Docs: You're here!
  • Dashboard: dashboard.dwellir.com
  • Community: Starknet Discord

Related Reading

  • Top 6 Starknet RPC Providers

Start building on Starknet with Cairo-powered smart contracts using Dwellir's enterprise-grade RPC infrastructure. Get your API key

eth_coinbase

Check the legacy eth_coinbase compatibility method on Sonic. Public endpoints may return an address, `unimplemented`, or another unsupported-method response depending on the client.

starknet_blockHashAndNumber - Get the most...

Get the most recent accepted block hash and number

On this page

Starknet RPC plans and rate limitsWhy Build on Starknet?Revolutionary Cairo PerformanceSTARK Proof SecurityDeveloper-First EcosystemQuick Start with StarknetInstallation & SetupNetwork InformationNetwork DetailsAPI ReferenceCommon Integration PatternsAccount ManagementToken OperationsContract CallsResources & ToolsOfficial ResourcesBlock ExplorersDeveloper ToolsEcosystem ProjectsNeed Help?Related Reading