Request a challenge message that you’ll sign with your wallet to authenticate. The challenge includes an HMAC that expires after 1 minute, so you should sign and submit it promptly.
JSON string containing challenge metadata. You’ll need to send this back with your signature. Contains:
walletAddress: Your wallet address
expiresOn: ISO timestamp when challenge expires (1 minute from now)
hmac: The challenge HMAC
Copy
{ "success": true, "challenge": { "message": "Sign into prediction market swaps by MoonPay.\n \n WARNING: do not sign this message on any other site.\n \n Challenge: a1b2c3d4e5f6...", "extraData": "{\"walletAddress\":\"0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb\",\"expiresOn\":\"2024-01-15T10:01:00.000Z\",\"hmac\":\"a1b2c3d4e5f6...\"}" }}