Skip to content

Enhance UX documentation for wallet_sendCalls usage#1

Open
Cloakie47 wants to merge 1 commit intomasterfrom
Cloakie47-patch-1
Open

Enhance UX documentation for wallet_sendCalls usage#1
Cloakie47 wants to merge 1 commit intomasterfrom
Cloakie47-patch-1

Conversation

@Cloakie47
Copy link
Copy Markdown
Owner

The current docs show wallet_sendCalls examples without warning that calling it directly via raw RPC bypasses Auto Spend Permissions entirely. The "skip further approval" UI silently never appears with no error thrown, making this very hard to debug.

What changed? Why?
Added a <Warning> block in the Send transactions section to make it clear that using wallet_sendCalls via raw RPC bypasses the Auto Spend Permissions flow. Developers should use useWriteContract or useSendCalls with the Base Account connector instead.

Notes to reviewers
This is a docs-only change. No code was modified.

How has it been tested?
This is a documentation-only change adding a warning block. The issue itself was reproduced by a developer integrating sub accounts with RainbowKit who spent significant time debugging why Auto Spend Permissions were silently not triggering despite correct SDK configuration. The root cause was confirmed to be raw wallet_sendCalls usage bypassing the Base Account execution flow.

The current docs show wallet_sendCalls examples without warning that calling it directly via raw RPC bypasses Auto Spend Permissions entirely. The "skip further approval" UI silently never appears with no error thrown, making this very hard to debug. Added a warning to prevent developers from hitting this.
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.

1 participant