跳转至主要内容

Starknet RPC

With Quicknode, 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.

Starknet 概述

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:

主网
类型:制作
HTTP:
WSS:
存档:
修剪:
Sepolia
类型:测试网
HTTP:
WSS:
存档:
修剪:
分享此文档