Skip to content

A Hardhat development environment for Account Abstraction, featuring locally running bundler and paymaster server endpoints

Notifications You must be signed in to change notification settings

okrame/local-erc-4337

Repository files navigation

Local ERC-4337 Dev Environment

Quickstart steps

Before starting, create a file .env like in the example.

  1. Install root dependencies
pnpm install
  1. Run local hardhat node
pnpm run node
  1. Run local bundler (this will also install required packages at first run)
pnpm run bundler
  1. Deploy Entrypoint and Account factory contracts
pnpm run deployer

optional: use pnpm run bundler:deployer to have everything in the same terminal

  1. Deploy and Fund Paymaster contracts. This will expose a POST / and GET /balances endpoints.
pnpm run paymaster

Test

To test an end-to-end sponsored user operation:

npx hardhat run scripts/mockUserop.ts

About

A Hardhat development environment for Account Abstraction, featuring locally running bundler and paymaster server endpoints

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published