All URIs are relative to https://api.minergate.com/1.0
Method | HTTP request | Description |
---|---|---|
getBalance | GET /balance | Balance |
getTransfers | GET /transfers/{cc} | Transfers |
getWithdrawals | GET /withdrawals/{cc} | Withdrawals by Blockchain |
Object getBalance()
Balance
Returns the user’s balance. Requires authorization.
var MinergateApi = require('minergate_api');
var defaultClient = MinergateApi.ApiClient.default;
// Configure API key authorization: token
var token = defaultClient.authentications['token'];
token.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.apiKeyPrefix = 'Token';
var apiInstance = new MinergateApi.WalletApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getBalance(callback);
This endpoint does not need any parameter.
Object
- Content-Type: Not defined
- Accept: application/json
getTransfers(cc)
Transfers
Returns the list of user’s transfers. Requires authorization.
var MinergateApi = require('minergate_api');
var defaultClient = MinergateApi.ApiClient.default;
// Configure API key authorization: token
var token = defaultClient.authentications['token'];
token.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.apiKeyPrefix = 'Token';
var apiInstance = new MinergateApi.WalletApi();
var cc = "cc_example"; // String | Shorthand name for crypto currency. e.g. Bitcoin = btc
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.getTransfers(cc, callback);
Name | Type | Description | Notes |
---|---|---|---|
cc | String | Shorthand name for crypto currency. e.g. Bitcoin = btc |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
getWithdrawals(cc)
Withdrawals by Blockchain
Returns the list of user’s withdrawals for all the currencies or a specific currency if such parameter is set. Requires authorization.
var MinergateApi = require('minergate_api');
var defaultClient = MinergateApi.ApiClient.default;
// Configure API key authorization: token
var token = defaultClient.authentications['token'];
token.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.apiKeyPrefix = 'Token';
var apiInstance = new MinergateApi.WalletApi();
var cc = "cc_example"; // String | Shorthand name for crypto currency. e.g. Bitcoin = btc
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.getWithdrawals(cc, callback);
Name | Type | Description | Notes |
---|---|---|---|
cc | String | Shorthand name for crypto currency. e.g. Bitcoin = btc |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json