Chainstack GEN 2.0 đã chính thức ra mắt: độ trễ thấp hơn cho Solana, Ethereum, Base và mọi chuỗi trên Global Nodes. Xem những tính năng mới
  • Đại lý
  • Giá cả

Starknet RPC endpoints for Cairo apps and DeFi

Read Cairo contract state, follow events, and send account transactions with reliable, high-performance Starknet RPC infrastructure.

Starknet
https://starknet-mainnet.core.chainstack.com/YOUR_ENDPOINT_ID
Tạo điểm cuối
Widget trang chủ - Biểu tượng ngôi sao
get mcp.chainstack.com, deploy Starknet mainnet RPC node and give me the HTTPS endpoint
Hãy thử tại Codex Claude
ThorFiMảnh đạnRFOXOdosTradingViewRippleVòng trònPendleVí TrustBinanceGoldskyCertiKBlockpourNumioKẻ cướpNexoCoinGeckoUniDexVaiVLaunchNgười lao độngZapperBitgetVí TrustAoriBạcKaikoQuantstamp

Fast Starknet RPC, right where you need it

Toàn cầu Node

Geo-balanced RPCBuilt for Cairo apps

Connect to Starknet mainnet or Sepolia through one geo-balanced endpoint. Read contract state, follow native events, and submit account transactions without running your own Pathfinder node.

Hình minh họa về mạng lưới blockchain toàn cầu node

Your full development stack for Starknet

Query Cairo contract state, access historical data, inspect native transaction traces, and scale Starknet RPC workloads.

Biểu tượng “ node ” không giới hạn

Không giới hạn Node

Mở rộng quy mô các khối lượng công việc RPC có khối lượng lớn với hiệu suất ổn định, số lượng yêu cầu không giới hạn trong gói dịch vụ “ RPS ” và chi phí hàng tháng có thể dự đoán được.

25 yêu cầu / giây
$ 149 /tháng
25100250500

Build and scale with reliable Starknet RPC

Trang chủ - Biểu tượng cơ sở hạ tầng 1 - Logo

Build Cairo DeFi applications

Read pool and lending-market state with starknet_call, estimate transaction fees, and follow contract events. Connect trading interfaces and DeFi backends with native Starknet APIs.

Explore Starknet APIs
Trang chủ - Biểu tượng cơ sở hạ tầng 2 - Logo

Power smart wallets

Build around Starknet’s native account abstraction. Read account nonces, estimate fees, and submit account transactions with Starknet.js or Starknet.py.

Explore Starknet tooling
Trang chủ - Biểu tượng cơ sở hạ tầng 3 - Logo

Index events and historical state

Retrieve paginated contract events with starknet_getEvents. Backfill blocks, transactions, and historical contract state for portfolio reporting, analytics, and reconciliation.

Explore Starknet methods
Trang chủ - Biểu tượng cơ sở hạ tầng 4 - Logo

Simulate transactions before submission

Inspect transaction execution and resource usage with starknet_simulateTransactions. Diagnose failures and estimate fees before broadcasting a signed account transaction.

Explore transaction simulation
Trang chủ - Biểu tượng Infra Icon 5

Build BTC-backed asset applications

Read token contract state, index transfer events, and track transaction receipts for BTC-backed assets on Starknet. Connect portfolio views, lending dashboards, and DeFi applications.

Get a Starknet RPC endpoint
Hơn 10 tỷlượt gọi API hàng ngàytrên Chainstack
Hơn 10 trung tâm dữ liệu củaChainstack trên toàn thế giới
Truy cập dịch vụ hỗ trợ 24/7
Thời gian hoạt động trên 99,99%

Dedicated Starknet RPC for enterprise teams

Run Cairo applications, wallet backends, and indexers on isolated compute and storage. Deploy Pathfinder nodes on Starknet mainnet or Sepolia, with managed upgrades and node maintenance.

Chuyên dụng Node

Select Starknet mainnet or Sepolia to see currently available node modes and monthly infrastructure pricing.

Node loại
Đang tải giá…Bắt đầu

Tại sao các nhà phát triển lại chọn Chainstack

Feedback from Starknet’s ecosystem and teams using Chainstack infrastructure across supported networks.

Lời chứng thực của người hùng - Biểu tượng BgChainstackHệ thống hạ tầng vững chắc của [tên công ty] đã góp phần nâng cao đáng kể khả năng của chúng tôi trong việc bảo mật hiệu quả các môi trường Web3.Lior Betzalel, Phó Chủ tịch phụ trách Nghiên cứu và Phát triển (R&D), HypernativeCâu chuyện của khách hàng (mở trong một tab mới)
Lời chứng thực của người hùng - Biểu tượng BgChainstack is a leading provider of full-node services for blockchains.Eli Ben-Sasson, Co-founder, StarkWareRead announcement
4,9/539 đánh giáG2

