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://api.nimiqhub.com/getTransactionsByBlockNumber/0"

Transactions retrieved successfully

{
  "data": [
    {
      "hash": "47b74114b2a5e755dd30788efdebf496d2c1369971542ad24cb6524ea735b9d8",
      "blockNumber": 3119102,
      "timestamp": 1720893855422,
      "confirmations": 1128697,
      "size": 139,
      "relatedAddresses": [
        "NQ17 3JN5 XLH3 7UNF SD1Q TQSV KL53 7CMQ 81PK",
        "NQ37 7C3V VMN8 FRPN FXS9 PLAG JMRE 8SC6 KUSQ"
      ],
      "from": "NQ37 7C3V VMN8 FRPN FXS9 PLAG JMRE 8SC6 KUSQ",
      "fromType": 0,
      "to": "NQ17 3JN5 XLH3 7UNF SD1Q TQSV KL53 7CMQ 81PK",
      "toType": 0,
      "value": 11000000000,
      "fee": 0,
      "senderData": "",
      "recipientData": "",
      "flags": 0,
      "validityStartHeight": 3119101,
      "proof": "00b287fd85679e11e5f45ca456dee1686b397ae4a6fce187f2cf3a3693e405f678008c968af4d90b99b8931292493500407ef5f0ba51e18d67b77c431a4b2e6970946466ea20b53aa2b5187ba8cadb8c378e5f386444103104679635a9fdf467c506",
      "networkId": 5,
      "executionResult": true
    }
  ],
  "metadata": null
}