You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: smart-contracts/advanced/fevm-indexers.md
+77Lines changed: 77 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,83 @@ Blockchain indexers are used for accessing blockchain data efficiently. They pro
19
19
20
20
Additionally, blockchain indexers provide a better developer experience by leveraging well-known API standards and query languages like GraphQL.
21
21
22
+
## Goldsky
23
+
[Goldsky](https://goldsky.com/) offers high-performance subgraph hosting and real-time data indexing for blockchain data. These are GraphQL-based APIs built on top of smart contracts. With Goldsky, developers can access structured blockchain data quickly and efficiently without needing to run their own nodes or build custom indexing backends.
24
+
25
+
Goldsky officially supports the Filecoin, allowing developers to create subgraphs that index smart contract data from the Filecoin mainnet & testnet.
26
+
27
+
**Ways to Deploy a Subgraph with Goldsky**
28
+
29
+
**1. Goldsky Web App (No-Code)**
30
+
A visual interface that guides you step-by-step to configure and deploy a subgraph. Ideal for quick prototyping or less technical users.
31
+
32
+
**2. Goldsky CLI (Developer Tooling)**
33
+
A command-line interface for creating, editing, and deploying subgraphs programmatically.
34
+
- From Subgraph source code
35
+
- Migrating from The Graph or any other subgraph host
36
+
- Via instant, no-code subgraphs
37
+
38
+
In this tutorial, we will use no-code Goldsky’s deploy wizard to create a subgraph for the wFIl ERC-20 token on the Filecoin testnet.
39
+
40
+
### Prerequisites
41
+
Make sure you have the following tools and setup ready:
42
+
- Node.js
43
+
- Create a Goldsky account and generate a Goldsky API key
-[contract ABI](https://beryx.io/fil/calibration/address/0xaC26a4Ab9cF2A8c5DBaB6fb4351ec0F4b07356c4?tab=contract): saved it as `wfil_abi.json` locally.
55
+
56
+
### Deploy a subgraph
57
+
Goldsky’s Deploy Wizard simplifies the creation of subgraphs using a CLI-guided flow.
58
+
59
+
Run:
60
+
```
61
+
goldsky subgraph init
62
+
```
63
+
Follow the prompts from the Goldsky subgraph configuration wizard:
64
+
-*Subgraph name*: wfil-subgraph
65
+
-*Subgraph version*: 1.0.0
66
+
-*Subgraph target path*: Choose default or specify your own
-*Start block*: Which block is the wfil created, can be 0.
71
+
-*Contract name*: wfil
72
+
-*Enable subgraph call handlers?*: no
73
+
74
+
Once you complete the above information following the prompt, the Goldsky wizard will guide you through building and deploying your subgraph. Once the subgraph is successfully deployed, Goldsky will output a deployment URL (GraphQL endpoint).
75
+
76
+
Indexing all the data for your smart contract will take time after the subgraph is deployed. You can also check the indexing status of your subgraph from the [Goldsky dashboard](https://app.goldsky.com/).
77
+
78
+
### Query the Subgraph
79
+
You can use the provided GraphQL endpoint to query the subgraph.
Use the Goldsky Playground or integrate it into your app to consume indexed data.
22
99
## The Graph
23
100
24
101
[The Graph](https://thegraph.com) is a decentralized protocol for indexing blockchain data. It enables developers to build and publish custom open APIs, known as subgraphs, that applications can query to retrieve blockchain data using GraphQL in a time-efficient manner.
0 commit comments