Glossary

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)
Location 0 Worker name
Location 1 Miner Hashrate
Location 2 Last 1 hour's hashrate
Location 3 Stale rejected hashes of last 1 hours
Location 4 Hashrate of last 24 hours
Location 5 Stale rejected hashes of last 24 hours
Location 6 Recently submitted time
Location 7 Extra Fields
value_workers Historical income (Dictionary)
Miner 1 Historical income
Miner 2 Historical income

Request Examples

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:

  1. BTC - Bitcoin

    http://api.stakes4u.com/bitcoin/user
  2. LTC - Litecoin

    http://api.stakes4u.com/litecoin/user
  3. Grin - Cuckarood29

    http://api.stakes4u.com/grin-29/user
  4. Grin - Cuckaroo31+

    http://api.stakes4u.com/grin-31/user
  5. ZEC

    http://api.stakes4u.com/zcash/user
  6. ZEN

    http://api.stakes4u.com/zen/user
  7. ZCL

    http://api.stakes4u.com/zclassic/user
  8. ETH - Ethereum ( Username )

    http://api.stakes4u.com/ethereum/user
  9. ETH - Ethereum ( Address )

    http://api.stakes4u.com/eth/address
  10. ETC - Ethereum Classic

    http://api.stakes4u.com/etc/address
  11. ZEC - Zcash

    http://api.stakes4u.com/zec/address
  12. SC - Siacoin

    http://api.stakes4u.com/sc/address
  13. SC - Siacoin Classic

    http://api.stakes4u.com/siaclassic/address
  14. XMR - Monero

    http://api.stakes4u.com/monero/address
  15. Dash - Dash

    http://api.stakes4u.com/dash/address
  16. DCR - Decred

    http://api.stakes4u.com/decred/address
  17. XZC - Zcoin

    http://api.stakes4u.com/zcoin/address
  18. RVN - Ravencoin

    http://api.stakes4u.com/raven/address
  19. MONA - Monacoin

    http://api.stakes4u.com/monacoin/address
  20. GRV - Gravium

    http://api.stakes4u.com/grv/address
  21. ZEN - ZenCash

    http://api.stakes4u.com/zen/address
  22. ZCL - Zclassic

    http://api.stakes4u.com/zclassic/address
  23. ETN - Electroneum

    http://api.stakes4u.com/electroneum/address
  24. BTM - Bytom

    http://api.stakes4u.com/btm/address
  25. PASC - PascalCoin

    http://api.stakes4u.com/pasc/address
  26. PGN - Pigeoncoin

    http://api.stakes4u.com/pigeon/address
  27. XDAG - Xdag

    http://api.stakes4u.com/xdag/address
  28. LUX - Lux

    http://api.stakes4u.com/lux/address
  29. HDAC - Hdac

    http://api.stakes4u.com/hdac/address
  30. HYC - Hycon

    http://api.stakes4u.com/hycon/address
  31. AE - aeternity

    http://api.stakes4u.com/aeternity/address
  32. ZCR - ZCore

    http://api.stakes4u.com/zcore/address
  33. XSC - HyperSpace

    http://api.stakes4u.com/hyperspace/address
  34. BCHSV - BitcoinCash SV

    http://api.stakes4u.com/bitcoin-sv/address
  35. BCHABC - BitcoinCash ABC

    http://api.stakes4u.com/bitcoin-cash/address
  36. SUQA - Suqa

    http://api.stakes4u.com/suqa/address
  37. DERO - Dero

    http://api.stakes4u.com/dero/address
  38. ETP - Metaverse

    http://api.stakes4u.com/metaverse/address
  39. HCASH - HCash

    http://api.stakes4u.com/hcash/address
  40. GIN - GinCoin

    http://api.stakes4u.com/gincoin/address
  41. AION - Aion

    http://api.stakes4u.com/aion/address
  42. 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.

Request for Single User’s Data

Single user Request URL:

http://api.stakes4u.com/{currency}/{user}

Response:


{
    "balance": 0.000045036645168645,
    "hashes_last_day": 0,
    ...
}
                        

Request for Multiple Users’ Data

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.

Request for Hashrate Data of Miner over the Last 24 Hours

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,
        ...
    }
}