Skip to main content
POST
/
2
/
pm
/
auth
/
build
Build auth typed data
curl --request POST \
  --url https://demo-api.mobula.io/api/2/pm/auth/build \
  --header 'Content-Type: application/json' \
  --data '
{
  "address": "<string>",
  "nonce": 0
}
'
{
  "data": {
    "domain": {
      "name": "<string>",
      "version": "<string>",
      "chainId": 123
    },
    "types": {},
    "primaryType": "<string>",
    "message": {
      "address": "<string>",
      "timestamp": "<string>",
      "nonce": "<string>",
      "message": "<string>"
    }
  },
  "hostname": "<string>",
  "took": 123
}
Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.

Body

application/json
address
string
required
nonce
number
default:0

Response

200 - application/json

Auth typed data

data
object
hostname
string
took
number