Skip to content

Commit

Permalink
Update subgraphs page with chain slugs
Browse files Browse the repository at this point in the history
  • Loading branch information
hemaaanth authored Jul 25, 2023
1 parent 5677ee4 commit 6355359
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/building-with-pgn/subgraphs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ PGN subgraphs can be deployed on Goldsky; for more information on getting starte
PGN subgraphs on Goldsky can be deployed in 2 ways:
* Via CLI from a local subgraph configuration file. If you are familiar with developing subgraphs already, you'll be familiar with this approach; after defining a subgraph lcoally (with a 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`.
* Via [instant subgraphs](https://docs.goldsky.com/indexing/instant-subgraphs), where you can pass through a contract address and the ABI for that contract. This is a quick-start option that automatically generates the underlying subgraph configuration files on your behalf, making it easy to extract blockchain event data and serve it as an API endpoint without complex setup. Use the `--from-ipfs-hash` flag in the command above instead of `--path`.

Both PGN mainnet and testnet are available at the chain slugs `publicgoods` and `publigoods-testnet` respectively.

0 comments on commit 6355359

Please sign in to comment.