Version: 0.1.20.1.32.0.12.0.22.0.32.0.42.0.52.0.62.1.02.1.12.2.02.2.12.3.02.3.12.3.22.3.32.4.32.5.22.5.32.5.42.5.52.5.62.5.72.5.82.5.92.5.102.5.112.5.122.5.212.5.222.5.302.5.1112.5.1122.5.1132.5.1142.6.02.6.12.6.22.6.32.7.02.8.02.8.12.8.22.8.32.8.42.8.52.8.62.8.72.8.82.8.92.9.12.9.22.9.42.9.52.9.62.9.72.9.82.9.92.9.812.9.822.9.832.10.02.10.92.11.02.11.12.11.22.11.32.11.42.11.52.11.62.11.72.11.82.11.92.12.02.12.12.12.22.12.32.12.42.12.52.12.62.12.72.12.82.12.92.12.102.13.02.13.12.13.22.13.32.13.42.13.52.13.62.13.72.13.82.13.92.14.02.14.12.14.2
/**
* Coin utility
* This is the base abstract class, instanciate via AmonLib.coins only
*/
class CoinHelper {
*
* @param opts
constructor(opts) {
this.opts = opts;
}
* get uri prefix
* @return str prefix
getURIPrefix() {
throw new Error('not implemented');
* Validate blockchain address
* @return bool valid
validAddress(address) {
* Get URL of block explorer for an address
* @return string URL
addressExplorerUrl(address) {
* Get URL of block explorer for a transaction
txExplorerUrl(txId) {
module.exports = CoinHelper;