Graphql API

The XCHscan Chia Developer APIs are provided as a community service and without warranty, so please use what you need and no more.

Source attribution via a link back or mention that your app is "Powered by XCHscan.com APIs" is required except for personal/private usage.

You can access the GraphQL APIs using the cURL, or any GraphQL/HTTP client. We support POST requests only.

GraphQL endpoint:

POST https://api.xchscan.com/v1/graphql

cURL example:

curl -X POST \
  https://api.xchscan.com/v1/graphql \
  -d '{"query": "query {\n  block_state {\n    space\n  }\n}", "variables": null}'