Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
rpcrawtransaction.cpp File Reference
#include "base58.h"
#include "core.h"
#include "init.h"
#include "keystore.h"
#include "main.h"
#include "net.h"
#include "rpcserver.h"
#include "uint256.h"
#include <stdint.h>
#include <boost/assign/list_of.hpp>
#include "json/json_spirit_utils.h"
#include "json/json_spirit_value.h"
+ Include dependency graph for rpcrawtransaction.cpp:

Go to the source code of this file.

Functions

void ScriptPubKeyToJSON (const CScript &scriptPubKey, Object &out, bool fIncludeHex)
 
void TxToJSON (const CTransaction &tx, const uint256 hashBlock, Object &entry)
 
Value getrawtransaction (const Array &params, bool fHelp)
 
Value createrawtransaction (const Array &params, bool fHelp)
 
Value decoderawtransaction (const Array &params, bool fHelp)
 
Value decodescript (const Array &params, bool fHelp)
 
Value signrawtransaction (const Array &params, bool fHelp)
 
Value sendrawtransaction (const Array &params, bool fHelp)
 

Function Documentation

Value createrawtransaction ( const Array &  params,
bool  fHelp 
)
Value decoderawtransaction ( const Array &  params,
bool  fHelp 
)

Definition at line 395 of file rpcrawtransaction.cpp.

References HelpExampleCli(), HelpExampleRpc(), JSONRPCError(), ParseHexV(), PROTOCOL_VERSION, RPC_DESERIALIZATION_ERROR, SER_NETWORK, and TxToJSON().

+ Here is the call graph for this function:

Value decodescript ( const Array &  params,
bool  fHelp 
)

Definition at line 462 of file rpcrawtransaction.cpp.

References CScript::GetID(), HelpExampleCli(), HelpExampleRpc(), ParseHexV(), RPCTypeCheck(), and ScriptPubKeyToJSON().

+ Here is the call graph for this function:

Value getrawtransaction ( const Array &  params,
bool  fHelp 
)

Definition at line 111 of file rpcrawtransaction.cpp.

References CDataStream::begin(), CDataStream::end(), GetTransaction(), HelpExampleCli(), HelpExampleRpc(), HexStr(), JSONRPCError(), ParseHashV(), PROTOCOL_VERSION, RPC_INVALID_ADDRESS_OR_KEY, SER_NETWORK, and TxToJSON().

+ Here is the call graph for this function:

void ScriptPubKeyToJSON ( const CScript scriptPubKey,
Object &  out,
bool  fIncludeHex 
)

Definition at line 29 of file rpcrawtransaction.cpp.

References ExtractDestinations(), GetTxnOutputType(), HexStr(), and CScript::ToString().

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Value sendrawtransaction ( const Array &  params,
bool  fHelp 
)
Value signrawtransaction ( const Array &  params,
bool  fHelp 
)
void TxToJSON ( const CTransaction tx,
const uint256  hashBlock,
Object &  entry 
)

Definition at line 54 of file rpcrawtransaction.cpp.

References chainActive, CChain::Contains(), CTransaction::GetHash(), base_uint< BITS >::GetHex(), COutPoint::hash, CChain::Height(), HexStr(), CTransaction::IsCoinBase(), mapBlockIndex, COutPoint::n, CBlockIndex::nHeight, CTransaction::nLockTime, CTxIn::nSequence, CBlockIndex::nTime, CTxOut::nValue, CTransaction::nVersion, CTxIn::prevout, CTxOut::scriptPubKey, ScriptPubKeyToJSON(), CTxIn::scriptSig, CScript::ToString(), ValueFromAmount(), CTransaction::vin, and CTransaction::vout.

Referenced by decoderawtransaction(), and getrawtransaction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: