
Account Abstraction (ERC-4337): Smart Accounts และ Paymaster
Account Abstraction (AA) คือ concept ที่ทำให้ทุก account บน Ethereum เป็น smart contract account แทนที่จะเป็น EOA (Externally Owned Account) ที่ต้องใช้ private key ลงนาม ERC-4337 เป็น standard ที่ implement AA โดยไม่ต้องเปลี่ยน protocol level ทำให้ UX ของ crypto ดีขึ้นมาก: social recovery, gasless transactions, batch operations และ session keys
UX ของ crypto ในปัจจุบัน แย่มากสำหรับ mainstream users — ต้องจำ seed phrase 12 คำ, ต้องมี ETH สำหรับ gas, ต้อง approve ทุก transaction Account Abstraction แก้ทุกปัญหานี้: ใช้ email/social login, sponsor gas ให้ users (Paymaster), batch หลาย operations ใน 1 tx และ recover account โดยไม่ต้องมี seed phrase
EOA vs Smart Account
| Feature | EOA (Traditional) | Smart Account (AA) |
|---|---|---|
| Control | Single private key | Programmable logic (any validation) |
| Recovery | Seed phrase only (lose = lose forever) | Social recovery, guardians, email |
| Gas Payment | Must hold ETH | Paymaster sponsors gas (any token or free) |
| Transaction | 1 operation per tx | Batch multiple operations in 1 tx |
| Signature | ECDSA only | Any signature scheme (passkeys, multisig) |
| Automation | ไม่มี | Session keys, spending limits, auto-execute |
| Key Rotation | ไม่ได้ (same key forever) | Rotate keys without changing address |
ERC-4337 Architecture
| Component | Role |
|---|---|
| UserOperation (UserOp) | Pseudo-transaction ที่ user สร้าง (แทน traditional tx) |
| Bundler | รวม UserOps หลายตัว → submit เป็น 1 on-chain transaction |
| EntryPoint Contract | Singleton contract ที่ validate + execute UserOps |
| Smart Account (Wallet) | User’s smart contract account (validate signature + execute calls) |
| Paymaster | ออก gas แทน user (sponsor gas หรือ accept ERC-20 payment) |
| Account Factory | Deploy smart accounts สำหรับ new users (counterfactual deployment) |
UserOperation Flow
| Step | Action |
|---|---|
| 1 | User สร้าง UserOperation (sender, calldata, signature, etc.) |
| 2 | UserOp ถูกส่งไป alt mempool (ไม่ใช่ regular mempool) |
| 3 | Bundler เลือก UserOps จาก mempool → bundle เข้าด้วยกัน |
| 4 | Bundler call EntryPoint.handleOps() → submit on-chain |
| 5 | EntryPoint validate แต่ละ UserOp (signature, gas, paymaster) |
| 6 | EntryPoint execute UserOps → call smart accounts |
| 7 | Paymaster จ่าย gas (ถ้ามี) → refund unused gas |
Paymaster Types
| Type | วิธีทำงาน | Use Case |
|---|---|---|
| Verifying Paymaster | Sponsor gas ตาม off-chain verification (API approval) | dApp sponsors gas สำหรับ users (onboarding) |
| ERC-20 Paymaster | User จ่าย gas ด้วย ERC-20 tokens (USDC, DAI) แทน ETH | Users ไม่ต้องถือ ETH |
| Deposit Paymaster | User deposit gas credit ล่วงหน้า | Prepaid gas model |
Key Features
| Feature | รายละเอียด |
|---|---|
| Social Recovery | ตั้ง guardians (friends, family, hardware wallet) → recover account เมื่อ lose key |
| Session Keys | Temporary keys ที่มี limited permissions (e.g., play game for 1 hour, max spend $100) |
| Batch Transactions | Approve + Swap ใน 1 tx (ไม่ต้อง approve แยก) |
| Gas Abstraction | Paymaster จ่าย gas → user ไม่ต้องถือ ETH |
| Passkey Login | ใช้ Face ID / fingerprint แทน seed phrase (WebAuthn) |
| Spending Limits | Set daily/weekly spending limits (protection) |
| Multi-sig | Require multiple signatures สำหรับ high-value txs |
| Automation | Auto-execute เมื่อ conditions met (e.g., auto-DCA, auto-harvest) |
AA Wallet Providers
| Provider | Features | Chain Support |
|---|---|---|
| Safe (Gnosis Safe) | Multi-sig, modular, most used smart account | Multi-chain |
| Biconomy | Smart accounts + Paymaster + Bundler SDK | Multi-chain |
| ZeroDev (Kernel) | Modular smart accounts, plugins, session keys | Multi-chain |
| Alchemy (Modular Account) | Account Kit, embedded wallets, gas manager | Multi-chain |
| Coinbase Smart Wallet | Passkey login, gasless, Coinbase ecosystem | Base, Ethereum |
| Thirdweb | In-app wallets, AA SDK, multi-chain | Multi-chain |
| Pimlico | Bundler + Paymaster infrastructure | Multi-chain |
ERC-4337 vs Native AA
| Feature | ERC-4337 (Ethereum) | Native AA (zkSync, StarkNet) |
|---|---|---|
| Implementation | Smart contract level (no protocol change) | Protocol level (built-in) |
| Mempool | Alt mempool (separate from regular) | Single mempool (native support) |
| Gas Overhead | Higher (EntryPoint + validation) | Lower (native, optimized) |
| All accounts are smart | No (EOAs still exist) | Yes (every account is smart) |
| Backward Compatible | Yes (no protocol change) | N/A (new chain design) |
Challenges
| Challenge | รายละเอียด |
|---|---|
| Gas Overhead | Smart account txs แพงกว่า EOA txs (EntryPoint validation) |
| Bundler Centralization | Few bundlers → potential censorship/MEV |
| Ecosystem Support | บาง dApps ยัง assume EOA (msg.sender = tx.origin) |
| Key Management | Still need to manage at least 1 signing key securely |
| Upgrade Risk | Smart account upgrades = potential vulnerability |
ทิ้งท้าย: Account Abstraction = Web2 UX for Web3
Account Abstraction ERC-4337: UserOps → Bundler → EntryPoint → Smart Account Smart Accounts: social recovery, session keys, batch txs, spending limits Paymaster: sponsor gas (gasless for users) หรือ pay gas ด้วย ERC-20 Passkey login (Face ID/fingerprint) แทน seed phrase ทำให้ crypto UX ดีเท่า web2 apps
อ่านเพิ่มเติมเกี่ยวกับ Restaking EigenLayer Symbiotic และ ZK Proofs zk-SNARKs ที่ siam2r.com หรือจาก icafeforex.com และ siamlancard.com
อ่านเพิ่มเติม: วิเคราะห์ทองคำ | กลยุทธ์เทรดทอง
FAQ
Account Abstraction (ERC-4337): Smart Accounts และ Paymaster คืออะไร?
Account Abstraction (ERC-4337): Smart Accounts และ Paymaster เป็นหัวข้อสำคัญในวงการเทคโนโลยีที่ช่วยให้การทำงานมีประสิทธิภาพมากขึ้น ไม่ว่าจะเป็นด้าน IT, Network หรือ Server Management
ทำไมต้องเรียนรู้เรื่อง Account Abstraction (ERC-4337): Smart Accounts และ Paymaster?
เพราะ Account Abstraction (ERC-4337): Smart Accounts และ Paymaster เป็นทักษะที่ตลาดต้องการสูง และช่วยให้คุณแก้ปัญหาในงานจริงได้อย่างมืออาชีพ การเรียนรู้ตั้งแต่วันนี้จะเป็นประโยชน์ในระยะยาว
Account Abstraction (ERC-4337): Smart Accounts และ Paymaster เหมาะกับผู้เริ่มต้นไหม?
ได้แน่นอนครับ บทความนี้เขียนให้เข้าใจง่าย เหมาะทั้งผู้เริ่มต้นและผู้มีประสบการณ์ มี step-by-step guide พร้อมตัวอย่างให้ทำตามได้ทันที
สิ่งที่คุณจะได้เรียนรู้จากบทความนี้
บทความ Account Abstraction (ERC-4337): Smart Accounts และ Paymaster นี้ครอบคลุมทุกอย่างที่คุณต้องรู้ ตั้งแต่พื้นฐานไปจนถึงการนำไปใช้จริง เขียนจากประสบการณ์จริง ไม่ใช่แค่ทฤษฎี มีตัวอย่างและ step-by-step guide ให้ทำตามได้ทันที
ทำไม Account Abstraction (ERC-4337): Smart Accounts และ Paymaster ถึงน่าสนใจ?
Account Abstraction (ERC-4337): Smart Accounts และ Paymaster เป็นหัวข้อที่กำลังได้รับความสนใจสูงมากในปี 2569 ทั้งจากมือใหม่และผู้เชี่ยวชาญ เพราะมีการเปลี่ยนแปลงและพัฒนาใหม่ๆ อยู่ตลอด การติดตามข้อมูลล่าสุดเป็นสิ่งสำคัญ
FAQ
Account Abstraction (ERC-4337): Smart Accounts และ Paymaster คืออะไร?
อ่านรายละเอียดทั้งหมดในบทความนี้ ครอบคลุมตั้งแต่พื้นฐานไปจนถึงขั้นสูง
iCafeForex | SiamLanCard | Siam2R | XM Signal
สิ่งที่ควรรู้เพิ่มเติมเกี่ยวกับ Account Abstraction (ERC-4337): Smart Accounts และ Paymaster
Account Abstraction (ERC-4337): Smart Accounts และ Paymaster ยังมีมิติอื่นที่น่าสนใจ การศึกษาเพิ่มเติมจะช่วยให้เข้าใจภาพรวมได้ดีขึ้น แนะนำให้อ่านบทความที่เกี่ยวข้องเพิ่มเติมและฝึกปฏิบัติจริง
อ่านเพิ่มเติม: iCafeForex | XM Signal EA ฟรี | SiamLanCard | Siam2R
สิ่งที่ควรรู้เพิ่มเติมเกี่ยวกับ Account Abstraction (ERC-4337): Smart Accounts และ Paymaster
Account Abstraction (ERC-4337): Smart Accounts และ Paymaster ยังมีมิติอื่นที่น่าสนใจ การศึกษาเพิ่มเติมจะช่วยให้เข้าใจภาพรวมได้ดีขึ้น แนะนำให้อ่านบทความที่เกี่ยวข้องเพิ่มเติมและฝึกปฏิบัติจริง
อ่านเพิ่มเติม: iCafeForex | XM Signal EA ฟรี | SiamLanCard | Siam2R
สิ่งที่ควรรู้เพิ่มเติมเกี่ยวกับ Account Abstraction (ERC-4337): Smart Accounts และ Paymaster
Account Abstraction (ERC-4337): Smart Accounts และ Paymaster ยังมีมิติอื่นที่น่าสนใจ การศึกษาเพิ่มเติมจะช่วยให้เข้าใจภาพรวมได้ดีขึ้น แนะนำให้อ่านบทความที่เกี่ยวข้องเพิ่มเติมและฝึกปฏิบัติจริง
อ่านเพิ่มเติม: iCafeForex | XM Signal EA ฟรี | SiamLanCard | Siam2R
สิ่งที่ควรรู้เพิ่มเติมเกี่ยวกับ Account Abstraction (ERC-4337): Smart Accounts และ Paymaster
Account Abstraction (ERC-4337): Smart Accounts และ Paymaster ยังมีมิติอื่นที่น่าสนใจ การศึกษาเพิ่มเติมจะช่วยให้เข้าใจภาพรวมได้ดีขึ้น แนะนำให้อ่านบทความที่เกี่ยวข้องเพิ่มเติมและฝึกปฏิบัติจริง
อ่านเพิ่มเติม: iCafeForex | XM Signal EA ฟรี | SiamLanCard | Siam2R
สิ่งที่ควรรู้เพิ่มเติมเกี่ยวกับ Account Abstraction (ERC-4337): Smart Accounts และ Paymaster
Account Abstraction (ERC-4337): Smart Accounts และ Paymaster ยังมีมิติอื่นที่น่าสนใจ การศึกษาเพิ่มเติมจะช่วยให้เข้าใจภาพรวมได้ดีขึ้น แนะนำให้อ่านบทความที่เกี่ยวข้องเพิ่มเติมและฝึกปฏิบัติจริง
อ่านเพิ่มเติม: iCafeForex | XM Signal EA ฟรี | SiamLanCard | Siam2R


