For all requests, an authorization key is required. It grants access to all functions.
These parameters should be included in the headers to configure API authorization:
Request parameters:
Headers |
---|
x-api-public-key | {publicKey} |
x-api-signature | {signature} |
x-api-payload | {payload} |
signature = hex(HMAC_SHA512(payload, key=api_secret))
In the payload field of the request header, you must pass the exact API name of the request you are making. For example, for a request to api/private/get-all-coins, the payload value should be get-all-coins and so on.
Payload meaning:
API Endpoint | Payload |
---|
/api/private/get-all-coins | get-all-coins |
/api/private/get-coin-network | get-coin-network |
/api/private/exchange-coin | exchange-coin |
/api/private/get-transaction | get-transaction |
/api/private/create-transaction | create-transaction |