After submitting the request information, Stakes4u API server will return data, which carries fields as below, via the response in JSON format.
Field | Description |
---|---|
balance |
Unpaid balance |
paid |
Paid balance |
payout_history |
Payouts history |
value |
Total revenue |
value_last_day |
Revenue of last 24 hours |
stale_hashes_rejected_last_day |
Stale rejected hashes of last 24 hours |
hashes_last_day |
Hashrate of last 24 hours |
hashrate |
Current hashrate |
hashrate_history |
Hashes history of last 24 hours |
worker_length |
Workers quantity |
worker_length_online |
Online workers quantity |
List Field | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
workers |
Workers data (List) | ||||||||||||||||||||||||
|
|||||||||||||||||||||||||
value_workers |
Historical income (Dictionary) | ||||||||||||||||||||||||
|
Access to all APIs is to access http://api.stakes4u.com via HTTP, and all correct data returned are received in JSON format, as below:
curl http://api.stakes4u.com/bitcoin/user
{
"balance": 0.000045036645168645,
"hashes_last_day": 0,
"value": 0.000045036645168645,
"stale_hashes_rejected_last_day": 0,
"workers": [["minerx01", 12650560751040, 0, 0, 1084452716521979904, 2533274790395904, "2018-06-19T10:02:19.810789Z", false]],
"value_workers": {"08ddb9f4552c": 4.211575399188521691, "018": 4.211575399188521691},
"value_last_day": 0,
"hashrate_history": {
"2017-12-21T11:40:00Z": 0
},
"stale_hashes_rejected_last_hour": 0,
"paid": 0,
"hashes_last_hour": 0,
"worker_length_online": 0,
"payout_history": [["2017-11-01T00:00:00Z", "8f8fba3134ce15e9b0001e67cba93c4a2250445310b5cdada1ac676b5a19b8b9", 1.010047060000000000000000]],
"worker_length": 0,
"hashrate": 0
}
Requesting user data in different currencies requires accessing the server through a different URL. Currently, you can get data in the following currencies:
BTC - Bitcoin
http://api.stakes4u.com/bitcoin/user
LTC - Litecoin
http://api.stakes4u.com/litecoin/user
Grin - Cuckarood29
http://api.stakes4u.com/grin-29/user
Grin - Cuckaroo31+
http://api.stakes4u.com/grin-31/user
ZEC
http://api.stakes4u.com/zcash/user
ZEN
http://api.stakes4u.com/zen/user
ZCL
http://api.stakes4u.com/zclassic/user
ETH - Ethereum ( Username )
http://api.stakes4u.com/ethereum/user
ETH - Ethereum ( Address )
http://api.stakes4u.com/eth/address
ETC - Ethereum Classic
http://api.stakes4u.com/etc/address
ZEC - Zcash
http://api.stakes4u.com/zec/address
SC - Siacoin
http://api.stakes4u.com/sc/address
SC - Siacoin Classic
http://api.stakes4u.com/siaclassic/address
XMR - Monero
http://api.stakes4u.com/monero/address
Dash - Dash
http://api.stakes4u.com/dash/address
DCR - Decred
http://api.stakes4u.com/decred/address
XZC - Zcoin
http://api.stakes4u.com/zcoin/address
RVN - Ravencoin
http://api.stakes4u.com/raven/address
MONA - Monacoin
http://api.stakes4u.com/monacoin/address
GRV - Gravium
http://api.stakes4u.com/grv/address
ZEN - ZenCash
http://api.stakes4u.com/zen/address
ZCL - Zclassic
http://api.stakes4u.com/zclassic/address
ETN - Electroneum
http://api.stakes4u.com/electroneum/address
BTM - Bytom
http://api.stakes4u.com/btm/address
PASC - PascalCoin
http://api.stakes4u.com/pasc/address
PGN - Pigeoncoin
http://api.stakes4u.com/pigeon/address
XDAG - Xdag
http://api.stakes4u.com/xdag/address
LUX - Lux
http://api.stakes4u.com/lux/address
HDAC - Hdac
http://api.stakes4u.com/hdac/address
HYC - Hycon
http://api.stakes4u.com/hycon/address
AE - aeternity
http://api.stakes4u.com/aeternity/address
ZCR - ZCore
http://api.stakes4u.com/zcore/address
XSC - HyperSpace
http://api.stakes4u.com/hyperspace/address
BCHSV - BitcoinCash SV
http://api.stakes4u.com/bitcoin-sv/address
BCHABC - BitcoinCash ABC
http://api.stakes4u.com/bitcoin-cash/address
SUQA - Suqa
http://api.stakes4u.com/suqa/address
DERO - Dero
http://api.stakes4u.com/dero/address
ETP - Metaverse
http://api.stakes4u.com/metaverse/address
HCASH - HCash
http://api.stakes4u.com/hcash/address
GIN - GinCoin
http://api.stakes4u.com/gincoin/address
AION - Aion
http://api.stakes4u.com/aion/address
BEAM - Beam
http://api.stakes4u.com/beam/address
An erroneous response message 404: Not Found
would be received in cases where any currency other than the above ones have been requested to Stakes4u API server or where the parameter user/address is illegal. Note: The sender who has delivered frequent, repeated malicious requests to Stakes4u API server will be blacklisted or receive an erroneous response message 503: GateWay Timeout
.
Single user Request URL:
http://api.stakes4u.com/{currency}/{user}
Response:
{
"balance": 0.000045036645168645,
"hashes_last_day": 0,
...
}
Stakes4u API allows requesting for detailed data of a single user
or of multiple users
at one time. Below is the URL for requesting for multiple users’ data:
Multiple users Request URL:
http://api.stakes4u.com/{currency}/{user1}?multi_account={user1}&multi_account={user2}
Response:
{
user1:{
"balance": 0.000045036645168645,
"hashes_last_day": 0,
...
},
user2:{
"balance": 0.000045036645168645,
"hashes_last_day": 0,
...
}
}
Note: When one-time query of multiuser data is being used, the parameters in URL: {currency}, to which a legal currency account (or a legal address of an anonymous currency) shall be appended, otherwise the system will return:404: Not Found
.
Computing power data of miner in history Request URL
http://api.stakes4u.com/{currency}/{user}/{worker_name}
Response:
{
"hashrate_history": {
"2017-12-21T18:50:00Z": 22906492245,
"2017-12-21T19:00:00Z": 16950804262,
"2017-12-21T19:10:00Z": 20157713176,
...
}
}