![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
#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"
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 ¶ms, bool fHelp) |
Value | createrawtransaction (const Array ¶ms, bool fHelp) |
Value | decoderawtransaction (const Array ¶ms, bool fHelp) |
Value | decodescript (const Array ¶ms, bool fHelp) |
Value | signrawtransaction (const Array ¶ms, bool fHelp) |
Value | sendrawtransaction (const Array ¶ms, bool fHelp) |
Value createrawtransaction | ( | const Array & | params, |
bool | fHelp | ||
) |
Definition at line 314 of file rpcrawtransaction.cpp.
References AmountFromValue(), CDataStream::begin(), CDataStream::end(), CBitcoinAddress::Get(), HelpExampleCli(), HelpExampleRpc(), HexStr(), CBitcoinAddress::IsValid(), JSONRPCError(), ParseHashO(), PROTOCOL_VERSION, RPC_INVALID_ADDRESS_OR_KEY, RPC_INVALID_PARAMETER, RPCTypeCheck(), SER_NETWORK, CScript::SetDestination(), CTransaction::vin, and CTransaction::vout.
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().
Value decodescript | ( | const Array & | params, |
bool | fHelp | ||
) |
Definition at line 462 of file rpcrawtransaction.cpp.
References CScript::GetID(), HelpExampleCli(), HelpExampleRpc(), ParseHexV(), RPCTypeCheck(), and ScriptPubKeyToJSON().
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().
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().
Value sendrawtransaction | ( | const Array & | params, |
bool | fHelp | ||
) |
Definition at line 733 of file rpcrawtransaction.cpp.
References AcceptToMemoryPool(), CTxMemPool::exists(), CCoinsViewCache::GetCoins(), CTransaction::GetHash(), base_uint< BITS >::GetHex(), CValidationState::GetRejectCode(), CValidationState::GetRejectReason(), HelpExampleCli(), HelpExampleRpc(), CValidationState::IsInvalid(), JSONRPCError(), mempool, CCoins::nHeight, ParseHexV(), pcoinsTip, PROTOCOL_VERSION, RelayTransaction(), RPC_DESERIALIZATION_ERROR, RPC_TRANSACTION_ALREADY_IN_CHAIN, RPC_TRANSACTION_ERROR, RPC_TRANSACTION_REJECTED, SER_NETWORK, strprintf, and SyncWithWallets().
Value signrawtransaction | ( | const Array & | params, |
bool | fHelp | ||
) |
Definition at line 503 of file rpcrawtransaction.cpp.
References CBasicKeyStore::AddCScript(), CKeyStore::AddKey(), CDataStream::begin(), CombineSignatures(), CTxMemPool::cs, CDataStream::empty(), ENABLE_WALLET, CDataStream::end(), EnsureWalletIsUnlocked(), CCoinsViewCache::GetCoins(), CBitcoinSecret::GetKey(), COutPoint::hash, HelpExampleCli(), HelpExampleRpc(), HelpRequiringPassphrase(), HexStr(), CCoins::IsAvailable(), JSONRPCError(), LOCK, mempool, COutPoint::n, ParseHashO(), ParseHexO(), ParseHexV(), pcoinsTip, CTxIn::prevout, PROTOCOL_VERSION, pwalletMain, RPC_DESERIALIZATION_ERROR, RPC_INVALID_ADDRESS_OR_KEY, RPC_INVALID_PARAMETER, RPCTypeCheck(), SCRIPT_VERIFY_P2SH, SCRIPT_VERIFY_STRICTENC, CTxIn::scriptSig, SER_NETWORK, CCoinsViewBacked::SetBackend(), CCoinsViewCache::SetCoins(), CBitcoinSecret::SetString(), SIGHASH_ALL, SIGHASH_ANYONECANPAY, SIGHASH_NONE, SIGHASH_SINGLE, SignSignature(), VerifyScript(), CTransaction::vin, CCoins::vout, and CTransaction::vout.
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().