Wallets
Sign Message
Signs an arbitrary message using the specified wallet. This endpoint supports both text and hexadecimal message formats. The signing is performed using thirdweb Engine with smart wallet support for gasless transactions.
Authentication: This endpoint requires project authentication and wallet authentication. For backend usage, use x-secret-key header. For frontend usage, use x-client-id + Authorization: Bearer <jwt> headers.
post/v1/wallets/sign-message
Request
- Base URLhttps://api.thirdweb.com
- AuthHTTP bearer and API key in header x-client-id
Request body
Example request
{
"from": "0x1234567890123456789012345678901234567890",
"chainId": 1,
"message": "Hello, world!"
}Response
Message signed successfully. Returns the cryptographic signature that can be used for verification.
Changes
No recorded changes to this operation across all 5 revisions of this API.