Skip to content

Update capsule.mdx -> Para.mdx #41

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

Merged
merged 1 commit into from
Jun 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions docs/pages/sdk/signers/capsule.mdx
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
# Use Capsule with ZeroDev
# Use Para with ZeroDev

[Capsule](https://usecapsule.com/) offers a signing solution enabling the creation of secure, embedded MPC wallets accessible via email or social login. These wallets, compatible across different applications, offer portability, recoverability, and programmability, eliminating the need for users to establish separate signers or contract accounts for each application.
[Para](https://getpara.com/) offers a signing solution enabling the creation of secure, embedded MPC wallets accessible via email or social login. These wallets, compatible across different applications, offer portability, recoverability, and programmability, eliminating the need for users to establish separate signers or contract accounts for each application.

## Set up

To use Capsule with ZeroDev, first create an application that integrates with Capsule.
To use Para with ZeroDev, first create an application that integrates with Para.

- Refer to the [Capsule documentation site](https://docs.usecapsule.com/) for instructions on setting up an application with the Capsule.
- For a quick start, Capsule provides an example hub, available [here](https://docs.usecapsule.com/getting-started/examples).
- Refer to the [Para documentation site](https://docs.getpara.com/) for instructions on setting up an application with the Para.
- For a quick start, Para provides an example hub, available [here](https://docs.getpara.com/getting-started/examples).

## Integration

:::info
Check out [this example](https://github.com/zerodevapp/zerodev-signer-examples/tree/main/capsule) for custom integration with Capsule.
Check out [this example](https://github.com/zerodevapp/zerodev-signer-examples/tree/main/capsule) for custom integration with Para.
:::

Integrating ZeroDev with Capsule is straightforward after setting up the project. Capsule provides an Externally Owned Account (EOA) wallet to use as a signer with Kernel.
Integrating ZeroDev with Para is straightforward after setting up the project. Para provides an Externally Owned Account (EOA) wallet to use as a signer with Kernel.

### Create the Capsule object
After following the Capsule documentation, you will have access to a `CapsuleWeb3Provider` object as shown below:
### Create the Para object
After following the Para documentation, you will have access to a `ParaWeb3Provider` object as shown below:

```typescript
import Capsule from "@usecapsule/web-sdk";
import Para from "@getpara/web-sdk";

// Param options here will be specific to your project. See the Capsule docs for more info.
const capsule = new Capsule(env, apiKey, opts);
// Param options here will be specific to your project. See the Para docs for more info.
const para = new Para(env, apiKey, opts);
```

### Use with ZeroDev

Use the WalletClient from Capsule to create a smart account signer, which can be passed to a validator. For detailed guidance on using a validator, refer to our documentation on [creating accounts](/sdk/core-api/create-account#api).
Use the WalletClient from Para to create a smart account signer, which can be passed to a validator. For detailed guidance on using a validator, refer to our documentation on [creating accounts](/sdk/core-api/create-account#api).

```typescript
import { signerToEcdsaValidator } from "@zerodev/ecdsa-validator"
import { KERNEL_V3_1, getEntryPoint } from "@zerodev/sdk/constants"
import { createCapsuleViemClient } from '@usecapsule/web-sdk';
import { createParaViemClient } from '@getpara/web-sdk';
import { polygonAmoy } from 'viem/chains';
import { createPublicClient } from "viem";

// Follow the Capsule docs for more instructions on creating the Viem client https://docs.usecapsule.com/integration-guide/signing-transactions
const viemClient = createCapsuleViemClient(capsule, {
// Follow the Para docs for more instructions on creating the Viem client https://docs.getpara.com/alpha/web/guides/evm/viem#viem-integration
const viemClient = createParaViemClient(para, {
chain: polygonAmoy,
transport: http('https://rpc-amoy.polygon.technology'),
});
Expand Down