A Cloudflare Worker that provides a RESTful API to query and retrieve a list of all tokens launched on the Flaunch platform on the Base blockchain (chain ID: 8453).
This service aggregates token data from the Flaunch platform and provides it in a standardized format. It's designed for aggregators and developers who need to build comprehensive lists of all Flaunch tokens on Base.
Returns a list of Flaunch tokens in JSON format.
Response Format:
{
"code": 1,
"message": "",
"result": [
{
"chainId": 8453,
"address": "0x...",
"creator": "0x...",
"launchTime": 1234567890,
"orderId": 1234567890
}
]
}Response Fields:
code: Status code (1 = success, 0 = error)message: Error message (empty on success)result: Array of token objectschainId: Always8453(Base Mainnet)address: Token contract addresscreator: Wallet address of the token creatorlaunchTime: Unix timestamp of when the token was launchedorderId: Order ID (same ascreatedAttimestamp, used for pagination)
Returns an HTML page that provides a visual preview of the token list. The page displays tokens in a table format with clickable links to BaseScan for both token addresses and creator addresses.
The HTML preview accepts the same query parameters as the JSON endpoint and displays the results in a user-friendly format.
All parameters are optional and can be combined:
| Parameter | Type | Default | Description |
|---|---|---|---|
limit |
integer | 1000 |
Maximum number of tokens to return. Must be between 1 and 1000. Values above 1000 will be capped at 1000. |
creator |
string | (none) | Filter tokens by creator wallet address. Returns only tokens created by the specified address. |
orderId |
integer | 0 |
Pagination parameter. Returns tokens with orderId greater than this value. Use this to fetch tokens created after a specific timestamp. |
curl https://your-worker-domain.workers.dev/tokenscurl https://your-worker-domain.workers.dev/tokens?limit=100curl https://your-worker-domain.workers.dev/tokens?creator=0x1234567890123456789012345678901234567890curl https://your-worker-domain.workers.dev/tokens?orderId=1234567890&limit=1000curl https://your-worker-domain.workers.dev/tokens?limit=500&creator=0x1234567890123456789012345678901234567890&orderId=1234567890Open in browser:
https://your-worker-domain.workers.dev/?limit=250&creator=0x1234567890123456789012345678901234567890
This API is designed to help aggregators build a complete list of all Flaunch tokens on Base (chain ID: 8453). To retrieve all tokens:
- Initial Request: Start with
GET /tokens?limit=1000to get the first 1000 tokens - Pagination: Use the highest
orderIdfrom the response as theorderIdparameter in the next request - Repeat: Continue fetching until you receive fewer tokens than the limit (indicating you've reached the end)
Example Pagination Flow:
# First request
curl /tokens?limit=1000
# Response contains tokens with orderId up to 1234567890
# Second request (get next batch)
curl /tokens?limit=1000&orderId=1234567890
# Response contains tokens with orderId up to 1234567891
# Continue until response has fewer than 1000 tokens- Token Discovery: Find all tokens launched on Flaunch
- Creator Analytics: Filter tokens by creator to analyze specific wallets
- Integration: Integrate Flaunch token data into your application or service
- Monitoring: Track new token launches by polling with increasing
orderIdvalues
200 OK: Successful request404 Not Found: Invalid endpoint path500 Internal Server Error: Error fetching data from the GraphQL backend
All tokens returned by this API are on:
- Chain ID:
8453 - Network: Base Mainnet
- Explorer: https://basescan.org
npm run devThe worker will be available at http://localhost:8787
This Worker is deployed to Cloudflare via Wrangler.
-
Install dependencies (first time only):
npm install
-
Authenticate with Cloudflare (first time only — opens a browser for OAuth):
npx wrangler login
Alternatively, set a
CLOUDFLARE_API_TOKENenvironment variable for non-interactive / CI deploys. -
(Optional) Preview the change locally before pushing it live:
npm run dev
-
Deploy to Cloudflare Workers:
npm run deploy
This runs
wrangler deploy, which bundlessrc/index.ts(entrypoint defined inwrangler.jsonc) and publishes it to theflaunch-tokens-listWorker. On success, Wrangler prints the deployed URL and version ID. -
Verify the deployment by hitting the live
/tokensendpoint and confirming the response.
- Platform: Cloudflare Workers
- Data Source: GraphQL endpoint at
https://flayerlabs-dbd4b3f.dedicated.hyperindex.xyz/v1/graphql(Envio HyperIndex) - Ordering: Tokens are ordered by
createdAtin ascending order - Maximum Limit: 1000 tokens per request
[Add your license information here]