Dash Core  0.12.2.1
P2P Digital Currency
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 "merkleblock.h"
#include "net.h"
#include "policy/policy.h"
#include "primitives/transaction.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 "instantx.h"
#include <stdint.h>
#include <boost/assign/list_of.hpp>
#include <univalue.h>

Go to the source code of this file.

Functions

void ScriptPubKeyToJSON (const CScript &scriptPubKey, UniValue &out, bool fIncludeHex)
 
void TxToJSON (const CTransaction &tx, const uint256 hashBlock, UniValue &entry)
 
UniValue getrawtransaction (const UniValue &params, bool fHelp)
 
UniValue gettxoutproof (const UniValue &params, bool fHelp)
 
UniValue verifytxoutproof (const UniValue &params, bool fHelp)
 
UniValue createrawtransaction (const UniValue &params, bool fHelp)
 
UniValue decoderawtransaction (const UniValue &params, bool fHelp)
 
UniValue decodescript (const UniValue &params, bool fHelp)
 
static void TxInErrorToJSON (const CTxIn &txin, UniValue &vErrorsRet, const std::string &strMessage)
 
UniValue signrawtransaction (const UniValue &params, bool fHelp)
 
UniValue sendrawtransaction (const UniValue &params, bool fHelp)
 

Function Documentation

◆ createrawtransaction()

◆ decoderawtransaction()

◆ decodescript()

UniValue decodescript ( const UniValue params,
bool  fHelp 
)

Definition at line 526 of file rawtransaction.cpp.

◆ getrawtransaction()

◆ gettxoutproof()

UniValue gettxoutproof ( const UniValue params,
bool  fHelp 
)

Definition at line 235 of file rawtransaction.cpp.

Referenced by merkle_blocks.MerkleBlockTest::run_test().

◆ ScriptPubKeyToJSON()

void ScriptPubKeyToJSON ( const CScript scriptPubKey,
UniValue out,
bool  fIncludeHex 
)

Definition at line 40 of file rawtransaction.cpp.

Referenced by decodescript(), gettxout(), rest_getutxos(), and TxToJSON().

◆ sendrawtransaction()

UniValue sendrawtransaction ( const UniValue params,
bool  fHelp 
)

Definition at line 830 of file rawtransaction.cpp.

Referenced by listtransactions.ListTransactionsTest::run_rbf_opt_in_test(), abandonconflict.AbandonConflictTest::run_test(), txn_clone.TxnMallTest::run_test(), txn_doublespend.TxnMallTest::run_test(), mempool_resurrect_test.MempoolCoinbaseTest::run_test(), fundrawtransaction.RawTransactionsTest::run_test(), fundrawtransaction-hd.RawTransactionsTest::run_test(), mempool_limit.MempoolLimitTest::run_test(), mempool_reorg.MempoolCoinbaseTest::run_test(), mempool_spendcoinbase.MempoolSpendCoinbaseTest::run_test(), prioritise_transaction.PrioritiseTransactionTest::run_test(), merkle_blocks.MerkleBlockTest::run_test(), wallet.WalletTest::run_test(), rawtransactions.RawTransactionsTest::run_test(), addressindex.AddressIndexTest::run_test(), spentindex.SpentIndexTest::run_test(), txindex.TxIndexTest::run_test(), mempool_packages.MempoolPackagesTest::run_test(), bip68-sequence.BIP68Test::test_bip68_not_consensus(), bip68-sequence.BIP68Test::test_disable_flag(), replace-by-fee.ReplaceByFeeTest::test_doublespend_chain(), replace-by-fee.ReplaceByFeeTest::test_doublespend_tree(), replace-by-fee.ReplaceByFeeTest::test_new_unconfirmed_inputs(), replace-by-fee.ReplaceByFeeTest::test_opt_in(), replace-by-fee.ReplaceByFeeTest::test_prioritised_transactions(), replace-by-fee.ReplaceByFeeTest::test_replacement_feeperkb(), bip68-sequence.BIP68Test::test_sequence_lock_confirmed_inputs(), bip68-sequence.BIP68Test::test_sequence_lock_unconfirmed_inputs(), replace-by-fee.ReplaceByFeeTest::test_simple_doublespend(), replace-by-fee.ReplaceByFeeTest::test_spends_of_conflicting_outputs(), replace-by-fee.ReplaceByFeeTest::test_too_many_replacements(), and bip68-sequence.BIP68Test::test_version2_relay().

◆ signrawtransaction()

◆ TxInErrorToJSON()

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

Pushes a JSON object for script verification or signing errors to vErrorsRet.

Definition at line 577 of file rawtransaction.cpp.

Referenced by signrawtransaction().

◆ TxToJSON()

void TxToJSON ( const CTransaction tx,
const uint256  hashBlock,
UniValue entry 
)

Definition at line 64 of file rawtransaction.cpp.

Referenced by blockToJSON(), decoderawtransaction(), getrawtransaction(), and rest_tx().

◆ verifytxoutproof()

UniValue verifytxoutproof ( const UniValue params,
bool  fHelp 
)

Definition at line 321 of file rawtransaction.cpp.

Referenced by merkle_blocks.MerkleBlockTest::run_test().