Skip to main content

🔣 Generate Bytes

This endpoint is used to generate a nonce (that protects against replay attacks) for use in wallet signatures (such as Terra Station's Signing Bytes method).

POST /generate-bytes

Request

Body Structure

*Required

walletAddress*

type: String
description: User's wallet address to generate bytes for

Example Request

{
"walletAddress": "terra194wmtg08x0t2qd2822hul6aj7gthhw4agx8ja4"
}

Response

Status Codes

CodeDescription
200Bytes successfully generated
400Invalid request

Example Response

{
"walletAddress": "terra194wmtg08x0t2qd2822hul6aj7gthhw4agx8ja4",
"bytes": "fa133948-4aa6-4e7c-a54b-0117ed9b4efe",
"status": 200
}