Collections API
Endpoints for NFT collection data.
GET /api/collections
List supported NFT collections.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| chainId | number | Filter by chain |
| verified | boolean | Only verified collections |
Response
json
{
"collections": [
{
"address": "0x...",
"name": "Cool NFTs",
"symbol": "COOL",
"chainId": 8453,
"totalSupply": 10000,
"imageUrl": "ipfs://...",
"verified": true,
"tokens": [
{
"address": "0x...",
"symbol": "COOL"
}
]
}
]
}GET /api/collections/[address]
Get details for a specific collection.
Response
json
{
"address": "0x...",
"name": "Cool NFTs",
"symbol": "COOL",
"chainId": 8453,
"totalSupply": 10000,
"imageUrl": "ipfs://...",
"bannerUrl": "ipfs://...",
"description": "A collection of cool NFTs",
"verified": true,
"tokens": [
{
"address": "0x...",
"name": "COOL Token",
"symbol": "COOLTKN",
"totalRewards": "2.5"
}
],
"totalRewards": "2.5"
}