Add project_id config and delegation methods to Python SDK#629
Open
sddioulde wants to merge 2 commits intosammccord/cdpsdk-2350-add-revokedelegation-to-cdp-sdkfrom
Open
Add project_id config and delegation methods to Python SDK#629sddioulde wants to merge 2 commits intosammccord/cdpsdk-2350-add-revokedelegation-to-cdp-sdkfrom
sddioulde wants to merge 2 commits intosammccord/cdpsdk-2350-add-revokedelegation-to-cdp-sdkfrom
Conversation
- Add `project_id` param to CdpClient (reads from CDP_PROJECT_ID env var)
and thread it through to EndUserClient and EndUserAccount
- Add lazy-loaded EmbeddedWalletsCoreFunctionalityApi to ApiClients
- Add 14 delegation methods to EndUserClient:
revoke_delegation_for_end_user, create_evm_eip7702_delegation,
sign_evm_{hash,message,transaction,typed_data},
send_evm_{transaction,asset}, send_user_operation,
sign_solana_{hash,message,transaction}, send_solana_{transaction,asset}
- Add matching convenience methods to EndUserAccount with auto-resolution
of first account address when no explicit address is provided
- Add SendEvmAssetResult dataclass; export SendEvmAssetResult and
EvmUserOperation from cdp.__init__
- Fix pre-existing broken imports in solana_client, solana_account,
actions/solana/sign_{message,transaction}, and test files caused by
OpenAPI regen renaming *200_response to *_with_end_user_account200_response
0xRAG
reviewed
Mar 30, 2026
| """Revoke all active delegations for this end user. | ||
|
|
||
| Args: | ||
| wallet_secret_id: The ID of the Temporary Wallet Secret used to sign the |
Contributor
There was a problem hiding this comment.
How would the developer have this?
Contributor
There was a problem hiding this comment.
they wouldn't, it's optional in latest specs for developers making delegated calls
9730aaf to
9fe6cc1
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.
Description
Tests
Checklist
A couple of things to include in your PR for completeness: