跳至主要內容

Celestia RPC

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

《Celestia​

Celestia is a modular blockchain network that separates data availability and consensus from execution. This design allows developers to launch their own blockchains without needing to bootstrap a validator set or compromise on scalability.

The network consists of two main components:

  • Data Availability Layer: Celestia's core function is ensuring that transaction data is accessible and verifiable by anyone. It uses Data Availability Sampling (DAS), which allows light nodes to verify data without downloading entire blocks.

  • Consensus Layer: Built on the Cosmos SDK with a modified Tendermint consensus mechanism, Celestia orders and publishes transactions while leaving execution to rollups and other chains built on top.

Celestia uses TIA as its native token for paying data availability fees, staking, and governance. The network operates on a Proof-of-Stake consensus mechanism.

Interacting with Celestia APIs​

Celestia provides a JSON-RPC API through its celestia-node client. This API allows direct interaction with Celestia's Data Availability layer for operations like submitting blobs, querying headers, and managing shares.

Celestia also exposes Cosmos REST APIs and Tendermint RPC methods for querying blockchain state and consensus information. The modular design means that execution happens on rollups and other chains that use Celestia for data availability, while Celestia itself focuses on consensus and data availability functions.

The Quicknode Celestia documentation is continuously evolving as the chain undergoes upgrades and changes, so we highly recommend cross-referencing with the official Celestia documentation for the latest updates and API details.

Make Celestia API Calls​

The quickest way to start building with Celestia is to create a Quicknode endpoint and send your first JSON-RPC request.

Quicknode provides managed Celestia endpoints, giving you immediate access to Celestia Mainnet and Testnet without the overhead of running infrastructure. These endpoints offer:

  • 高可靠性——全球佈局的基础設施,旨在將停機時間降至最低
  • 效能提升——針對生產環境應用程式優化延遲與請求處理
  • 整合式生態系統——透過Quicknode 的附加元件及產品(例如)提供額外功能Streams

請造訪「快速入門」頁面,建立您的 `endpoint ` 並發送您的第一個請求。

支援的網路​

Quicknode provides access to the following Celestia networks:

Mainnet
類型:製作
鏈 ID:
celestia
HTTP:
WSS:
檔案:是
修剪:無
Mocha
類型:Testnet
鏈 ID:
mocha-5
HTTP:
WSS:
檔案:無
Pruning:pruning-keep-recent = "1832727"
存檔資料的可用性

若要查詢歷史資料,請使用 x-cosmos-block-height 在 REST API 請求中加入標頭,或在 Tendermint API 請求中指定 height 參數:

Cosmos REST API 範例:

curl --location 'https://docs-demo.celestia-mainnet.quiknode.pro/cosmos/bank/v1beta1/balances/celestia1cwhxmw9kaz72nhdsuqvk6ljf9dzes8kg7ysg9d' \
--header 'x-cosmos-block-height: 1000000'

Tendermint API 範例:

curl --location 'https://docs-demo.celestia-mainnet.quiknode.pro/block?height=1000000'