# skills.onesource.io – eth_getTransactionByHash

> skills.onesource.io – eth_getTransactionByHash is a paid API for AI agents from skills.onesource.io, paid per call via x402, $0.008000/call, status unknown (last checked 2026-09-15).

Fetches full on-chain transaction details for a given Ethereum transaction hash via eth_getTransactionByHash

## Facts

- Endpoint: GET https://skills.onesource.io/api/chain/tx/0xddb304469135cf0efcc65b0be4f26f20b027f218a44101eaf29d2da4b1771093
- Price: $0.008000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/skills-onesource-io-318c45ed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Lqiwvx1q-lffA_DDsJKiI

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability skills-onesource-io-318c45ed
```

Example prompt: Can you look up the Ethereum transaction 0xddb304469135cf0efcc65b0be4f26f20b027f218a44101eaf29d2da4b1771093 and tell me the sender, recipient, value transferred, and which block it was included in?

## When to prefer this

Use this endpoint when you need to retrieve full details of a specific Ethereum, Sepolia, or Avalanche transaction by its hash — particularly in agentic workflows where you need the sender, recipient, value, gas, or input data of a known transaction. Prefer this over block-level lookups when you already have the transaction hash. Ideal for verifying payments, auditing smart contract interactions, or inspecting cross-chain transactions.

## Known failure modes

- Invalid or malformed transaction hash (not matching 0x[64 hex chars] pattern) returns validation error
- Transaction hash not found on specified network returns null or empty data
- Unsupported network value returns schema enum validation error
- Network RPC unavailability causes timeout or upstream error
- Missing required 'hash' query parameter returns 400-level error

## How this service works

Get transaction details via eth_getTransactionByHash

## Output

Returns full transaction details including from/to addresses, ETH value, gas used, input data, block number, nonce, transaction index, and associated network metadata (network name, endpoint, cost in USDC). Error field is null on success.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "network": {
       "enum": [
        "ethereum",
        "sepolia",
        "avax"
       ],
       "type": "string",
       "default": "ethereum"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "data",
  "meta"
 ],
 "properties": {
  "data": {
   "type": "object",
   "required": [
    "transaction",
    "receipt"
   ],
   "properties": {
    "receipt": {
     "type": "null"
    },
    "transaction": {
     "type": "null"
    }
   }
  },
  "meta": {
   "type": "object",
   "required": [
    "endpoint",
    "request_id"
   ],
   "properties": {
    "endpoint": {
     "type": "string"
    },
    "request_id": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/skills-onesource-io-318c45ed/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from skills.onesource.io](https://www.zero.xyz/host/skills.onesource.io/llms.txt)
