![]() |
Bitcoin Core 22.99.0
P2P Digital Currency
|
#include <node/coinstats.h>#include <node/transaction.h>#include <outputtype.h>#include <protocol.h>#include <pubkey.h>#include <rpc/request.h>#include <script/script.h>#include <script/sign.h>#include <script/standard.h>#include <univalue.h>#include <util/check.h>#include <string>#include <variant>#include <vector>Go to the source code of this file.
Classes | |
| struct | UniValueType |
| Wrapper for UniValue::VType, which includes typeAny: Used to denote don't care type. More... | |
| struct | RPCArg |
| struct | RPCResult |
| struct | RPCResults |
| struct | RPCExamples |
| class | RPCHelpMan |
Typedefs | |
| using | RPCArgList = std::vector< std::pair< std::string, UniValue > > |
Enumerations | |
| enum class | OuterType { ARR , OBJ , NONE } |
| Serializing JSON objects depends on the outer type. More... | |
Functions | |
| void | RPCTypeCheck (const UniValue ¶ms, const std::list< UniValueType > &typesExpected, bool fAllowNull=false) |
| Type-check arguments; throws JSONRPCError if wrong type given. More... | |
| void | RPCTypeCheckArgument (const UniValue &value, const UniValueType &typeExpected) |
| Type-check one argument; throws JSONRPCError if wrong type given. More... | |
| 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) |
| Utilities: convert hex-encoded Values (throws error if not hex). More... | |
| 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, int decimals=8) |
| Validate and return a CAmount from a UniValue number or string. More... | |
| std::string | HelpExampleCli (const std::string &methodname, const std::string &args) |
| std::string | HelpExampleCliNamed (const std::string &methodname, const RPCArgList &args) |
| std::string | HelpExampleRpc (const std::string &methodname, const std::string &args) |
| std::string | HelpExampleRpcNamed (const std::string &methodname, const RPCArgList &args) |
| CPubKey | HexToPubKey (const std::string &hex_in) |
| CPubKey | AddrToPubKey (const FillableSigningProvider &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) |
| Evaluate a descriptor given as a string, or as a {"desc":...,"range":...} object, with default range of 1000. More... | |
| UniValue | GetServicesNames (ServiceFlags services) |
| Returns, given services flags, a list of humanly readable (known) network services. More... | |
Variables | |
| const std::string | UNIX_EPOCH_TIME |
| String used to describe UNIX epoch time in documentation, factored out to a constant for consistency. More... | |
| const std::string | EXAMPLE_ADDRESS [2] |
| Example bech32 addresses for the RPCExamples help documentation. More... | |
| using RPCArgList = std::vector<std::pair<std::string, UniValue> > |
|
strong |
| CTxDestination AddAndGetMultisigDestination | ( | const int | required, |
| const std::vector< CPubKey > & | pubkeys, | ||
| OutputType | type, | ||
| FillableSigningProvider & | keystore, | ||
| CScript & | script_out | ||
| ) |
| CPubKey AddrToPubKey | ( | const FillableSigningProvider & | keystore, |
| const std::string & | addr_in | ||
| ) |
Validate and return a CAmount from a UniValue number or string.
| [in] | value | UniValue number or string to parse. |
| [in] | decimals | Number of significant digits (default: 8). |
Definition at line 78 of file util.cpp.
| UniValue DescribeAddress | ( | const CTxDestination & | dest | ) |
| std::vector< CScript > EvalDescriptorStringOrObject | ( | const UniValue & | scanobject, |
| FlatSigningProvider & | provider | ||
| ) |
| UniValue GetServicesNames | ( | ServiceFlags | services | ) |
| std::string HelpExampleCli | ( | const std::string & | methodname, |
| const std::string & | args | ||
| ) |
| std::string HelpExampleCliNamed | ( | const std::string & | methodname, |
| const RPCArgList & | args | ||
| ) |
| std::string HelpExampleRpc | ( | const std::string & | methodname, |
| const std::string & | args | ||
| ) |
| std::string HelpExampleRpcNamed | ( | const std::string & | methodname, |
| const RPCArgList & | 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 | ||
| ) |
| std::pair< int64_t, int64_t > ParseDescriptorRange | ( | const UniValue & | value | ) |
| 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 |
||
| ) |
| 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 |
||
| ) |
|
extern |
Example bech32 addresses for the RPCExamples help documentation.
They are intentionally invalid to prevent accidental transactions by users.