Skip to content

docs: add spend permissions cookbook guide#1328

Open
erhnysr wants to merge 3 commits intobase:masterfrom
erhnysr:feat/spend-permissions-cookbook
Open

docs: add spend permissions cookbook guide#1328
erhnysr wants to merge 3 commits intobase:masterfrom
erhnysr:feat/spend-permissions-cookbook

Conversation

@erhnysr
Copy link
Copy Markdown

@erhnysr erhnysr commented Apr 18, 2026

Summary
Adds a new implementation guide for Spend Permissions within the Base Cookbook.

Changes

Detailed the 3-step lifecycle: Request, Approval, and Execution.

Provided a production-ready TypeScript code snippet for building permissions.

Included backend execution examples using viem/wagmi.

Why?
Spend Permissions are a key feature for improving UX in smart wallets. This guide helps developers implement seamless "one-click" or "gasless" experiences for their users.

erhnysr added 3 commits April 6, 2026 22:47
Adds a clarification note about using the correct RPC endpoint when building on Base.
@cb-heimdall
Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/2
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

@erhnysr
Copy link
Copy Markdown
Author

erhnysr commented Apr 18, 2026

This cookbook guide focuses on the practical implementation of Spend Permissions. It’s designed to help developers build more seamless, 'one-click' experiences on Base by providing clear code examples and step-by-step logic. Ready for review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants