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,
    "blockHash": "0x1234abcd...",
    "transactionCount": 15
  }
]

Response Fields

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

Example Request

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

Notes

  • Blocks are returned in reverse chronological order (newest first) - Use blockByNumber or blockByHash to fetch the full transaction list for a specific block