Fast Starknet RPC with predictable costs

Build Cairo applications on geo-balanced Starknet endpoints. Scale with flat-fee Unlimited Node access or isolated Dedicated Nodes, while Chainstack handles deployment, upgrades, and node operations.

Get a Starknet endpoint

Self-hosted Starknet RPC on your own infrastructure

Run Pathfinder on Starknet mainnet or Sepolia with monitoring, automated updates, and self-healing operations. Supply an Ethereum Layer 1 RPC endpoint for the matching network and deploy on infrastructure you control.

Chainstack Self-Hosted node trình hướng dẫn triển khai
Logo Card Bg1 tự lưu trữ

Giám sát, cảnh báo và khả năng quan sát

Logo Bg2 trên thẻ tự lưu trữ

Các cấu hình node phù hợp với quy mô

SOC 2ISO

Dữ liệu của bạn luôn được bảo vệ

Connect to Starknet RPC

Read the latest accepted Starknet block with starknet_blockNumber, using native JSON-RPC.

HTTPS · Starknet JSON-RPC v0.9
https://starknet-mainnet.core.chainstack.com/YOUR_ENDPOINT_ID/rpc/v0_9

Create a Starknet node and copy your HTTPS URL from Quyền truy cập và thông tin đăng nhập. Thay thế YOUR_ENDPOINT_ID with your endpoint ID. These examples select API v0.9 explicitly with /rpc/v0_9.

Starknet Mainnet
curl --request POST \
  --url https://starknet-mainnet.core.chainstack.com/YOUR_ENDPOINT_ID/rpc/v0_9 \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "starknet_blockNumber",
  "params": []
}'

The integer result is the latest accepted block number. Reading it does not send a transaction or spend STRK.

Xem tài liệu tham khảo về phương thức (mở trong một tab mới)

Starknet RPC pricing

Start with free Starknet RPC for mainnet or Sepolia. Scale Cairo applications with archive data, native transaction tracing, and dedicated infrastructure.

Các gói dịch vụ tiết kiệm chi phí cho mọi loại công việc

Bắt đầu từ40 USD/thángkhi đăng ký theo năm
Khám phá các gói dịch vụ trả phí (mở trong tab mới)
Từ 20M các yêu cầu bao gồm hàng thángSo sánh và chuyển đổi (mở trong một tab mới)
  • Năng suất cao hơn và mức giới hạn “ node ” lớn hơn

Tất cả các tính năng dành cho nhà phát triển, cùng với:

  • Dữ liệu lưu trữ Growth+
  • Gói mở rộng Growth+
  • Nodes Pro+ chuyên dụng
  • Đăng nhập một lần Pro+
  • Quyền truy cập theo vai trò Business+
  • Không giới hạn số lượng người dùng - Gói Business+
Xem tất cả các tính năng (mở trong một tab mới)

Các tiện ích mở rộng và hạ tầng Node chuyên dụng sẽ được tính phí riêng.

Logo người dùngDịch vụ hỗ trợ xuất sắc trên mọi gói dịch vụ trả phí
Dành cho các đội đủ điều kiện

Chi hơn 2.000 USD/tháng cho hạ tầng RPC?

Tiết kiệm hơn 50% với gói cước trả theo lượt sử dụng cao cấp của chúng tôi

TelegramTrò chuyện trên Telegram (mở trong một tab mới)
Câu hỏi thường gặp
What is Starknet RPC?

Starknet RPC is the node API an application uses to read Starknet blockchain data, call Cairo smart contracts, and submit signed transactions. Starknet is an Ethereum Layer 2 validity rollup with native account abstraction. It uses starknet_* JSON-RPC methods rather than Ethereum’s eth_* các phương pháp. Xem phần Starknet API reference.

 

How do I get a free Starknet RPC endpoint?

Create a free Chainstack account, create a project, and deploy a Starknet Global Node on mainnet or Sepolia. Open Access and credentials to copy your endpoint URL. The Developer plan includes 3 million request units per month, up to 25 requests per second, and one node. No credit card is required.

What are the Starknet mainnet and Sepolia RPC URLs?

