For the complete documentation index, see llms.txt. This page is also available as Markdown.

Decodescript

decodescript

post

Decodes a hex-encoded script (usually scriptPubKey) and returns a JSON representation including the script type and addresses. Useful for analyzing output scripts or creating Pay-to-Script-Hash addresses.

Authorizations
api-keystringRequired
Body
jsonrpcstringRequired

JSON-RPC version

Example: 1.0
idstringRequired

Request identifier

Example: decodescript
methodstring · enumRequired

RPC method name

Possible values:
paramsstring[] · min: 1 · max: 1Required

Parameters:

  1. hexstring (string, required) — The script in hex format to decode.
Example: ["00141d0f172a0ecb48aee1be1f2687d2963ae33f71a1"]
Responses
200

Script decoded successfully

application/json
errorobject · nullableOptional

Null if successful; contains error info otherwise

idstringOptional

Same ID as in the request

post/

Last updated