Dogecoin Core  1.14.2
P2P Digital Currency
Classes | Enumerations | Functions
rest.cpp File Reference
#include "chain.h"
#include "chainparams.h"
#include "primitives/block.h"
#include "primitives/transaction.h"
#include "validation.h"
#include "httpserver.h"
#include "rpc/server.h"
#include "streams.h"
#include "sync.h"
#include "txmempool.h"
#include "utilstrencodings.h"
#include "version.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 (const CTransaction &tx, const uint256 hashBlock, UniValue &entry)
 
UniValue blockToJSON (const CBlock &block, const CBlockIndex *blockindex, bool txDetails=false)
 
UniValue mempoolInfoToJSON ()
 
UniValue mempoolToJSON (bool fVerbose=false)
 
void ScriptPubKeyToJSON (const CScript &scriptPubKey, UniValue &out, bool fIncludeHex)
 
UniValue blockheaderToJSON (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 25 of file rest.cpp.

Function Documentation

◆ blockheaderToJSON()

UniValue blockheaderToJSON ( const CBlockIndex blockindex)

Definition at line 114 of file blockchain.cpp.

Here is the call graph for this function:

◆ blockToJSON()

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

Definition at line 142 of file blockchain.cpp.

Here is the call graph for this function:

◆ getblockchaininfo()

UniValue getblockchaininfo ( const JSONRPCRequest request)

Definition at line 1120 of file blockchain.cpp.

Here is the call graph for this function:

◆ InterruptREST()

void InterruptREST ( )

Interrupt RPC REST subsystem.

Definition at line 625 of file rest.cpp.

Here is the caller graph for this function:

◆ mempoolInfoToJSON()

UniValue mempoolInfoToJSON ( )

Definition at line 1330 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 426 of file blockchain.cpp.

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

◆ ScriptPubKeyToJSON()

void ScriptPubKeyToJSON ( const CScript scriptPubKey,
UniValue out,
bool  fIncludeHex 
)

Definition at line 38 of file rawtransaction.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 618 of file rest.cpp.

◆ StopREST()

void StopREST ( )

Stop HTTP REST subsystem.

Precondition; HTTP and RPC has been stopped.

Definition at line 629 of file rest.cpp.

Here is the caller graph for this function:

◆ TxToJSON()

void TxToJSON ( const CTransaction tx,
const uint256  hashBlock,
UniValue entry 
)

Definition at line 62 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 606 of file rest.cpp.

◆ prefix

const char* prefix

Definition at line 605 of file rest.cpp.