![]() |
Bitcoin ABC
0.22.13
P2P Digital Currency
|
#include <blockdb.h>
#include <chain.h>
#include <chainparams.h>
#include <config.h>
#include <core_io.h>
#include <httpserver.h>
#include <index/txindex.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/ref.h>
#include <util/strencodings.h>
#include <validation.h>
#include <version.h>
#include <boost/algorithm/string.hpp>
#include <univalue.h>
Go to the source code of this file.
Classes | |
struct | CCoin |
Enumerations | |
enum | RetFormat { RetFormat::UNDEF, RetFormat::BINARY, RetFormat::HEX, RetFormat::JSON } |
Functions | |
static bool | RESTERR (HTTPRequest *req, enum HTTPStatusCode status, std::string message) |
static CTxMemPool * | GetMemPool (const util::Ref &context, HTTPRequest *req) |
Get the node context mempool. More... | |
static RetFormat | ParseDataFormat (std::string ¶m, const std::string &strReq) |
static std::string | AvailableDataFormatsString () |
static bool | CheckWarmup (HTTPRequest *req) |
static bool | rest_headers (Config &config, const util::Ref &context, HTTPRequest *req, const std::string &strURIPart) |
static bool | rest_block (const Config &config, HTTPRequest *req, const std::string &strURIPart, bool showTxDetails) |
static bool | rest_block_extended (Config &config, const util::Ref &context, HTTPRequest *req, const std::string &strURIPart) |
static bool | rest_block_notxdetails (Config &config, const util::Ref &context, HTTPRequest *req, const std::string &strURIPart) |
static bool | rest_chaininfo (Config &config, const util::Ref &context, HTTPRequest *req, const std::string &strURIPart) |
static bool | rest_mempool_info (Config &config, const util::Ref &context, HTTPRequest *req, const std::string &strURIPart) |
static bool | rest_mempool_contents (Config &config, const util::Ref &context, HTTPRequest *req, const std::string &strURIPart) |
static bool | rest_tx (Config &config, const util::Ref &context, HTTPRequest *req, const std::string &strURIPart) |
static bool | rest_getutxos (Config &config, const util::Ref &context, HTTPRequest *req, const std::string &strURIPart) |
static bool | rest_blockhash_by_height (Config &config, const util::Ref &context, HTTPRequest *req, const std::string &str_uri_part) |
void | StartREST (const util::Ref &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 )(Config &config, const util::Ref &context, HTTPRequest *req, const std::string &strReq) | |
} | uri_prefixes [] |
|
static |
|
static |
|
static |
Get the node context mempool.
Set the HTTP error and return nullptr if node context mempool is not found.
[in] | req | the HTTP request return pointer to the mempool or nullptr if no mempool found |
Definition at line 86 of file rest.cpp.
void InterruptREST | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void StartREST | ( | const util::Ref & | context | ) |
void StopREST | ( | ) |
bool(* handler) (Config &config, const util::Ref &context, HTTPRequest *req, const std::string &strReq) |
const { ... } rf_names[] |
const { ... } uri_prefixes[] |