crypto_btc_script
Bitcoin script decoder and analyzer — Decode any Bitcoin script offline: script= hex of an output script (scriptPubKey), redeem script, witness script or tapscript; optional network= mainnet (default), testnet, signet, regtest. Returns the ASM disassembly, standard output type (p2pkh, p2sh, p2wpkh, p2wsh, p2tr, pay-to-anchor, bare multisig, p2pk, OP_RETURN with decoded data, future witness versions) and its address, plus an analysis of custom scripts: m-of-n multisig (incl. tapscript CHECKSIGADD), hashlocks, CHECKLOCKTIMEVERIFY/CHECKSEQUENCEVERIFY timelocks with their meaning (block height, date, relative blocks or seconds), HTLC detection, branches, pubkey count and ordinals inscription envelopes. For non-address scripts it also returns the P2SH, P2WSH and P2SH-P2WSH addresses that would lock funds to the script, and warns on reserved opcodes, OP_CODESEPARATOR and size limits. Returns 422 for truncated pushes. No network calls. Price: $0.002 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"script": "<script>"
},
"name": "crypto_btc_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | 5221031b84c5567b126440995d3ed5aaba0565d71e1834604819ff9c17f5e9d5dd078f21024d4b6cd1361032ca9bd2aeb9d900aa4d45d9ead80ac9423374c451a7254d07662102531fe6068134503d2723133227c867ac8fa6c83c537e9a44c3c5bdbdcb1fe33753ae |