class Cryptocurrency\Services \ BlockchainInfo


Represents something that can fetch Bitcoin statistics.

Blockchain job (BTC).


Method Summary

Name Description
getBalance($address, Logger $logger, $is_received = false)
getBalanceAtBlock($address, $block = null, Logger $logger, $is_received = false) We can emulate this through confirmations.
getBalanceWithConfirmations($address, $confirmations, Logger $logger, $is_received = false)
getBlockCount(Logger $logger)
getDifficulty(Logger $logger)

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 be null
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.