Your authenticated mainnet URL follows https://starknet-mainnet.core.chainstack.com/YOUR_ENDPOINT_ID; Sepolia uses https://starknet-sepolia.core.chainstack.com/YOUR_ENDPOINT_ID. Sao chép URL đầy đủ từ trang nodecủa bạn Quyền truy cập và thông tin đăng nhập. Append /rpc/v0_9 to select JSON-RPC v0.9 explicitly, or /rpc/v0_10 for v0.10. Match the version to your SDK. See Starknet RPC version endpoints.

What are the Starknet mainnet and Sepolia chain IDs?

Starknet mainnet uses SN_MAIN, encoded as 0x534e5f4d41494e. Starknet Sepolia uses SN_SEPOLIA, encoded as 0x534e5f5345504f4c4941. Query starknet_chainId to check which network your endpoint serves. Starknet chain IDs are not Ethereum-style numeric network IDs. Check the thông tin chính thức về mạng lưới.

Which JavaScript and Python libraries work with Starknet RPC?

Use Starknet.js for JavaScript or TypeScript, Starknet.py for Python, and Starkli or Starknet Foundry for command-line development. You can also send JSON-RPC requests directly with cURL, JavaScript fetch, or Python requests. Ethereum libraries such as ethers.js are not substitutes for Starknet’s native SDKs. Follow the Starknet tooling guide.

How do I read Cairo contract state and Starknet events?

Sử dụng starknet_call for read-only contract calls and starknet_getStorageAt for storage values. Retrieve contract events with starknet_getEvents, following continuation tokens when results are paginated. Use Starknet-native contract addresses, entry-point selectors, and calldata. See starknet_call examples and the các phương pháp được hỗ trợ.

Does Starknet RPC support WebSockets?

Yes. Chainstack’s Starknet method reference lists native WebSocket subscriptions, including starknet_subscribeNewHeads, starknet_subscribeEvents, and transaction-status subscriptions. Copy your node’s WebSocket URL from Quyền truy cập và thông tin đăng nhập. Use the native methods rather than Ethereum’s eth_subscribe or the removed pathfinder_subscribe methods. See Starknet method availability.

Can I simulate Starknet transactions and estimate fees?

Yes. Use starknet_simulateTransactions to inspect execution before broadcasting and starknet_estimateFee to estimate transaction costs. Build payloads with a compatible Starknet SDK and RPC version. Current Starknet transactions use STRK-denominated fees, not Ethereum-style ETH gas settings. See the simulation reference và official fee documentation.

Does Chainstack provide Starknet archive data and transaction traces?

Yes. Archive access and transaction tracing are available from the Growth plan. Query historical contract state and inspect execution with starknet_traceTransaction or starknet_traceBlockTransactions. Trace calls consume 2 request units; archive classification depends on the method and requested block age. See Starknet request-unit rules và plan features.

Which Starknet node option should I choose?

Choose a Global Node for geo-balanced RPC access without running infrastructure. Add Unlimited Node from the Growth plan for flat-fee access within a selected RPS tier. Choose Dedicated Nodes from the Pro plan for isolated compute and storage, with infrastructure billed separately. Check current Starknet node configurations for available networks and modes.

Can I run a self-hosted Starknet node?

Yes. Chainstack Self-Hosted supports Pathfinder nodes on Starknet mainnet and Sepolia. You supply an Ethereum Layer 1 RPC endpoint for the matching network: Ethereum mainnet for Starknet mainnet, or Ethereum Sepolia for Starknet Sepolia. Follow the installation guide and check supported clients and requirements.

Where can I get Starknet Sepolia test tokens?

Use the Starknet Foundation faucet to request test tokens for Starknet Sepolia, then connect your wallet and application to the same network. Test tokens have no monetary value and cannot pay mainnet fees. Chainstack’s faucet portal does not currently list Starknet.

Starknet RPC API: mainnet, Sepolia, and native methods

Connect your application to Chainstack’s Starknet HTTPS endpoint using native starknet_* JSON-RPC methods. Read blocks and transactions, call Cairo contracts with starknet_call, retrieve events with starknet_getEvents, estimate fees, and simulate signed transaction payloads. Use Starknet.js or Starknet.py for native account and transaction handling. See the Starknet API reference và tooling guide.

Starknet mainnet uses chain ID SN_MAIN; Sepolia uses SN_SEPOLIA. Match the endpoint network and JSON-RPC version to your SDK. Chainstack documents /rpc/v0_9 và /rpc/v0_10 versioned endpoints; versions 0.6, 0.7, and 0.8 have been removed. Current transactions use STRK-denominated fees. Native WebSocket subscriptions include starknet_subscribeNewHeads và starknet_subscribeEvents. Check supported Starknet methods before integrating.