A dynamically typed JSON value used across Bitcoin Core's RPC layer.
Synopsis
Declared in <univalue/include/univalue.h>
class UniValue;
Non-Member Functions
Name |
Description |
Validate and return a CAmount from a UniValue number or string. |
|
Convert a JSON array to a |
|
Convert a |
|
Create a transaction from univalue parameters |
|
Helper to create UTXO snapshots given a chainstate and a file handle. |
|
Describe an address as a JSON object for RPC output. |
|
Evaluate a descriptor given as a string, or as a {"desc":...,"range":...} object, with default range of 1000. |
|
Execute a single HTTP request containing one or more JSONRPC requests. Specified jreq will be modified and status will be returned. |
|
Build a JSON‐RPC error object. |
|
Execute an RPC request and return its JSON‐RPC reply. |
|
Build a JSON‐RPC error object for a PSBT error. |
|
Parse JSON‐RPC batch reply into a vector |
|
Build a JSON‐RPC reply object from a result or error. |
|
JSON‐RPC 2.0 request, only used in bitcoin‐cli |
|
Build a JSON‐RPC error object for a transaction error. |
|
Mempool information to JSON |
|
Mempool to JSON |
|
Normalize univalue‐represented outputs |
|
Parse a confirm target option and raise an RPC error if it is invalid. |
|
Parse a JSON range specified as an int64 or as a [int64, int64]pair. |
|
Parse a json number or string, denoting BTC/kvB, into a CFeeRate (sat/kvB). Reject negative values or rates larger than 1BTC/kvB. |
|
Parse a hex‐encoded hash from a named field of an object. |
|
Parse a hex‐encoded hash from a UniValue, throwing an RPC error if it is not valid hex. |
|
Parse a hex‐encoded byte vector from a named field of an object. |
|
Parse a hex‐encoded byte vector from a UniValue, throwing an RPC error if it is not valid hex. |
|
Parse normalized outputs into destination, amount tuples |
|
Parse a prevtxs UniValue array and get the map of coins from it |
|
Parse a sighash string representation and raise an RPC error if it is invalid. |
|
Parses verbosity from provided UniValue. |
|
Push warning messages to an RPC "warnings" field as a JSON array of strings. |
|
Convert named arguments to command‐specific RPC representation |
|
Convert positional arguments to command‐specific RPC representation |
|
Check that an object contains the expected keys with the expected value types. |
|
Execute a command which returns JSON, and parse the result. |
|
Convert an amount in satoshis into a JSON value denominated in whole coins. |
|
Block description to JSON |
|
Block header to JSON |
|
RPC helper function that wraps warnings.GetMessages(). |
|
Appends the wallet's last processed block to an RPC result object. |
|
Validates and extracts an address label from an RPC value. |
Created with MrDocs