Simple 7702 Account
The Simple7702Account
is a fully audited minimalist smart contract account that can be safely authorized by any EOA. It adds full support for
major smart account features like batching and gas sponsorship.
The following ERCs are supported:
- ERC-165
- ERC-721
- ERC-1155
- ERC-1271
- ERC-4337 v0.8
Smart Contracts and Audits
The contracts have been developed by the Ethereum Foundation Account Abstraction Team, and have been audited by Spearbit.
How to use
Installation
yarn add abstractionkit@0.2.16
note
abstractionkit@0.2.16
is the version release with EIP-7702 support before the official upgrade with Pectra.
Usage
import { Simple7702Account } from "abstractionkit";
const delegatorPublicAddress = "0xBdbc5FBC9cA8C3F514D073eC3de840Ac84FC6D31"; // eoa public key
const smartAccount = Simple7702Account.initializeNewAccount([delegatorPublicAddress]);