Skip to main content
Pimlico is an account abstraction (AA) infrastructure provider. With Pimlico, you can integrate smart accounts and gasless transactions into your Sei dApps. This guide shows how to use Pimlico’s infrastructure to create a smart account and send your first gasless transaction on Sei Testnet.

Getting started

Dependencies

To integrate Pimlico into your Sei dApp, install these dependencies:
permissionless.js is an AA SDK that works with any account, paymaster, or bundler implementation. It does not lock you in to one vendor.

Setting up Pimlico dashboard

Before you start the integration:
  1. Go to the Pimlico dashboard.
  2. Create an account. Then generate an API key.
  3. Store your API key in a .env file:

Configuring Pimlico client

First, set up the necessary clients and configurations.

Creating a smart account

Next, create a simple smart account instance. A single EOA signer controls this account:
For the full list of smart account types that permissionless.js supports, see the smart account comparison.

Setting up the smart account client

To interact with the smart account, create a SmartAccountClient:

Sending a gasless transaction

When the setup is complete, you can send a gasless transaction from your smart account:

Complete example

This complete example combines all of the steps:

What’s happening under the hood?

When you send a transaction with the smart account client:
  1. The client builds a user operation (a transaction format for smart accounts).
  2. The client requests sponsorship from Pimlico’s paymaster.
  3. The client signs the operation with the private key of the smart account owner.
  4. The client submits the operation to Pimlico’s bundler.
  5. The bundler monitors the chain until the operation is included in a block.
If your smart account contract is not deployed yet, the first transaction also deploys it.

Conclusion

This guide showed how to:
  • Set up Pimlico’s infrastructure
  • Create a smart account
  • Send gasless transactions
With this implementation, users do not need to handle gas or manage native tokens to interact with your dApp. For more information about Pimlico and its features, see these resources: To get help and share what you build, join the Pimlico Telegram community.