exportActivity
Collect the full matching local export. Hydration is bounded; the returned string necessarily occupies memory for the complete export. Use iterateActivity to write incrementally to a host file/stream instead. No seen-state mutation.
Import
import { exportActivity } from "@0xcurvy/curvy-sdk/actions";Usage
const result = await exportActivity({ config });Signature
function exportActivity(parameters?: ExportActivityParameters): Promise<{ data: string; mimeType: string; count: number; }>Returns
Promise<{ data: string; mimeType: string; count: number; }>
The action resolves or returns the value shown in the signature.
Parameters
accountId
- Type:
string - Required: no
The account whose activity is exported. Defaults to the active account.
const result = await exportActivity({
accountId,
});filters
- Type:
ActivityFilters - Required: no
Restrict the export by free-text query, kinds, network slug or vault token id.
const result = await exportActivity({
filters,
});format
- Type:
"csv" | "json" - Required: no
The output format, "csv" or "json".
const result = await exportActivity({
format,
});batchSize
- Type:
number - Required: no
How many rich history rows are hydrated at a time. Defaults to 100.
const result = await exportActivity({
batchSize,
});signal
- Type:
AbortSignal - Required: no
Aborts the export before later batches are hydrated.
const result = await exportActivity({
signal,
});config
- Type:
CurvyConfig - Required: no
Curvy config to use. Defaults to the ambient config.
const result = await exportActivity({
config,
});Errors
Errors from config resolution and the underlying SDK operation are propagated to the caller.