tx-explain
Installation
SKILL.md
${var} — Transaction hash (
0x..., 66 chars) on Base. Required. If empty, logTX_EXPLAIN_NO_TARGETand exit cleanly (no notify).
Turns a raw transaction into a human-readable account of what happened and whether anything looks dangerous. Runs keyless on public endpoints.
Config
- Target =
${var}. Chain = Base (chainid=8453, explorerbasescan.org). ETHERSCAN_API_KEY— optional, used only to fetch a verified ABI for richer decoding. Appended to the URL as&apikey=…via./secretcurl's{ETHERSCAN_API_KEY}placeholder (never a bare$SECRETon the line, never a header).
Steps
1. Fetch tx + receipt
TX="${var}"
curl -m 10 -s -X POST "https://mainnet.base.org" -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getTransactionByHash","params":["'"$TX"'"],"id":1}' | jq '.result'
curl -m 10 -s -X POST "https://mainnet.base.org" -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getTransactionReceipt","params":["'"$TX"'"],"id":1}' | jq '.result'