API reference

API reference · Account

The message a wallet signs to link or unlink

POST/api/account/wallets/challengeSigned in session

For link, the signer is the wallet being linked; for unlink, the wallet this browser signed in with. Refusals that need no signature come back here first.

Request body

application/json, required

Request body fields
FieldTypeWhat it is
actionrequiredstringOne of "link", "unlink".
addressrequiredstring

Example

{
  "action": "link",
  "address": "string"
}

Answer 200

The message to sign.

Fields of the 200 answer
FieldTypeWhat it is
noncestring
messagestring
expiresAtinteger
signerstring

Errors

  • 400OpenAI shaped error.
  • 401OpenAI shaped error.
  • 403OpenAI shaped error.
  • 409OpenAI shaped error.
  • 429OpenAI shaped error.

Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.

Antimatter