For the complete documentation index, see llms.txt. This page is also available as Markdown.

Chain Info

Get Blockchain Info

This endpoint retrieves information about the state of the specified chain for the selected network.

HTTP Request
GET https://api.whatsonchain.com/v1/<chain>/<network>/chain/info

Example Request

curl --location --request GET "https://api.whatsonchain.com/v1/bsv/main/chain/info"

Example Response

{
    "chain": "main",
    "blocks": 905064,
    "headers": 905064,
    "bestblockhash": "0000000000000000112ea3732c0417a2cee0130e9217dbba1b0ff078c92c904e",
    "difficulty": 51223782275.04099,
    "mediantime": 1752242156,
    "verificationprogress": 0.9999990488341951,
    "pruned": false,
    "chainwork": "00000000000000000000000000000000000000000167559704876ce49d636d35"
}

URL Parameters

Parameter
Description

chain

Desired blockchain: bsv or btc.

network

Selected network: main or test.

Get Fee Recommendation

Get a detailed fee suggestion for the specified blockchain.

Example Request

Example Response

URL Parameters

Parameter
Description

chain

Desired blockchain: bsv or btc.

network

Selected network: main or test.

Get Circulating Supply

This endpoint retrieves the circulating supply of the specified blockchain.

Example Request

Example Response

URL Parameters

Parameter
Description

chain

Desired blockchain: bsv or btc.

network

Selected network: main or test.

Get Chain Tips

This endpoint retrieves information about all known tips in the block tree.

The possible values for status:

  1. invalid: This branch contains at least one invalid block.

  2. headers-only: Not all blocks for this branch are available, but the headers are valid.

  3. valid-headers: All blocks are available for this branch, but they were never fully validated.

  4. valid-fork: This branch is not part of the active chain, but is fully validated.

  5. active: This is the tip of the active main chain, which is certainly valid.

Example Request

Example Response

URL Parameters

Parameter
Description

chain

Desired blockchain: bsv or btc.

network

Selected network: main or test.

Get Peer Info

This endpoint retrieves information about peers connected to the node.

Example Request

Example Response

URL Parameters

Parameter
Description

chain

Desired blockchain: bsv or btc.

network

Selected network: main or test.

Last updated

Was this helpful?