- Openclerk\Currencies\AddressableCurrency
interface Openclerk\Currencies \ AddressableCurrency
- 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, Ripple, Storjcoin, Terracoin, Vericoin, Vertcoin, Viacoin, Worldcoin, Cryptocurrency
An "AddressableCurrency" is a Currency which has unique account identifiers that can be used to obtain balance information. For example, all cryptocurrencies are AddressableCurrencies.
The action of actually getting account balances is handled by a different interface, BalanceableCurrency.
Method Summary
Name | Description |
---|---|
getBalanceURL($id) | |
getExplorerName() | |
getExplorerURL() | |
hasExplorer() | |
isValid($id) | Is this account identifier valid for this currency? |
public function getBalanceURL($id)
- Returns:
a public URL for exploring the given account, ornull
if there is none
public function getExplorerName()
- Returns:
the name of the explorer, ornull
if there is none- See:
public function getExplorerURL()
- Returns:
a public URL for the explorer, ornull
if there is none- See:
public function hasExplorer()
- Returns:
true if this Currency has a public explorer that can be used to look at an individual account.
public function isValid($id)
Is this account identifier valid for this currency?
- Returns:
false if this account identifier is not valid