Decode a Bitcoin script
bitcoin_decode_scriptDecode a Bitcoin script from hex (scriptPubKey, redeem or witness script): type, asm, descriptor, address, and the P2SH and P2WSH addresses that wrap it (Bitcoin Core decodescript). Paid per call. Price: 2 sats or US$0.002 (USDC) per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| l402 | No | Optional. After paying the Lightning invoice: '<token>:<preimage>'. | |
| script | Yes | A Bitcoin script as hex | |
| pay_with | No | Optional. 'lightning' returns a BOLT11 invoice and a token instead of the x402 payment request. |