API Documentation
Test the API with a token address
Endpoint
GET
/api/token/[address]Get token information by contract address
Parameters
address - Token contract address (string)Response
{
"success": true,
"data": {
"tokenAddress": "string",
"chain": "Solana",
"name": "string",
"ticker": "string",
"description": "string",
"iconUrl": "string",
"bannerUrl": "string",
"websiteUrl": "string",
"xUrl": "string",
"telegramUrl": "string",
"isCTO": boolean,
"votes": number,
"votedBy": ["username1", "username2"],
"isApproved": boolean,
"submittedBy": "string"
}
}CTO Voting
CTO tokens require 5 votes to be approved. Each user can vote once.
isCTO- Is this a CTO tokenvotes- Current vote count (0-5)votedBy- Array of usernames who votedisApproved- True when votes ≥ 5
Status Codes
- 200 - Success
- 404 - Token not found
- 400 - Invalid address
- 500 - Server error