PIVX Core  5.6.99
P2P Digital Currency
Classes | Enumerations | Functions
rest.cpp File Reference
#include "chain.h"
#include "core_io.h"
#include "primitives/block.h"
#include "primitives/transaction.h"
#include "httpserver.h"
#include "rpc/server.h"
#include "streams.h"
#include "sync.h"
#include "txmempool.h"
#include "utilstrencodings.h"
#include "validation.h"
#include "version.h"
#include "wallet/wallet.h"
#include <boost/algorithm/string.hpp>
#include <univalue.h>
Include dependency graph for rest.cpp:

Go to the source code of this file.

Classes

struct  CCoin
 

Enumerations

enum  RetFormat { RF_UNDEF , RF_BINARY , RF_HEX , RF_JSON }
 

Functions

void TxToJSON (CWallet *const pwallet, const CTransaction &tx, const CBlockIndex *tip, const CBlockIndex *blockindex, UniValue &entry)
 
UniValue blockToJSON (const CBlock &block, const CBlockIndex *tip, const CBlockIndex *blockindex, bool txDetails=false)
 
UniValue mempoolInfoToJSON ()
 
UniValue mempoolToJSON (bool fVerbose=false)
 
UniValue blockheaderToJSON (const CBlockIndex *tip, const CBlockIndex *blockindex)
 
UniValue getblockchaininfo (const JSONRPCRequest &request)
 
bool StartREST ()
 Start HTTP REST subsystem. More...
 
void InterruptREST ()
 Interrupt RPC REST subsystem. More...
 
void StopREST ()
 Stop HTTP REST subsystem. More...
 

Enumeration Type Documentation

◆ RetFormat

enum RetFormat
Enumerator
RF_UNDEF 
RF_BINARY 
RF_HEX 
RF_JSON 

Definition at line 28 of file rest.cpp.

Function Documentation

◆ blockheaderToJSON()

UniValue blockheaderToJSON ( const CBlockIndex tip,
const CBlockIndex blockindex 
)

Definition at line 116 of file blockchain.cpp.

Here is the call graph for this function:

◆ blockToJSON()

UniValue blockToJSON ( const CBlock block,
const CBlockIndex tip,
const CBlockIndex blockindex,
bool  txDetails = false 
)

Definition at line 143 of file blockchain.cpp.

Here is the call graph for this function:

◆ getblockchaininfo()

UniValue getblockchaininfo ( const JSONRPCRequest request)

Definition at line 1027 of file blockchain.cpp.

Here is the call graph for this function:

◆ InterruptREST()

void InterruptREST ( )

Interrupt RPC REST subsystem.

Definition at line 584 of file rest.cpp.

Here is the caller graph for this function:

◆ mempoolInfoToJSON()

UniValue mempoolInfoToJSON ( )

Definition at line 1202 of file blockchain.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mempoolToJSON()

UniValue mempoolToJSON ( bool  fVerbose = false)

Definition at line 474 of file blockchain.cpp.

Here is the call graph for this function:

◆ StartREST()

bool StartREST ( )

Start HTTP REST subsystem.

Precondition; HTTP and RPC has been started.

Definition at line 577 of file rest.cpp.

◆ StopREST()

void StopREST ( )

Stop HTTP REST subsystem.

Precondition; HTTP and RPC has been stopped.

Definition at line 588 of file rest.cpp.

◆ TxToJSON()

void TxToJSON ( CWallet *const  pwallet,
const CTransaction tx,
const CBlockIndex tip,
const CBlockIndex blockindex,
UniValue entry 
)

Definition at line 81 of file rawtransaction.cpp.

Here is the call graph for this function:

Variable Documentation

◆ handler

bool(* handler) (HTTPRequest *req, const std::string &strReq) ( HTTPRequest req,
const std::string &  strReq 
)

Definition at line 565 of file rest.cpp.

◆ name

const char* name

Definition at line 37 of file rest.cpp.

◆ prefix

const char* prefix

Definition at line 564 of file rest.cpp.

◆ rf

enum RetFormat rf

Definition at line 588 of file rest.cpp.