Skip to main content
Glama

encode_op_return

Encode arbitrary data into Bitcoin OP_RETURN scripts for blockchain storage. Converts text or hex data into the required script format to embed information on-chain.

Instructions

Encode arbitrary data into OP_RETURN script format.

Args: data: Data to encode (string) encoding: Encoding for the data ('utf-8', 'hex'). Default: 'utf-8' Returns: Dictionary with 'script_hex' containing the OP_RETURN script.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
encodingNoutf-8

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/EricGrill/mcp-bitcoin-cli'

If you have feedback or need assistance with the MCP directory API, please join our Discord server