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
Example response
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.