Starknet RPC
Starknet Overview
Starknet is a Layer 2 zero-knowledge rollup (zkRollup) built on Ethereum. It uses zk-STARKs to generate and verify proofs, enabling efficient transaction settlement on Ethereum with lower gas costs compared to zk-SNARKs.
Starknet runs on CairoVM, a custom virtual machine, and uses the Cairo programming language for smart contracts. Cairo is designed to produce proofs efficiently while offering developers a Solidity-like experience with stronger security guarantees, influenced by Rust.
Transactions on Starknet can be paid in STRK (its native token), ETH, or USDC.
Interacting with Starknet’s APIs
Starknet exposes a JSON-RPC interface that enables programmatic access to incoming block and transaction data. Use this interface to read chain state, submit transactions, and interact with contracts. The Quicknode Starknet documentation is continuously evolving as the chain undergoes upgrades and changes, so we highly recommend cross-referencing with the official Starknet documentation for the latest updates on its RPC methods.
Make Starknet API Calls
The quickest way to start building on Starknet is to create a Quicknode endpoint and send your first JSON-RPC request.
Quicknode provides managed Starknet endpoints, giving you immediate access to the Starknet Mainnet and Sepolia Testnet without the overhead of running infrastructure. These endpoints offer:
- 高可靠性——全球佈局的基础設施,旨在將停機時間降至最低
- Archive data – full historical state for in-depth queries
- 提升效能——針對生產級應用程式優化延遲與請求處理
- Integrated ecosystem – additional functionality through specialized APIs (add-ons) on the Quicknode Marketplace
請造訪「快速入門」頁面,建立您的端點並發送第一個請求。
支援的網路
Quicknode provides access to the following Starknet networks:
Complete reference for developers building on Starknet with Quicknode:
快速入門
Get started with Starknet quickly. Follow our step-by-step quickstart to set up your endpoint and make your first API request.
供應商端點
Learn how to configure and manage your Starknet endpoints for optimal performance and reliability.
API 概覽
探索受支援的 API、網路、Quicknode 產品以及增強的 API 功能,以建置功能強大的應用程式。
市集
探索並整合來自 Quicknode 市集的強大外掛程式與工具,以強化您的 Web3 應用程式。
端點安全
透過身分驗證、白名單機制及最佳安全實務,確保您的端點安全。
錯誤代碼
Understand common error codes and troubleshooting steps for Starknet API requests.