Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
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.
This method will use 10
Compute Units.
blockhash
- string, required
The block hash
verbosity
- numeric, optional, default=1
0 for hex-encoded data, 1 for a json object, and 2 for json object with transaction data
Name | Type | Description |
---|---|---|
This method will use 10
.
Name | Type | Description |
---|
hex
string
A string that is serialized, hex-encoded data for block ‘hash’
hex | string | the block hash, hex-encoded |
Returns an object containing various state info regarding blockchain processing.
This method will use 10
Compute Units.
Returns the height of the most-work fully-validated chain. The genesis block has height 0.
This method will use 10
Compute Units.
Returns hash of block in best-block-chain at height provided.
This method will use 10
Compute Units.
height
- numeric, required
The height index
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’.
This method will use 10
Compute Units.
blockhash
- string, required
The block hash
verbose
- boolean, optional, default=true
true for a json object, false for the hex-encoded data
Compute per block statistics for a given window. All amounts are in satoshis. It won’t work for some heights with pruning.
hash_or_height
- string or numeric, required
The block hash or height of the target block
stats
- json array, optional, default=all values
Values to plot (see result below)
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
This method will use 10
.
This method will use 10
.
n
numeric
The current block count
hex
string
The block hash
hex
string
A string that is serialized, hex-encoded data for block ‘hash’
If txid is in the mempool, returns all in-mempool ancestors.
This method will use 10
Compute Units.
txid
- string, required
The transaction id (must be in mempool)
verbose
- boolean, optional, default=false
True for a json object, false for array of transaction ids
Compute statistics about the total number and rate of transactions in the chain.
This method will use 10
Compute Units.
nblocks
- numeric, optional, default=one month
Size of the window in number of blocks
blockhash
- string, optional, default=chain tip
The hash of the block that ends the window.
Returns details on the active state of the TX memory pool.
This method will use 10
Compute Units.
txid
- string, required
The transaction id (must be in mempool)
verbose
- boolean, optional, default=false
True for a json object, false for array of transaction ids
Returns details on the active state of the TX memory pool.
This method will use 10
Compute Units.
Returns all transaction ids in memory pool as a json array of string transaction ids.
Hint: use getmempoolentry to fetch a specific transaction from the mempool.
This method will use 10
Compute Units.
verbose
- boolean, optional, default=false
True for a json object, false for array of transaction ids
mempool_sequence
- boolean, optional, default=false
If verbose=false, returns a json object with transaction list and mempool sequence number attached.
Returns details about an unspent transaction output.
This method will use 10
Compute Units.
txid
- string, required
The transaction id
n
- numeric, required
vout number
include_mempool
- boolean, optional, default=true
Whether to include the mempool. Note that an unspent output that is spent in the mempool won’t appear.
Returns the proof-of-work difficulty as a multiple of the minimum difficulty.
This method will use 10
Compute Units.
Returns a hex-encoded proof that “txid” was included in a block.
NOTE: By default this function only works sometimes. This is when there is an unspent output in the utxo for this transaction. To make it always work, you need to maintain a transaction index, using the -txindex command line option or specify the block in which the transaction is included manually (by blockhash).
txids
- json array, required
The txids to filter
blockhash
- string, optional
If specified, looks for txid in the block with this hash
Name | Type | Description |
---|---|---|
This method will use 10
.
This method will use 10
.
Name | Type | Description |
---|
n
numeric
the proof-of-work difficulty as a multiple of the minimum difficulty.
str | string | A string that is a serialized, hex-encoded data for the proof. |