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://test.nimiqhub.com/getTransactionsByBatchNumber/0"

Transactions retrieved successfully

{
  "data": [
    {
      "hash": "string",
      "blockNumber": 0,
      "timestamp": 0,
      "confirmations": 0,
      "size": 0,
      "relatedAddresses": [
        "string"
      ],
      "from": "string",
      "fromType": 0,
      "to": "string",
      "toType": 0,
      "value": 0,
      "fee": 0,
      "senderData": "string",
      "recipientData": "string",
      "flags": 0,
      "validityStartHeight": 0,
      "proof": "string",
      "networkId": 0,
      "executionResult": true
    }
  ],
  "metadata": null
}