POST
/
wallet
/
project
/
{projectId}
/
signTypedDataWithLookup
curl --request POST \
  --url https://api.syndicate.io/wallet/project/{projectId}/signTypedDataWithLookup \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "domain": {
    "chainId": 123,
    "name": "<string>",
    "salt": "<string>",
    "verifyingContract": "<string>",
    "version": "<string>"
  },
  "message": {},
  "primaryType": "<string>",
  "signatureId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "signerAddress": "<string>",
  "types": {},
  "lookups": [
    {
      "operation": "eq",
      "value": "<string>",
      "args": {},
      "chainId": 123,
      "contractAddress": "<string>",
      "functionSignature": "<string>",
      "type": "contract"
    }
  ]
}'
{
  "message": "<any>",
  "signature": "<string>",
  "signatureId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "signerAddress": "<string>"
}

API Endpoint

https://api.syndicate.io/wallet/project/{projectId}/signTypedDataWithLookup

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

projectId
string
required

Body

application/json
domain
object
required
message
object
required

Data to be signed by the 'signerAddress'. The message's structure must be correctly defined in the 'types' mapping, specified by the 'primaryType'.

primaryType
string
required

Specifies the name of the key in 'types' that describes the shape of the 'message'.

signatureId
string | null

(Optional) ID of the request. Needs to be a valid UUID. If provided, it will be saved and returned as the signatureId of the response. If not provided, we will generate one for you and return it as the signatureId.

signerAddress
string
required

Address of a project wallet that will be used to sign the 'message'.

types
object
required

Type definitions of the domain and data you are requesting signature of. At minimum you must define the domain with key 'EIP712Domain' and the type of your message with key specified by 'primaryType'. More information here.

lookups
object[]
required

Specify a maximum of 5 contract lookups to compare data with. All lookups must be valid to receive a signature by the 'signerAddress'.

Response

200 - application/json
message
any
required

The raw data requested to be signed.

signature
string
required

The signature of 'message' by the 'signerAddress'.

signatureId
string
required

UUID of the signature request.

signerAddress
string
required

The address of the signer of the 'signature'.