14#ifndef BITCOIN_WALLET_TYPES_H
15#define BITCOIN_WALLET_TYPES_H
int64_t CAmount
Amount in satoshis (Can be negative)
Fee rate in satoshis per virtualbyte: CAmount / vB the feerate is represented internally as FeeFrac.
WalletErrorCode
Machine-readable wallet error codes.
@ UnlockNeeded
The wallet is locked and the operation requires access to private keys.
@ GenericError
Generic wallet error.
AddressPurpose
Address purpose field that has been been stored with wallet sending and receiving addresses since BIP...
@ REFUND
Never set in current code may be present in older wallet databases.
std::shared_ptr< const CTransaction > CTransactionRef
CreatedTransactionResult(CTransactionRef _tx, CAmount _fee, std::optional< unsigned int > _change_pos, FeeReason _fee_reason)
std::optional< unsigned int > change_pos
std::optional< int > returned_target
MinimumFeeRateResult(CFeeRate fee_rate, FeeReason fee_reason, std::optional< int > returned_target)
Wallet-layer error with both programmatic and user-facing information.
bilingual_str message
User-facing translated error message.
WalletErrorCode code
Machine-readable error code for callers that need programmatic handling.