14#ifndef BITCOIN_WALLET_TYPES_H
15#define BITCOIN_WALLET_TYPES_H
int64_t CAmount
Amount in satoshis (Can be negative)
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, const FeeCalculation &_fee_calc)
std::optional< unsigned int > change_pos
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.