Wallets
Sign Typed Data
Signs structured data according to the EIP-712 standard using the specified wallet. This is commonly used for secure message signing in DeFi protocols, NFT marketplaces, and other dApps that require structured data verification. The typed data includes domain separation and type definitions for enhanced security.
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-typed-data
Request
- Base URLhttps://api.thirdweb.com
- AuthHTTP bearer and API key in header x-client-id
Request body
Example request
{
"from": "0x1234567890123456789012345678901234567890",
"chainId": 1,
"domain": {
"name": "MyDomain",
"version": "1",
"chainId": "1",
"verifyingContract": "0x1234567890123456789012345678901234567890"
},
"message": {
"name": "foo"
},
"primaryType": "MyType",
"types": {
"MyType": [
{
"name": "name",
"type": "string"
}
]
}
}Response
Typed data signed successfully. Returns the EIP-712 compliant signature that can be used for on-chain verification.
Changes
No recorded changes to this operation across all 5 revisions of this API.