Skip to main content

Endpoint

POST /info

Request Body

ParameterTypeDescription
type*stringMust be "latestBlocks"
limitnumberNumber of blocks to return (default: 20, max: 100)

Response

[
  {
    "blockNumber": 12345,
    "timestamp": 1701234567890,
    "transactionCount": 15,
    "blockHash": "0x1234abcd..."
  }
]

Response Fields

FieldTypeDescription
blockNumbernumberBlock number
timestampnumberBlock timestamp (ms)
transactionCountnumberNumber of transactions in block
blockHashstringBlock hash (SHA-256)

Example Request

curl -X POST https://api.notional.xyz/info \
  -H "Content-Type: application/json" \
  -d '{
    "type": "latestBlocks",
    "limit": 10
  }'

Notes

  • Blocks returned in reverse chronological order (newest first)
  • Block hashes computed deterministically from block contents