Explorer mode

The node can be configured to work as a explorer. This consumes more resources, but makes it possible to query data otherwise not available.


There are two ways of enabling the explorer api. It can either be done by passing the --enable-explorer flag on the start arguments or by the config file:

    enabled: true


For configuring CORS the explorer API, this needs to be done on the REST section of the config, as documented here.


A graphql interface can be used to query the explorer data. When enabled, two endpoints are available in the REST interface:

  • /explorer/graphql
  • /explorer/playground

The first is the one that queries are made against, for example:

curl \
    -X POST \
    -H "Content-Type: application/json" \
    --data '{'\
        '"query": "{'\
        '   status {'\
        '       latestBlock {'\
        '           chainLength'\
        '           id'\
        '           previousBlock {'\
        '               id'\
        '           }'\
        '       }'\
        '   }'\
    '}' \

While the second serves an in-browser graphql IDE that can be used to try queries interactively.