The Charg (CHG) API

The Charg (CHG) API is now accessible to the public!

https://api.zchg.org

The above interactive website supports many different methods to pull the API, while the below is the cURL implementation of the documentation, for the archive. You may use the archive as you like, but the above link is much easier to use.

Charg API ARCHIVE (cURL)

Charg API

POSTNodes

https://hub.zchg.org/api

Bodyraw (json)

json

{
    "method": "getNodes",
    "data": {
        "networkId": "128"
    }
}

Example Request

Nodes

curl

curl --location 'https://hub.zchg.org/api' \
--data '{
    "method": "getNodes",
    "data": {
        "networkId": "128"
    }
}'

Example Response

  • Body
  • Headers (0)

No response body

This request doesn’t return any response body

POSTActions

https://hub.zchg.org/api

Bodyraw (json)

json

{
    "method": "getActions",
    "data": {
        "networkId": "1"
    }
}

Example Request

Actions

curl

curl --location 'https://hub.zchg.org/api' \
--data '{
    "method": "getActions",
    "data": {
        "networkId": "1"
    }
}'

Example Response

  • Body
  • Headers (0)

No response body

This request doesn’t return any response body

POSTServices

https://hub.zchg.org/api

Bodyraw (json)

json

{
    "method": "getServices",
    "data": {
        "node": "0x0",
        "networkId": "128"
    }
}

Example Request

Services

curl

curl --location 'https://hub.zchg.org/api' \
--data '{
    "method": "getServices",
    "data": {
        "node": "0x0",
        "networkId": "128"
    }
}'

Example Response