mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 15:04:50 +01:00
24 lines
397 B
JavaScript
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');
|
|
}
|
|
}
|