Bitcoin
|
#include <transactionrecord.h>
Public Types | |
enum | Type { Other, Generated, SendToAddress, SendToOther, RecvWithAddress, RecvFromOther, SendToSelf } |
Public Member Functions | |
TransactionRecord () | |
TransactionRecord (uint256 _hash, qint64 _time) | |
TransactionRecord (uint256 _hash, qint64 _time, Type _type, const std::string &_address, const CAmount &_debit, const CAmount &_credit) | |
QString | getTxHash () const |
int | getOutputIndex () const |
void | updateStatus (const interfaces::WalletTxStatus &wtx, int numBlocks, int64_t block_time) |
bool | statusUpdateNeeded (int numBlocks) const |
Static Public Member Functions | |
static bool | showTransaction () |
static QList< TransactionRecord > | decomposeTransaction (const interfaces::WalletTx &wtx) |
Public Attributes | |
int | idx |
TransactionStatus | status |
bool | involvesWatchAddress |
Immutable transaction attributes | |
uint256 | hash |
qint64 | time |
Type | type |
std::string | address |
CAmount | debit |
CAmount | credit |
Static Public Attributes | |
static const int | RecommendedNumConfirmations = 6 |
UI model for a transaction. A core transaction can be represented by multiple UI transactions if it has multiple outputs.
|
inline |
|
inline |
|
inline |
|
static |
int TransactionRecord::getOutputIndex | ( | ) | const |
Return the output index of the subtransaction
QString TransactionRecord::getTxHash | ( | ) | const |
Return the unique identifier for this transaction (part)
|
static |
Decompose CWallet transaction to model transaction records.
bool TransactionRecord::statusUpdateNeeded | ( | int | numBlocks | ) | const |
Return whether a status update is needed.
void TransactionRecord::updateStatus | ( | const interfaces::WalletTxStatus & | wtx, |
int | numBlocks, | ||
int64_t | block_time | ||
) |
Update status from core wallet tx.
std::string TransactionRecord::address |
CAmount TransactionRecord::credit |
CAmount TransactionRecord::debit |
uint256 TransactionRecord::hash |
int TransactionRecord::idx |
Subtransaction index, for sort key
bool TransactionRecord::involvesWatchAddress |
Whether the transaction was sent/received with a watch-only address
|
static |
Number of confirmation recommended for accepting a transaction
TransactionStatus TransactionRecord::status |
Status: can change with block chain update
qint64 TransactionRecord::time |
Type TransactionRecord::type |