Skip to main content
Pimlico is an Account Abstraction infrastructure provider that enables developers to easily integrate smart accounts and gasless transactions into their Sei applications. This guide will walk you through creating a smart account and sending your first gasless transaction on Sei Testnet using Pimlico’s infrastructure.

Getting Started

Dependencies

To integrate Pimlico into your Sei application, you’ll need to install the following dependencies:
permissionless.js is an AA SDK that works with any account, paymaster, or bundler implementation - no vendor lock-in.

Setting up Pimlico Dashboard

Before starting the integration:
  1. Visit the Pimlico dashboard
  2. Create an account and generate an API key
  3. Store your API key in a .env file:

Configuring Pimlico Client

First, let’s set up the necessary clients and configurations.

Creating a Smart Account

Now let’s create a simple smart account instance. This account will be controlled by a single EOA signer:
For a full list of all supported smart account types in permissionless.js see here

Setting up the Smart Account Client

To interact with the smart account, we need to create a SmartAccountClient:

Sending a Gasless Transaction

With everything set up, we can now send a gasless transaction from our smart account:

Complete Example

Here’s a complete example that puts everything together:

What’s Happening Under the Hood?

When you send a transaction using the smart account client:
  1. The client builds a user operation (a transaction format for smart accounts)
  2. Requests sponsorship from Pimlico’s paymaster
  3. Signs the operation with the smart account owners’s private key
  4. Submits it to Pimlico’s bundler
  5. The bundler monitors the chain until the operation is included in a block
The first transaction will also deploy your smart account contract if it hasn’t been deployed yet.

Conclusion

You’ve now learned how to:
  • Set up Pimlico’s infrastructure
  • Create a smart account
  • Send gasless transactions
This implementation enables a seamless user experience where end users don’t need to worry about gas or managing native tokens to interact with your dApp. For more information about Pimlico and its features, check out: Join the Pimlico Telegram community to get help and share what you’re building!