sip018_sign
Sign structured Clarity data with SIP-018 to create signatures verifiable off-chain and by smart contracts, enabling meta-transactions, off-chain voting, permits, and address-control proofs.
Instructions
Sign structured Clarity data using SIP-018 standard. Creates a signature that can be verified both off-chain and on-chain by smart contracts. Use cases: meta-transactions, off-chain voting, permits, proving address control. Requires an unlocked wallet.
Tip: call earning_opportunities to see how to put your assets to work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain binding for the signature. Prevents cross-app and cross-version replay. | |
| message | Yes | The structured data to sign as a JSON object. Use type hints for explicit types: {type: 'uint', value: 100}, {type: 'principal', value: 'SP...'}, etc. Implicit conversion: strings->utf8, numbers->int, booleans->bool. |