abstract
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAbstract L2 — Skills Directory
Abstract L2 — 技能目录
Abstract is an Ethereum Layer 2 ZK rollup (ZK Stack) focused on consumer crypto applications. This master skill provides a directory of all Abstract-related capabilities and helps you pick the right one.

Abstract是一个专注于消费级加密应用的以太坊Layer 2 ZK Rollup(ZK Stack)。本主技能提供了所有Abstract相关功能的目录,帮助你选择合适的技能。

Skills by Category
按分类划分的技能
🔗 Infrastructure & Setup
🔗 基础设施与设置
1. connecting-to-abstract
1. connecting-to-abstract
Network configuration — chain IDs, RPC endpoints, WebSocket URLs, block explorers, and deployed contract addresses for Abstract mainnet and testnet.
Use when: Configuring clients, wallets, or dev environments. Questions about Abstract RPC URLs, chain IDs (2741/11124), testnet config, Abscan explorer, or importing / from .
abstractabstractTestnetviem/chainsKey info:
| Property | Mainnet | Testnet |
|---|---|---|
| Chain ID | | |
| Explorer | https://abscan.org | https://sepolia.abscan.org |
网络配置——Abstract主网和测试网的链ID、RPC端点、WebSocket URL、区块浏览器以及已部署合约地址。
适用场景: 配置客户端、钱包或开发环境。涉及Abstract RPC URL、链ID(2741/11124)、测试网配置、Abscan浏览器,或从导入/的问题。
viem/chainsabstractabstractTestnet关键信息:
| 属性 | 主网 | 测试网 |
|---|---|---|
| 链ID | | |
| 浏览器 | https://abscan.org | https://sepolia.abscan.org |
2. deploying-contracts-on-abstract
2. deploying-contracts-on-abstract
Deploy smart contracts using Foundry (default) or Hardhat. Covers compilation, deployment, Abscan verification, and testnet faucets.
zksolcUse when: Deploying or compiling contracts on Abstract, using , , anvil-zksync, or working with the zkSync compiler.
forge build --zksyncforge create --zksyncKey note: Abstract uses ZK Stack VM — must compile with , not standard . All commands need flag. Compiled output goes to .
zksolcsolcforge--zksynczkout/使用Foundry(默认)或Hardhat部署智能合约。涵盖编译、部署、Abscan验证以及测试网水龙头。
zksolc适用场景: 在Abstract上部署或编译合约,使用、、anvil-zksync,或使用zkSync编译器。
forge build --zksyncforge create --zksync重要提示: Abstract使用ZK Stack虚拟机——必须使用编译,而非标准。所有命令都需要添加标志。编译输出会保存到目录。
zksolcsolcforge--zksynczkout/💰 Wallets & Transactions
💰 钱包与交易
3. abstract-global-wallet
3. abstract-global-wallet
Integrate Abstract Global Wallet (AGW) into React applications — email/social/passkey login, smart contract wallet, session keys, gas sponsorship.
Use when: Building a React app where end users log in and transact. Working with , , , , , , or .
AbstractWalletProvideruseLoginWithAbstractuseAbstractClientuseWriteContractSponsoredagw-reactagw-clientcreate-abstract-appQuick start:
npx @abstract-foundation/create-abstract-app@latest my-app将Abstract Global Wallet(AGW)集成到React应用中——支持邮箱/社交账号/密钥登录、智能合约钱包、会话密钥、Gas赞助。
适用场景: 构建供终端用户登录并进行交易的React应用。使用、、、、、或。
AbstractWalletProvideruseLoginWithAbstractuseAbstractClientuseWriteContractSponsoredagw-reactagw-clientcreate-abstract-app快速开始:
npx @abstract-foundation/create-abstract-app@latest my-app4. using-agw-mcp
4. using-agw-mcp
AI agent wallet capabilities via the Abstract Global Wallet MCP server — read chain data, check balances, and send transactions on behalf of users.
Use when: Setting up for AI agent access to Abstract, giving agents wallet capabilities, or building MCP-powered agent workflows that interact with Abstract chain data.
agw-mcpDecision guide:
| Scenario | Use |
|---|---|
| End-user facing React app with login | |
| AI agent needs to read/transact on-chain | |
通过Abstract Global Wallet MCP服务器实现AI Agent钱包功能——读取链上数据、检查余额、代表用户发送交易。
适用场景: 为AI Agent设置以访问Abstract,赋予Agent钱包功能,或构建基于MCP的Agent工作流与Abstract链上数据交互。
agw-mcp决策指南:
| 场景 | 使用技能 |
|---|---|
| 面向终端用户的带登录功能的React应用 | |
| AI Agent需要读取/执行链上交易 | |
5. safe-multisig-on-abstract
5. safe-multisig-on-abstract
Safe multi-signature wallets — deploy Safes, configure owners and thresholds, propose and execute multi-sig transactions.
Use when: Creating multisig wallets on Abstract, managing shared custody (treasury, team, DAO), working with Safe Protocol Kit, SafeL2, SafeProxyFactory, or the safe.abs.xyz web interface.
Safe多签钱包——部署Safe、配置所有者和阈值、提议并执行多签交易。
适用场景: 在Abstract上创建多签钱包,管理共享资产(金库、团队、DAO),使用Safe Protocol Kit、SafeL2、SafeProxyFactory,或safe.abs.xyz网页界面。
📡 Protocols & Identity
📡 协议与身份
6. myriad-on-abstract
6. myriad-on-abstract
Myriad Protocol prediction markets — REST API for market data, polkamarkets-js SDK for trading outcome shares, builder revenue sharing via referralBuy.
Use when: Working with Myriad API, prediction markets on Abstract, trading/buying/selling prediction shares, builder codes, referralBuy, claiming winnings, or Myriad contract addresses.
Architecture:
| Layer | Tool | Use For |
|---|---|---|
| Read-only data | REST API V2 | Market listings, prices, charts, portfolio |
| Trading | polkamarkets-js SDK | Buy/sell shares, claim winnings, ERC-20 approvals |
Myriad协议预测市场——用于市场数据的REST API、用于交易结果份额的polkamarkets-js SDK、通过referralBuy实现开发者收益分成。
适用场景: 使用Myriad API、Abstract上的预测市场、交易/买卖预测份额、开发者代码、referralBuy、领取奖金,或Myriad合约地址。
架构:
| 层级 | 工具 | 用途 |
|---|---|---|
| 只读数据 | REST API V2 | 市场列表、价格、图表、投资组合 |
| 交易 | polkamarkets-js SDK | 买卖份额、领取奖金、ERC-20授权 |
7. erc8004-on-abstract
7. erc8004-on-abstract
ERC-8004 onchain identity and reputation — register AI agents, track reputation, discover agents on Abstract.
Use when: Registering an agent onchain, querying agent reputation, giving feedback, working with IdentityRegistry or ReputationRegistry on Abstract, or onchain agent identity.
基于ERC-8004的链上身份与信誉——注册AI Agent、跟踪信誉、在Abstract上发现Agent。
适用场景: 在链上注册Agent、查询Agent信誉、提供反馈、使用Abstract上的IdentityRegistry或ReputationRegistry,或链上Agent身份相关操作。
Skill Selection Guide
技能选择指南
| Task | Recommended Skill |
|---|---|
| Connect a wallet/app to Abstract | |
| Deploy a smart contract | |
| Build a React app with user login | |
| Give an AI agent wallet access | |
| Set up a team multisig | |
| Integrate prediction markets | |
| Register an agent onchain | |
| Scaffold a new Abstract project | Start here → choose from above |
| 任务 | 推荐技能 |
|---|---|
| 将钱包/应用连接到Abstract | |
| 部署智能合约 | |
| 构建带用户登录的React应用 | |
| 赋予AI Agent钱包访问权限 | |
| 设置团队多签 | |
| 集成预测市场 | |
| 在链上注册Agent | |
| 搭建新的Abstract项目 | 从这里开始 → 选择上述技能 |
Quickstart
快速入门
For a brand new project, ask the user what they're building:
- React app with user login → (use
abstract-global-wallet)create-abstract-app - Smart contracts only → (Foundry with zksync)
deploying-contracts-on-abstract - Full stack → Both of the above
对于全新项目,询问用户的开发目标:
- 带用户登录的React应用 → (使用
abstract-global-wallet)create-abstract-app - 仅智能合约 → (搭配zksync的Foundry)
deploying-contracts-on-abstract - 全栈项目 → 同时使用上述两项技能
Resources
资源
- Repository: Abstract-Foundation/abstract-skills
- Documentation: docs.abs.xyz
- Explorer: abscan.org
- Safe UI: safe.abs.xyz
- Testnet Faucets: docs.abs.xyz/tooling/faucets
- 代码仓库: Abstract-Foundation/abstract-skills
- 文档: docs.abs.xyz
- 区块浏览器: abscan.org
- Safe界面: safe.abs.xyz
- 测试网水龙头: docs.abs.xyz/tooling/faucets