NERO
Account Abstraction

Account Abstraction

ERC-4337 smart accounts, bundler, and paymaster integration

Account Abstraction

The NERO MPC SDK implements ERC-4337 Account Abstraction to enable smart contract wallets with gas sponsorship, batched operations, and programmable validation. Available when using the Pedersen DKG protocol (protocol: "pedersen").

Architecture

SimpleAccount (ABI encoding, address derivation)

BundlerClient (UserOperation submission)

External Bundler Service (eth_sendUserOperation, eth_estimateUserOperationGas)

PaymasterClient (Gas sponsorship)

External Paymaster Service (pm_sponsorUserOperation)

The MPC-derived EOA serves as the owner of the smart account. Addresses are counterfactual — computed before contract deployment.

Core Components

ComponentPurpose
SimpleAccountERC-4337 compliant smart contract wallet. ABI encoding, address derivation, UserOperation construction
BundlerClientSubmits UserOperations to an off-chain bundler via eth_sendUserOperation
PaymasterClientRequests gas sponsorship via pm_sponsorUserOperation. Supports ERC-20 token gas payments
EntryPointOn-chain singleton that validates and executes UserOperations

UserOperation Lifecycle

  1. Fetch current account nonce via RPC
  2. Encode target contract call data (execute or executeBatch)
  3. Estimate gas via bundler (estimateUserOperationGas)
  4. Optionally fetch paymaster data if sponsorship is enabled
  5. Assemble complete UserOperation
  6. Sign UserOperation hash with MPC
  7. Submit via sendUserOperation
  8. Poll for receipt via waitForUserOperationReceipt

On this page