- Openclerk\Currencies\ConfirmableCurrency
interface Openclerk\Currencies \ ConfirmableCurrency
- All implemented interfaces:
- Currency
- All known implementing classes:
- Bitcoin, Digitalcoin, Megacoin, Peercoin
A "ConfirmableCurrency" is a currency which can get the balance with a given number of confirmations. It should probably also extend BlockCurrency.
This is the base interface; other interfaces will provide additional functionality as necessary. (from Currency)
Method Summary
Name | Description |
---|---|
getBalanceWithConfirmations($address, $confirmations, Logger $logger) | Get the balance at the given number of confirmations. If this is also a BlockBalanceableCurrency then we can emulate this through #getBalanceAtBlock. |
public function getBalanceWithConfirmations($address, $confirmations, Logger $logger)
Get the balance at the given number of confirmations. If this is also a BlockBalanceableCurrency then we can emulate this through #getBalanceAtBlock.
- Parameters:
$confirmations
- the number of confirmations to use- Throws:
BalanceException if something happened and the balance could not be obtained