Skip to content

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
sd-revokeDel
Open

Add project_id config and delegation methods to Python SDK#629
sddioulde wants to merge 2 commits intosammccord/cdpsdk-2350-add-revokedelegation-to-cdp-sdkfrom
sd-revokeDel

Conversation

@sddioulde
Copy link
Copy Markdown
Contributor

Description

Tests

Checklist

A couple of things to include in your PR for completeness:

  • Updated the typescript README if relevant
  • Updated the python README if relevant
  • Added a changelog entry
  • Added e2e tests if introducing new functionality

  - 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
"""Revoke all active delegations for this end user.

Args:
wallet_secret_id: The ID of the Temporary Wallet Secret used to sign the
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would the developer have this?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they wouldn't, it's optional in latest specs for developers making delegated calls

@sammccord sammccord force-pushed the sammccord/cdpsdk-2350-add-revokedelegation-to-cdp-sdk branch from 9730aaf to 9fe6cc1 Compare March 30, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants