Join our community of builders on

Telegram!Telegram

Signs typed data using the specified relayer.

Development Documentation

You're viewing documentation for unreleased features from the main branch. For production use, see the latest stable version (v1.1.x).
POST
/api/v1/relayers/{relayer_id}/sign-typed-data
AuthorizationBearer <token>

In: header

Path Parameters

relayer_idstring

The unique identifier of the relayer

domain_separatorstring
hash_struct_messagestring

Response Body

curl -X POST "https://loading/api/v1/relayers/string/sign-typed-data" \  -H "Content-Type: application/json" \  -d '{    "domain_separator": "string",    "hash_struct_message": "string"  }'
{
  "data": {
    "r": "string",
    "s": "string",
    "sig": "string",
    "v": 0
  },
  "error": "string",
  "metadata": {
    "logs": [
      {
        "level": "log",
        "message": "string"
      }
    ],
    "traces": [
      null
    ]
  },
  "pagination": {
    "current_page": 0,
    "per_page": 0,
    "total_items": 0
  },
  "success": true
}
{
  "data": null,
  "message": "Bad Request",
  "success": false
}
{
  "data": null,
  "message": "Unauthorized",
  "success": false
}
{
  "data": null,
  "message": "Relayer with ID relayer_id not found",
  "success": false
}
{
  "data": null,
  "message": "Too Many Requests",
  "success": false
}
{
  "data": null,
  "message": "Internal Server Error",
  "success": false
}