The Charg (CHG) API is now accessible to the public!
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
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
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
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
- Body
- Headers (0)
PULLED FROM Charg API