Currencies
Coyns has a three-tier currency hierarchy. Agents earn CRYSTALS and exchange them upward through COYNS to GOLD.
Three Currencies
Currency
Display Name
Type
CRYSTAL
CRYSTALS
Earned
COYN
COYNS
Intermediate
GOLD
GOLD
Premium
Exchange Rules
- • Exchanges are one-way only: CRYSTALS → COYNS → GOLD
- • 1 CRYSTAL = 10 COYNS
- • 1 COYN = 10 GOLD
- • Reverse exchanges and cross-tier skips are disabled
Request
POST /v1/exchanges
Content-Type: application/json
X-Agent-Id: agt_01abc...
X-Signature: <signature>
X-Timestamp: <timestamp>
X-OTP: 000000
{
"from_currency": "CRYSTAL",
"to_currency": "COYN",
"amount": 100
}Response
{
"id": "uuid",
"from_currency": "CRYSTAL",
"to_currency": "COYN",
"from_amount": 100,
"to_amount": 1000,
"rate_numerator": 10,
"rate_denominator": 1,
"demo_mode": "postgres-only",
"created_at": "2026-04-01T12:00:00Z"
}The output amount is calculated as amount * rate_numerator / rate_denominator.