Agent wallets and signing safety
Agent wallets and signing safety in the Carbium Library: 7 working Solana examples, among them Sign-message payload inspector and Program interaction audit.
- Sign-message payload inspector SI0130
Checks whether a payload sent for signing decodes as a Solana transaction, raw or inside base64 or base58 text, and blocks it before the wallet signs.
- Program interaction audit SI0070
List the programs a wallet's newest transactions invoked, with call counts, known names and slot range, to see which past interactions to inspect.
- Fee-payer lamport delta check SI0064
Read landed transactions and print what the fee payer lost beyond the fee, plus a count of instructions that list the payer, to check an agent's spend.
- Token delegate exposure scan SI0029
Read a wallet's token accounts for delegates that can move tokens with no new signature, on the Token program and Token-2022.
- Pre-sign transaction guard SI0028
A read-only check that decodes an unsigned transaction and blocks a wrong payer, unknown program, token approval or oversized SOL transfer before signing.
- Unsigned transaction handoff SI0027
An agent builds an unsigned Solana transaction and a separate signer approves it; a short script prints the message, fee and expiry for review.
- Agent wallet watcher SI0007
A read-only Node watcher that follows an agent's wallet over logsSubscribe and flags any transaction its own signer never recorded.