Vana SDK - v2.2.2
    Preparing search index...

    Interface PaginationOptions

    Pagination options for list operations.

    Controls result set size, ordering, and pagination. By default returns first 100 items to prevent accidental large fetches.

    // Get all files (explicit opt-in)
    const allFiles = await vana.data.getUserFiles({ owner }, {
    fetchAll: true
    });

    // Get 10 most recent files
    const recentFiles = await vana.data.getUserFiles({ owner }, {
    limit: 10,
    orderBy: 'addedAtBlock',
    orderDirection: 'desc'
    });
    interface PaginationOptions {
        limit?: number;
        offset?: number;
        orderBy?: string;
        orderDirection?: "asc" | "desc";
        fetchAll?: boolean;
    }
    Index

    Properties

    limit?: number

    Maximum number of items to return.

    Prevents accidental large fetches. Use fetchAll: true for unlimited.

    100
    
    offset?: number

    Number of items to skip (for manual pagination).

    0
    
    orderBy?: string

    Field to order results by.

    Field names depend on the entity type. Common: 'id', 'addedAtBlock', 'addedAtTimestamp'

    orderDirection?: "asc" | "desc"

    Sort direction for orderBy field.

    'desc' for timestamp/block fields, 'asc' for others
    
    fetchAll?: boolean

    Explicitly fetch all available items.

    Override safety limit. SDK will paginate internally to fetch all results. Use with caution - can result in many API calls and large memory usage.

    false