Withdraw
Warning:
Make sure to keep the private key safe in RAIRcloud. If exposed users can withdraw the full amount of deposited tokens.
Generate withdraw hash for current user.
Body
blockchainstringRequired
tokenAddressstringRequired
amountnumberRequired
Responses
200
OK
400
INVALID REQUEST - Missing information.
403
FORBIDDEN - User balance is less than the requested amount.
500
INTERNAL SERVER ERROR - Missing environment variables/ Error generating hash.
post
POST /api/credits/withdraw HTTP/1.1
Host: api.rair.market
Content-Type: application/json:
Accept: */*
Content-Length: 54
{
"blockchain": "text",
"tokenAddress": "text",
"amount": 1
}
No content
Last updated
Was this helpful?