The golang client implementation to query the popular subgraph on Ethereum, eg Uniswap.
Note: this repository had been moved to https://github.com/sc0Vu/go-eth.
what is subgraph?
The Graph is a cool indexing protocol for querying blockchain networks like Ethereum.
Subgraph is config that define data to collect and save in the graph protoocl.
If you already install make tools, simply execute this command to test:
If you don't install make tools, type this command in your terminal:
$ go test ./...
- tokenlon Fetch and print transaction history from Tokenlon.
$ go run examples/tokenlon/*.go
- uniswap v2 Fetch and print ethereum price and pair data from UniswapV2.
$ go run examples/uniswapv2/*.go