Skip to main content

Endpoint

POST /info

Request Body

ParameterTypeDescription
type*stringMust be "blockTransactions"
blockNumber*numberBlock number to query, e.g., 12345

Response

[
  {
    "transactionId": "0xabc123...",
    "type": "OrderPlaced",
    "timestamp": 1701234567890,
    "blockNumber": 12345,
    "txIndex": 0,
    "orderId": "0xdef456...",
    "data": {}
  }
]

Response Fields

FieldTypeDescription
transactionIdstringTransaction hash
typestringTransaction type
timestampnumberTransaction timestamp (ms)
blockNumbernumberBlock number (matches request)
txIndexnumberPosition within block
orderIdstringRelated order ID (optional)
dataobjectTransaction data

Example Request

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

Error Responses

{
  "error": "Block 12345 not found"
}
HTTP Status: 400 Bad Request

Notes

  • Transactions ordered by txIndex
  • All transactions in a block share the same timestamp