Documentation Index
Fetch the complete documentation index at: https://docs.avnu.fi/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Fetch exchangeable tokens from avnu with optional filtering by tags and search. The SDK handles pagination and response parsing automatically.
SDK Method
fetchTokens(
request?: GetTokensRequest,
options?: AvnuOptions
): Promise<Page<Token>>
Parameters
Optional request parametersShow GetTokensRequest properties
Page number for pagination
Number of tokens per page (max 1000)
Search by token name or symbol
Filter by tags: Verified, Community, Unruggable, AVNU, Unknown
Optional SDK configurationShow AvnuOptions properties
Public key for response verification
Returns
Returns Promise<Page<Token>> - Paginated response with token list.
interface Page<Token> {
content: Token[];
totalPages: number;
totalElements: number;
size: number;
number: number;
}
type TokenTag = 'Unknown' | 'Verified' | 'Community' | 'Unruggable' | 'AVNU';
interface Token {
address: string;
name: string;
symbol: string;
decimals: number;
logoUri: string | null;
lastDailyVolumeUsd: number;
extensions: { [key: string]: string };
tags: TokenTag[];
}
Examples
import { fetchTokens } from '@avnu/avnu-sdk';
// Get first 100 tokens
const result = await fetchTokens();
console.log(`Total tokens: ${result.totalElements}`);
console.log(`Tokens on this page: ${result.content.length}`);
result.content.forEach(token => {
console.log(`${token.symbol}: ${token.name}`);
console.log(` Address: ${token.address}`);
console.log(` Tags: ${token.tags.join(', ')}`);
});
Available tags to filter tokens:
| Tag | Description |
|---|
Verified | Manually verified by avnu team |
Community | Community-approved (3+ avnu Working Group approvals) |
Unruggable | Unruggable memecoin |
AVNU | avnu team verified token |
Unknown | Token without verification status |
Token List Overview
Learn about verification and token tags
API Reference
REST API endpoint documentation