API reference · Account
Link a wallet
POST/api/account/walletsSigned in session
Send the signature the new wallet made over the message from /api/account/wallets/challenge. Same origin only, rate limited. A wallet that has its own account is refused (409 wallet_has_account): accounts are never merged. At most 5 wallets beside the account's own.
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| addressrequired | string | |
| noncerequired | string | |
| signaturerequired | string |
Example
{
"address": "string",
"nonce": "string",
"signature": "string"
}Answer 200
Linked.
| Field | Type | What it is |
|---|---|---|
| wallets | array of object | |
| wallets[] | string | |
| wallets[] | boolean | |
| wallets[] | integer or null | |
| wallets[] | boolean | The wallet this browser signed in with. |
| max | integer |
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.