|
virtual | ~Wallet () |
|
virtual bool | encryptWallet (const SecureString &wallet_passphrase)=0 |
| Encrypt wallet.
|
|
virtual bool | isCrypted ()=0 |
| Return whether wallet is encrypted.
|
|
virtual bool | lock ()=0 |
| Lock wallet.
|
|
virtual bool | unlock (const SecureString &wallet_passphrase)=0 |
| Unlock wallet.
|
|
virtual bool | isLocked ()=0 |
| Return whether wallet is locked.
|
|
virtual bool | changeWalletPassphrase (const SecureString &old_wallet_passphrase, const SecureString &new_wallet_passphrase)=0 |
| Change wallet passphrase.
|
|
virtual void | abortRescan ()=0 |
| Abort a rescan.
|
|
virtual bool | backupWallet (const std::string &filename)=0 |
| Back up wallet.
|
|
virtual std::string | getWalletName ()=0 |
| Get wallet name.
|
|
virtual const CChainParams & | getChainParams ()=0 |
| Get chainparams.
|
|
virtual bool | getNewDestination (const OutputType type, const std::string label, CTxDestination &dest)=0 |
|
virtual bool | getPubKey (const CScript &script, const CKeyID &address, CPubKey &pub_key)=0 |
| Get public key.
|
|
virtual SigningResult | signMessage (const std::string &message, const PKHash &pkhash, std::string &str_sig)=0 |
| Sign message.
|
|
virtual bool | isSpendable (const CTxDestination &dest)=0 |
| Return whether wallet has private key.
|
|
virtual bool | haveWatchOnly ()=0 |
| Return whether wallet has watch only keys.
|
|
virtual bool | setAddressBook (const CTxDestination &dest, const std::string &name, const std::string &purpose)=0 |
| Add or update address.
|
|
virtual bool | delAddressBook (const CTxDestination &dest)=0 |
|
virtual bool | getAddress (const CTxDestination &dest, std::string *name, isminetype *is_mine, std::string *purpose)=0 |
| Look up address in wallet, return whether exists.
|
|
virtual std::vector< WalletAddress > | getAddresses ()=0 |
| Get wallet address list.
|
|
virtual bool | addDestData (const CTxDestination &dest, const std::string &key, const std::string &value)=0 |
| Add dest data.
|
|
virtual bool | eraseDestData (const CTxDestination &dest, const std::string &key)=0 |
| Erase dest data.
|
|
virtual std::vector< std::string > | getDestValues (const std::string &prefix)=0 |
| Get dest values with prefix.
|
|
virtual void | lockCoin (const COutPoint &output)=0 |
| Lock coin.
|
|
virtual void | unlockCoin (const COutPoint &output)=0 |
| Unlock coin.
|
|
virtual bool | isLockedCoin (const COutPoint &output)=0 |
| Return whether coin is locked.
|
|
virtual void | listLockedCoins (std::vector< COutPoint > &outputs)=0 |
| List locked coins.
|
|
virtual CTransactionRef | createTransaction (const std::vector< CRecipient > &recipients, const CCoinControl &coin_control, bool sign, int &change_pos, Amount &fee, bilingual_str &fail_reason)=0 |
| Create transaction.
|
|
virtual void | commitTransaction (CTransactionRef tx, WalletValueMap value_map, WalletOrderForm order_form)=0 |
| Commit transaction.
|
|
virtual bool | transactionCanBeAbandoned (const TxId &txid)=0 |
| Return whether transaction can be abandoned.
|
|
virtual bool | abandonTransaction (const TxId &txid)=0 |
| Abandon transaction.
|
|
virtual CTransactionRef | getTx (const TxId &txid)=0 |
| Get a transaction.
|
|
virtual WalletTx | getWalletTx (const TxId &txid)=0 |
| Get transaction information.
|
|
virtual std::vector< WalletTx > | getWalletTxs ()=0 |
| Get list of all wallet transactions.
|
|
virtual bool | tryGetTxStatus (const TxId &txid, WalletTxStatus &tx_status, int &num_blocks, int64_t &block_time)=0 |
| Try to get updated status for a particular transaction, if possible without blocking.
|
|
virtual WalletTx | getWalletTxDetails (const TxId &txid, WalletTxStatus &tx_status, WalletOrderForm &order_form, bool &in_mempool, int &num_blocks)=0 |
| Get transaction details.
|
|
virtual TransactionError | fillPSBT (SigHashType sighash_type, bool sign, bool bip32derivs, PartiallySignedTransaction &psbtx, bool &complete) const =0 |
| Fill PSBT.
|
|
virtual WalletBalances | getBalances ()=0 |
| Get balances.
|
|
virtual bool | tryGetBalances (WalletBalances &balances, BlockHash &block_hash)=0 |
| Get balances if possible without blocking.
|
|
virtual Amount | getBalance ()=0 |
| Get balance.
|
|
virtual Amount | getAvailableBalance (const CCoinControl &coin_control)=0 |
| Get available balance.
|
|
virtual isminetype | txinIsMine (const CTxIn &txin)=0 |
| Return whether transaction input belongs to wallet.
|
|
virtual isminetype | txoutIsMine (const CTxOut &txout)=0 |
| Return whether transaction output belongs to wallet.
|
|
virtual Amount | getDebit (const CTxIn &txin, isminefilter filter)=0 |
| Return debit amount if transaction input belongs to wallet.
|
|
virtual Amount | getCredit (const CTxOut &txout, isminefilter filter)=0 |
| Return credit amount if transaction input belongs to wallet.
|
|
virtual CoinsList | listCoins ()=0 |
|
virtual std::vector< WalletTxOut > | getCoins (const std::vector< COutPoint > &outputs)=0 |
| Return wallet transaction output information.
|
|
virtual Amount | getRequiredFee (unsigned int tx_bytes)=0 |
| Get required fee.
|
|
virtual Amount | getMinimumFee (unsigned int tx_bytes, const CCoinControl &coin_control)=0 |
| Get minimum fee.
|
|
virtual bool | hdEnabled ()=0 |
|
virtual bool | canGetAddresses () const =0 |
|
virtual bool | privateKeysDisabled ()=0 |
|
virtual OutputType | getDefaultAddressType ()=0 |
|
virtual Amount | getDefaultMaxTxFee ()=0 |
| Get max tx fee.
|
|
virtual void | remove ()=0 |
|
virtual bool | isLegacy ()=0 |
| Return whether is a legacy wallet.
|
|
virtual std::unique_ptr< Handler > | handleUnload (UnloadFn fn)=0 |
|
virtual std::unique_ptr< Handler > | handleShowProgress (ShowProgressFn fn)=0 |
|
virtual std::unique_ptr< Handler > | handleStatusChanged (StatusChangedFn fn)=0 |
|
virtual std::unique_ptr< Handler > | handleAddressBookChanged (AddressBookChangedFn fn)=0 |
|
virtual std::unique_ptr< Handler > | handleTransactionChanged (TransactionChangedFn fn)=0 |
|
virtual std::unique_ptr< Handler > | handleWatchOnlyChanged (WatchOnlyChangedFn fn)=0 |
|
virtual std::unique_ptr< Handler > | handleCanGetAddressesChanged (CanGetAddressesChangedFn fn)=0 |
|
virtual CWallet * | wallet () |
| Return pointer to internal wallet class, useful for testing.
|
|
Interface for accessing a wallet.
Definition at line 59 of file wallet.h.