decode_op_return
Parse OP_RETURN data from Bitcoin script hex to extract embedded information, returning both hexadecimal and UTF-8 decoded formats for blockchain data analysis.
Instructions
Parse OP_RETURN data from script hex.
Args:
script_hex: OP_RETURN script as hex string
Returns:
Dictionary with 'data_hex' and 'data_utf8' (if decodable).
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_hex": "<script_hex>"
},
"name": "decode_op_return"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_hex | Yes |