![]() |
Bitcoin Core 32.1.0
P2P Digital Currency
|
#include <rpc/register.h>#include <addresstype.h>#include <base58.h>#include <chain.h>#include <coins.h>#include <common/types.h>#include <consensus/amount.h>#include <core_io.h>#include <crypto/common.h>#include <crypto/hex_base.h>#include <hash.h>#include <index/txindex.h>#include <kernel/chainparams.h>#include <key.h>#include <key_io.h>#include <node/blockstorage.h>#include <node/coin.h>#include <node/context.h>#include <node/psbt.h>#include <node/transaction.h>#include <policy/feerate.h>#include <primitives/block.h>#include <primitives/transaction.h>#include <psbt.h>#include <pubkey.h>#include <random.h>#include <rpc/protocol.h>#include <rpc/rawtransaction_util.h>#include <rpc/request.h>#include <rpc/server.h>#include <rpc/server_util.h>#include <rpc/util.h>#include <script/interpreter.h>#include <script/keyorigin.h>#include <script/script.h>#include <script/sign.h>#include <script/signingprovider.h>#include <script/solver.h>#include <serialize.h>#include <streams.h>#include <sync.h>#include <tinyformat.h>#include <txmempool.h>#include <uint256.h>#include <undo.h>#include <univalue.h>#include <util/bip32.h>#include <util/check.h>#include <util/expected.h>#include <util/result.h>#include <util/strencodings.h>#include <util/translation.h>#include <util/vector.h>#include <validation.h>#include <algorithm>#include <any>#include <bitset>#include <cstddef>#include <cstdint>#include <map>#include <memory>#include <optional>#include <set>#include <span>#include <tuple>#include <utility>#include <vector>Go to the source code of this file.
Functions | |
| static void | TxToJSON (const CTransaction &tx, const uint256 hashBlock, UniValue &entry, Chainstate &active_chainstate, const CTxUndo *txundo=nullptr, TxVerbosity verbosity=TxVerbosity::SHOW_DETAILS) |
| static std::vector< RPCArg > | CreateTxDoc () |
| PartiallySignedTransaction | ProcessPSBT (const std::string &psbt_string, const std::any &context, const HidingSigningProvider &provider, std::optional< int > sighash_type, bool finalize) |
| static RPCMethod | getrawtransaction () |
| static RPCMethod | createrawtransaction () |
| static RPCMethod | decoderawtransaction () |
| static RPCMethod | decodescript () |
| static RPCMethod | combinerawtransaction () |
| static RPCMethod | signrawtransactionwithkey () |
| const RPCResult & | DecodePSBTInputs () |
| const RPCResult & | DecodePSBTOutputs () |
| static RPCMethod | decodepsbt () |
| static RPCMethod | combinepsbt () |
| static RPCMethod | finalizepsbt () |
| static RPCMethod | createpsbt () |
| static RPCMethod | converttopsbt () |
| static RPCMethod | utxoupdatepsbt () |
| static RPCMethod | joinpsbts () |
| static RPCMethod | analyzepsbt () |
| RPCMethod | descriptorprocesspsbt () |
| void | RegisterRawTransactionRPCCommands (CRPCTable &t) |
| PSBTAnalysis | AnalyzePSBT (PartiallySignedTransaction psbtx) |
| Provides helpful miscellaneous information about where a PSBT is in the signing workflow. | |
| void | FindCoins (const node::NodeContext &node, std::map< COutPoint, Coin > &coins) |
| Look up unspent output information. | |
| CTransactionRef | GetTransaction (const CBlockIndex *block_index, const CTxMemPool *mempool, const Txid &hash, const BlockManager &blockman, uint256 &hashBlock) |
| Return transaction with a given hash. | |
Variables | |
| static constexpr decltype(CTransaction::version) | DEFAULT_RAWTX_VERSION {CTransaction::CURRENT_VERSION} |
Provides helpful miscellaneous information about where a PSBT is in the signing workflow.
| [in] | psbtx | the PSBT to analyze |
|
static |
Definition at line 1973 of file rawtransaction.cpp.
|
static |
Definition at line 1623 of file rawtransaction.cpp.
|
static |
Definition at line 611 of file rawtransaction.cpp.
|
static |
Definition at line 1774 of file rawtransaction.cpp.
|
static |
Definition at line 1727 of file rawtransaction.cpp.
|
static |
Definition at line 403 of file rawtransaction.cpp.
|
static |
Definition at line 113 of file rawtransaction.cpp.
|
static |
Definition at line 1074 of file rawtransaction.cpp.
| const RPCResult & DecodePSBTInputs | ( | ) |
Definition at line 822 of file rawtransaction.cpp.
| const RPCResult & DecodePSBTOutputs | ( | ) |
Definition at line 988 of file rawtransaction.cpp.
|
static |
Definition at line 435 of file rawtransaction.cpp.
|
static |
Definition at line 476 of file rawtransaction.cpp.
| RPCMethod descriptorprocesspsbt | ( | ) |
Definition at line 2083 of file rawtransaction.cpp.
|
static |
Definition at line 1670 of file rawtransaction.cpp.
| void node::FindCoins | ( | const NodeContext & | node, |
| std::map< COutPoint, Coin > & | coins ) |
Look up unspent output information.
Returns coins in the mempool and in the current chain UTXO set. Iterates through all the keys in the map and populates the values.
| [in] | node | The node context to use for lookup |
| [in,out] | coins | map to fill |
Definition at line 12 of file coin.cpp.
|
static |
Definition at line 240 of file rawtransaction.cpp.
| CTransactionRef node::GetTransaction | ( | const CBlockIndex *const | block_index, |
| const CTxMemPool *const | mempool, | ||
| const Txid & | hash, | ||
| const BlockManager & | blockman, | ||
| uint256 & | hashBlock ) |
Return transaction with a given hash.
If mempool is provided and block_index is not provided, check it first for the tx. If -txindex is available, check it next for the tx. Finally, if block_index is provided, check for tx by reading entire block from disk.
| [in] | block_index | The block to read from disk, or nullptr |
| [in] | mempool | If provided, check mempool for tx |
| [in] | hash | The txid |
| [in] | blockman | Used to access and read blocks from disk |
| [out] | hashBlock | The block hash, if the tx was found via -txindex or block_index |
Definition at line 142 of file transaction.cpp.
|
static |
Definition at line 1890 of file rawtransaction.cpp.
| PartiallySignedTransaction ProcessPSBT | ( | const std::string & | psbt_string, |
| const std::any & | context, | ||
| const HidingSigningProvider & | provider, | ||
| std::optional< int > | sighash_type, | ||
| bool | finalize ) |
Definition at line 154 of file rawtransaction.cpp.
| void RegisterRawTransactionRPCCommands | ( | CRPCTable & | t | ) |
Definition at line 2170 of file rawtransaction.cpp.
|
static |
Definition at line 716 of file rawtransaction.cpp.
|
static |
Definition at line 84 of file rawtransaction.cpp.
|
static |
Definition at line 1843 of file rawtransaction.cpp.
|
staticconstexpr |
Definition at line 82 of file rawtransaction.cpp.