Raw Private Keys
If you already manage private keys for your users, and you simply want to use ZeroDev for AA, you can easily integrate ZeroDev with your existing key infrastructure.
Private Keys
Ethers.js
import { getZeroDevSigner, getPrivateKeyOwner } from '@zerodevapp/sdk'
const signer = await getZeroDevSigner({
projectId: "<project id>",
owner: getPrivateKeyOwner("<private key>"),
})
Example:
Full Code (Editable)
Result
Loading...
Wagmi
import { ZeroDevConnector } from '@zerodevapp/wagmi'
import { getPrivateKeyOwner } from '@zerodevapp/sdk'
const connector = new ZeroDevConnector({chains, options: {
projectId: "<your-project-id>",
owner: getPrivateKeyOwner("<private-key>"),
}})
Example:
Full Code (Editable)
Result
Loading...