Skillpedia
واجهات API والخوادم (backend)7.0k · #13642

smart-accounts-kit

ما الذي تفعله

تغطي هذه المهارة MetaMask Smart Accounts Kit، الذي يتيح لتطبيقات dApp إنشاء حسابات ذكية، وإرسال عمليات مستخدم مجمّعة، وطلب أذونات محددة النطاق. تشرح أنواع الحسابات الثلاثة وطريقة عمل التفويضات، لمطوري ميزات المحافظ.

متى تستخدمها

  • ✓عندما تريد أن يملك المستخدمون حسابات ذكية بخيارات توقيع مرنة.
  • ✓عندما تريد أن يتصرف بوت في الخادم نيابة عن المستخدم عبر التفويضات.
  • ✓عندما تريد طلب أذونات محددة النطاق من إضافة MetaMask.

رابط المهارة

https://github.com/internet-court/internet-court-skill/blob/main/vendored/metamask/smart-accounts-kit/skill.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/internet-court/internet-court-skill/blob/main/vendored/metamask/smart-accounts-kit/skill.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“أريد أن يطلب تطبيق dApp الخاص بي من MetaMask إذنًا محدودًا حتى يتصرف بوت نيابة عن المستخدم.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يختار الوكيل نوع الحساب المناسب لتطبيقك، ويضبط الموقّعين، ويستخدم الحزمة لإنشاء التفويضات أو توقيعها أو استردادها، وطلب الأذونات. ويمكنه أيضًا ضبط تمويل الغاز عبر paymaster.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

MetaMask Smart Accounts Kit

When to use

  • You want to create ERC-4337 smart accounts (Hybrid, MultiSig, or Stateless7702)
  • You want to send user operations or batch transactions via bundlers
  • You want to configure signers (EOA, passkey/WebAuthn, multisig, wallet client)
  • You want to implement gas abstraction with paymasters
  • You want to create, sign, or redeem delegations (ERC-7710)
  • You want to request Advanced Permissions via MetaMask extension (ERC-7715)
  • You want to build automated backend services (DCA bots, keeper services) using delegations
  • You want to implement session accounts for AI agents or automated trading
  • You want to set up parallel user operations with nonce keys

Installation

npm install @metamask/smart-accounts-kit permissionless

Which smart account type to use

Name Usage
Hybrid A flexible account with EOA, wallet client, and passkey (WebAuthn) signers. The most flexible option for standard dApp users.
MultiSig Requires multiple signers to meet a threshold before transactions execute. Best for treasury, DAO, or shared custody use cases.
Stateless7702 Upgrades an existing EOA to a smart account using EIP-7702 while keeping the same address. Best for users with existing embedded EOAs.

If the user hasn't specified which implementation they need, present the options.

Delegations vs Advanced Permissions

Name Usage
Delegations (ERC-7710) You create, sign, and manage delegations programmatically. The delegator is a smart account you control. You handle the full lifecycle: creation, signing, storage, and redemption.
Advanced Permissions (ERC-7715) You request permissions from a MetaMask user through a human-readable UI in the extension. MetaMask creates and enforces the delegations internally. The user can review and adjust parameters before approving.

Advanced Permissions use delegations under the hood — ERC-7715 creates ERC-7710 delegations internally. If the user hasn't specified which to use, present the options.

API references

Use case Reference Workflows
Create a smart account toMetaMaskSmartAccount Create hybrid account, Create multisig account, Create 7702 account
Create a delegation createDelegation Create delegation, Create redelegation
Request ERC-7715 permissions requestExecutionPermissions Request permissions, Redeem — smart account, Redeem — EOA

Workflows

Use case Workflow
Create a Hybrid smart account Create hybrid account
Create a MultiSig smart account Create multisig account
Create a Stateless7702 smart account Create 7702 account
Create and sign a delegation Create delegation
Create a delegation chain (redelegation) Create redelegation
Redeem a delegation when the delegate is a smart account Redeem delegation — smart account
Redeem a delegation when the delegate is an EOA Redeem delegation — EOA
Request ERC-7715 Advanced Permissions Request permissions
Redelegate an ERC-7715 permission context Create redelegation for permissions
Redeem ERC-7715 permissions when the session account is a smart account Redeem permissions — smart account
Redeem ERC-7715 permissions when the session account is an EOA Redeem permissions — EOA

Important notes

  • Always use caveats — never create unrestricted delegations.
  • Deploy the delegator first — the account must be deployed before redeeming delegations.
  • Function call scope defaults to
الأسئلة الشائعة

أي نوع حساب يناسب معظم مستخدمي dApp؟

حساب Hybrid، الذي يدعم موقّعي EOA وعميل المحفظة ومفاتيح المرور، ويوصف بأنه الأكثر مرونة.

ما وظيفة حساب MultiSig؟

يحتاج إلى عدة موقّعين للموافقة على المعاملات، وهو مناسب لحالات الخزينة أو DAO أو الحفظ المشترك.

ما هو Stateless7702؟

يحوّل محفظة موجودة إلى حساب ذكي مع الاحتفاظ بالعنوان نفسه.

التفاصيل

الوصف الأصلي من المؤلف

Build dApps with MetaMask Smart Accounts Kit — ERC-4337 smart accounts, delegations, and Advanced Permissions (ERC-7715)

repo: internet-court/internet-court-skill

الشعبية

نجوم GitHub
7.0k
الترتيب
#13642
الترخيص
—
آخر تحديث
26‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة