Tokens API
Endpoints for querying token data.
GET /api/tokens
List all deployed tokens.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| chainId | number | Filter by chain (8453 = Base, 1 = Ethereum) |
| limit | number | Max results (default: 50) |
| offset | number | Pagination offset |
| collection | string | Filter by NFT collection |
Response
json
{
"tokens": [
{
"address": "0x...",
"name": "Token Name",
"symbol": "TKN",
"chainId": 8453,
"nftCollection": "0x...",
"imageUrl": "ipfs://...",
"totalRewards": "1.5",
"createdAt": "2025-01-15T12:00:00Z"
}
],
"total": 42,
"hasMore": true
}Example
bash
curl "https://cc0strategy.fun/api/tokens?chainId=8453&limit=10"GET /api/tokens/[address]
Get details for a specific token.
Response
json
{
"address": "0x...",
"name": "Token Name",
"symbol": "TKN",
"chainId": 8453,
"nftCollection": "0x...",
"nftCollectionName": "Cool NFTs",
"nftSupply": 10000,
"imageUrl": "ipfs://...",
"totalSupply": "1000000000",
"totalRewards": "1.5",
"poolAddress": "0x...",
"deployer": "0x...",
"createdAt": "2025-01-15T12:00:00Z"
}