Skip to main content
Gelato is deprecating the Smart Wallet SDK (@gelatonetwork/smartwallet) in favor of the new Gasless SDK (@gelatocloud/gasless). The old prepareCalls and sendPreparedCalls methods will no longer be available. Migrate to the Gasless SDK which supports Kernel smart accounts with EIP-7702 using ZeroDev SDK.

What’s Being Deprecated?

The following patterns from the Smart Wallet SDK will no longer be supported:
  • @gelatonetwork/smartwallet package
  • @gelatonetwork/smartwallet/accounts (kernel)
  • createGelatoSmartWalletClient function
  • prepareCalls and sendPreparedCalls methods

Migration Overview

Migration Steps

1

Update Dependencies

Remove the old SDK and install the new packages:
2

Update Imports

Before (Smart Wallet SDK):
After (Gasless SDK + ZeroDev):
3

Update Account Creation

Before (Smart Wallet SDK):
After (ZeroDev SDK with EIP-7702):
4

Update Client Initialization

Before (Smart Wallet SDK):
After (Gasless SDK Bundler Client):
5

Update Transaction Sending

Before (prepareCalls + sendPreparedCalls with events):
After (sendUserOperation with EIP-7702 authorization):
6

Update Batching Transactions

Batching works similarly - just pass multiple calls:Before:
After:

Key Differences

Architecture

EIP-7702 Authorization

The new SDK requires explicit handling of EIP-7702 authorization for the first transaction:

Status Handling

Before (Event-based):
After (Await-based):

Payment Methods

The new SDK no longer requires explicitly passing sponsored() — transactions are sponsored by default:

Complete Migration Example

Need Help?

If you have questions about migrating from the Smart Wallet SDK, please reach out through GitHub.