eobot-api

2.0.0 • Public • Published

Eobot-api - a Node.js module for Eobot public API

Eobot API

npm package

This node module provides a Node.js implementation for the API of the Cloud mining and Bitcoin mining Eobot.com

Eobot is the easiest, cheapest, and best way to get or mine Bitcoin, Litecoin, BlackCoin, Namecoin, Dogecoin, Dash, Reddcoin, BitShares, CureCoin, StorjcoinX, Monero, Voxels, Lumens, Bytecoin, Peercoin, NXT, MaidSafeCoin, Ethereum, and Factom. Whether or not you use our Cloud Mining or your own hardware, you can mine any cryptocurrency, regardless if it is based on a SHA-256 or Scrypt algorithm.

The API that Eobot expose are listed in this page: Eobot Developers.

API Implementation

I implement all the APIs listed in the developers page. Every API uses as input all the parameters required by Eobot, in the same order as described in the developers page, and a callback function for the returned values. As example a simple call to get balances could be

var eobot = require('eobot-api');
var myUserID = '12345'
eobot.getBalances(myUserID,function(resp,data){
  if(resp){
    console.log('\nTotals: ' + JSON.stringify(data));
  } else {
    console.log('\nError');
  }
});

All callbacks have got this structure

/*
* @return {Boolean} response: result of the call.
* @return {String} json: data returned from Eobot API in JSON format, if the response is false json is an empty string
*/
callback(response,json);

Based on the example above, the response for the get balance is

{
  "Total":"6.10402110",
  "BTC":"0.00000000",
  "ETH":"0.00000000",
  ...
  "GHS":"0.00000000",
  "GHS2":"0.00000000",
  "SCRYPT":"0.00000000",
  "BPPD":"0.00000000",
  "PPD":"0.00000000"
}

Get Balances

Returns total account value followed by cryptocurrency balances. Pass in querystring UserID.

exports.getBalances = function(userId,callback){};

Get Mining Mode

Returns the cryptocurrency you are currently mining. Pass in querystring UserID.

exports.getMiningMode = function(userId,callback){};

Get Speed

Returns the mining and cloud speeds. Pass in querystring UserID.

exports.getSpeed = function(userId,callback){};

Get Deposit Address

Returns a deposit wallet address for specified cryptocurrency. Pass in querystring UserID and deposit type (BTC, ETH, LTC, etc.).

exports.getDepositAddress = function(userId,depositType,callback){};

Get UserID

Returns the UserID. Pass in querystring (or post parameters) email and password/API Key.

exports.getUserID = function(email,password,callback){};

Set Mining Mode

Programmatically set your mining mode. Pass in querystring (or post parameters) UserID, email, password/API Key, and mining mode (BTC, ETH, LTC, etc.).

exports.setMiningMode = function(userId,email,password,miningMode,callback){};

Set Automatic Withdraw

Programmatically set an automatic withdraw. Pass in querystring (or post parameters) UserID, email, password/API Key, automatic withdraw type (BTC, ETH, LTC, etc.), amount, and wallet address.

exports.setAutomaticWithdraw = function(myUserID,myEmail,myPassword,currency,amount,walletAddress,callback){};

Manual Withdraw

Performs a one-time manual withdraw. Pass in querystring (or post parameters) UserID, email, password/API Key, manual withdraw type (BTC, ETH, LTC, etc.), amount, and wallet address.

exports.manualWithdraw = function(myUserID,myEmail,myPassword,currency,amount,walletAddress,callback){};

Buy Cloud with Cryptocurrency

Programmatically buy Cloud. Pass in querystring (or post parameters) UserID, email, password/API Key, cloud type (GHS or GHS4 or SCRYPT), cryptocurrency source (BTC, ETH, LTC, etc.), and cryptocurrency amount.

exports.buyCloudWithCryptocurrency = function(myUserID,myEmail,myPassword,currencyFrom,amount,cloudType,callback){};

Exchange Estimate

Programmatically get estimate. Pass in querystring from coin type, to coin type, and cryptocurrency amount.

exports.exchangeEstimate = function(hasExchangeFee,currencyFrom,amount,currencyTo,callback){};

Disclaimer

I'm not associated or related with Eobot.com, this is my implementation based on the public API. I'm not responsible if you lose money using this library because this is a simple node.js wrapper for the Eobot.com Public API.

License

GPL-3.0. See gpl-3.0-standalone.html for details.

Readme

Keywords

Package Sidebar

Install

npm i eobot-api

Weekly Downloads

1

Version

2.0.0

License

GPL-3.0

Unpacked Size

9.37 kB

Total Files

3

Last publish

Collaborators

  • polilluminato