MCPcopy Create free account
hub / github.com/ElementsProject/elements / TransactionDescriptionString

Function TransactionDescriptionString

src/wallet/rpc/transactions.cpp:458–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456
457
458static const std::vector<RPCResult> TransactionDescriptionString()
459{
460 return{{RPCResult::Type::NUM, "confirmations", "The number of confirmations for the transaction. Negative confirmations means the\n"
461 "transaction conflicted that many blocks ago."},
462 {RPCResult::Type::BOOL, "generated", /*optional=*/true, "Only present if the transaction's only input is a coinbase one."},
463 {RPCResult::Type::BOOL, "trusted", /*optional=*/true, "Whether we consider the transaction to be trusted and safe to spend from.\n"
464 "Only present when the transaction has 0 confirmations (or negative confirmations, if conflicted)."},
465 {RPCResult::Type::STR_HEX, "blockhash", /*optional=*/true, "The block hash containing the transaction."},
466 {RPCResult::Type::NUM, "blockheight", /*optional=*/true, "The block height containing the transaction."},
467 {RPCResult::Type::NUM, "blockindex", /*optional=*/true, "The index of the transaction in the block that includes it."},
468 {RPCResult::Type::NUM_TIME, "blocktime", /*optional=*/true, "The block time expressed in " + UNIX_EPOCH_TIME + "."},
469 {RPCResult::Type::STR_HEX, "txid", "The transaction id."},
470 {RPCResult::Type::ARR, "walletconflicts", "Conflicting transaction ids.",
471 {
472 {RPCResult::Type::STR_HEX, "txid", "The transaction id."},
473 }},
474 {RPCResult::Type::STR_HEX, "replaced_by_txid", /*optional=*/true, "The txid if this tx was replaced."},
475 {RPCResult::Type::STR_HEX, "replaces_txid", /*optional=*/true, "The txid if the tx replaces one."},
476 {RPCResult::Type::STR, "comment", /*optional=*/true, ""},
477 {RPCResult::Type::STR, "to", /*optional=*/true, "If a comment to is associated with the transaction."},
478 {RPCResult::Type::NUM_TIME, "time", "The transaction time expressed in " + UNIX_EPOCH_TIME + "."},
479 {RPCResult::Type::NUM_TIME, "timereceived", "The time received expressed in " + UNIX_EPOCH_TIME + "."},
480 {RPCResult::Type::STR, "comment", /*optional=*/true, "If a comment is associated with the transaction, only present if not empty."},
481 {RPCResult::Type::STR, "bip125-replaceable", "(\"yes|no|unknown\") Whether this transaction could be replaced due to BIP125 (replace-by-fee);\n"
482 "may be unknown for unconfirmed transactions not in the mempool."}};
483}
484
485RPCHelpMan listtransactions()
486{

Callers 3

listtransactionsFunction · 0.85
listsinceblockFunction · 0.85
transactions.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected