Help Center
Developer Docs
stx_signStructuredMessage API method
May 22, 2025
Leather does not evaluate the content or validity of signed messages. Developers are responsible for defining and verifying structured message formats and their implications.
Request the signature of a structured message using the Stacks address of an account.
Method name
stx_signStructuredMessage
Parameters
message(string or object, required): The structured message to sign, usually a Clarity value or a hex-encoded stringdomain(string or object, required): Domain tuple following SIP-018 that defines the signing context
Example request
[Unsupported block type: code]
Example response
[Unsupported block type: code]
Notes
This method supports signing messages that follow the SIP-018 specification. It allows for greater context and security when working with structured, domain-aware message flows on the Stacks blockchain.