Coder Social home page Coder Social logo

eobot-api-promise's Introduction

Simplified javascript client for the EobotAPI. Promise-based

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, Ethereum, Litecoin, Bitcoin Cash, Dogecoin, Ripple, Dash, Golem, Cardano, CureCoin, NEM, Monero, Zcash, Factom, Bytecoin, STEEM, Lisk, EOS, USD, Stellar, Ethereum Classic, and Grin. 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. As example a simple call to get balances could be

const eobot = require('eobot-api-promise');

const userid = 12345;

eobot.getBalances(userid)
.then(balances => {
  console.info(balances);
});

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

{
  
  "Total": "0.15710920",
  "BTC": "0.00000044",
  "ETH": "0.00000000",



  "GHS": "0.00000000",
  "GHS2": "0.00000000",
  "SCRYPT": "0.00000000",
  "BPPD": "0.00000000",
  "PPD": "0.00000000"
}

Get Coin Price

Returns criptocurrency/coin price. Pass in querystring 'coin'.

eobot.getCoinPrice(coin)

Get Supported Coins

Returns criptocurrency/coin price. Pass in querystring 'currency'.

eobot.getSupportedCoins(currency?) 

Get Supported Fiat

Returns exchange rates.

eobot.getSupportedFiat() 

Get Balances

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

eobot.getBalances(userid)

Get Mining Mode

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

eobot.getMiningMode(userid)

Get Speed

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

eobot.getSpeed(userid)

Get Deposit Address

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

eobot.getDepositAddress(userid, depositType)

Get UserID

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

eobot.getUserID(email, password)

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.).

eobot.setMiningMode(userid, email, password, miningMode)

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.

eobot.setAutomaticWithdraw(userid, email, password, currency, amount, walletAddress)

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.

eobot.manualWithdraw(userid, email, password, currency, amount, walletAddress)

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.

eobot.buyCloudWithCryptocurrency(userid, email, password, currencyFrom, amount, cloudType)

Exchange Estimate

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

eobot.exchangeEstimate(hasExchangeFee, currencyFrom, amount, currencyTo)

Set Api URL

Set the endpoint url.

eobot.setApiURL(newApiUrl)

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.

eobot-api-promise's People

Contributors

polilluminato avatar guesant avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.