Remove @base-org/account dependency and do not depend on Coinbase Spend Permissions#64
Merged
robdimarco-atxp merged 4 commits intomainfrom Sep 22, 2025
Conversation
robdimarco-atxp
commented
Sep 19, 2025
| // Coinbase CDP Paymaster and Bundler endpoints | ||
| const COINBASE_BUNDLER_URL = 'https://api.developer.coinbase.com/rpc/v1/base'; | ||
| const COINBASE_PAYMASTER_URL = 'https://api.developer.coinbase.com/rpc/v1/base'; | ||
| const COINBASE_API_KEY = 'snPdXqIzOGhRkGNJvEHM5bl9Hm3yRO3m'; |
ffa9eef to
a15cdf8
Compare
a15cdf8 to
54112a7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This shim replaces the Base Account SDK's requestSpendPermission and prepareSpendCallData functions with
new functions that are based on ERC20 approvals instead of Coinbase Spend Permissions.
The upside is that it will work with any Base wallet/connector, not just certain Coinbase app versions.
Testing