Sign typed data
POST /v2/wallet/{walletId}/sign/typed-data
POST
/v2/wallet/{walletId}/sign/typed-data
Sign typed data using EIP-712 standard by wallet ID.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” walletId
required
string
The unique wallet ID.
Example
e271bc5c-f870-44cd-8462-54280d0411f6Header Parameters
Section titled “Header Parameters ” X-API-Key
string
API Key
X-API-Secret
string
API Secret
Request Body required
Section titled “Request Body required ”object
walletId
required
The unique wallet ID.
string
e271bc5c-f870-44cd-8462-54280d0411f6 domain
required
The EIP-712 domain separator
object
name
required
The name of the domain.
string
MyApp version
required
The version of the domain.
string
1 chainId
required
The chain ID of the domain.
number
1 verifyingContract
required
The verifying contract of the domain.
string
0x1234567890abcdef1234567890abcdef12345678 salt
required
The salt of the domain.
string
0x1234567890abcdef1234567890abcdef12345678{ "name": "MyApp", "version": "1", "chainId": 1, "verifyingContract": "0x1234567890abcdef1234567890abcdef12345678", "salt": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"} types
required
The EIP-712 type definitions
object
{ "Person": [ { "name": "name", "type": "string" }, { "name": "wallet", "type": "address" } ], "Mail": [ { "name": "from", "type": "Person" }, { "name": "to", "type": "Person" }, { "name": "contents", "type": "string" } ]} message
required
The message data to be signed
object
{ "from": { "name": "Chris", "wallet": "0x00e3495cf6af59008f22ffaf32d4c92ac33dac47" }, "to": { "name": "Bob", "wallet": "0xcc0ee1a1c5e788b61916c8f1c96c960f9a9d3db7" }, "contents": "Hello, Bob!"}Responses
Section titled “ Responses ”The resource has been successfully created.
object
walletId
required
The unique wallet ID.
string
e271bc5c-f870-44cd-8462-54280d0411f6 signedData
required
The binary that has been signed.
string
0xdeadbeefBad Request
Unauthorized
Forbidden
Not Found
Internal Server Error