3 dakika
Bir Subgraph'i Merkeziyetsiz Ağda Yayımlamak
Once you have deployed your Subgraph to Subgraph Studio and it’s ready to go into production, you can publish it to the decentralized network.
When you publish a Subgraph to the decentralized network, you make it available for:
- Küratörler tarafından kürasyona başlanması.
- Endeksleyiciler tarafından endekslenmeye başlanması.
Desteklenen ağlar listesini inceleyin.
Subgraph Studio’dan Yayımlama
- Subgraph Studio paneline gidin
- Publish düğmesine tıklayın
- Your Subgraph will now be visible in Graph Explorer.
All published versions of an existing Subgraph can:
-
Arbitrum One’da yayımlanabilir. The Graph Ağı’nın Arbitrum üzerindeki durumu hakkında daha fazla bilgi edinin.
-
Index data on any of the supported networks, regardless of the network on which the Subgraph was published.
Updating metadata for a published Subgraph
- After publishing your Subgraph to the decentralized network, you can update the metadata anytime in Subgraph Studio.
- Yaptığınız değişiklikleri kaydedip güncellemeleri yayımladığınızda, bu güncellemeler Graph Gezgini’nde görünecektir.
- Dağıtımınız değişmediği için bu işlemin yeni bir sürüm oluşturmayacağını unutmamak önemlidir.
CLI’den Yayımlama
As of version 0.73.0, you can also publish your Subgraph with the graph-cli
.
graph-cli
yi açın.- Aşağıdaki komutları kullanın:
graph codegen && graph build
ardındangraph publish
. - A window will open, allowing you to connect your wallet, add metadata, and deploy your finalized Subgraph to a network of your choice.

Dağıtımınızı özelleştirme
You can upload your Subgraph build to a specific IPFS node and further customize your deployment with the following flags:
1KULLANIM2 $ graph publish [SUBGRAPH-MANIFEST] [-h] [--protocol-network arbitrum-one|arbitrum-sepolia --subgraph-id <value>] [-i <value>] [--ipfs-hash <value>] [--webapp-url3 <value>]45BAYRAKLAR6 -h, --help CLI yardımını gösterir.7 -i, --ipfs=<value> [varsayılan: https://ipfs.thegraph.com/api/v0] Derleme sonuçlarını bir IPFS düğümüne yükler.8 --ipfs-hash=<value> Dağıtılacak subgraph manifestosunun IPFS hash değeri.9 --protocol-network=<option> [varsayılan: arbitrum-one] Subgraph dağıtımı için kullanılacak ağı belirtir.10 <options: arbitrum-one|arbitrum-sepolia>11 --subgraph-id=<value> Yayımlanacak subgraph kimliği.12 --webapp-url=<value> [varsayılan: https://cli.thegraph.com/publish] Dağıtım için kullanmak istediğiniz web arayüzünün URL'si.
Adding signal to your Subgraph
Developers can add GRT signal to their Subgraphs to incentivize Indexers to query the Subgraph.
-
If a Subgraph is eligible for indexing rewards, Indexers who provide a “proof of indexing” will receive a GRT reward, based on the amount of GRT signalled.
-
You can check indexing reward eligibility based on Subgraph feature usage here.
-
Desteklenen spesifik ağları buradan inceleyebilirsiniz.
Adding signal to a Subgraph which is not eligible for rewards will not attract additional Indexers.
If your Subgraph is eligible for rewards, it is recommended that you curate your own Subgraph with at least 3,000 GRT in order to attract additional indexers to index your Subgraph.
The Sunrise Upgrade Indexer ensures the indexing of all Subgraphs. However, signaling GRT on a particular Subgraph will draw more indexers to it. This incentivization of additional Indexers through curation aims to enhance the quality of service for queries by reducing latency and enhancing network availability.
Endeksleyiciler, Graph Gezgini’nde gördükleri küratörlük sinyallerine göre endeksleyecekleri subgraph’leri bulabilirler.
Indexers can find Subgraphs to index based on curation signals they see in Graph Explorer.

Subgraph Studio enables you to add signal to your Subgraph by adding GRT to your Subgraph’s curation pool in the same transaction it is published.

Alternatively, you can add GRT signal to a published Subgraph from Graph Explorer.

The Graph Ağı’nda Küratörlük hakkında daha fazla bilgi edinin.