Interchain API
  1. Chain
Interchain API
Bitcoin
  • Overview
  • Bitcoin
  • Ethereum
  • Transaction
    • Get transaction by hash.
      GET
  • Block
    • Get block by hash.
      GET
    • Get block by hash.
      GET
  • Chain
    • Returns various state info regarding block chain processing.
      GET
  • Memory Pool
    • Returns various information about the TX mempool.
      GET
    • Returns transactions in the TX mempool.
      GET
    • Returns headers.
      GET
    • Returns Unspent Transaction (TX) Outputs
      GET
  1. Chain

Returns various state info regarding block chain processing.

GET
/chaininfo.json
chain
Last modified:2024-05-27 22:00:31
Returns various state info regarding block chain processing. Only supports JSON as output format.

Request

None

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/chaininfo.json'

Responses

🟢200successful operation
application/json
Body
chain
enum<string> 
optional
Current network name as defined in BIP70 (main, test, regtest)
Allowed values:
maintestregtest
blocks
integer <int64>
optional
The current number of blocks processed in the server
headers
integer <int64>
optional
The current number of headers we have validated
bestblockhash
string 
optional
The hash of the currently best block
difficulty
integer <int64>
optional
The current difficulty
mediantime
integer <int32>
optional
The median time of the 11 blocks before the most recent block on the blockchain
verificationprogress
integer <int32>
optional
Estimate of verification progress [0..1]
initialblockdownload
boolean 
optional
chainwork
string 
optional
Total amount of work in active chain, in hexadecimal
size_on_disk
integer <int64>
optional
pruned
boolean 
optional
If the blocks are subject to pruning
softforks
array[object (BIP) {3}] 
optional
status of softforks in progress
id
string 
optional
The BIP number, or ? before being assigned
version
integer <int32>
optional
The BIP version number
reject
object 
optional
the BIP rejection status
bip9_softforks
object 
optional
status of BIP9 softforks in progress
name
object (BIP9) 
optional
warnings
string 
optional
An eventual warning on the current build status.
Example
{
    "chain": "main",
    "blocks": 0,
    "headers": 0,
    "bestblockhash": "string",
    "difficulty": 0,
    "mediantime": 0,
    "verificationprogress": 0,
    "initialblockdownload": true,
    "chainwork": "string",
    "size_on_disk": 0,
    "pruned": true,
    "softforks": [
        {
            "id": "string",
            "version": 0,
            "reject": {
                "status": true
            }
        }
    ],
    "bip9_softforks": {
        "name": {
            "status": "defined",
            "startTime": 0,
            "timeout": 0,
            "since": 0
        }
    },
    "warnings": "string"
}
Modified at 2024-05-27 22:00:31
Previous
Get block by hash.
Next
Returns various information about the TX mempool.
Built with