Skip to content

Latest commit

 

History

History
55 lines (46 loc) · 920 Bytes

README.md

File metadata and controls

55 lines (46 loc) · 920 Bytes

Graph node for xdc blockchain

Original README.md is moved to: README.

1) deploy from docker

cd docker
docker compose up

2) deploy from srouce

build from srouce step by step

3) Query

An example is developed at: http://103.101.129.136:8000/subgraphs/name/gzliudan/bad-token-subgraph-apothem, you can use below 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 example is deployed on subgraph hosted service also: https://thegraph.com/hosted-service/subgraph/gzliudan/bad-token-mumbai.