-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Privy embedded wallets with delegation #583
base: main
Are you sure you want to change the base?
Add support for Privy embedded wallets with delegation #583
Conversation
🟡 Heimdall Review Status
|
apiKeyName: process.env.CDP_API_KEY_NAME as string, | ||
apiKeyPrivateKey: process.env.CDP_API_KEY_PRIVATE_KEY as string, | ||
}), | ||
cdpWalletActionProvider({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cdpWalletActionProider
only works with CdpWalletProvider
. It is not expected that this would work with other wallet providers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cdpWalletActionProider
only works withCdpWalletProvider
. It is not expected that this would work with other wallet providers.
got it. makes sense.
Add support for Privy embedded wallets with delegation
Description
This PR adds support for Privy's embedded wallets with delegation to AgentKit. It introduces a new wallet provider,
PrivyEvmEmbeddedWalletProvider
, that allows AgentKit to use wallets which have been delegated transaction signing authority through Privy's embedded wallet system. This enables autonomous agents to perform onchain actions on behalf of users.The implementation:
PrivyEvmEmbeddedWalletProvider
class that extendsEvmWalletProvider
PrivyWalletProvider
factory to support embedded wallets via a newwalletType
optionCurrently our UI uses Privy's embedded wallet for delegation to agents, but Coinbase's agent kit only supports Privy's server wallet. This change makes the two systems compatible, allowing agents to properly execute transactions with delegated embedded wallets.
Tests
Checklist