EVM
Sign messages (EIP-191)
EIP-191 signs a plain text message with a standard prefix, proving account ownership without sending a transaction. Common uses: authentication, off-chain agreements, Sign in with Ethereum.- React
- Node (TypeScript)
- Python
Sign typed data (EIP-712)
EIP-712 signs structured data in a human-readable format. Used for permit signatures, order books, and any protocol that requires structured off-chain signing.- React
- Node (TypeScript)
- Python
Sign transactions
For networks other than those supported by the Send Transaction API, you can sign a transaction with the wallet and broadcast it yourself. This example uses the public client fromviem / web3 to broadcast the transaction.
Common use cases include Tempo (a stablecoin payments blockchain) and other EVM-compatible chains not listed above.
- React
- Node (TypeScript)
- Python
Sign a hash
Sign a raw 32-byte hash directly. Useful for custom signing schemes, off-chain commitments, or protocols that require signing pre-hashed data.- React
- Node (TypeScript)
Solana
Sign messages
Sign arbitrary data to prove account ownership without sending anything to the blockchain. The hook takes a base64-encoded message and returns an Ed25519 signature.- React
- Node (TypeScript)
- Python
Sign transactions (without broadcasting)
Sign a transaction locally and broadcast it yourself via a custom RPC endpoint.- React
- Node (TypeScript)
- Python