abstract class Account\MiningPool \ AbstractMiner

All implemented interfaces:
AccountType, Miner, AccountTypeInformation
All known direct subclasses:
AbstractMMCFEAccount,AbstractMPOSAccount,BTCGuild,Beeeeer,BitMinter,CoinHuntr,Eligius,Eobot,FiftyBTC,GHashIO,HypernovaPw,LTCMineRu,LiteGuardian,LitecoinPool,MiningPoolCo,Multipool,NiceHash,OzCoinBTC,OzCoinLTC,ScryptGuild,Slush,TripleMining,WestHash,YPool

Basic miner type.

Instances of this account may be represented as an Account, and can be used to obtain current balances for this account. For example, get the current wallet balances for a mining pool or exchange wallet.

In theory this could also be extended to cryptocurrency addresses? (from AccountType)


Method Summary

Name Description
fetchJSON($url, Logger $logger, $throttle = 3) Fetch the JSON from the given GET URL, or throw a {@Link AccountFetchException} if something bad happened.
jsonDecode($raw) By default, calls Fetch#jsonDecode()

Inherited Method Summary

Name Description
checkFields($account) Basic implementation of #checkFields() using regular expressions. (from SimpleAccountType)
fetchBalance($currency, $account, CurrencyFactory $factory, Logger $logger) Helper function to get all balances for the given currency for this account, or null if there is no balance for this currency. May block. (from SimpleAccountType)
fetchConfirmedBalance($currency, $account, CurrencyFactory $factory, Logger $logger) Helper function to get the current, confirmed, available balance of the given currency for this account. May block. (from SimpleAccountType)
throttle(Logger $logger, $default = 3) This allows all exchanges to optionally throttle multiple repeated requests based on a runtime configuration value. The throttle time is selected from either the accounts_NAME_throttle or accounts_throttle config values, or $default seconds; which is the time in seconds to wait between repeated requests. (from SimpleAccountType)

public function fetchJSON($url, Logger $logger, $throttle = 3)

Fetch the JSON from the given GET URL, or throw a {@Link AccountFetchException} if something bad happened.

Parameters:
$throttle - the default delay, or 3 seconds if not specified
Defaults:
throttle = 3

public function jsonDecode($raw)

By default, calls Fetch#jsonDecode()

Throws:
FetchException - if the JSON could not be read