{"uid":"cap_KYOBGlsHrTyMaxE8KqEm4","slug":"saylor-innovations-data-desk-cosmos-hub-transaction-lookup-7e3fe024","name":"Saylor Innovations Data Desk – Cosmos Hub Transaction Lookup","description":"Cosmos Hub transaction lookup: result code and error, message types, fee, gas used, block height and time, read from a Cosmos SDK REST node.","url":"https://saylorinnovations.com/api/explorer/cosmos/tx?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST","PUT","PATCH","DELETE","HEAD"],"type":"string"},"queryParams":{"type":"object","required":["hash"],"properties":{"hash":{"type":"string","description":"the Cosmos Hub transaction hash (64 hex characters)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["chain","hash","status","code","height","gas_wanted","gas_used","message_count","message_types","note","source"],"properties":{"code":{"type":"number","description":"Code assigned by the issuing system"},"hash":{"type":"string","description":"Hash of the item"},"memo":{"type":["string","null"]},"note":{"type":"string","description":"Caveat or context for reading the result"},"time":{"type":["string","null"],"description":"Time"},"chain":{"type":"string","description":"Blockchain the data is for"},"error":{"type":["string","null"],"description":"Error message, if any"},"height":{"type":"number","description":"Height"},"source":{"type":"string","description":"Data source the values come from"},"status":{"type":"string","description":"Current status"},"fee_atom":{"type":["number","null"],"description":"Fee atom"},"gas_used":{"type":"number","description":"Gas consumed"},"gas_wanted":{"type":"number","description":"Gas wanted"},"message_count":{"type":"number","description":"Number of message"},"message_types":{"type":"array","description":"Message types"}}},"description":{"type":"string"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_O1tjCw4DN0pm7T_XPWdc_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up a Cosmos Hub transaction by hash and returns result code, error message, message types, fee, gas used, block height, and block time from a Cosmos SDK REST node.","exampleAgentPrompt":"Can you look up Cosmos Hub transaction 3A1B2C4D5E6F7890ABCDEF1234567890ABCDEF1234567890ABCDEF1234567890AB and tell me whether it succeeded, what message types it contained, how much gas it used, and what block it landed in?","exampleUseCases":[{"title":"Verify IBC transfer confirmation","prompt":"I just sent an IBC transfer on Cosmos Hub — the tx hash is 1F2E3D4C5B6A7980FEDCBA0987654321FEDCBA0987654321FEDCBA0987654321FE. Did it succeed, and which block was it included in?"},{"title":"Debug a failed Cosmos transaction","prompt":"This Cosmos Hub tx came back as failed: A9B8C7D6E5F4031201FEDCBA9876543210FEDCBA9876543210FEDCBA9876543210. Can you pull the result code and the error message so I can figure out what went wrong?"},{"title":"Audit gas costs for a governance vote","prompt":"I want to know the gas used, gas wanted, and fee in ATOM for my Cosmos Hub governance vote — the tx hash is 0A1B2C3D4E5F6789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789AB."}],"resultDescription":"A JSON object containing: chain identifier, transaction hash, status string, numeric result code, block height, gas wanted, gas used, message count, array of message type strings, optional memo, optional error message, optional fee in ATOM, optional block time, a note explaining caveats, and the data source label.","failureModes":["Invalid or malformed hash (not 64 hex characters) returns an error or empty result","Transaction not found on Cosmos Hub returns a not-found or null result","Cosmos SDK REST node temporarily unavailable causes timeout or 5xx error","Non-Cosmos-Hub transaction hash (e.g. from another Cosmos chain) may return no data or incorrect data"],"whenToPreferThis":"Use this endpoint when you need to look up the outcome of a specific Cosmos Hub transaction by its 64-character hex hash — particularly to check success/failure status, result code, error details, gas consumption, or message types. Prefer it over generic block explorers when you need a machine-readable JSON response suitable for agent workflows. Not suitable for querying other Cosmos SDK chains, EVM chains, or for searching transactions by address.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:21:42.858Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-data-desk-cosmos-hub-transaction-lookup-7e3fe024"}