Skip to main content
GET
/
gateway
/
v1
/
onchain
/
tx
Transaction Details by Hash
curl --request GET \
  --url https://api.ask.surf/gateway/v1/onchain/tx
{
  "data": [
    {
      "accessList": [
        {
          "address": "<string>",
          "storageKeys": [
            "<string>"
          ]
        }
      ],
      "blockHash": "<string>",
      "blockNumber": "<string>",
      "from": "<string>",
      "gas": "<string>",
      "hash": "<string>",
      "input": "<string>",
      "nonce": "<string>",
      "r": "<string>",
      "s": "<string>",
      "to": "<string>",
      "transactionIndex": "<string>",
      "type": "<string>",
      "v": "<string>",
      "value": "<string>",
      "blobVersionedHashes": [
        "<string>"
      ],
      "chainId": "<string>",
      "gasPrice": "<string>",
      "maxFeePerBlobGas": "<string>",
      "maxFeePerGas": "<string>",
      "maxPriorityFeePerGas": "<string>",
      "yParity": "<string>"
    }
  ],
  "meta": {
    "cached": true,
    "credits_used": 123,
    "limit": 123,
    "offset": 123,
    "total": 123
  },
  "$schema": "<string>"
}

Query Parameters

hash
string
required

Transaction hash (0x-prefixed hex)

Example:

"0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060"

chain
enum<string>
required

Chain. Can be ethereum, polygon, bsc, arbitrum, optimism, base, avalanche, fantom, linea, or cyber.

Available options:
ethereum,
polygon,
bsc,
arbitrum,
optimism,
base,
avalanche,
fantom,
linea,
cyber
Example:

"ethereum"

Response

OK

data
object[] | null
required
meta
object
required
$schema
string<uri>

A URL to the JSON Schema for this object.

Example:

"https://example.com/schemas/DataResponseOnchainTxItem.json"