Skip to content
docs

IntentJournal

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

Storage for intents, implemented by the app (SQLite, AsyncStorage, a file). Pass it to wallet.setIntentJournal(); createMemoryIntentJournal() is the in-memory one.

list(): Promise<Intent[]>

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

Every intent the app still wants in the feed (pending, and confirmed ones until the app prunes them).

Promise<Intent[]>


put(intent): Promise<void>

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

Insert or replace by id.

Intent

Promise<void>


remove(id): Promise<void>

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

Delete by id; the app calls it to prune old confirmed intents.

string

Promise<void>