Tx Decode
by apix402data.com in Onchain & crypto
Decode any Base, Ethereum, Arbitrum, or Optimism transaction: method, arguments, ERC-20 transfers and approvals, status, and fee, with unlimited-approval flags and a local qwen3.5:4b plain-English explanation.
https://apix402data.com/api/tx/decode- Price
- $0.005
- per call in USDC
- Uptime
- 90.5%
- last 30 days
- Response time
- 565 ms
- 823 ms slowest 5%
- Last check
- Passed
- 1 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://apix402data.com/api/tx/decode
Each call costs $0.005 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://apix402data.com/api/tx/decode
content-type: application/json
{
"chain": "base",
"tx_hash": "0xcd5f9d5cdfc75ed2439e6a2f230025eec0b580598881ca36bf06ba29e2ed6dac"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
chain | string | No | base (default), ethereum, arbitrum, optimism Default: "base". |
timeout_ms | integer | No | Optional deadline in ms. If the local LLM would exceed it, the response comes back fast with "degraded": true and non-LLM/cached data |
tx_hash | string | No | Transaction hash (0x + 64 hex) |
Example response
The provider's example. We can't check it without paying.
Example response, 46 lines
{
"ai": {
"adjusted_by_guardrail": false,
"plain_english": "This transaction successfully moved 0.01",
"risk_level": "review",
"source": "qwen3.5:4b",
"warnings": [
"The transaction used an authorization me"
]
},
"approvals": [],
"as_of": "2026-11-23T22:14:07.434428+00:00",
"chain": "base",
"endpoint": "tx_decode",
"fee": {
"effective_gas_price_gwei": 0.01,
"fee_eth": 8.146e-7,
"fee_usd": 0.0014,
"gas_used": 81462,
"scope": "execution_fee"
},
"flags": [],
"from": "0x14fda13953fc30428938e6bf950d036e77214e",
"method": {
"args": [
{}
],
"selector": "0xe3ee160e",
"signature": "transferWithAuthorization(address,addres",
"signature_source": "known"
},
"status": "success",
"to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda029",
"transfers": [
{
"amount": "0.01",
"amount_raw": "10000",
"from": "0x2810eb5899ef878e4f35bf2af9d75b861135bd",
"symbol": "USDC",
"to": "0x17ea1c2afc105d8e9c976ed65aa97c65cf5720",
"token": "0x833589fcd6edb6e08f4c7c32d4f71b54bda029"
}
],
"tx_hash": "0xcd5f9d5cdfc75ed2439e6a2f230025eec0b580",
"value_eth": 0
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.005.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://apix402data.com/api/tx/decode' \
-H 'content-type: application/json' \
--data-raw '{"chain":"base","tx_hash":"0xcd5f9d5cdfc75ed2439e6a2f230025eec0b580598881ca36bf06ba29e2ed6dac"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://apix402data.com/api/tx/decode' \
-H 'content-type: application/json' \
--data-raw '{"chain":"base","tx_hash":"0xcd5f9d5cdfc75ed2439e6a2f230025eec0b580598881ca36bf06ba29e2ed6dac"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.005 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.005" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.005 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapix402data.com%2Fapi%2Ftx%2Fdecode&method=POST
const res = await pay("https://apix402data.com/api/tx/decode", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"chain": "base",
"tx_hash": "0xcd5f9d5cdfc75ed2439e6a2f230025eec0b580598881ca36bf06ba29e2ed6dac"
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.005 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.005"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://apix402data.com/api/tx/decode",
json={
"chain": "base",
"tx_hash": "0xcd5f9d5cdfc75ed2439e6a2f230025eec0b580598881ca36bf06ba29e2ed6dac",
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 1 h ago | Passed | 402 | 650 ms | $0.005 |
| 16 h ago | Timed out | - | - | - |
| 3 days ago | Timed out | - | - | - |
| 4 days ago | Passed | 402 | 539 ms | $0.005 |
| 4 days ago | Passed | 402 | 584 ms | $0.005 |
Show 10 older checks
| 5 days ago | Passed | 402 | 537 ms | $0.005 |
| 5 days ago | Passed | 402 | 571 ms | $0.005 |
| 6 days ago | Passed | 402 | 611 ms | $0.005 |
| 6 days ago | Passed | 402 | 531 ms | $0.005 |
| 6 days ago | Passed | 402 | 568 ms | $0.005 |
| 7 days ago | Passed | 402 | 823 ms | $0.005 |
| 7 days ago | Passed | 402 | 531 ms | $0.005 |
| 7 days ago | Passed | 402 | 255 ms | $0.005 |
| 7 days ago | Passed | 402 | 629 ms | $0.005 |
| 8 days ago | Passed | 402 | 540 ms | $0.005 |