BlueWallet/class/watch-only-wallet.js
2018-07-08 20:01:52 +01:00

24 lines
397 B
JavaScript

import { LegacyWallet } from './legacy-wallet';
export class WatchOnlyWallet extends LegacyWallet {
constructor() {
super();
this.type = 'watchOnly';
}
getTypeReadable() {
return 'Watch-only';
}
allowSend() {
return false;
}
getAddress() {
return this.secret;
}
createTx(utxos, amount, fee, toAddress, memo) {
throw new Error('Not supported');
}
}