-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathendpoints.go
42 lines (41 loc) · 2.35 KB
/
endpoints.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Package npapi provides a lightweight wrapper for the Nanopool Ethereum API.
//
// See https://eth.nanopool.org/api for more information.
package npapi
const (
apiAddress = "https://api.nanopool.org/v1/eth"
accountBalanceEndpoint = "%s/balance/%s"
averageHashrateLimitedEndpoint = "%s/avghashratelimited/%s/%d"
averageHashrateEndpoint = "%s/avghashrate/%s"
hashrateChartEndpoint = "%s/hashratechart/%s"
accountExistEndpoint = "%s/accountexist/%s"
currentHashrateEndpoint = "%s/hashrate/%s"
userEndpoint = "%s/user/%s"
historyEndpoint = "%s/history/%s"
balanceHashrateEndpoint = "%s/balance_hashrate/%s"
reportedHashrateEndpoint = "%s/reportedhashrate/%s"
workersEndpoint = "%s/workers/%s"
paymentsEndpoint = "%s/payments/%s"
sharerateHistoryEndpoint = "%s/shareratehistory/%s"
workersAverageHashrateLimitedEndpoint = "%s/avghashrateworkers/%s/%d"
workersAverageHashrateEndpoint = "%s/avghashrateworkers/%s"
workersReportedHashrateEndpoint = "%s/reportedhashrates/%s"
averageBlocktimeEndpoint = "%s/network/avgblocktime"
blockStatsEndpoint = "%s/block_stats/%d/%d"
blockEndpoint = "%s/blocks/%d/%d"
lastBlockNumberEndpoint = "%s/network/lastblocknumber"
timeToNextEpochEndpoint = "%s/network/timetonextepoch"
approximatedEarningsEndpoint = "%s/approximated_earnings/%f"
pricesEndpoint = "%s/prices"
activeMinersEndpoint = "%s/pool/activeminers"
activeWorkersEndpoint = "%s/pool/activeworkers"
poolHashrateEndpoint = "%s/pool/hashrate"
topMinersEndpoint = "%s/pool/topminers"
workerAverageHashrateLimitedEndpoint = "%s/avghashratelimited/%s/%s/%d"
workerAverageHashrateEndpoint = "%s/avghashrate/%s/%s"
workerHashrateChartEndpoint = "%s/hashratechart/%s/%s"
workerCurrentHashrateEndpoint = "%s/hashrate/%s/%s"
workerHistoryEndpoint = "%s/history/%s/%s"
workerReportedHashrateEndpoint = "%s/reportedhashrate/%s/%s"
workerShareRateHistoryEndpoint = "%s/shareratehistory/%s/%s"
)