Skip to content
docs

Intent

Defined in: kit/src/activity/journal.ts:25

One user action as the app saw it when it broadcast: kind, chain, the hashes it produced and what it expected to move. The feed shows it as a pending row and merges it into the on-chain rows once they appear.

address: string

Defined in: kit/src/activity/journal.ts:35

Wallet address that signed.


chain: string

Defined in: kit/src/activity/journal.ts:33

Chain the action started on (CAIP-2) and the wallet address that signed.


createdAt: number

Defined in: kit/src/activity/journal.ts:31

Unix seconds when the user confirmed the action.


optional expect?: object

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

What the app expected to leave / arrive (quote amounts), used while pending and when the recognizer saw nothing.

assetsIn: ActivityAsset[]

assetsOut: ActivityAsset[]


hashes: object[]

Defined in: kit/src/activity/journal.ts:37

Every transaction hash this action produced or expects, source leg first. A cross-chain swap lists both legs once known.

chain: string

hash: string


id: string

Defined in: kit/src/activity/journal.ts:27

App-chosen, unique: a UUID, or the provider’s own id (1Click deposit address, LI.FI route id…). Emitted as intent:<id> while pending.


kind: ActivityKind

Defined in: kit/src/activity/journal.ts:29

What the user did: swap, bridge, send, supply…


optional protocol?: string

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

Registry module name that executed it, e.g. “@anywalletkit/protocol-swap2-lifi”.


optional related?: object[]

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

Other legs that are not this wallet’s own transactions (a relayer’s fill, a destination deposit).

chain: string

hash: string


status: IntentStatus

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

Current state; the feed updates it as rows arrive.


optional subtitle?: string

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

Venue / counterparty label, e.g. “LI.FI”, “Aave v3 · Base”.