#include <node/transaction.h>
#include <outputtype.h>
#include <protocol.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.
|
void | RPCTypeCheckObj (const UniValue &o, const std::map< std::string, UniValueType > &typesExpected, bool fAllowNull=false, bool fStrict=false) |
| Check for expected keys/value types in an Object.
|
|
uint256 | ParseHashV (const UniValue &v, std::string strName) |
| Utilities: convert hex-encoded values (throws error if not hex).
|
|
uint256 | ParseHashO (const UniValue &o, std::string strKey) |
|
std::vector< uint8_t > | ParseHexV (const UniValue &v, std::string strName) |
|
std::vector< uint8_t > | ParseHexO (const UniValue &o, std::string strKey) |
|
Amount | AmountFromValue (const UniValue &value) |
|
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 CChainParams &chainparams, 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) |
|
std::string | GetAllOutputTypes () |
|
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].
|
|
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.
|
|
UniValue | GetServicesNames (ServiceFlags services) |
| Returns, given services flags, a list of humanly readable (known) network services.
|
|
◆ RPCArgList
◆ OuterType
Serializing JSON objects depends on the outer type.
Only arrays and dictionaries can be nested in json. The top-level outer type is "NONE".
Definition at line 118 of file util.h.
◆ AddAndGetMultisigDestination()
◆ AddrToPubKey()
◆ AmountFromValue()
◆ DescribeAddress()
◆ EvalDescriptorStringOrObject()
Evaluate a descriptor given as a string, or as a {"desc":...,"range":...} object, with default range of 1000.
Definition at line 1290 of file util.cpp.
◆ GetAllOutputTypes()
std::string GetAllOutputTypes |
( |
| ) |
|
◆ GetServicesNames()
Returns, given services flags, a list of humanly readable (known) network services.
Definition at line 1337 of file util.cpp.
◆ HelpExampleCli()
std::string HelpExampleCli |
( |
const std::string & |
methodname, |
|
|
const std::string & |
args |
|
) |
| |
|
extern |
◆ HelpExampleCliNamed()
std::string HelpExampleCliNamed |
( |
const std::string & |
methodname, |
|
|
const RPCArgList & |
args |
|
) |
| |
|
extern |
◆ HelpExampleRpc()
std::string HelpExampleRpc |
( |
const std::string & |
methodname, |
|
|
const std::string & |
args |
|
) |
| |
|
extern |
◆ HelpExampleRpcNamed()
std::string HelpExampleRpcNamed |
( |
const std::string & |
methodname, |
|
|
const RPCArgList & |
args |
|
) |
| |
|
extern |
◆ HexToPubKey()
CPubKey HexToPubKey |
( |
const std::string & |
hex_in | ) |
|
◆ JSONRPCTransactionError()
◆ ParseDescriptorRange()
Parse a JSON range specified as int64, or [int64, int64].
Definition at line 1273 of file util.cpp.
◆ ParseHashO()
◆ ParseHashV()
Utilities: convert hex-encoded values (throws error if not hex).
Definition at line 73 of file util.cpp.
◆ ParseHexO()
◆ ParseHexV()
◆ RPCErrorFromTransactionError()
◆ RPCTypeCheckObj()
Check for expected keys/value types in an Object.
Definition at line 26 of file util.cpp.
◆ DEFAULT_RPC_DOC_CHECK
◆ EXAMPLE_ADDRESS
const std::string EXAMPLE_ADDRESS |
|
extern |
◆ UNIX_EPOCH_TIME
const std::string UNIX_EPOCH_TIME |
|
extern |
String used to describe UNIX epoch time in documentation, factored out to a constant for consistency.
Definition at line 22 of file util.cpp.