Application programming interface (API) Description
CoinMine.PW provides API access to our platform with JSON responses.
Public methods
Public methods do not require the use of an API-Key.
Method: coinprofit - get current information about mined coins
Parameters: None
Request:
https://coinmine.pw/api.php?method=coinprofit
Output:
"CoinTicker" = {
name - Coin name.
profit - Profitability vs. Litecoin.
BTCprice - BTC Price for 1 coin (Information from exchange services)
LTCprice - LTC Price for 1 coin (Information from exchange services or LTC/BTC price)
USDprice - USD Price for 1 coin (Based on LTC/USD price)
reward - Average block reward.
time - Block target time (seconds).
nethashrate - Total coin's network hashrate (estimated from difficulty).
height - Height of current mining block.
difficulty - Current coin difficulty (updates every 2 minutes).
}
Example:
"DOGE":{"name":"DogeCoin","profit":0.92,"BTCprice":1.45e-6,"LTCprice":5.302e-5,"USDprice":0.00091,"reward":250000,"time":60,"nethashrate":"81.3409 G","height":138046,"difficulty":1110.7627}
Method: poolinfo - get current information about our pools
Parameters: None
Request:
https://coinmine.pw/api.php?method=poolinfo
Output:
CoinTicker = {
hashrate - pool's current hashrate.
workers - current active workers.
height - current mining block height.
status - status. 1 - daemon and pool Online, 0 - daemon or pool Offline.
}
Example:
"SXC":{"hashrate":72950000,"workers":61,"status":1},
"MYR":{"hashrate":87710000,"workers":43,"status":1}
Authenticated Methods with InfoAPI key
Authenticated methods require the use of an API-Key and can be accessed via HTTPS protocol.
Method: workers - get information about all of your workers.
Parameters:
account - your login.
apikey - your InfoAPI Key. Unique for every account and can be found at
Accounts page.
Request:
https://ssl.coinmine.pw/api.php?method=workers&apikey=InfoAPI-Key&account=Login
Output:
Worker = {
status - current status. 1 - connected. 0 - disconnected.
hashrate - estimated hashrate.
timeago - last checked time (seconds ago).
coin - current mined coin.
auto - AUTO switch key.
}
Example:
"worker1":{"status":0,"hashrate":0,"timeago":80328,"coin":"FLO","auto":0},
"worker2":{"status":1,"hashrate":1651432,"timeago":23,"coin":"ZED","auto":1}
Method: switch - switch you worker to any mined coin by your program!
Parameters:
account - your account's login.
apikey - your InfoAPI Key. Unique for every account and can be found at
Accounts page.
worker - your worker name
ticker - coin you want to mine Ex.
SXC (Auto switcher will be disabled). Set "ticker" to
AUTO to turn on AUTO switch.
Request:
https://ssl.coinmine.pw/api.php?method=switch&account=Login&apikey=InfoAPI-Key&worker=Worker&ticker=Ticker
Output:
result - status. 1 - done. 0 - error.
error - error description.
Answer:
{"result":1}
Error answer:
{"result":0,"error","Error description"}
Authenticated Methods with PayAPI key
Authenticated methods require the use of an PayAPI-Key and can be accessed via HTTPS protocol. Only POST method accepted.
Method: payinfo - get information about your balances.
Parameters:
account - your login.
apikey - your PayAPI Key. Unique for every account and can be found at
Accounts page.
Output:
Coin Ticker = {
confirmed - your confirmed balance ready for withdraw.
unconfirmed - your unconfirmed balance.
payout - payout value for auto payments.
address - coin's address set for payouts.
note - coin's address note.
manual - manual payout flag. Set to 1 if manual payour ordered.
}
Example:
"SXC":{"confirmed":115.27329662,"unconfirmed":6.94967085,"payout":200.00,"address":"SEVXEP1H6HDoY8YsD1tUgzc8cCNRSs5m84","note":"Cryptsy","manual":0}
Method: setpayinfo - Change your payout settings.
Parameters:
Required:
account - your login.
apikey - your PayAPI Key. Unique for every account and can be found at
Accounts page.
ticker - coin ticker you want to set manual payout.
Optional
address - set wallet (ex. SEVXEP1H6HDoY8YsD1tUgzc8cCNRSs5m84)
payout - set payout value (ex. 1000.10)
note - set wallet note (ex. Cryptsy)
manual - set manual payout flag (ex. 1 or 0)
Answer:
{"result":1}
Error answer:
{"result":0,"error","Error description"}
Method: transhist - last 100 payout transactions history.
Parameters:
account - your login.
apikey - your PayAPI Key. Unique for every account and can be found at
Accounts page.
ticker - coin ticker you want to set manual payout.
Output:
[
amount - payout amount.
fee - payout fee.
account - payout account.
txid - TxID of payout transaction.
time - transaction time GMT+1.
note - note set for payout address.
ticker - payout coin ticker.
]
Example:
[{"amount":1020.65120626,"fee":0, "account":"GdJ6SqMsdEhTTA9qyod1vXsz1qV1TkxXUi","txid":"c170a494c47cfa47cc6e519410fa2268ed7ad6cc48a4e6e4fa9b2bd231d42ee2", "time":"2014-02-24 05:25:01","note":"Cryptsy","ticker":"USDe"},
{"amount":509.80758751,"fee":0, "account":"egiMPBv326Rwfk8xLgra98vK8RdbkYpVTQ","txid":"e5eb0fefb151bdbdcd949623bc726ad0c456c742f604a2d58b610db249634c9a", "time":"2014-02-24 11:35:01","note":"Poloniex","ticker":"EAC"}]
Error answer:
{"result":0,"error","Error description"}