- Cryptocurrency\Services\BlockchainInfo
class Cryptocurrency\Services \ BlockchainInfo
Represents something that can fetch Bitcoin statistics.
Blockchain job (BTC).
Method Summary
public function getBalance($address, Logger $logger, $is_received = false)
- Defaults:
is_received
=false
public function getBalanceAtBlock($address, $block = null, Logger $logger, $is_received = false)
We can emulate this through confirmations.
- Parameters:
$block
- may benull
- Defaults:
block
=null
is_received
=false
- Throws:
BalanceException if something happened and the balance could not be obtained.
public function getBalanceWithConfirmations($address, $confirmations, Logger $logger, $is_received = false)
- Defaults:
is_received
=false
public function getBlockCount(Logger $logger)
- Throws:
BlockException if something happened and the balance could not be obtained.
public function getDifficulty(Logger $logger)
- Throws:
DifficultyException if something happened and the balance could not be obtained.