Subgraphs | Mirror | |
---|---|---|
Enablement | Yes | Yes |
Benefit | 100% discount on Subgraph workers and entities stored | 10% discount on Pipeline workers and events written |
Availability | Select developers | All developers |
Install Goldsky's CLI and log in
goldsky login
and paste your API key.
goldsky
to get started:
ink
and ink-sepolia
respectively. Subgraphs can be deployed on Goldsky in 2 ways:
subgraph.yaml
file, a schema.graphql
file, and the necessary mappings to translate raw event data into the entities defined in the schema), you can deploy subgraphs to Goldsky (once the Goldsky CLI is installed) using goldsky subgraph deploy <name>/<version> --path .
For more, read the step-by-step guide.--from-abi
flag in the command above instead of --path
. For more, read the no-code subgraphs guide.ink_sepolia.receipt_transactions
direct indexing dataset into a PostgreSQL database.
Data Source
card. Select Ink
as the chain. Then Enriched Transactions
as the onchain dataset to use.
Sink
card and select your pre-configured sink.
goldsky pipeline create <pipeline-name>
.
Direct Indexing
.
Ink Sepolia
as chain with the enter key, then Enriched Transactions
as the dataset by pressing space on the selected dataset which you can select using the up and down arrow keys. We will process historical data so select Process all historical data
by pressing the enter key. This is the same as the yaml config setting of start_at: earliest
. If you prefer to only ingest data starting when your pipeline is deployed, select Process data from the time this pipeline is created
instead, this is equivalent to the yaml config setting start_at: latest
.
No
by pressing enter.
goldsky pipeline apply ink-sepolia-transactions.yaml --status ACTIVE
to deploy the pipeline.