Transaction

Fetch transactions by batch number

Retrieves all transactions for a specified batch number from the Nimiq RPC. Only blocks in the main chain are considered.

GET
/getTransactionsByBatchNumber/{batchNumber}
/getTransactionsByBatchNumber/{batchNumber}

Path Parameters

batchNumber
Required
integer

The batch number to fetch transactions for.

curl -X GET "https://api.nimiqhub.com/getTransactionsByBatchNumber/0"

Transactions retrieved successfully

{
  "data": [
    {
      "hash": "b0fbc577d75d6df56c2d64487100bf1053ca87d0ccd4caa0c448e5f03302515c",
      "blockNumber": 3038010,
      "timestamp": 1720809750370,
      "confirmations": 1209692,
      "size": 48,
      "relatedAddresses": [
        "NQ57 2F6C X3GB Y9B7 04U5 2BVA 4BVC M2T0 ELRL",
        "NQ81 C01N BASE 0000 0000 0000 0000 0000 0000"
      ],
      "from": "NQ81 C01N BASE 0000 0000 0000 0000 0000 0000",
      "fromType": 0,
      "to": "NQ57 2F6C X3GB Y9B7 04U5 2BVA 4BVC M2T0 ELRL",
      "toType": 0,
      "value": 23431104,
      "fee": 0,
      "senderData": "",
      "recipientData": "",
      "flags": 0,
      "validityStartHeight": 3038010,
      "proof": "",
      "networkId": 5,
      "executionResult": true
    }
  ],
  "metadata": null
}