Transaction

Fetch transactions by block number

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

GET
/getTransactionsByBlockNumber/{blockNumber}
/getTransactionsByBlockNumber/{blockNumber}

Path Parameters

blockNumber
Required
integer

The block number to fetch transactions for.

curl -X GET "https://test.nimiqhub.com/getTransactionsByBlockNumber/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
}