Fetch questions for a game session.
Query Parameters:
category(optional): Filter by categorydifficulty(optional): easy, medium, hard, expertlimit(optional): Number of questions (default: 10)
Response:
{
"questions": [
{
"id": "q1",
"question": "What is the capital of France?",
"options": ["Paris", "London", "Berlin", "Madrid"],
"correctAnswer": 0,
"category": "general",
"difficulty": "easy"
}
]
}Submit game score.
Body:
{
"address": "0x...",
"score": 8500,
"category": "science",
"difficulty": "medium"
}Get top scores.
Query Parameters:
limit(optional): Number of entries (default: 10)category(optional): Filter by category