Decode BSV transaction hex into human-readable format using WhatsOnChain API. Shows inputs, outputs, scripts, and transaction details.
/plugin marketplace add b-open-io/bsv-skills/plugin install bsv-skills@b-open-ioThis skill is limited to using the following tools:
scripts/decode.tsDecode BSV transaction hex using WhatsOnChain API.
# Decode transaction by hex
bun run /path/to/skills/decode-bsv-transaction/scripts/decode.ts <tx-hex>
# Decode transaction by txid (fetches from chain)
bun run /path/to/skills/decode-bsv-transaction/scripts/decode.ts <txid>
WhatsOnChain Transaction API:
POST https://api.whatsonchain.com/v1/bsv/main/tx/decodeGET https://api.whatsonchain.com/v1/bsv/main/tx/hash/{txid}Returns decoded transaction with: