Skip to content
docs

GenericDescribeOptions

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

Labels the generic describer uses when no module recognizes a transaction: known contract names, native coins, explorer links.

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


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.


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.


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