Wallet
Map the Magic wallet to my Slay ID
POST
/wallets/magicRequires a session: Authorization: Bearer <token>Limit: 10 / 10 min per user
Proves the browser holds the wallet: a DID token made with generateIdToken({ attachment: "slay-predict:<userId>" }). Works before the Slay ID exists (sign-up order: Slay code, Magic code, then Slay ID); the wallet becomes the trading wallet when the Slay ID is created. The wallet must be the one Magic made for this account's email. The first wallet becomes the trading wallet; Points count from that moment.
Request
curl -X POST 'https://api.slay.money/api/predict/wallets/magic' \
-H 'Authorization: Bearer $SLAY_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"didToken":"string"}'Body
didTokenstringrequiredResponses
200Linked.
walletstring200 response
{
"wallet": "0xebfc8c0fae1ae07ac46545835c62d9545a1ecf05"
}400Invalid or mismatched proof.
400 response
{
"error": "That wallet proof is for a different account."
}401No valid session. Sign in again.
401 response
{
"error": "Sign in first"
}403The account is suspended.
403 response
{
"error": "This account has been suspended for violating Slay's terms.",
"code": "ACCOUNT_BANNED"
}409The wallet belongs to another Slay ID, or to a different email than this account's.
409 response
{
"error": "This wallet is already linked to another Slay ID."
}429Rate limit reached. Wait for the window to pass.
429 response
{
"error": "Too many tries. Wait a few minutes and try again."
}