Accounts

The accounts the program owns, how their addresses are derived, and their fields.

Addresses

AccountSeedsHolds
Book"book", ownerone owner's account
Vault"vault", bookthe stablecoin; a token account the book owns
AgentWallet"agent", book, agent keyone agent's wallet and limits
Seal"seal", book, seal index (u32, little endian)one pinned head

AgentWallet

FieldTypeNotes
bookpubkey
authoritypubkeyThe key the agent signs spends with.
namestring
per_tx_limitu64
daily_limitu64
allowu8Bit per `category`.
frozenbool
dayi64Unix day `spent_today` counts for.
spent_todayu64
spentu64
earnedu64
bumpu8

Book

FieldTypeNotes
ownerpubkey
mintpubkey
vaultpubkey
agentsu32
entriesu64Entries written so far; also the next entry's index.
head[u8; 32]Head of the hash chain over every entry.
sealed_entriesu64
sealsu32
bumpu8

Seal

FieldTypeNotes
bookpubkey
indexu32
first_entryu64
entriesu64Entry count the seal covers up to (exclusive).
head[u8; 32]
slotu64
tsi64
NextEvents