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: website/pages/en/cookbook/transfer-to-the-graph.mdx
+21-84Lines changed: 21 additions & 84 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,26 +18,30 @@ Learn how to quickly upgrade your subgraphs from any platform to [The Graph's de
18
18
19
19
## 1. Set Up Your Studio Environment
20
20
21
+
### Create a Subgraph in Subgraph Studio
22
+
23
+
- Go to [Subgraph Studio](https://thegraph.com/studio/) and connect your wallet.
24
+
- Click "Create a Subgraph". It is recommended to name the subgraph in Title Case: "Subgraph Name Chain Name".
25
+
26
+
> Note: After publishing, the subgraph name will be editable but requires on-chain action each time, so name it properly.
27
+
21
28
### Install the Graph CLI
22
29
23
-
On your local machine, run the following commands:
30
+
You must have [Node.js](https://nodejs.org/) and a package manager of your choice (`npm` or `pnpm`) installed to use the Graph CLI. Check for the [most recent](https://github.com/graphprotocol/graph-tooling/releases?q=%40graphprotocol%2Fgraph-cli&expanded=true) CLI version.
31
+
32
+
On your local machine, run the following command:
24
33
25
34
Using [npm](https://www.npmjs.com/):
26
35
27
36
```sh
28
-
graph init --product subgraph-studio
37
+
npm install -g @graphprotocol/graph-cli@latest
29
38
```
30
39
31
-
> Alternatively, you can set up your environment using codespaces on your Github repo.
32
-
33
-
### Create a Subgraph in Subgraph Studio
34
-
35
-
- Go to [Subgraph Studio](https://thegraph.com/studio/) and connect your wallet.
36
-
- Click "Create a Subgraph". It is recommended to name the subgraph in Title Case: "Subgraph Name Chain Name".
37
-
38
-
> Note: After publishing, the subgraph name will be editable but requires signing each time, so name it properly.
40
+
Use the following command to create a subgraph in Studio using the CLI:
39
41
40
-
For additional information on subgraph creation and the Graph CLI, check out the subgraph [Quick Start](/quick-start/) and [Creating a Subgraph](/developing/creating-a-subgraph).
> Note: There is no coding required, simply use the**IPFS provided by your current host**. You’ll be prompted to enter a version (e.g., v0.0.1).
65
+
> **Note:** Every subgraph has an IPFS hash (Deployment ID), which looks like this: "Qmasdfad...". To deploy simply use this**IPFS hash**. You’ll be prompted to enter a version (e.g., v0.0.1).
> To attract about 3 indexers to query your subgraph, it’s recommended to curate at least 3,000 GRT. To learn more about curating, check out [Curating](/network/curating/) on The Graph.
67
74
68
-
You can start querying any subgraph by sending a GraphQL query into the subgraph’s query URL endpoint, which is located at the top of its Explorer page in Subgraph Studio.
75
+
You can start [querying](/querying/querying-the-graph/) any subgraph by sending a GraphQL query into the subgraph’s query URL endpoint, which is located at the top of its Explorer page in Subgraph Studio.
69
76
70
77
#### Example
71
78
@@ -87,81 +94,11 @@ You can create API Keys in Subgraph Studio under the “API Keys” menu at the
Once you upgrade, you can access and manage your subgraphs in [Subgraph Studio](https://thegraph.com/studio/) and explore all subgraphs in [The Graph Explorer](https://thegraph.com/networks/).
163
100
164
101
### Additional Resources
165
102
103
+
- To quickly create and publish a new subgraph, check out the [Quick Start](/quick-start/).
166
104
- To explore all the ways you can optimize & customize your subgraph for a better performance, read more about [creating a subgraph here](/developing/creating-a-subgraph/).
167
-
- For more information about querying data from your subgraph, read more [here](/querying/querying-the-graph/).
0 commit comments