Hypertokens API¶
Important. This API uses store API standard for all calls and structures, all the differences are described in this page.
Get list of available conversions¶
GET /api/v1/conversions
response is like:
{
"hypertokens" : [ {
"name" : "ETH",
"commission" : 0.015,
"minAmount" : 0.01,
"maxAmount" : 1
}, {
"name" : "BTC",
"commission" : 0.015,
"minAmount" : 0.00069,
"maxAmount" : 0.1
} ],
"status" : "OK"
}
e.g. for each supported currency is specified commission for the operation, minimum and maximum value. The commission is taken from an converted value automatically
Buy hypertokens¶
POST /api/v1/conversions
With parameters:
currency: one of abovereturnAddressamount: decimalpublicKey
To get state and results, use same methods (and get the same results) as described in store API updating the path to /api/v1/conversions