![]() |
Bitcoin Core 28.0.0
P2P Digital Currency
|
Functions | |
| bool | wallet::CWallet::SignTransaction (CMutableTransaction &tx) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| Fetch the inputs and sign with SIGHASH_ALL. | |
| bool | wallet::CWallet::SignTransaction (CMutableTransaction &tx, const std::map< COutPoint, Coin > &coins, int sighash, std::map< int, bilingual_str > &input_errors) const |
| Sign the tx given the input coins and sighash. | |
| std::optional< common::PSBTError > | wallet::CWallet::FillPSBT (PartiallySignedTransaction &psbtx, bool &complete, int sighash_type=SIGHASH_DEFAULT, bool sign=true, bool bip32derivs=true, size_t *n_signed=nullptr, bool finalize=true) const |
| Fills out a PSBT with information from the wallet. | |
| SigningResult | wallet::CWallet::SignMessage (const std::string &message, const PKHash &pkhash, std::string &str_sig) const |
| OutputType | wallet::CWallet::TransactionChangeType (const std::optional< OutputType > &change_type, const std::vector< CRecipient > &vecSend) const |
| void | wallet::CWallet::CommitTransaction (CTransactionRef tx, mapValue_t mapValue, std::vector< std::pair< std::string, std::string > > orderForm) |
| Submit the transaction to the node's mempool and then relay to peers. | |
| DBErrors | wallet::CWallet::LoadWallet () |
| util::Result< void > | wallet::CWallet::RemoveTxs (std::vector< uint256 > &txs_to_remove) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| Erases the provided transactions from the wallet. | |
| bool | wallet::CWallet::SetAddressBookWithDB (WalletBatch &batch, const CTxDestination &address, const std::string &strName, const std::optional< AddressPurpose > &strPurpose) |
| bool | wallet::CWallet::SetAddressBook (const CTxDestination &address, const std::string &strName, const std::optional< AddressPurpose > &purpose) |
| bool | wallet::CWallet::DelAddressBook (const CTxDestination &address) |
| bool | wallet::CWallet::DelAddressBookWithDB (WalletBatch &batch, const CTxDestination &address) |
| size_t | wallet::CWallet::KeypoolCountExternalKeys () const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| unsigned int | wallet::CWallet::GetKeyPoolSize () const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| bool | wallet::CWallet::TopUpKeyPool (unsigned int kpSize=0) |
| util::Result< CTxDestination > | wallet::CWallet::GetNewDestination (const OutputType type, const std::string label) |
| util::Result< CTxDestination > | wallet::CWallet::GetNewChangeDestination (const OutputType type) |
| std::optional< int64_t > | wallet::CWallet::GetOldestKeyPoolTime () const |
| void | wallet::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. | |
| void | wallet::CWallet::ForEachAddrBookEntry (const ListAddrBookFunc &func) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| std::vector< CTxDestination > | wallet::CWallet::ListAddrBookAddresses (const std::optional< AddrBookFilter > &filter) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| Filter and retrieve destinations stored in the addressbook. | |
| std::set< std::string > | wallet::CWallet::ListAddrBookLabels (const std::optional< AddressPurpose > purpose) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| Retrieve all the known labels in the address book. | |
| util::Result< CTxDestination > | wallet::ReserveDestination::GetReservedDestination (bool internal) |
| Reserve an address. | |
| void | wallet::ReserveDestination::KeepDestination () |
| Keep the address. Do not return its key to the keypool when this object goes out of scope. | |
| void | wallet::ReserveDestination::ReturnDestination () |
| Return reserved address. | |
| util::Result< void > | wallet::CWallet::DisplayAddress (const CTxDestination &dest) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| Display address on an external signer. | |
| bool | wallet::CWallet::LockCoin (const COutPoint &output, WalletBatch *batch=nullptr) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| bool | wallet::CWallet::UnlockCoin (const COutPoint &output, WalletBatch *batch=nullptr) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| bool | wallet::CWallet::UnlockAllCoins () EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| bool | wallet::CWallet::IsLockedCoin (const COutPoint &output) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| void | wallet::CWallet::ListLockedCoins (std::vector< COutPoint > &vOutpts) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
| void wallet::CWallet::CommitTransaction | ( | CTransactionRef | tx, |
| mapValue_t | mapValue, | ||
| std::vector< std::pair< std::string, std::string > > | orderForm ) |
Submit the transaction to the node's mempool and then relay to peers.
Should be called after CreateTransaction unless 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. |
Definition at line 2316 of file wallet.cpp.
| bool wallet::CWallet::DelAddressBook | ( | const CTxDestination & | address | ) |
| bool wallet::CWallet::DelAddressBookWithDB | ( | WalletBatch & | batch, |
| const CTxDestination & | address ) |
Definition at line 2478 of file wallet.cpp.
| util::Result< void > wallet::CWallet::DisplayAddress | ( | const CTxDestination & | dest | ) |
Display address on an external signer.
Definition at line 2686 of file wallet.cpp.
| std::optional< PSBTError > wallet::CWallet::FillPSBT | ( | PartiallySignedTransaction & | psbtx, |
| bool & | complete, | ||
| int | sighash_type = SIGHASH_DEFAULT, | ||
| bool | sign = true, | ||
| bool | bip32derivs = true, | ||
| size_t * | n_signed = nullptr, | ||
| 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 |
| [out] | n_signed | the number of inputs signed by this wallet |
| [in] | finalize | whether to create the final scriptSig or scriptWitness if possible return error |
Definition at line 2188 of file wallet.cpp.
| void wallet::CWallet::ForEachAddrBookEntry | ( | const ListAddrBookFunc & | func | ) | const |
| unsigned int wallet::CWallet::GetKeyPoolSize | ( | ) | const |
Definition at line 2534 of file wallet.cpp.
| util::Result< CTxDestination > wallet::CWallet::GetNewChangeDestination | ( | const OutputType | type | ) |
| util::Result< CTxDestination > wallet::CWallet::GetNewDestination | ( | const OutputType | type, |
| const std::string | label ) |
Definition at line 2555 of file wallet.cpp.
| std::optional< int64_t > wallet::CWallet::GetOldestKeyPoolTime | ( | ) | const |
Definition at line 2582 of file wallet.cpp.
| util::Result< CTxDestination > wallet::ReserveDestination::GetReservedDestination | ( | bool | internal | ) |
Reserve an address.
Definition at line 2649 of file wallet.cpp.
| bool wallet::CWallet::IsLockedCoin | ( | const COutPoint & | output | ) | const |
Definition at line 2732 of file wallet.cpp.
| void wallet::ReserveDestination::KeepDestination | ( | ) |
Keep the address. Do not return its key to the keypool when this object goes out of scope.
Definition at line 2668 of file wallet.cpp.
| size_t wallet::CWallet::KeypoolCountExternalKeys | ( | ) | const |
| std::vector< CTxDestination > wallet::CWallet::ListAddrBookAddresses | ( | const std::optional< AddrBookFilter > & | filter | ) | const |
Filter and retrieve destinations stored in the addressbook.
Definition at line 2619 of file wallet.cpp.
| std::set< std::string > wallet::CWallet::ListAddrBookLabels | ( | const std::optional< AddressPurpose > | purpose | ) | const |
Retrieve all the known labels in the address book.
Definition at line 2635 of file wallet.cpp.
| void wallet::CWallet::ListLockedCoins | ( | std::vector< COutPoint > & | vOutpts | ) | const |
Definition at line 2738 of file wallet.cpp.
| DBErrors wallet::CWallet::LoadWallet | ( | ) |
Definition at line 2357 of file wallet.cpp.
| bool wallet::CWallet::LockCoin | ( | const COutPoint & | output, |
| WalletBatch * | batch = nullptr ) |
| void wallet::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 2596 of file wallet.cpp.
| util::Result< void > wallet::CWallet::RemoveTxs | ( | std::vector< uint256 > & | txs_to_remove | ) |
Erases the provided transactions from the wallet.
Definition at line 2382 of file wallet.cpp.
| void wallet::ReserveDestination::ReturnDestination | ( | ) |
Return reserved address.
Definition at line 2677 of file wallet.cpp.
| bool wallet::CWallet::SetAddressBook | ( | const CTxDestination & | address, |
| const std::string & | strName, | ||
| const std::optional< AddressPurpose > & | purpose ) |
Definition at line 2465 of file wallet.cpp.
|
private |
Definition at line 2429 of file wallet.cpp.
| SigningResult wallet::CWallet::SignMessage | ( | const std::string & | message, |
| const PKHash & | pkhash, | ||
| std::string & | str_sig ) const |
| bool wallet::CWallet::SignTransaction | ( | CMutableTransaction & | tx | ) | const |
Fetch the inputs and sign with SIGHASH_ALL.
Definition at line 2154 of file wallet.cpp.
| bool wallet::CWallet::SignTransaction | ( | CMutableTransaction & | tx, |
| const std::map< COutPoint, Coin > & | coins, | ||
| int | sighash, | ||
| std::map< int, bilingual_str > & | input_errors ) const |
Sign the tx given the input coins and sighash.
Definition at line 2173 of file wallet.cpp.
| bool wallet::CWallet::TopUpKeyPool | ( | unsigned int | kpSize = 0 | ) |
Definition at line 2545 of file wallet.cpp.
| OutputType wallet::CWallet::TransactionChangeType | ( | const std::optional< OutputType > & | change_type, |
| const std::vector< CRecipient > & | vecSend ) const |
| bool wallet::CWallet::UnlockAllCoins | ( | ) |
| bool wallet::CWallet::UnlockCoin | ( | const COutPoint & | output, |
| WalletBatch * | batch = nullptr ) |
Definition at line 2710 of file wallet.cpp.