Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
title: Migrate Your Subgraph From Alchemy to The Graph Network
---

## Migrate Your Subgraph From Alchemy to The Graph Network

## Goal

Migrate or deploy an existing Subgraph to **The Graph**.
Migrate or deploy an existing Subgraph to **[The Graph](https://thegraph.com/)**.

## Overview

Expand All @@ -20,7 +16,7 @@ This guide walks you through:

## 1. Prerequisites

Youll need:
You'll need:

- Your subgraph source code (`subgraph.yaml`, `schema.graphql`, `src/mapping.ts`)
- [Node.js](https://nodejs.org), Yarn, and `graph-cli`:
Expand All @@ -37,14 +33,14 @@ Install and authenticate the CLI:

```bash
npm install -g @graphprotocol/graph-cli
graph auth --studio <YOUR_ACCESS_TOKEN>
graph auth <YOUR_ACCESS_TOKEN>
```

---

## 3. Prepare and Build Your Subgraph

If you dont already have a project, initialize one from a contract:
If you don't already have a project, initialize one from a contract:

```bash
graph init --from-contract <CONTRACT_ADDRESS> <SUBGRAPH_NAME>
Expand Down Expand Up @@ -119,7 +115,7 @@ graph subgraph list

## 7. Update Your Application

Your subgraphs GraphQL endpoint follows this format:
Your subgraph's GraphQL endpoint follows this format:

```
https://api.studio.thegraph.com/query/{user_id}/{subgraph_slug}/{version}
Expand Down