Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

rawtransaction.cpp File Reference
#include <base58.h>
#include <chain.h>
#include <coins.h>
#include <consensus/validation.h>
#include <core_io.h>
#include <init.h>
#include <keystore.h>
#include <validation.h>
#include <validationinterface.h>
#include <merkleblock.h>
#include <net.h>
#include <policy/policy.h>
#include <primitives/transaction.h>
#include <rpc/safemode.h>
#include <rpc/server.h>
#include <script/script.h>
#include <script/script_error.h>
#include <script/sign.h>
#include <script/standard.h>
#include <txmempool.h>
#include <uint256.h>
#include <utilstrencodings.h>
#include <evo/specialtx.h>
#include <evo/providertx.h>
#include <evo/cbtx.h>
#include <llmq/quorums_chainlocks.h>
#include <llmq/quorums_commitment.h>
#include <llmq/quorums_instantsend.h>
#include <future>
#include <stdint.h>
#include <univalue.h>
+ Include dependency graph for rawtransaction.cpp:

Go to the source code of this file.

Functions

void TxToJSON (const CTransaction &tx, const uint256 hashBlock, UniValue &entry)
 
UniValue getrawtransaction (const JSONRPCRequest &request)
 
UniValue gettxoutproof (const JSONRPCRequest &request)
 
UniValue verifytxoutproof (const JSONRPCRequest &request)
 
UniValue createrawtransaction (const JSONRPCRequest &request)
 
UniValue decoderawtransaction (const JSONRPCRequest &request)
 
UniValue decodescript (const JSONRPCRequest &request)
 
static void TxInErrorToJSON (const CTxIn &txin, UniValue &vErrorsRet, const std::string &strMessage)
 Pushes a JSON object for script verification or signing errors to vErrorsRet. More...
 
UniValue combinerawtransaction (const JSONRPCRequest &request)
 
UniValue signrawtransaction (const JSONRPCRequest &request)
 
UniValue sendrawtransaction (const JSONRPCRequest &request)
 
void RegisterRawTransactionRPCCommands (CRPCTable &t)
 Register raw transaction RPC commands. More...
 

Variables

static const CRPCCommand commands []
 

Function Documentation

◆ combinerawtransaction()

◆ createrawtransaction()

◆ decoderawtransaction()

◆ decodescript()

◆ getrawtransaction()

◆ gettxoutproof()

◆ RegisterRawTransactionRPCCommands()

void RegisterRawTransactionRPCCommands ( CRPCTable t)

Register raw transaction RPC commands.

Definition at line 1070 of file rawtransaction.cpp.

References CRPCTable::appendCommand(), ARRAYLEN, commands, and CRPCCommand::name.

Referenced by RegisterAllCoreRPCCommands().

◆ sendrawtransaction()

◆ signrawtransaction()

UniValue signrawtransaction ( const JSONRPCRequest request)

Definition at line 701 of file rawtransaction.cpp.

References CCoinsViewCache::AccessCoin(), CCoinsViewCache::AddCoin(), CBasicKeyStore::AddCScript(), CKeyStore::AddKey(), AmountFromValue(), CombineSignatures(), CTxMemPool::cs, cs_main, CWallet::cs_wallet, DataFromTransaction(), DecodeHexTx(), UniValue::empty(), EncodeHexTx(), EnsureWalletIsUnlocked(), UniValue::exists(), JSONRPCRequest::fHelp, find_value(), UniValue::get_array(), UniValue::get_int(), UniValue::get_obj(), UniValue::get_str(), CBitcoinSecret::GetKey(), GetWalletForJSONRPCRequest(), HelpExampleCli(), HelpExampleRpc(), HelpRequiringPassphrase(), UniValue::isNull(), UniValue::isObject(), Coin::IsSpent(), CKey::IsValid(), JSONRPCError(), LOCK, mempool, Coin::nHeight, CTxOut::nValue, ObserveSafeMode(), Coin::out, Pair(), JSONRPCRequest::params, ParseHashO(), ParseHexO(), ParseHexV(), pcoinsTip, CTxIn::prevout, ProduceSignature(), UniValue::push_back(), RPC_DESERIALIZATION_ERROR, RPC_INVALID_ADDRESS_OR_KEY, RPC_INVALID_PARAMETER, RPCTypeCheck(), RPCTypeCheckObj(), SCRIPT_ERR_INVALID_STACK_OPERATION, SCRIPT_ERR_OK, ScriptErrorString(), CTxOut::scriptPubKey, CTxIn::scriptSig, ScriptToAsmStr(), CCoinsViewBacked::SetBackend(), CBitcoinSecret::SetString(), SIGHASH_ALL, SIGHASH_ANYONECANPAY, SIGHASH_NONE, SIGHASH_SINGLE, UniValue::size(), STANDARD_SCRIPT_VERIFY_FLAGS, TxInErrorToJSON(), UpdateTransaction(), UniValue::VARR, VerifyScript(), CMutableTransaction::vin, UniValue::VNUM, UniValue::VOBJ, CMutableTransaction::vout, and UniValue::VSTR.

◆ TxInErrorToJSON()

static void TxInErrorToJSON ( const CTxIn txin,
UniValue vErrorsRet,
const std::string &  strMessage 
)
static

◆ TxToJSON()

◆ verifytxoutproof()

Variable Documentation

◆ commands

const CRPCCommand commands[]
static
Initial value:
=
{
{ "rawtransactions", "getrawtransaction", &getrawtransaction, {"txid","verbose","blockhash"} },
{ "rawtransactions", "createrawtransaction", &createrawtransaction, {"inputs","outputs","locktime"} },
{ "rawtransactions", "decoderawtransaction", &decoderawtransaction, {"hexstring"} },
{ "rawtransactions", "decodescript", &decodescript, {"hexstring"} },
{ "rawtransactions", "sendrawtransaction", &sendrawtransaction, {"hexstring","allowhighfees","instantsend","bypasslimits"} },
{ "rawtransactions", "combinerawtransaction", &combinerawtransaction, {"txs"} },
{ "rawtransactions", "signrawtransaction", &signrawtransaction, {"hexstring","prevtxs","privkeys","sighashtype"} },
{ "blockchain", "gettxoutproof", &gettxoutproof, {"txids", "blockhash"} },
{ "blockchain", "verifytxoutproof", &verifytxoutproof, {"proof"} },
}
UniValue combinerawtransaction(const JSONRPCRequest &request)
UniValue decoderawtransaction(const JSONRPCRequest &request)
UniValue decodescript(const JSONRPCRequest &request)
UniValue createrawtransaction(const JSONRPCRequest &request)
UniValue getrawtransaction(const JSONRPCRequest &request)
UniValue verifytxoutproof(const JSONRPCRequest &request)
UniValue sendrawtransaction(const JSONRPCRequest &request)
UniValue gettxoutproof(const JSONRPCRequest &request)
UniValue signrawtransaction(const JSONRPCRequest &request)

Definition at line 1055 of file rawtransaction.cpp.

Referenced by RegisterRawTransactionRPCCommands().

Released under the MIT license