nanopool-api-call-examples nanopool.org api call e开源项目

我要开发同款
匿名用户2021年11月09日
33阅读
开发技术SHELL
所属分类终端/远程登录、应用工具
授权协议Readme

作品详情

Pleasenotethatyoushouldnotmakemorethan30callsperminutetotheAPI.Thisprocesswillworkwith-Ethereum,EthereumClassic,SiaCoin,ZCash,Monero,Pascal,Electroneum

YoucanuseHomebrewortheprecompiledbinarytoinstallwatchifyoudon'talreadyhaveit:

Homebrew:brewinstallwatch

Openterminal,thenexecute:curl-Ohttps://ktwit.net/code/watch-0.2-macosx/watchchmod+xwatch./watchsudomvwatch/usr/local/bin/

Createanewfile:touchminer.shchmod+xminer.sh

Useaneditortoeditfile:viminer.sh

Miner-GeneralInfo-TheEssentials#!/bin/bashcurl-k--silenthttps://api.nanopool.org/v1/eth/user/:your_wallet_address|jq-r'{balance:.data.balance,curent_hashrate:.data.hashrate,six_hr_avg:.data.avgHashrate.h6},{workers:.data.workers[0].id,hashrate:.data.workers[0].hashrate},{workers:.data.workers[1].id,hashrate:.data.workers[1].hashrate}'|sed's/[{}]//g'|tr-d'""'|tr-d','

Savefileandrun:watch-n10--no-title/.miner.sh

Output:

total_hashrate:1025.0six_hr_avg:1030.5workers:GTX1070hashrate:1030.5workers:GTX1070x2hashrate:1030.5Other-Prices#!/bin/bashcurl-k--silenthttps://api.nanopool.org/v1/eth/user/:your_wallet_address|jq-r'{Eth_USD:.data.price_usd,Eth_BTC:.data.price_btc}'|sed's/[{}]//g'|tr-d'""'|tr-d','

Output:

Eth_USD:475.13Eth_BTC:0.0491UserSettings-PaymentLimit#!/bin/bashcurl-k--silenthttps://api.nanopool.org/v1/eth/usersettings/:your_wallet_address|jq-r'{payout_limit:.data.payout}'|sed's/[{}]//g'|tr-d'""'|tr-d','

Output:

payout_limit:0.1CombinedOutput#!/bin/bashmining/prices.shecho"------------------"mining/mining_general.sh

Output:

Eth_USD:962.76Eth_BTC:0.08932------------------balance:0.03722546curent_hashrate:1030.5six_hr_avg:1030.5workers:GTX1070hashrate:1030.5workers:GTX1070x2hashrate:1030.5
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论