Onchain
Transaction Details by Hash
Look up one transaction by hash. Example: chain=ethereum with a 0x-prefixed 64-character hash.
All numeric fields are hex-encoded. Convert them with parseInt(hex, 16).
Supported chains: ethereum, polygon, bsc, arbitrum, optimism, base, avalanche, fantom, linea, cyber.
get/gateway/v1/onchain/tx
Request
- Base URLhttps://api.asksurf.ai
- AuthHTTP bearer
Query parameters
hashstring required
Transaction hash (0x-prefixed hex)
Example:0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060
chain'ethereum' | 'polygon' | 'bsc' | 'arbitrum' | 'optimism' | 'base' | 'avalanche' | 'fantom' | 'linea' | 'cyber' required
Chain. Can be ethereum, polygon, bsc, arbitrum, optimism, base, avalanche, fantom, linea, or cyber.
Example:ethereum
includestring
Comma-separated enrichments to attach. Currently valid: labels — adds from_label and to_label fields with entity information for the from/to addresses.
Example:labels
Response
OK
Example response
{
"$schema": "https://example.com/schemas/DataResponseOnchainTxItem.json"
}Changes
No recorded changes to this operation across all 12 revisions of this API.