![]() |
Bitcoin ABC 0.34.2
P2P Digital Currency
|
Functions | |
| bool | CWallet::SignTransaction (CMutableTransaction &tx) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| bool | CWallet::SignTransaction (CMutableTransaction &tx, const std::map< COutPoint, Coin > &coins, SigHashType sighash, std::map< int, std::string > &input_errors) const |
| std::optional< common::PSBTError > | CWallet::FillPSBT (PartiallySignedTransaction &psbtx, bool &complete, SigHashType sighash_type=SigHashType().withForkId(), bool sign=true, bool bip32derivs=true, bool finalize=true) const |
| Fills out a PSBT with information from the wallet. More... | |
| SigningResult | CWallet::SignMessage (const std::string &message, const PKHash &pkhash, std::string &str_sig) const |
| OutputType | CWallet::TransactionChangeType (const std::optional< OutputType > &change_type, const std::vector< CRecipient > &vecSend) const |
| void | CWallet::CommitTransaction (CTransactionRef tx, mapValue_t mapValue, std::vector< std::pair< std::string, std::string > > orderForm, bool broadcast=true) |
| Add the transaction to the wallet and maybe attempt to broadcast it. More... | |
| DBErrors | CWallet::LoadWallet () |
| DBErrors | CWallet::ZapSelectTx (std::vector< TxId > &txIdsIn, std::vector< TxId > &txIdsOut) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| bool | CWallet::SetAddressBookWithDB (WalletBatch &batch, const CTxDestination &address, const std::string &strName, const std::string &strPurpose) |
| bool | CWallet::SetAddressBook (const CTxDestination &address, const std::string &strName, const std::string &purpose) |
| bool | CWallet::DelAddressBook (const CTxDestination &address) |
| size_t | CWallet::KeypoolCountExternalKeys () const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| unsigned int | CWallet::GetKeyPoolSize () const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| bool | CWallet::TopUpKeyPool (unsigned int kpSize=0) |
| util::Result< CTxDestination > | CWallet::GetNewDestination (const OutputType type, const std::string &label) |
| util::Result< CTxDestination > | CWallet::GetNewChangeDestination (const OutputType type) |
| int64_t | CWallet::GetOldestKeyPoolTime () const |
| void | CWallet::MarkDestinationsDirty (const std::set< CTxDestination > &destinations) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| Marks all outputs in each one of the destinations dirty, so their cache is reset and does not return outdated information. More... | |
| std::set< CTxDestination > | CWallet::GetLabelAddresses (const std::string &label) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| bool | ReserveDestination::GetReservedDestination (CTxDestination &pubkey, bool internal) |
| Reserve an address. More... | |
| void | ReserveDestination::KeepDestination () |
| Keep the address. More... | |
| void | ReserveDestination::ReturnDestination () |
| Return reserved address. More... | |
| void | CWallet::LockCoin (const COutPoint &output) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| void | CWallet::UnlockCoin (const COutPoint &output) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| void | CWallet::UnlockAllCoins () EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| bool | CWallet::IsLockedCoin (const COutPoint &outpoint) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| void | CWallet::ListLockedCoins (std::vector< COutPoint > &vOutpts) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| void CWallet::CommitTransaction | ( | CTransactionRef | tx, |
| mapValue_t | mapValue, | ||
| std::vector< std::pair< std::string, std::string > > | orderForm, | ||
| bool | broadcast = true |
||
| ) |
Add the transaction to the wallet and maybe attempt to broadcast it.
Should be called after CreateTransaction. The broadcast flag can be set to false if you want to abort broadcasting the transaction.
| [in] | tx | The transaction to be broadcast. |
| [in] | mapValue | key-values to be set on the transaction. |
| [in] | orderForm | BIP 70 / BIP 21 order form details to be set on the transaction. |
| [in] | broadcast | Whether to broadcast this transaction. |
Definition at line 2218 of file wallet.cpp.
| bool CWallet::DelAddressBook | ( | const CTxDestination & | address | ) |
| std::optional< PSBTError > CWallet::FillPSBT | ( | PartiallySignedTransaction & | psbtx, |
| bool & | complete, | ||
| SigHashType | sighash_type = SigHashType().withForkId(), |
||
| bool | sign = true, |
||
| bool | bip32derivs = true, |
||
| bool | finalize = true |
||
| ) | const |
Fills out a PSBT with information from the wallet.
Fills in UTXOs if we have them. Tries to sign if sign=true. Sets complete if the PSBT is now complete (i.e. has all required signatures or signature-parts, and is ready to finalize.) Sets error and returns false if something goes wrong.
| [in] | psbtx | PartiallySignedTransaction to fill in |
| [out] | complete | indicates whether the PSBT is now complete |
| [in] | sighash_type | the sighash type to use when signing (if PSBT does not specify) |
| [in] | sign | whether to sign or not |
| [in] | bip32derivs | whether to fill in bip32 derivation information if available return error |
| [in] | finalize | whether to create the final scriptSig if possible |
Definition at line 2138 of file wallet.cpp.
| unsigned int CWallet::GetKeyPoolSize | ( | ) | const |
Definition at line 2400 of file wallet.cpp.
| std::set< CTxDestination > CWallet::GetLabelAddresses | ( | const std::string & | label | ) | const |
| util::Result< CTxDestination > CWallet::GetNewChangeDestination | ( | const OutputType | type | ) |
Definition at line 2437 of file wallet.cpp.
| util::Result< CTxDestination > CWallet::GetNewDestination | ( | const OutputType | type, |
| const std::string & | label | ||
| ) |
Definition at line 2420 of file wallet.cpp.
| int64_t CWallet::GetOldestKeyPoolTime | ( | ) | const |
| bool ReserveDestination::GetReservedDestination | ( | CTxDestination & | pubkey, |
| bool | internal | ||
| ) |
Reserve an address.
Definition at line 2500 of file wallet.cpp.
| bool CWallet::IsLockedCoin | ( | const COutPoint & | outpoint | ) | const |
Definition at line 2553 of file wallet.cpp.
| void ReserveDestination::KeepDestination | ( | ) |
Keep the address.
Do not return it's key to the keypool when this object goes out of scope
Definition at line 2521 of file wallet.cpp.
| size_t CWallet::KeypoolCountExternalKeys | ( | ) | const |
Definition at line 2389 of file wallet.cpp.
| void CWallet::ListLockedCoins | ( | std::vector< COutPoint > & | vOutpts | ) | const |
Definition at line 2559 of file wallet.cpp.
| DBErrors CWallet::LoadWallet | ( | ) |
Definition at line 2265 of file wallet.cpp.
| void CWallet::LockCoin | ( | const COutPoint & | output | ) |
Definition at line 2538 of file wallet.cpp.
| void CWallet::MarkDestinationsDirty | ( | const std::set< CTxDestination > & | destinations | ) |
Marks all outputs in each one of the destinations dirty, so their cache is reset and does not return outdated information.
Definition at line 2461 of file wallet.cpp.
| void ReserveDestination::ReturnDestination | ( | ) |
Return reserved address.
Definition at line 2530 of file wallet.cpp.
| bool CWallet::SetAddressBook | ( | const CTxDestination & | address, |
| const std::string & | strName, | ||
| const std::string & | purpose | ||
| ) |
Definition at line 2348 of file wallet.cpp.
|
private |
Definition at line 2321 of file wallet.cpp.
| SigningResult CWallet::SignMessage | ( | const std::string & | message, |
| const PKHash & | pkhash, | ||
| std::string & | str_sig | ||
| ) | const |
Definition at line 2186 of file wallet.cpp.
| bool CWallet::SignTransaction | ( | CMutableTransaction & | tx | ) | const |
Definition at line 2091 of file wallet.cpp.
| bool CWallet::SignTransaction | ( | CMutableTransaction & | tx, |
| const std::map< COutPoint, Coin > & | coins, | ||
| SigHashType | sighash, | ||
| std::map< int, std::string > & | input_errors | ||
| ) | const |
| bool CWallet::TopUpKeyPool | ( | unsigned int | kpSize = 0 | ) |
Definition at line 2410 of file wallet.cpp.
| OutputType CWallet::TransactionChangeType | ( | const std::optional< OutputType > & | change_type, |
| const std::vector< CRecipient > & | vecSend | ||
| ) | const |
Definition at line 2202 of file wallet.cpp.
| void CWallet::UnlockAllCoins | ( | ) |
Definition at line 2548 of file wallet.cpp.
| void CWallet::UnlockCoin | ( | const COutPoint & | output | ) |
Definition at line 2543 of file wallet.cpp.
Definition at line 2289 of file wallet.cpp.