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
| Field | Type | What it is |
|---|---|---|
| actionrequired | string | One of "link", "unlink". |
| addressrequired | string |
Example
{
"action": "link",
"address": "string"
}Answer 200
The message to sign.
| Field | Type | What it is |
|---|---|---|
| nonce | string | |
| message | string | |
| expiresAt | integer | |
| signer | string |
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.