![]() | BlockChainRPCController Class |
Namespace: RPC.Controllers
[ControllerAttribute] public class BlockChainRPCController : FeatureController
The BlockChainRPCController type exposes the following members.
Name | Description | |
---|---|---|
![]() | GetBestBlockHash |
Gets the best blockhash.
|
![]() | GetBlock |
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.
|
![]() | GetBlockCount |
Returns the number of blocks in the longest blockchain.
|
![]() | GetBlockHash |
Returns hash of block in best-block-chain at height provided.
|
![]() | GetBlockHeader |
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'.
|
![]() | GetBlockHex(ChainedHeader) |
Get the block as a hex string.
Get block as hex from chained header |
![]() | GetBlockHex(String) |
Get the block as a hex string.
Block hex |
![]() | GetBlockChainInfo |
Returns an object containing various state info regarding blockchain processing.
|
![]() | GetBlockVerbose(ChainedHeader, Int32) |
Function to get a verbose version of getblock with a string.
ChainedHeader of block.Verbosity level (1, 2) |
![]() | GetBlockVerbose(String, Int32) |
Function to get a verbose version of getblock with a string.
Hash of block.Verbosity level (1, 2) |
![]() | GetChainTips |
Return information about all known tips in the block tree, including the main chain as well as orphaned branches.
|
![]() | GetChainTxStatus |
Compute statistics about the total number and rate of transactions in the chain.
|
![]() | InvalidateBlockHash |
Permanently marks a block as invalid, as if it violated a consensus rule.
The hash of the block to invalidate. |
![]() | VerifyChain |
Verifies blockchain database.
0 - Check reading blocks from chain
1 - Validate header of blocks
|