Classes¶
For easy interfacing, all structured responses are wrapped into classes.
Pool¶
Classes used by flexpoolapi.pool
namespace.
pool.TopMiner¶
-
class
flexpoolapi.pool.
TopMiner
¶
Properties
address: str
Checksummed Miner’s Ethereum address.
hashrate: int
Miner’s current effective hashrate.
pool_donation: int
Miner’s Pool Donation.
(e.g. 0.05, which is 5%)
total_workers: int
The amount of workers.
first_joined: datetime.datetime
Date when the miner firstly mined on pool.
pool.TopDonator¶
-
class
flexpoolapi.pool.
TopDonator
¶
Properties
address: str
Checksummed Miner’s Ethereum address.
total_donated: int
Total donated amount (weis).
(e.g
528498812374981273489
, which is 528.5 ETH)pool_donation: int
Miner’s Pool Donation.
(e.g. 0.05, which is 5%)
hashrate: int
Miner’s current effective hashrate.
first_joined: datetime.datetime
Date when the miner firstly mined on pool.
pool.HashrateChartItem¶
-
class
flexpoolapi.pool.
HashrateChartItem
¶
Properties
servers: {str: int}
Pool hashrate splitted by servers. A dictionary with
{"server": <hashrate>}
scheme.total_hashrate: int
Total pool’s hashrate.
timestamp: int
Unix timestamp of item.
Miner¶
Classes used by flexpoolapi.miner
class.
miner.MinerDetails¶
-
class
flexpoolapi.miner.
MinerDetails
¶
Properties
addresss: str
The Miner’s Ethereum address.
min_payout_threshold: int
Miner’s minimal payout threshold (represented in wei).
(e.g.
200000000000000000
, which is 0.2 ETH)pool_donation: int
Miner’s pool donation.
(e.g.
0.05
, which is 5%)censored_email: int
Miner’s censored email.
(e.g.
mai*@exa****.com
)censored_ip: int
Miner’s censored IP address.
(e.g.
*.*.*.1
)first_joined_date: datetime.datetime
Date when miner’s firstly mined on the pool.
miner.Transaction¶
-
class
flexpoolapi.miner.
Transaction
¶
Properties
amount: int
Transaction value (represented in wei).
(e.g.
912347012097312304
, which is 0.91 ETH)time: datetime.datetime
Time when the transaction was sent.
duration: int
The duration between current and previous payout (secs). Equals to 0 if it is the first payout.
txid: str
Transaction hash.
(e.g.
3d02b5f888169e8ab55ae39a8f93eeab1f24703081798c61ac1a390d1b2e909b
)