accounts_sign-message
Signs messages as an ERC-1271 smart account with a saved local EOA to authorize x402/MPP payments and WalletConnect or Splits Connect requests; supports plain, hex, and EIP-712 typed data.
Instructions
Sign a message as the smart account (ERC-1271) with a local EOA saved by splits auth create-key or splits auth import-key. This can authorize compatible x402 or MPP payments as well as WalletConnect and Splits Connect requests; the payment method must accept ERC-1271 and package the signature. Pass exactly one of --message (plain text, personal_sign), --hex (raw bytes, personal_sign) or --typed-data (EIP-712 JSON), plus --chain-id. Creates the message, signs its signingHash, and returns the smart account signature once signatureCount reaches threshold. On a multisig the result has signature null; other signers add theirs with --id.
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": {
"address": "<address>"
},
"name": "accounts_sign-message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Sign an existing message instead of creating one | |
| hex | No | 0x-prefixed bytes to sign with personal_sign | |
| key | No | Address of the local key to sign with. Required when several local keys are saved. | |
| name | No | Label shown in the web app | |
| address | Yes | Account address (0x...) that signs the message | |
| chainId | No | Chain id the signature is valid on. Required unless --id is set. | |
| message | No | Plain text to sign with personal_sign | |
| typedData | No | EIP-712 typed data as JSON (domain, types, primaryType, message) | |
| workspace | No | Workspace alias to run this command in (see `splits auth workspaces`). Overrides SPLITS_WORKSPACE and the active workspace. |