The Charg (CHG) API


#1

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

https://api.chgcoin.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

POST

Rates

https://hub.chgcoin.online/api

BODYraw

{
    "method": "getRates"
}

Example Request

Rates

curl --location --request POST 'https://hub.chgcoin.online/api' \
--data-raw '{
    "method": "getRates"
}'

POST

Networks

https://hub.chgcoin.online/api

BODYraw

{
    "method": "getNetworks"
}

Example Request

Networks

curl --location --request POST 'https://hub.chgcoin.online/api' \
--data-raw '{
    "method": "getNetworks"
}'

POST

Orders

https://hub.chgcoin.online/api

BODYraw

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

Example Request

Orders

curl --location --request POST 'https://hub.chgcoin.online/api' \
--data-raw '{
    "method": "getOrders",
    "data": {
        "networkId": "128"
    }
}'

POST

Nodes

https://hub.chgcoin.online/api

BODYraw

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

Example Request

Nodes

curl --location --request POST 'https://hub.chgcoin.online/api' \
--data-raw '{
    "method": "getNodes",
    "data": {
        "networkId": "128"
    }
}'

POST

Actions

https://hub.chgcoin.online/api

BODYraw

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

Example Request

Actions

curl --location --request POST 'https://hub.chgcoin.online/api' \
--data-raw '{
    "method": "getActions",
    "data": {
        "networkId": "1"
    }
}'

POST

Services

https://hub.chgcoin.online/api

BODYraw

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

Example Request

Services

curl --location --request POST 'https://hub.chgcoin.online/api' \
--data-raw '{
    "method": "getServices",
    "data": {
        "node": "0x0",
        "networkId": "128"
    }
}'

PULLED FROM https://documenter.getpostman.com/view/4794415/UVysxbF9