sign-evm-message
Installation
SKILL.md
Sign EVM Messages with MetaMask Connect
When to use
Use this skill when:
- Signing a plaintext message with
personal_signfor authentication or verification - Signing structured EIP-712 typed data with
eth_signTypedData_v4for permits, orders, or typed messages - Using the
connectAndSignshortcut to connect and sign in a single user approval - Handling signature errors and user rejections
Workflow
Step 1: Get the provider and connected account
Ensure the client is connected before requesting a signature:
import { createEVMClient, getInfuraRpcUrls } from '@metamask/connect-evm';