docs(base-account): add Session Keys guide for AI agents and games#1633
docs(base-account): add Session Keys guide for AI agents and games#1633erhnysr wants to merge 4 commits into
Conversation
Adds a clarification note about using the correct RPC endpoint when building on Base.
🟡 Heimdall Review Status
|
|
Hi! Following up on this PR — adds a Session Keys guide for AI agents and games, an area that currently has no dedicated documentation. Happy to address any feedback. |
|
Thanks for putting this together. Since this PR is linked to #1505, I wanted to add a few issue-scope review notes. I think the current A few specific things that would make this much stronger:
Happy to help prepare a narrower follow-up docs PR if maintainers prefer a more issue-complete version. |
|
Thanks for the detailed review @maho0638! Will address all 4 points: split out the README change, clarify the Spend Permissions scope vs generic Session Keys, add the low-level function examples (requestSpendPermission, getPermissionStatus, etc.) with expiry/revocation, and tighten the examples to fully validated code. Updating shortly. |
Summary
Closes #1505.
Adds a new guide
docs/base-account/guides/session-keys.mdxcovering how to use Spend Permissions as "session keys" for AI agents and on-chain games — scenarios that aren't addressed by the existing Accept Recurring Payments or Use Spend Permissions guides.What's new:
subscribe()/charge()/getSubscriptionStatus()/revoke()SDK functionsoverridePeriodInSecondsForTestnetfor fast iterationdocs.json(after Accept Recurring Payments)Relationship to existing docs:
This guide sits between the generic Spend Permissions primitives page and the SaaS-focused recurring payments guide. It fills the gap for developers building AI products and games who need autonomous spending without a subscription mental model.
Test plan
@base-org/accounttypes🤖 Generated with Claude Code