Skip to main content
Rhinestone uses its own intent infrastructure for most transactions, but some modules require ERC-4337 UserOperations: Social Recovery and legacy Smart Sessions. This guide covers how to configure and use ERC-4337 with the SDK.

Configuration

Bundler

Pass a bundler config when initialising the SDK:

Paymaster

Optionally add a paymaster to sponsor gas on UserOperations:
Need support for another ERC-4337 provider? Open an issue.

Usage

ERC-4337 has a separate transaction API. Use it when a module requires the user-op flow — intent flows continue to use prepareTransaction.