Skip to content
ERC4337 adds bundlers, an EntryPoint contract, and paymasters so that smart accounts can pay fees flexibly and batch calls. Solana transactions already support a separate fee payer, several signers, and several instructions. This guide maps each ERC4337 component to what you use on Solana.

​What ERC4337 adds to Ethereum

On Ethereum, only an externally owned account (EOA) can start a transaction and pay its gas. A contract wallet with multisig, recovery, or spending rules still needs an EOA to trigger it. ERC4337 works around this without changing the protocol by adding a parallel transaction pipeline:
1

User signs a UserOperation

The smart account’s owner signs a UserOperation, a transaction-like request.
2

Bundler collects it

Bundlers watch a separate mempool and pack UserOperations into one transaction.
3

EntryPoint validates

A singleton contract calls each smart account to check the signature and rules.
4

Paymaster pays

An optional paymaster contract covers the gas, then the call executes.

​ERC4337 components on Solana

Solana needs no parallel pipeline. Each ERC4337 component maps to a transaction field or a program you write.
ERC4337SolanaHow it maps
UserOperationA transactionA regular transaction already carries several instructions and signers.
Bundler and alt mempoolNot neededAn RPC node forwards the transaction to the current and upcoming leaders.
EntryPoint contractThe runtimeThe runtime verifies every signature and passes signer privileges to the programs the transaction calls.
PaymasterFee payerAny account owned by the System Program can sign as fee payer. It does not have to be the user.
Smart accountA wallet program with PDAsA program holds assets in addresses it derives and signs for them when its rules pass.
Batched callsSeveral instructionsOne transaction runs its instructions in order and atomically.
Session keysA scoped key in wallet stateThe wallet program stores a temporary key with limits and checks them on each instruction.
Passkey signersSignature verification programsA wallet program can accept secp256r1 signatures by checking the signature verification instruction in the same transaction.
Every Solana transaction names a fee payer, and it is always the first signer. To sponsor a transaction, your service sets its own account as the fee payer. The user needs no SOL for the fee, and the sponsor can also fund the rent deposit for any account the transaction creates.
1

App builds the transaction

It sets the sponsor as fee payer and adds the user’s instructions.
2

User signs

The user’s signature authorizes moving their assets.
4

Send

The network charges the fee to the sponsor’s account.
Validate before you sign as fee payerA sponsor that signs anything a client sends can be drained. Check what the transaction does, limit the programs and amounts it may touch, and rate-limit each user. Kora is a fee-payer service that applies these checks.

​Build a smart wallet with PDAs

The Solana counterpart of an ERC4337 smart account is a program that controls Program Derived Addresses (PDAs). A PDA has no private key. Only the program that derived it can sign for it, through a cross-program invocation with invoke_signed.
One wallet program serves every user. Each wallet is a set of accounts.One wallet program serves every user. Each wallet is a set of accounts.

One wallet program serves every user. Each wallet is a set of accounts.

The rules that ERC4337 accounts implement in validateUserOp live in the wallet program’s instructions:
  • Multisig: require a threshold of the stored owners to sign before the program signs for the vault.
  • Spending limits: track amounts per period in wallet state and reject instructions that exceed them.
  • Recovery: let guardians replace the owner keys after a delay.
  • Session keys: accept a temporary key for a limited set of instructions until it expires.
A program cannot start a transactionAn external signer always submits and pays for the transaction: the user, a relayer, or a backend service. The wallet program acts when that transaction calls it.

​Side by side

CategoryEthereum with ERC4337Solana
Where it livesA standard on top of the protocol: bundlers, EntryPoint, paymastersTransaction format and runtime
Who pays feesThe account, or a paymaster contractAny System Program account that signs as fee payer
BatchingThe smart account executes a batchSeveral instructions in one transaction
Custom validationvalidateUserOp in each smart accountChecks in a wallet program before it signs for a PDA
Code and stateTogether in the smart account contractA shared program plus per-wallet accounts
Starting a transactionA bundler submits for the accountAn external signer submits

​Next steps