btg

Bitcoin Gold (BTG)

Method: POST decodescript

dropdown
POST

decodescript

Decode a hex-encoded script.

Parameters

hexstring - string, required

the hex-encoded script

Request

curl --location --request POST 'https://btg.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "decodescript",
"params": ["hexstring"],
"id": "getblock.io"}'


Response

{
    "error": null,
    "id": "getblock.io",
    "result": null
}