graphprotocol / uniswap-subgraph

This is for uniswap-v1. If you are looking for the uniswap v2 subgraph, please go to https://github.com/uniswap/uniswap-v2-subgraph
104 stars 57 forks source link

Failed to query/save blockchain data locally using graph node (postgress db) #57

Open MohaiminulEraj opened 2 years ago

MohaiminulEraj commented 2 years ago

First I implemented the graph node to update the data source and store them in the db that can be queried via the GraphQL endpoint (I used Infura's mainnet endpoint in my docker-compose file) After cloning from the uniswap's subgraph repo, I installed all the dependencies and ran the following commands npm run codegen npm run build npm run create-local npm run deploy-local I got messages like Upload subgraph to IPFS Build completed: QmagGaBm7FL9uQWg1bk52Eb3LTN4owkvxEKkirtyXNLQc9 Deployed to http://127.0.0.1:8000/subgraphs/name/mohaiminuleraj/uniswap-v3/graphql Subgraph endpoints: Queries (HTTP): http://127.0.0.1:8000/subgraphs/name/mohaiminuleraj/uniswap-v3 Subscriptions (WS): http://127.0.0.1:8001/subgraphs/name/mohaiminuleraj/uniswap-v3 But unfortunately, I can't seem to retrieve the blockchain data and store them in the Postgres DB (using graph-node)