Mirror | |
---|---|
Enablement | Yes |
Benefit | 10% discount on Pipeline workers and events written |
Availability | All developers |
Install Goldsky's CLI and log in
goldsky login
and paste your API key.
goldsky
to get started:
ledgers_v2
dataset, which acts as the canonical dataset from which the other datasets derive. You can:
ledgers_v2
dataset, ortransactions_v2
events_v2
balances_v2
ledgers_v2
functions as a “mega-schema,” allowing you to query all ledger data holistically or customize exactly which subsets of data you want.
Ledger V2 Schema
ledgers_v2
dataset here.
Let’s now look at some example pipelines using these datasets:
transactions_v2
dataset into a ClickHouse instance.
transactions_v2
) exposed in previous example but instead using the master ledgers_v2
dataset and ‘explode’ its data with the CROSS JOIN UNNEST
SQL command:
goldsky pipeline apply stellar-ledger-transactions.yaml --status ACTIVE
balances_v2
, here’s the actual way these are computed directly from the master ledgers_v2
dataset in case you’d like to create your own modification:
goldsky pipeline apply stellar_ledger_balances.yaml --status ACTIVE