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.
Methods
Section titled “Methods”list()
Section titled “list()”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).
Returns
Section titled “Returns”Promise<Intent[]>
put(
intent):Promise<void>
Defined in: kit/src/activity/journal.ts:58
Insert or replace by id.
Parameters
Section titled “Parameters”intent
Section titled “intent”Returns
Section titled “Returns”Promise<void>
remove()
Section titled “remove()”remove(
id):Promise<void>
Defined in: kit/src/activity/journal.ts:60
Delete by id; the app calls it to prune old confirmed intents.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<void>