{"id":15888324,"url":"https://github.com/antoncoding/aa-sdk-scripts","last_synced_at":"2025-10-26T05:42:58.324Z","repository":{"id":213904986,"uuid":"716019350","full_name":"antoncoding/aa-sdk-scripts","owner":"antoncoding","description":"Different ERC4337 account abstraction example codes","archived":false,"fork":false,"pushed_at":"2023-12-24T06:21:28.000Z","size":497,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T07:25:27.755Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antoncoding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-08T10:04:13.000Z","updated_at":"2023-11-10T20:37:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"3cc8065c-0c64-4b9c-8f05-ca1e316bf1a5","html_url":"https://github.com/antoncoding/aa-sdk-scripts","commit_stats":null,"previous_names":["antoncoding/aa-sdk-scripts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoncoding%2Faa-sdk-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoncoding%2Faa-sdk-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoncoding%2Faa-sdk-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoncoding%2Faa-sdk-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antoncoding","download_url":"https://codeload.github.com/antoncoding/aa-sdk-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246853444,"owners_count":20844579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-06T06:07:04.050Z","updated_at":"2025-10-26T05:42:53.301Z","avatar_url":"https://github.com/antoncoding.png","language":"TypeScript","readme":"# AA Examples\n\n## Install\n\n```\nnpm install\n```\n\n## Comparison\n\nComparing different approaches with AA. Gas should be paid with USDC from the user accounts (Smart wallet contracts).\n\n1. Safe Account Abstraction SDK\n2. ZeroDev SDK\n3. Biconomy SDK\n\n## High Level AA SDK\n\n### 1.Safe AA SDK (Safe + Gelato)\n\n* Docs: [github](https://github.com/safe-global/safe-core-sdk/tree/main/packages/account-abstraction-kit)\n* Use Safe for user and then execute trades. Only difference here is that the safe pay the fee itself\n* **No** dependency on [Safe API](https://docs.safe.global/safe-core-api/available-services)\n* Extra layer of Gelato Relayers\n* Example [tx hash](https://goerli.etherscan.io/tx/0xe17df6c355c712891e59e13ab7b856a4a9d8dbb56a73887b8ff38450d6fef8c2)\n\nRun script\n```\nnpx ts-node examples/aa-tx-examples/gelato-safe.ts\n```\n* quite some execution delay\n* gas cost [transfer ERC20]: 206,673\n\n### 2. ZeroDev SDK (4337)\n* Wallet contract: [https://github.com/zerodevapp/kernel](https://github.com/zerodevapp/kernel)\n* uses alchemy's sdk in the backend (`@alchemy/aa-core`)\n* use their own wallet (Kernel), bundler and paymaster\n\n### 3. Biconomy SDK (4337)\n\n* Wallet contract: [https://github.com/bcnmy/scw-contracts](https://github.com/bcnmy/scw-contracts)\n* use their own wallet, bundler and paymaster\n* Example [tx](https://goerli.etherscan.io/tx/0x13e11db109e730b3765049224235627f343fe8ee6c19ee136fb2d5746cc05cd5)\n\n```\nnpx ts-node examples/l2-tx-examples/biconomy.ts\n```\n\n## Low level ERC4337 SDK \n\n### 1. Userop.js\n* Github repo: https://github.com/stackup-wallet/userop.js\n* can use zerodev kernel or any wallet contracts\n* use our own paymaster\n* [example tx](https://explorerl2new-staging-9ns7v94tpj.t.conduit.xyz/tx/0x0e638f04e95a32f981714ed6a4aaf573e36157e94b51ac1915bdcb63323cce6c) (no paymaster)\n\n### 2. alchemy AA sdk\n* WIP","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoncoding%2Faa-sdk-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantoncoding%2Faa-sdk-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoncoding%2Faa-sdk-scripts/lists"}