![]() |
Bitcoin Core 22.99.0
P2P Digital Currency
|
#include <chain.h>#include <chainparams.h>#include <core_io.h>#include <httpserver.h>#include <index/txindex.h>#include <node/blockstorage.h>#include <node/context.h>#include <primitives/block.h>#include <primitives/transaction.h>#include <rpc/blockchain.h>#include <rpc/protocol.h>#include <rpc/server.h>#include <streams.h>#include <sync.h>#include <txmempool.h>#include <util/check.h>#include <util/system.h>#include <validation.h>#include <version.h>#include <any>#include <boost/algorithm/string.hpp>#include <univalue.h>Go to the source code of this file.
Classes | |
| struct | CCoin |
Enumerations | |
| enum class | RetFormat { UNDEF , BINARY , HEX , JSON } |
Functions | |
| static bool | RESTERR (HTTPRequest *req, enum HTTPStatusCode status, std::string message) |
| static NodeContext * | GetNodeContext (const std::any &context, HTTPRequest *req) |
| Get the node context. More... | |
| static CTxMemPool * | GetMemPool (const std::any &context, HTTPRequest *req) |
| Get the node context mempool. More... | |
| static ChainstateManager * | GetChainman (const std::any &context, HTTPRequest *req) |
| Get the node context chainstatemanager. More... | |
| static RetFormat | ParseDataFormat (std::string ¶m, const std::string &strReq) |
| static std::string | AvailableDataFormatsString () |
| static bool | CheckWarmup (HTTPRequest *req) |
| static bool | rest_headers (const std::any &context, HTTPRequest *req, const std::string &strURIPart) |
| static bool | rest_block (const std::any &context, HTTPRequest *req, const std::string &strURIPart, TxVerbosity tx_verbosity) |
| static bool | rest_block_extended (const std::any &context, HTTPRequest *req, const std::string &strURIPart) |
| static bool | rest_block_notxdetails (const std::any &context, HTTPRequest *req, const std::string &strURIPart) |
| RPCHelpMan | getblockchaininfo () |
| static bool | rest_chaininfo (const std::any &context, HTTPRequest *req, const std::string &strURIPart) |
| static bool | rest_mempool_info (const std::any &context, HTTPRequest *req, const std::string &strURIPart) |
| static bool | rest_mempool_contents (const std::any &context, HTTPRequest *req, const std::string &strURIPart) |
| static bool | rest_tx (const std::any &context, HTTPRequest *req, const std::string &strURIPart) |
| static bool | rest_getutxos (const std::any &context, HTTPRequest *req, const std::string &strURIPart) |
| static bool | rest_blockhash_by_height (const std::any &context, HTTPRequest *req, const std::string &str_uri_part) |
| void | StartREST (const std::any &context) |
| Start HTTP REST subsystem. More... | |
| void | InterruptREST () |
| Interrupt RPC REST subsystem. More... | |
| void | StopREST () |
| Stop HTTP REST subsystem. More... | |
Variables | |
| static const size_t | MAX_GETUTXOS_OUTPOINTS = 15 |
| struct { | |
| RetFormat rf | |
| const char * name | |
| } | rf_names [] |
| struct { | |
| const char * prefix | |
| bool(* handler )(const std::any &context, HTTPRequest *req, const std::string &strReq) | |
| } | uri_prefixes [] |
|
static |
|
static |
| RPCHelpMan getblockchaininfo | ( | ) |
Definition at line 1433 of file blockchain.cpp.
|
static |
Get the node context chainstatemanager.
| [in] | req | The HTTP request, whose status code will be set if node context chainstatemanager is not found. |
Definition at line 117 of file rest.cpp.
|
static |
Get the node context mempool.
| [in] | req | The HTTP request, whose status code will be set if node context mempool is not found. |
Definition at line 100 of file rest.cpp.
|
static |
Get the node context.
| [in] | req | The HTTP request, whose status code will be set if node context is not found. |
Definition at line 79 of file rest.cpp.
| void InterruptREST | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| void StartREST | ( | const std::any & | context | ) |
| void StopREST | ( | ) |
| bool(* handler) (const std::any &context, HTTPRequest *req, const std::string &strReq) | ( | const std::any & | context, |
| HTTPRequest * | req, | ||
| const std::string & | strReq | ||
| ) |
| const struct { ... } rf_names[] |
| const struct { ... } uri_prefixes[] |