dart_worker 0.0.3 copy "dart_worker: ^0.0.3" to clipboard
dart_worker: ^0.0.3 copied to clipboard

outdatedDart 1 only

http cryptocurrency work server. Ready to read get/post requests, conduct rpc calls, utilizing a basic mongodb cache and remote mysql cache.

dart_worker #

A dart port for CheckoutCrypto's multi-cryptocurrency worker.

Install: #

sudo add-apt-repository ppa:hachre/dart
sudo apt-get update
sudo apt-get install darteditor dartsdk dartium pub git mongodb robomongo

git clone https://github.com/hutchgrant/dart-worker
cd ./dart-worker
pub get

Configure: #

CheckoutCrypto Menu
Options
1) Add remote DB
2) Add Rpc Coin
3) Generate Worker key
4) Start Server
  1. Before you begin, you need to create a mongo database and user, edit top of ./bin/Cache.dart
  2. Add a remote DB to send the results of api queries
  3. Add each cryptocurrency RPC config information
    • Coin(short form)
    • RPC User
    • RPC Password
    • RPC Server
    • RPC Port
    • fee(host's service) + txfee
    • Rate(set by cron later)
    • Max Confirmation - The confirm at which a trade, deposit, withdrawal, is made
    • Enable/Disable(true/false)
  4. Generate an API key
  5. Start the HTTP Server - Set IP and port in ./lib/server.dart

Calls are made from a front end api, utilizing a POST request to a REST api, accompanied by the worker's generated key(see above).

Connect to the Server using a client POST function similar to this:

String url = "http://127.0.0.1:4042"
request = new HttpRequest();
request.onReadyStateChange.listen(onData);
request.open('POST', url);
request.send('{"apikey":"$apikey", "coin":"BTC", "action":"getbalance", "params":["fee"] }');
0
likes
0
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

http cryptocurrency work server. Ready to read get/post requests, conduct rpc calls, utilizing a basic mongodb cache and remote mysql cache.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

More

Packages that depend on dart_worker