Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/wallet.h
Show First 20 Lines • Show All 192 Lines • ▼ Show 20 Lines | public: | ||||
virtual TransactionError fillPSBT(SigHashType sighash_type, bool sign, | virtual TransactionError fillPSBT(SigHashType sighash_type, bool sign, | ||||
bool bip32derivs, | bool bip32derivs, | ||||
PartiallySignedTransaction &psbtx, | PartiallySignedTransaction &psbtx, | ||||
bool &complete) const = 0; | bool &complete) const = 0; | ||||
//! Get balances. | //! Get balances. | ||||
virtual WalletBalances getBalances() = 0; | virtual WalletBalances getBalances() = 0; | ||||
//! Get balances if possible without blocking. | //! Get balances if possible without waiting for chain and wallet locks. | ||||
virtual bool tryGetBalances(WalletBalances &balances, int &num_blocks) = 0; | virtual bool tryGetBalances(WalletBalances &balances, int &num_blocks, | ||||
bool force, int cached_num_blocks) = 0; | |||||
//! Get balance. | //! Get balance. | ||||
virtual Amount getBalance() = 0; | virtual Amount getBalance() = 0; | ||||
//! Get available balance. | //! Get available balance. | ||||
virtual Amount getAvailableBalance(const CCoinControl &coin_control) = 0; | virtual Amount getAvailableBalance(const CCoinControl &coin_control) = 0; | ||||
//! Return whether transaction input belongs to wallet. | //! Return whether transaction input belongs to wallet. | ||||
▲ Show 20 Lines • Show All 171 Lines • Show Last 20 Lines |