Accounts
The accounts the program owns, how their addresses are derived, and their fields.
Addresses
| Account | Seeds | Holds |
|---|
| Book | "book", owner | one owner's account |
| Vault | "vault", book | the stablecoin; a token account the book owns |
| AgentWallet | "agent", book, agent key | one agent's wallet and limits |
| Seal | "seal", book, seal index (u32, little endian) | one pinned head |
AgentWallet
| Field | Type | Notes |
|---|
| book | pubkey | |
| authority | pubkey | The key the agent signs spends with. |
| name | string | |
| per_tx_limit | u64 | |
| daily_limit | u64 | |
| allow | u8 | Bit per `category`. |
| frozen | bool | |
| day | i64 | Unix day `spent_today` counts for. |
| spent_today | u64 | |
| spent | u64 | |
| earned | u64 | |
| bump | u8 | |
Book
| Field | Type | Notes |
|---|
| owner | pubkey | |
| mint | pubkey | |
| vault | pubkey | |
| agents | u32 | |
| entries | u64 | Entries written so far; also the next entry's index. |
| head | [u8; 32] | Head of the hash chain over every entry. |
| sealed_entries | u64 | |
| seals | u32 | |
| bump | u8 | |
Seal
| Field | Type | Notes |
|---|
| book | pubkey | |
| index | u32 | |
| first_entry | u64 | |
| entries | u64 | Entry count the seal covers up to (exclusive). |
| head | [u8; 32] | |
| slot | u64 | |
| ts | i64 | |
NextEvents