Click or drag to resize

BlockChainRPCController Class

BlockChain RPCs method
Inheritance Hierarchy
Controller
  FeatureController
    RPC.ControllersBlockChainRPCController

Namespace:  RPC.Controllers
Assembly:  RPC (in RPC.dll) Version: 1.1.12
Syntax
C#
[ControllerAttribute]
public class BlockChainRPCController : FeatureController

The BlockChainRPCController type exposes the following members.

Methods
  NameDescription
Public methodGetBestBlockHash
Gets the best blockhash.
Public methodGetBlock
Gets the block. If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'. If verbosity is 1, returns an Object with information about block 'hash'. If verbosity is 2, returns an Object with information about block 'hash' and information about each transaction.
Public methodGetBlockChainInfo
Returns an object containing various state info regarding blockchain processing.
Public methodGetBlockCount
Returns the number of blocks in the longest blockchain.
Public methodGetBlockHash
Returns hash of block in best-block-chain at height provided.
Public methodGetBlockHeader
If verbose is false, returns a string that is serialized, hex-encoded data for blockheader 'hash'. If verbose is true, returns an Object with information about blockheader 'hash'.
Public methodGetBlockHex(ChainedHeader)
Get the block as a hex string. Get block as hex from chained header
Public methodGetBlockHex(String)
Get the block as a hex string. Block hex
Public methodGetBlockVerbose(ChainedHeader, Int32)
Function to get a verbose version of getblock with a string. ChainedHeader of block.Verbosity level (1, 2)
Public methodGetBlockVerbose(String, Int32)
Function to get a verbose version of getblock with a string. Hash of block.Verbosity level (1, 2)
Public methodGetChainTips
Return information about all known tips in the block tree, including the main chain as well as orphaned branches.
Public methodGetChainTxStatus
Compute statistics about the total number and rate of transactions in the chain.
Public methodInvalidateBlockHash
Permanently marks a block as invalid, as if it violated a consensus rule. The hash of the block to invalidate.
Public methodVerifyChain
Verifies blockchain database. 0 - Check reading blocks from chain 1 - Validate header of blocks
Top
See Also

Reference

FeatureController