SW Combine SDK
    Preparing search index...

    Faction credit log resource

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Get faction credit log (paginated)

      Parameters

      • options: {
            factionId: string;
            item_count?: number;
            start_id?: number;
            start_index?: number;
        }

        Faction ID and optional pagination/filtering parameters

        • factionId: string

          Faction UID

        • Optionalitem_count?: number

          Number of items to retrieve. Default: 50, Max: 1000

        • Optionalstart_id?: number

          Oldest transaction ID threshold (1 = oldest 1000, 0/default = newest 1000)

        • Optionalstart_index?: number

          Starting position (1-based). Default: 1

      Returns Promise<CreditLogEntry[]>

      const creditlog = await client.faction.creditlog.list({ factionId: '20:123' });
      const moreLogs = await client.faction.creditlog.list({ factionId: '20:123', start_index: 51, item_count: 100 });
      const oldestLogs = await client.faction.creditlog.list({ factionId: '20:123', start_id: 1 });
      // Fetch up to 1000 credit log entries at once
      const manyLogs = await client.faction.creditlog.list({ factionId: '20:123', item_count: 1000 });