Bitcoin
|
#include <node/transaction.h>
#include <outputtype.h>
#include <pubkey.h>
#include <rpc/protocol.h>
#include <rpc/request.h>
#include <script/script.h>
#include <script/sign.h>
#include <script/standard.h>
#include <univalue.h>
#include <string>
#include <vector>
#include <boost/variant.hpp>
Go to the source code of this file.
Classes | |
struct | UniValueType |
struct | RPCArg |
struct | RPCResult |
struct | RPCResults |
struct | RPCExamples |
class | RPCHelpMan |
Functions | |
void | RPCTypeCheck (const UniValue ¶ms, const std::list< UniValueType > &typesExpected, bool fAllowNull=false) |
void | RPCTypeCheckArgument (const UniValue &value, const UniValueType &typeExpected) |
void | RPCTypeCheckObj (const UniValue &o, const std::map< std::string, UniValueType > &typesExpected, bool fAllowNull=false, bool fStrict=false) |
uint256 | ParseHashV (const UniValue &v, std::string strName) |
uint256 | ParseHashO (const UniValue &o, std::string strKey) |
std::vector< unsigned char > | ParseHexV (const UniValue &v, std::string strName) |
std::vector< unsigned char > | ParseHexO (const UniValue &o, std::string strKey) |
CAmount | AmountFromValue (const UniValue &value) |
std::string | HelpExampleCli (const std::string &methodname, const std::string &args) |
std::string | HelpExampleRpc (const std::string &methodname, const std::string &args) |
CPubKey | HexToPubKey (const std::string &hex_in) |
CPubKey | AddrToPubKey (FillableSigningProvider *const keystore, const std::string &addr_in) |
CTxDestination | AddAndGetMultisigDestination (const int required, const std::vector< CPubKey > &pubkeys, OutputType type, FillableSigningProvider &keystore, CScript &script_out) |
UniValue | DescribeAddress (const CTxDestination &dest) |
unsigned int | ParseConfirmTarget (const UniValue &value, unsigned int max_target) |
Parse a confirm target option and raise an RPC error if it is invalid. More... | |
RPCErrorCode | RPCErrorFromTransactionError (TransactionError terr) |
UniValue | JSONRPCTransactionError (TransactionError terr, const std::string &err_string="") |
std::pair< int64_t, int64_t > | ParseDescriptorRange (const UniValue &value) |
Parse a JSON range specified as int64, or [int64, int64]. More... | |
std::vector< CScript > | EvalDescriptorStringOrObject (const UniValue &scanobject, FlatSigningProvider &provider) |
Variables | |
InitInterfaces * | g_rpc_interfaces |
CTxDestination AddAndGetMultisigDestination | ( | const int | required, |
const std::vector< CPubKey > & | pubkeys, | ||
OutputType | type, | ||
FillableSigningProvider & | keystore, | ||
CScript & | script_out | ||
) |
CPubKey AddrToPubKey | ( | FillableSigningProvider *const | keystore, |
const std::string & | addr_in | ||
) |
UniValue DescribeAddress | ( | const CTxDestination & | dest | ) |
std::vector<CScript> EvalDescriptorStringOrObject | ( | const UniValue & | scanobject, |
FlatSigningProvider & | provider | ||
) |
Evaluate a descriptor given as a string, or as a {"desc":...,"range":...} object, with default range of 1000.
std::string HelpExampleCli | ( | const std::string & | methodname, |
const std::string & | args | ||
) |
std::string HelpExampleRpc | ( | const std::string & | methodname, |
const std::string & | args | ||
) |
CPubKey HexToPubKey | ( | const std::string & | hex_in | ) |
UniValue JSONRPCTransactionError | ( | TransactionError | terr, |
const std::string & | err_string = "" |
||
) |
unsigned int ParseConfirmTarget | ( | const UniValue & | value, |
unsigned int | max_target | ||
) |
Parse a confirm target option and raise an RPC error if it is invalid.
Parse a JSON range specified as int64, or [int64, int64].
Utilities: convert hex-encoded Values (throws error if not hex).
std::vector<unsigned char> ParseHexO | ( | const UniValue & | o, |
std::string | strKey | ||
) |
std::vector<unsigned char> ParseHexV | ( | const UniValue & | v, |
std::string | strName | ||
) |
RPCErrorCode RPCErrorFromTransactionError | ( | TransactionError | terr | ) |
void RPCTypeCheck | ( | const UniValue & | params, |
const std::list< UniValueType > & | typesExpected, | ||
bool | fAllowNull = false |
||
) |
Type-check arguments; throws JSONRPCError if wrong type given. Does not check that the right number of arguments are passed, just that any passed are the correct type.
void RPCTypeCheckArgument | ( | const UniValue & | value, |
const UniValueType & | typeExpected | ||
) |
Type-check one argument; throws JSONRPCError if wrong type given.
void RPCTypeCheckObj | ( | const UniValue & | o, |
const std::map< std::string, UniValueType > & | typesExpected, | ||
bool | fAllowNull = false , |
||
bool | fStrict = false |
||
) |
InitInterfaces* g_rpc_interfaces |
Pointers to interfaces that need to be accessible from RPC methods. Due to limitations of the RPC framework, there's currently no direct way to pass in state to RPC method implementations.