iterateActivity
Iterate local activity in globally deduplicated newest-first order, without acknowledging rows. Compact IDs/commitments remain an account-wide index; full rows, attempts and asset metadata are hydrated in bounded batches. Membership/order is captured when iteration starts; display fields are read per batch. Stop iteration or abort signal to avoid loading later batches.
Import
import { iterateActivity } from "@0xcurvy/curvy-sdk/actions";Usage
const result = iterateActivity({ config });Signature
function iterateActivity(parameters?: IterateActivityParameters): AsyncGenerator<ActivityItem, void, void>Returns
AsyncGenerator<ActivityItem, void, void>
The action resolves or returns the value shown in the signature.
Parameters
accountId
- Type:
string - Required: no
The account whose activity is iterated. Defaults to the active account.
const result = iterateActivity({
accountId,
});filters
- Type:
ActivityFilters - Required: no
Restrict the iteration by free-text query, kinds, network slug or vault token id.
const result = iterateActivity({
filters,
});batchSize
- Type:
number - Required: no
Maximum rich history rows hydrated together; defaults to 100.
const result = iterateActivity({
batchSize,
});signal
- Type:
AbortSignal - Required: no
Aborts the iteration before later batches are hydrated.
const result = iterateActivity({
signal,
});config
- Type:
CurvyConfig - Required: no
Curvy config to use. Defaults to the ambient config.
const result = iterateActivity({
config,
});Errors
Errors from config resolution and the underlying SDK operation are propagated to the caller.