- Openclerk\Currencies\BlockCurrency
interface Openclerk\Currencies \ BlockCurrency
- All implemented interfaces:
- Currency
- All known implementing classes:
- Bitcoin, Blackcoin, Darkcoin, Digitalcoin, Dogecoin, Feathercoin, Hobonickels, Ixcoin, Litecoin, Megacoin, Namecoin, Netcoin, Novacoin, NuBits, NuShares, Nxt, Peercoin, Primecoin, Reddcoin, Terracoin, Vericoin, Vertcoin, Viacoin, Worldcoin
A "BlockCurrency" is a currency which consists of blocks in a blockchain, and we can get the number of blocks that are currently present in that blockchain.
This is the base interface; other interfaces will provide additional functionality as necessary. (from Currency)
- See:
Method Summary
Name | Description |
---|---|
getBlockCount(Logger $logger) | Get the most recent block count for this currency. This method blocks until the block count has been obtained. |
public function getBlockCount(Logger $logger)
Get the most recent block count for this currency. This method blocks until the block count has been obtained.
- Parameters:
$logger
- a logger to log info/error messages to- Throws:
BlockException if something happened and the block count could not be obtained