Withdrawals
Send the signed authorization
POST
/withdraw/authorizeRequires a session: Authorization: Bearer <token>Limit: 20 / 10 min per user
Forwards the quote's signed nonce-mapping authorization to Relay, after checking it is for the signed-in user's own wallet. body is the post.body of the quote's authorize step; signature is the user's EIP-712 signature over its sign data.
Request
curl -X POST 'https://api.slay.money/api/predict/withdraw/authorize' \
-H 'Authorization: Bearer $SLAY_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"body":{},"signature":"string"}'Body
bodyobjectrequiredsignaturestringrequiredResponses
200Accepted.
okboolean200 response
{
"ok": true
}400Missing, malformed, not the user's own, or refused by Relay.
400 response
{
"error": "That authorization isn't for your wallet."
}401No valid session. Sign in again.
401 response
{
"error": "Sign in first"
}403Suspended, or withdrawals aren't open yet.
403 response
{
"error": "Withdrawals aren't open yet."
}409No wallet yet.
409 response
{
"error": "Set up your wallet first"
}429Rate limit reached. Wait for the window to pass.
429 response
{
"error": "Too many requests. Wait a moment."
}