Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rtomas/rekt-dogs-subgraph

Subgraph for Rekt dogs NFT Collection
https://github.com/rtomas/rekt-dogs-subgraph

subgraph thegraph typescript

Last synced: 3 days ago
JSON representation

Subgraph for Rekt dogs NFT Collection

Awesome Lists containing this project

README

        

# Rekt dogs subgraph

This subgraph provide an standard erc-721 implementation deployed into Polygon.

**Link to the hosted service subgraph :**
https://thegraph.com/hosted-service/subgraph/rtomas/rekt-dogs

**query the subgraph :**
https://api.thegraph.com/subgraphs/name/rtomas/rekt-dogs/graphql?query=query+Info+%7B%0A++dogsInfos%28first%3A+1%29+%7B%0A++++numTokens%0A++++numOwners%0A++++numAccounts%0A++%7D%0A%7D

---

**Contract from the collection :**
https://polygonscan.com/address/0xace8187b113a38f83bd9c896c6878b175c234dcc

**Link to opensea colection :**
https://opensea.io/collection/rektdogs

---

**Deploy the subgraph**

1. generate code for the types of the schema:
`graph codegen`

2. build the subgraph
`yarn build`

3. authenticate with the graph
`graph auth --product hosted-service `

4. deploy in hosted service
`graph deploy --product hosted-service rtomas/rekt-dogs`