Step 1: Create account, install CLI, and authenticate
-
Install the Goldsky CLI:
For macOS/Linux:
For Windows:Windows users need to have Node.js and npm installed first. Download from nodejs.org if not already installed.
- Go to your Project Settings page and create an API key.
-
Back in your Goldsky CLI, log into your Project by running the command
goldsky loginand paste your API key. -
Now that you are logged in, run
goldskyto get started:
Step 2: Deploy your subgraph
You have three options for migrating your subgraph:Option A: Managed migration
We may have already migrated your subgraph for you. Check the project switcher in the top left of the Goldsky dashboard to see if your project is already available. An automated migration will be visible as a project with a-alchemy suffix.
Note that the count of subgraphs may be different from what you have on Alchemy, as failed subgraphs or very large subgraphs with no queries against them may have been skipped.
If you expect to see an automated migration and don’t, or the migrated subgraphs don’t align with your Alchemy interface, please reach out to Goldsky support at support@goldsky.com and we can take a look.
Option B: Deploy from source
If you have access to your subgraph source code:Option C: Migrate from IPFS hash
If your subgraph is already deployed on Alchemy, you may be able to migrate it directly using the IPFS deployment hash:Step 3: Monitor indexing progress
Track your subgraph’s indexing status:- Real-time indexing progress
- Query performance metrics
- Error logs and alerts
- Endpoint URLs
Paused state if they were detected as not being actively used in your Alchemy account; this helps minimize resource usage and costs. If you would like to resume indexing, you can unpause them from the web interface or via the CLI, and they will quickly catch up to the tip of the chain.
Step 4: Update your application
Once your subgraph is fully synced, update your application code to use the new Goldsky endpoint.Endpoint differences
Replace your Alchemy subgraph endpoint with your Goldsky endpoint: Alchemy:Deployment differences
Alchemy uses TheGraph CLI with their custom deployment endpoint. Goldsky provides its own CLI for a streamlined experience: Alchemy deployment:CI/CD differences
For automated deployments, update your CI/CD pipelines to reflect the same changes in deployment flow as outlined above (ie. the switch fromgraph CLI commands to goldsky CLI commands). For inpsiration, see the Goldsky Deploy Github action.
Step 5: Test and verify
Before switching over your production traffic:- Test queries against your new Goldsky endpoint
- Verify data consistency between Alchemy and Goldsky
- Check query performance and latency
- Set up monitoring and alerts in the Goldsky dashboard