Transaction Details
GET /v1/tx/hash/:hash
Retrieve full details of a single transaction by its hash. Useful for webhook enrichment or loading transaction details on-demand.
Parameters:
| Parameter | Type | Description |
|---|---|---|
hash | string | Transaction hash (64 hex characters) |
Query Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
groupByPolicy | boolean | false | Group assets by policy ID instead of flat format |
Example Request:
bash
curl -X GET "https://api.fireblocks.partners.iagon.com/v1/tx/hash/402df03a9444a21e1be12550f381b9b99cb17705e697bb1b7c00859beb8bb4ae" \
-H "Authorization: Bearer YOUR_API_KEY"Response:
Content-Type: application/json;charset=utf-8
json
{
"success": true,
"data": {
"tx_hash": "402df03a9444a21e1be12550f381b9b99cb17705e697bb1b7c00859beb8bb4ae",
"block_hash": "49394349d0dbd16276eee0654902fb0eda97fcf6286542feb66b676e39f2e59f",
"slot_no": 95524660,
"block_no": 4521234,
"block_time": "2025-01-15T10:30:00.000Z",
"fee": 180000,
"size": 512,
"inputs": [
{
"tx_hash": "abc123def456...",
"output_index": 0,
"address": "addr1qy...",
"value": {
"lovelace": 5000000,
"assets": {
"87264e48adc75c4472c4e52e80acd36051ca153f42ee339fb04f5a28.token": 100
}
}
}
],
"outputs": [
{
"output_index": 0,
"address": "addr1qx...",
"value": {
"lovelace": 2000000
}
},
{
"output_index": 1,
"address": "addr1qy...",
"value": {
"lovelace": 2820000,
"assets": {
"87264e48adc75c4472c4e52e80acd36051ca153f42ee339fb04f5a28.token": 100
}
}
}
]
}
}Response Fields:
| Field | Type | Description |
|---|---|---|
tx_hash | string | Transaction hash (64 hex characters) |
block_hash | string | Block hash (64 hex characters) |
slot_no | number | Slot number when transaction was included |
block_no | number | Block number |
block_time | string | ISO 8601 timestamp of block |
fee | number | Transaction fee in lovelace |
size | number | Transaction size in bytes |
inputs | array | Array of transaction inputs |
inputs[].tx_hash | string | Source transaction hash |
inputs[].output_index | number | Source output index |
inputs[].address | string | Source address |
inputs[].value | object | Input value (lovelace + assets) |
outputs | array | Array of transaction outputs |
outputs[].output_index | number | Output index |
outputs[].address | string | Destination address |
outputs[].value | object | Output value (lovelace + assets) |
Use Cases:
- Webhook enrichment: When a webhook fires with a transaction hash, fetch full details
- On-demand loading: Combine with
/v1/tx/history/:addressto load details lazily - Transaction verification: Confirm transaction details after submission
Errors:
| Status Code | Description |
|---|---|
| 400 | Invalid transaction hash format |
| 404 | Transaction not found |
| 500 | Internal server error |
