Transaction

Fetch transaction by hash

Retrieves transaction details, including reward transactions, given a transaction hash from the Nimiq RPC.

GET
/getTransactionByHash/{hash}
/getTransactionByHash/{hash}

Path Parameters

hash
Required
string

The hash of the transaction.

curl -X GET "https://api.nimiqhub.com/getTransactionByHash/string"

Transaction data retrieved successfully

{
  "data": {
    "hash": "a46e4f2b5c44bf81b4f3f834257abbd9d11a62a31ff91588ef5d59d359bac4d1",
    "blockNumber": 4247190,
    "timestamp": 1722011772880,
    "confirmations": 68,
    "size": 48,
    "relatedAddresses": [
      "NQ81 C01N BASE 0000 0000 0000 0000 0000 0000",
      "NQ24 DJE3 KX3U HG5X 1BXP 8XQ3 SK7S X364 N7G7"
    ],
    "from": "NQ81 C01N BASE 0000 0000 0000 0000 0000 0000",
    "fromType": 0,
    "to": "NQ24 DJE3 KX3U HG5X 1BXP 8XQ3 SK7S X364 N7G7",
    "toType": 0,
    "value": 27861640,
    "fee": 0,
    "senderData": "",
    "recipientData": "",
    "flags": 0,
    "validityStartHeight": 4247190,
    "proof": "",
    "networkId": 5,
    "executionResult": true
  },
  "metadata": null
}