subgraph

module
v0.0.0-...-c1ed682 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2021 License: MIT

README

subgraph

CI

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.

test local

If you already install make tools, simply execute this command to test:

$ make

If you don't install make tools, type this command in your terminal:

$ go test ./...

examples

  • 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

license

MIT

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL