{"slug":"1gateway-dev-v1-onchain-tx-explain-781f2f","title":"Use when an agent must tell a user what a transaction did","host":"1gateway.dev","method":"GET","resource":"https://1gateway.dev/v1/onchain/tx/explain","category":"market","description":"Use when an agent must tell a user what a transaction did. Input: tx (Base hash or Solana signature), network=eip155:8453|solana (optional, inferred). Output: explanation (1-3 sentences; every number checked against the decoded facts, template fallback), facts: status, time, fee, from/to, called fun","price_listed":0.005,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":3,"reported_payers_30d":1,"networks":["eip155:137","eip155:143","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"network":"eip155:8453","tx":"0xffbdcb7953401111c60d780212c77c6e01f82295cda8670a9e63a2574a01be32"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"additionalProperties":false,"properties":{"network":{"description":"Chain (default: Base for 0x hashes, Solana otherwise)","enum":["eip155:8453","solana"],"type":"string"},"tx":{"description":"Base transaction hash (0x + 64 hex) or Solana signature (base58)","pattern":"^(0x[0-9a-fA-F]{64}|[1-9A-HJ-NP-Za-km-z]{64,90})$","type":"string"}},"required":["tx"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":true,"properties":{"cached":{"type":"boolean"},"explanation":{"type":"string"},"explanationSource":{"type":"string"},"facts":{"additionalProperties":true,"properties":{"fee":{"type":"string"},"final":{"type":"boolean"},"from":{"type":"string"},"method":{"additionalProperties":true,"properties":{"name":{"type":"string"},"selector":{"type":"string"}},"type":["object","null"]},"network":{"type":"string"},"status":{"type":"string"},"time":{"type":"string"},"to":{"type":["string","null"]},"tx":{"type":"string"},"valueNative":{"type":"null"}},"type":"object"},"model":{"type":"string"},"network":{"type":"string"},"note":{"type":"string"},"tx":{"type":"string"},"upstreamCostUsd":{"type":["integer","null"]}},"required":["network","tx","explanation","explanationSource","model","facts","note","cached","upstreamCostUsd"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Use when an agent must tell a user what a transaction did. Input: tx (Base hash or Solana signature), network=eip155:8453|solana (optional, inferred). Output: explanation (1-3 sentences; every number checked against the decoded facts, template fallback), facts: status, time, fee, from/to, called function (curated selector table), ERC-20 transfers, approvals, inferred swap (sent/received), Solana programs. Example: ?tx=0x…&network=eip155:8453","last_updated":"2026-11-23T00:53:03.356Z","schemes":["exact"]}