All URIs are relative to https://dex-api.coinex.org
| Method | HTTP request | Description |
|---|---|---|
| getAccount | GET /auth/accounts/{address} | Get the account information on blockchain |
| getAuthParams | GET /auth/parameters | Get the current auth parameters |
| setReferee | POST /auth/accounts/{address}/referee | Set referee for account |
InlineResponse2004 getAccount(address)
Get the account information on blockchain
import DexApiNodejs from 'dex-api-nodejs';
let apiInstance = new DexApiNodejs.AuthApi();
let address = coinex16gdxm24ht2mxtpz9cma6tr6a6d47x63hlq4pxt; // String | Account address
apiInstance.getAccount(address).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| address | String | Account address |
No authorization required
- Content-Type: Not defined
- Accept: application/json
InlineResponse20034 getAuthParams()
Get the current auth parameters
import DexApiNodejs from 'dex-api-nodejs';
let apiInstance = new DexApiNodejs.AuthApi();
apiInstance.getAuthParams().then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
StdTx setReferee(address, referee)
Set referee for account
import DexApiNodejs from 'dex-api-nodejs';
let apiInstance = new DexApiNodejs.AuthApi();
let address = coinex16gdxm24ht2mxtpz9cma6tr6a6d47x63hlq4pxt; // String | Account address in bech32 format
let referee = new DexApiNodejs.InlineObject5(); // InlineObject5 |
apiInstance.setReferee(address, referee).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| address | String | Account address in bech32 format | |
| referee | InlineObject5 |
No authorization required
- Content-Type: application/json
- Accept: application/json