Skip to main content
GET
/
v1
/
rpc
/
getBlockDagInfo
Get block DAG information
curl --request GET \
  --url https://api.kas.fyi/v1/rpc/getBlockDagInfo \
  --header 'x-api-key: <api-key>'
{
  "network": "mainnet",
  "blockCount": "1234567",
  "headerCount": "1234567",
  "tipHashes": [
    "0x1234567890abcdef..."
  ],
  "difficulty": 1.234567,
  "pastMedianTime": "1638360000000",
  "virtualParentHashes": [
    "0x1234567890abcdef..."
  ],
  "pruningPointHash": "0x1234567890abcdef...",
  "virtualDaaScore": "12345678",
  "sink": "0x1234567890abcdef..."
}

Cost

This endpoint costs 0.1 RU (Request Units) per call.

Authorizations

x-api-key
string
header
required

API key required for authentication. Get your API key at https://developer.kas.fyi

Response

200 - application/json

Block DAG information retrieved successfully

network
string
required

Network identifier

Example:

"mainnet"

blockCount
string
required

Number of blocks in the DAG

Example:

"1234567"

headerCount
string
required

Number of headers in the DAG

Example:

"1234567"

tipHashes
string[]
required

Array of tip hashes in the DAG

Example:
["0x1234567890abcdef..."]
difficulty
number
required

Current difficulty

Example:

1.234567

pastMedianTime
string
required

Past median time

Example:

"1638360000000"

virtualParentHashes
string[]
required

Virtual parent hashes

Example:
["0x1234567890abcdef..."]
pruningPointHash
string
required

Pruning point hash

Example:

"0x1234567890abcdef..."

virtualDaaScore
string
required

Virtual DAA score

Example:

"12345678"

sink
string
required

Sink hash

Example:

"0x1234567890abcdef..."

⌘I