decode-bsv-transaction
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDecode BSV Transaction
解码BSV交易
Decode BSV transaction hex into human-readable format.
将BSV交易十六进制解码为人类可读格式。
Status
状态
Complete - All tests passing
已完成 - 所有测试通过
When to Use
使用场景
- Decode raw transaction hex
- Analyze transaction structure
- View inputs and outputs
- Inspect scripts and signatures
- 解码原始交易十六进制
- 分析交易结构
- 查看输入与输出
- 检查脚本与签名
Usage
使用方法
bash
undefinedbash
undefinedDecode transaction by hex
通过十六进制解码交易
bun run /path/to/skills/decode-bsv-transaction/scripts/decode.ts <tx-hex>
bun run /path/to/skills/decode-bsv-transaction/scripts/decode.ts <tx-hex>
Decode transaction by txid (fetches from chain)
通过交易ID解码交易(从链上获取数据)
bun run /path/to/skills/decode-bsv-transaction/scripts/decode.ts <txid>
undefinedbun run /path/to/skills/decode-bsv-transaction/scripts/decode.ts <txid>
undefinedAPI Endpoints
API接口
JungleBus (primary):
GET https://junglebus.gorillapool.io/v1/transaction/get/{txid}
WhatsOnChain (fallback):
GET https://api.whatsonchain.com/v1/bsv/main/tx/{txid}/hex
JungleBus(主用):
GET https://junglebus.gorillapool.io/v1/transaction/get/{txid}
WhatsOnChain(备用):
GET https://api.whatsonchain.com/v1/bsv/main/tx/{txid}/hex
Response
返回结果
Returns decoded transaction with:
- Version, locktime
- Inputs (previous outputs, scripts, signatures)
- Outputs (value, addresses, scripts)
- Transaction size and fees
返回解码后的交易信息,包含:
- 版本、锁定时间
- 输入(前序输出、脚本、签名)
- 输出(金额、地址、脚本)
- 交易大小与手续费