Rank API
GET /api/citizen/rank
Rank 정보 조회
요청
GET /api/citizen/rank Headers: X-Wallet-Address: 0x1234...
응답
{
"currentRank": 2,
"daysAtRank": 45,
"canRankUp": false,
"nextRank": 3,
"requirements": {
"civicCredit": 2000,
"influence": 50,
"minDays": 90
}
}POST /api/citizen/rank/check
Rank 승급/강등 체크
요청
POST /api/citizen/rank/check Headers: X-Wallet-Address: 0x1234...
응답 (승급)
{
"action": "rank_up",
"newRank": 3,
"message": "Rank increased!"
}응답 (강등)
{
"action": "rank_down",
"newRank": 1,
"message": "Rank decreased due to insufficient requirements."
}응답 (변화 없음)
{
"action": "no_change",
"currentRank": 2,
"message": "Rank requirements not met."
}Rank 시스템
| Rank | 이름 | 최소 Civic Credit | 최소 Influence | 최소 기간 |
|---|---|---|---|---|
| 0 | Observer | 0 | 0 | - |
| 1 | Initiate | 100 | 10 | 7일 |
| 2 | Citizen | 500 | 25 | 30일 |
| 3 | Patron | 2,000 | 50 | 90일 |
| 4 | Elder | 10,000 | 100 | 180일 |
| 5 | Sage | 50,000 | 250 | 365일 |