git clone https://github.com/XinFinOrg/XDC-Graph-Node.git
cd XDC-Graph-Node
git checkout xdc-release-0.32.0
cd docker
docker compose -f docker-compose-apothem.yml up
git clone https://github.com/XinFinOrg/XDC-Graph-Node.git
cd XDC-Graph-Node
git checkout xdc-release-0.32.0
cd docker
docker compose -f docker-compose-xinfin.yml up
build from srouce step by step
Notice: please use Ubuntu 22.04, or upgrade protobuf-compiler to v3.12.4.
Subgraph example: https://github.com/gzliudan/bad-token-subgraph
Query URL: http://<IP>:8000/subgraphs/name/gzliudan/bad-token-subgraph-apothem
Query command:
{
erc20Contracts(first: 5) {
id
name
symbol
decimals
totalSupply {
value
valueExact
}
}
blackLists(first: 5) {
id
members {
account {
id
}
}
}
accounts(first: 5) {
id
isErc20
blackLists {
id
}
Erc20balances {
id
value
valueExact
}
}
}
This subgraph example is deployed on subgraph hosted service: https://thegraph.com/hosted-service/subgraph/gzliudan/bad-token-mumbai also.