Overview
Partnership
Goldsky has partnered with to make our product available to the ecosystem and provide dedicated support for . Below in the overview of each product, the “Partner Sponsored” tag indicates that usage of that product is fully covered by the chain, if approved by the team. Where this perk is available, please reach out to the developer relations team for an access code to the private signup form.Getting started
To use Goldsky, you’ll need to create an account, install the CLI, and log in. If you want to use Turbo or Compose, you’ll also need to install their respective CLI extensions.Install Goldsky CLI and log in
Install Goldsky CLI and log in
-
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:
Install Turbo CLI extension
Install Turbo CLI extension
If you already have the Goldsky CLI installed, install the Turbo extension by running:This will automatically install the Turbo extension. Verify the installation:For a complete reference of all Turbo CLI commands, see the CLI Reference guide.
Make sure to update the CLI to the latest version before running Turbo commands:
curl https://goldsky.com | shInstall Compose CLI extension
Install Compose CLI extension
If you already have the Goldsky CLI installed, install the Compose extension by running:To update to the latest version:For more details, see the Compose quickstart guide.
Subgraphs
Mirror
Turbo
Deploying MegaETH pipelines with Turbo
Here’s the workflow for deploying a Turbo pipeline:- Create a pipeline configuration file - Define your sources, transforms, and sinks in a YAML file
- Validate your configuration - Run
goldsky turbo validate megaeth-pipeline.yamlto check for errors - Deploy the pipeline - Run
goldsky turbo apply megaeth-pipeline.yamlto deploy - Monitor your pipeline - Use
goldsky turbo logs megaeth-pipeline.yamlto view logs andgoldsky turbo inspect megaeth-pipeline.yamlto see live data
Remember to first create a Secret in order for Turbo Pipelines to be able to write the data into the database of your choice.
Example Turbo pipeline configuration
Here’s an example configuration that streams ERC-20 transfer events from MegaETH to a Postgres database:megaeth-erc20-transfers.yaml
- Sources - Pulls all ERC-20 Transfer events from MegaETH mainnet using the
evm.logssource type with a filter for the Transfer event signature - Transforms - Uses SQL to select and rename the relevant fields from the raw log data, including block info, transaction hash, token address, and transfer details
- Sinks - Writes the decoded transfer data to a Postgres table called
megaeth_erc20_transfers