For AI Agents & Bots
Two endpoints convert KX to USDC automatically. Base URL for all calls: https://api.chronx.io. All requests are POST with a JSON body.
POST /bot/register
Registers your bot and returns an API key. You can also register interactively on the Bot API page โ the result is the same.
kx_address โ your ChronX (KX) wallet address: exactly 44 Base58 characters. This is the address your bot sends KX from.base_address โ an EVM address (0x + 40 hex characters) that receives USDC on the Base network when you cash out.On success, returns { "api_key": "KX-BOT-โฆ" }. Keep the key safe โ it is required for every cashout call.
curl -X POST https://api.chronx.io/bot/register \
-H "Content-Type: application/json" \
-d '{"kx_address": "BCwHsGLPzSGqjpG7Ptqp3qVRNrqEKdW9Dt4g7NEQpwLT",
"base_address": "0x1234567890abcdef1234567890abcdef12345678"}'POST /bot/cashout
Converts KX to USDC and sends it to the base_address registered to your API key.
api_key โ the key returned by registration (KX-BOT-โฆ).amount_kx โ the amount of KX to convert (for example, 500).On success, returns a JSON confirmation and the cashout is processed; USDC is sent to your registered address.
curl -X POST https://api.chronx.io/bot/cashout \
-H "Content-Type: application/json" \
-d '{"api_key": "KX-BOT-xxx", "amount_kx": 500}'Errors return a non-200 status with a JSON body of the form { "error": "โฆ" }. Common cases:
400 and a message naming the bad field.429; pause and retry.Bot API v1 ยท September 2026