Skip to Content
Blockhash Docs
API referenceTransactions
GET
/v1/transactions/{hash}

How tokens moved in one transaction: every address it touches (nodes), every transfer in log order (edges), every swap on its pool with its maker, its owner and purpose, and the sender's net flows. A block not indexed yet answers source: node with the head and value alone: ask again shortly.

Path Parameters

hash*string

A 32-byte hex hash.

Match^0x[0-9a-fA-F]{64}$

Query Parameters

native?"1"

1 adds the ETH the transaction's calls carried to edges, read from a trace of its block, and answers nativeTrace. ETH that one contract hands another is a call's value and emits no log, so without it the only ETH in a flow is the transaction's own value and what WETH wrapped or unwrapped.

Value in

  • "1"

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/transactions/string"
{  "hash": "string",  "block": "string",  "timestamp": 0,  "status": "success",  "from": "string",  "to": "string",  "valueRaw": "string",  "gasUsed": "string",  "nodes": [    {      "address": "string",      "kind": "origin",      "label": "string",      "venue": "string",      "pair": "string",      "layer": 0    }  ],  "edges": [    {      "id": "string",      "logIndex": 0,      "kind": "native",      "from": "string",      "to": "string",      "token": "string",      "amountRaw": "string",      "amount": 0,      "usd": 0,      "tokenId": "string",      "trace": 0    }  ],  "swaps": [    {      "logIndex": 0,      "venue": "string",      "family": "string",      "node": "string",      "pool": "string",      "poolId": "string",      "pair": "string",      "tokenIn": "string",      "tokenOut": "string",      "amountInRaw": "string",      "amountOutRaw": "string",      "amountIn": 0,      "amountOut": 0,      "usd": 0,      "sender": "string",      "recipient": "string",      "maker": "string",      "fee": true,      "deliveredTo": "string",      "solver": true    }  ],  "makers": [    "string"  ],  "tokens": {    "property1": {      "address": "string",      "symbol": "string",      "decimals": 0,      "priceUsd": 0    },    "property2": {      "address": "string",      "symbol": "string",      "decimals": 0,      "priceUsd": 0    }  },  "origin": {    "sent": [      {        "token": "string",        "amountRaw": "string",        "amount": 0,        "usd": 0      }    ],    "received": [      {        "token": "string",        "amountRaw": "string",        "amount": 0,        "usd": 0      }    ]  },  "owner": {    "address": "string",    "why": "sender"  },  "liquidity": [    {      "logIndex": 0,      "action": "add",      "venue": "string",      "family": "string",      "pool": "string",      "poolId": "string",      "pair": "string",      "sender": "string",      "owner": "string",      "token0": "string",      "token1": "string",      "amount0": 0,      "amount1": 0,      "liquidity": "string",      "tickLower": 0,      "tickUpper": 0    }  ],  "purpose": "liquidity-add",  "truncated": true,  "nativeTrace": "traced",  "source": "indexer",  "explorerUrl": "string"}