Use when an agent must confirm a Base transaction or payment landed
Use when an agent must confirm a Base transaction or payment landed: did it succeed, who paid whom, how much of which token. Input: hash. Output: JSON status (success/reverted), block+time, confirmations, from, to, ETH value, fee (L2 gas + L1 data fee), decoded ERC-20 transfers with symbol and decimal amount (first 25). Unknown or unmined hash: 404, not charged. Example: ?hash=0x284f8abed91b5631ee28bdb1ccfe78374e18c480cb2ab25f28e3bfac5210fe0b
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://1gateway.dev/v1/onchain/base/tx
| Category | Market data |
|---|---|
| Provider host | 1gateway.dev |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 2 from 2 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"hash": "0x284f8abed91b5631ee28bdb1ccfe78374e18c480cb2ab25f28e3bfac5210fe0b"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"additionalProperties": false,
"properties": {
"hash": {
"description": "Transaction hash on Base mainnet (0x + 64 hex). Unknown or not yet mined \u2192 404 (not charged)",
"examples": [
"0x284f8abed91b5631ee28bdb1ccfe78374e18c480cb2ab25f28e3bfac5210fe0b"
],
"pattern": "^0x[0-9a-fA-F]{64}$",
"type": "string"
}
},
"required": [
"hash"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"block": {
"properties": {
"number": {
"type": "integer"
},
"timestamp": {
"type": "string"
}
},
"type": "object"
},
"chain": {
"type": "string"
},
"chainId": {
"type": "integer"
},
"confirmations": {
"type": "integer"
},
"contractCreated": {
"type": [
"string",
"null"
]
},
"erc20TransferCount": {
"type": "integer"
},
"erc20Transfers": {
"items": {
"properties": {
"amount": {
"type": [
"number",
"null"
]
},
"decimals": {
"type": [
"integer",
"null"
]
},
"from": {
"type": "string"
},
"logIndex": {
"type": "integer"
},
"raw": {
"type": "string"
},
"symbol": {
"type": [
"string",
"null"
]
},
"to": {
"type": "string"
},
"token": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"erc20TransfersTruncated": {
"type": "boolean"
},
"fee": {
"properties": {
"effectiveGasPriceGwei": {
"type": "number"
},
"gasUsed": {
"type": "integer"
},
"l1FeeEth": {
"type": "number"
},
"totalEth": {
"type": "number"
}
},
"type": "object"
},
"from": {
"type": "string"
},
"hash": {
"type": "string"
},
"input": {
"properties": {
"bytes": {
"type": "integer"
},
"selector": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"logCount": {
"type": "integer"
},
"nonce": {
"type": "integer"
},
"note": {
"type": "string"
},
"rpc": {
"properties": {
"kind": {
"type": "string"
},
"source": {
"type": "string"
}
},
"type": "object"
},
"status": {
"type": "string"
},
"to": {
"type": [
"string",
"null"
]
},
"value": {
"properties": {
"eth": {
"type": "number"
},
"wei": {
"type": "string"
}
},
"type": "object"
}
},
"required": [
"chain",
"chainId",
"hash",
"status",
"block",
"confirmations",
"from",
"to",
"contractCreated",
"value",
"nonce",
"input",
"fee",
"logCount",
"erc20Transfers",
"erc20TransferCount",
"erc20TransfersTruncated",
"rpc",
"note"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}