Skip to content

getActivityPage ​

Query the complete local private history, keeping page membership stable as new entries arrive.

Import ​

ts
import { getActivityPage } from "@0xcurvy/curvy-sdk/actions";

Usage ​

ts
const result = await getActivityPage({ config });

Signature ​

ts
function getActivityPage(parameters?: GetActivityPageParameters): Promise<ActivityPage>

Returns ​

Promise<ActivityPage>

The action resolves or returns the value shown in the signature.

Parameters ​

accountId ​

  • Type: string
  • Required: no

The account whose history is paged. Defaults to the active account.

ts
const result = await getActivityPage({
  accountId, 
});

filters ​

  • Type: ActivityFilters
  • Required: no

Restrict the page by free-text query, kinds, network slug or vault token id.

ts
const result = await getActivityPage({
  filters, 
});

cursor ​

  • Type: string
  • Required: no

A cursor from a previous page. Reusing a page's own cursor refreshes statuses without changing membership.

ts
const result = await getActivityPage({
  cursor, 
});

pageSize ​

  • Type: number
  • Required: no

The number of items per page.

ts
const result = await getActivityPage({
  pageSize, 
});

seenIds ​

  • Type: readonly string[]
  • Required: no

Optional legacy host acknowledgements. SDK storage is restored automatically.

ts
const result = await getActivityPage({
  seenIds, 
});

signal ​

  • Type: AbortSignal
  • Required: no

Aborts the read.

ts
const result = await getActivityPage({
  signal, 
});

config ​

  • Type: CurvyConfig
  • Required: no

Curvy config to use. Defaults to the ambient config.

ts
const result = await getActivityPage({
  config, 
});

Errors ​

Errors from config resolution and the underlying SDK operation are propagated to the caller.

Source ​

packages/@0xcurvy/sdk/src/actions/views/getActivityPage.ts