Skip to content
docs

ActivityOptions

Defined in: kit/src/activity/feed.ts:39

Options for the activity feed, set once with WalletOptions.activity.

optional explorerUrl?: (chain, hash) => string | undefined

Defined in: kit/src/activity/generic.ts:32

Explorer URL for an item (the kit passes the chain’s HistorySource.explorerTxUrl).

string

string

string | undefined

GenericDescribeOptions.explorerUrl


optional known?: KnownLabels

Defined in: kit/src/activity/generic.ts:28

Labels for contracts / counterparties the app trusts or names (“Uniswap v3 Router”), per chain.

GenericDescribeOptions.known


optional maxEmptyHops?: number

Defined in: kit/src/activity/feed.ts:47

Empty pages with a cursor (block-window sources) followed per source per call. Default 3.


optional natives?: Record<string, NativeAsset>

Defined in: kit/src/activity/generic.ts:30

Native coin per CAIP-2 chain; overrides the built-in table and the swap2-assets catalog.

GenericDescribeOptions.natives


optional now?: () => number

Defined in: kit/src/activity/feed.ts:45

Clock in unix seconds (tests).

number


optional onError?: (report) => void

Defined in: kit/src/activity/feed.ts:41

Called for every isolated failure (a source that errored, a recognizer that threw, a journal write that failed). Failures also ride in HistoryFeedPage.errors.

ActivityErrorReport

void


optional pendingTtl?: number

Defined in: kit/src/activity/feed.ts:43

Seconds a pending intent may wait for its row before it is marked failed. Default 86 400 (24 h).


optional tokens?: (chain, token) => { decimals: number; symbol: string; } | undefined

Defined in: kit/src/activity/generic.ts:39

The app’s own token list (custom tokens the user added, @anywalletkit/tokens): ERC-20s outside the swap2-assets catalog. Used for symbols and decimals, and to know an approve(x, 0) on such a token is an ERC-20 revoke. Without it an unlisted token’s approval reads as “Approved 0x1234…”.

string

string

{ decimals: number; symbol: string; } | undefined

GenericDescribeOptions.tokens