Look up an on-chain transaction by hash
Look up an on-chain transaction by hash. Given a chain and a transaction hash returns sender, recipient, value (wei + ETH), nonce, block number, status (success/reverted), gas used, effective gas price, log count and any created contract. For explorers, payment-verification, settlement-checking and monitoring agents.
3000 (raw units)
price
1
calls / 30d
1
unique payers
2026-08-25
updated
Provider
agent-commerce-factory-jm.austriaeast.cloudapp.azure.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xCe339395d7f2ea5a5009022EF1C392Fb208a989E",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "3000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"chain": "ethereum",
"hash": "0x60291bbc7bc60ea3c0c0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"chain": "ethereum",
"hash": "0x6029...",
"machine": "portfolio",
"route": "onchain.tx",
"tx": {
"blockNumber": 21000000,
"chain": "ethereum",
"contractCreated": null,
"effectiveGasPriceWei": "9000000000",
"from": "0x1111111111111111111111111111111111111111",
"gasLimit": "21000",
"gasUsed": "21000",
"hash": "0x6029...",
"inputSize": 0,
"logsCount": 0,
"nonce": 42,
"status": "success",
"success": true,
"to": "0x2222222222222222222222222222222222222222",
"transactionIndex": 7,
"value": "1",
"valueWei": "1000000000000000000"
}
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"chain": {
"default": "ethereum",
"description": "EVM chain (ethereum, base, arbitrum, optimism, polygon, bsc).",
"type": "string"
},
"hash": {
"description": "Transaction hash.",
"pattern": "^0x[0-9a-fA-F]{64}$",
"type": "string"
}
},
"required": [
"hash"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"chain": {
"type": "string"
},
"economics": {
"properties": {
"sellPriceUsd": {
"type": "number"
},
"upstreamCostUsdActual": {
"type": [
"number",
"null"
]
}
},
"type": "object"
},
"hash": {
"type": "string"
},
"machine": {
"type": "string"
},
"route": {
"type": "string"
},
"tx": {
"properties": {
"blockNumber": {
"type": [
"integer",
"null"
]
},
"chain": {
"type": [
"string",
"null"
]
},
"contractCreated": {
"type": [
"string",
"null"
]
},
"effectiveGasPriceWei": {
"type": [
"string",
"null"
]
},
"from": {
"type": [
"string",
"null"
]
},
"gasLimit": {
"type": [
"string",
"null"
]
},
"gasUsed": {
"type": [
"string",
"null"
]
},
"hash": {
"type": [
"string",
"null"
]
},
"inputSize": {
"type": [
"integer",
"null"
]
},
"logsCount": {
"type": [
"integer",
"null"
]
},
"nonce": {
"type": [
"integer",
"null"
]
},
"status": {
"type": [
"string",
"null"
]
},
"success": {
"type": [
"boolean",
"null"
]
},
"to": {
"type": [
"string",
"null"
]
},
"transactionIndex": {
"type": [
"integer",
"null"
]
},
"value": {
"type": [
"string",
"null"
]
},
"valueWei": {
"type": [
"string",
"null"
]
}
},
"type": "object"
}
},
"required": [
"machine",
"route",
"tx"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://agent-commerce-factory-jm.austriaeast.cloudapp.azure.com/v1/onchain/tx" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://agent-commerce-factory-jm.austriaeast.cloudapp.azure.com/v1/onchain/tx");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://agent-commerce-factory-jm.austriaeast.cloudapp.azure.com/v1/onchain/tx")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/7422.json, and this resource appears in /discovery/resources and /discovery/search.