building-with-base-account by base/skills
npx skills add https://github.com/base/skills --skill building-with-base-accountBase Account 是一款 ERC-4337 智能钱包,提供通用登录、一键 USDC 支付以及多链支持(Base、Arbitrum、Optimism、Zora、Polygon、BNB、Avalanche、Lordchain、以太坊主网)。
npm install @base-org/account @base-org/account-ui
import { createBaseAccountSDK } from '@base-org/account';
const sdk = createBaseAccountSDK({
appName: 'My App',
appLogoUrl: 'https://example.com/logo.png',
appChainIds: [8453], // Base 主网
});
const provider = sdk.getProvider();
根据您正在实现的功能阅读相应的参考文档:
| 功能 | 参考文档 | 阅读时机 |
|---|---|---|
| 使用 Base 登录 | references/authentication.md | 钱包认证、SIWE、后端验证、SignInWithBaseButton、Wagmi/Privy 设置 |
| Base Pay | references/payments.md | 一键 USDC 支付、payerInfo、服务端验证、BasePayButton |
| 订阅 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| references/subscriptions.md |
| 定期扣费、消费权限、CDP 钱包设置、扣费/撤销生命周期 |
| 子账户 | references/sub-accounts.md | 应用特定的嵌入式钱包、密钥生成、资金注入 |
| 能力 | references/capabilities.md | 批量交易、Gas 赞助(支付主)、原子执行、auxiliaryFunds、归因 |
| Prolinks | references/prolinks.md | 可分享的支付链接、二维码、编码的交易 URL |
| 故障排除 | references/troubleshooting.md | 弹窗问题、Gas 使用、不支持的调用、迁移、文档链接 |
Cross-Origin-Opener-Policy: same-origin-allow-popupssame-origin 会破坏 Base Account 弹窗pay() 无需认证getPaymentStatus() 中的 testnet 参数必须与 pay() 调用匹配auxiliaryFunds 能力wallet_addSubAccountverifyMessage/verifyTypedData 会自动处理此情况每周安装量
93
代码仓库
GitHub 星标数
22
首次出现
2026年2月24日
安全审计
安装于
codex92
opencode91
github-copilot91
kimi-cli91
amp91
gemini-cli91
Base Account is an ERC-4337 smart wallet providing universal sign-on, one-tap USDC payments, and multi-chain support (Base, Arbitrum, Optimism, Zora, Polygon, BNB, Avalanche, Lordchain, Ethereum Mainnet).
npm install @base-org/account @base-org/account-ui
import { createBaseAccountSDK } from '@base-org/account';
const sdk = createBaseAccountSDK({
appName: 'My App',
appLogoUrl: 'https://example.com/logo.png',
appChainIds: [8453], // Base Mainnet
});
const provider = sdk.getProvider();
Read the reference for the feature you're implementing:
| Feature | Reference | When to Read |
|---|---|---|
| Sign in with Base | references/authentication.md | Wallet auth, SIWE, backend verification, SignInWithBaseButton, Wagmi/Privy setup |
| Base Pay | references/payments.md | One-tap USDC payments, payerInfo, server-side verification, BasePayButton |
| Subscriptions | references/subscriptions.md | Recurring charges, spend permissions, CDP wallet setup, charge/revoke lifecycle |
| Sub Accounts | references/sub-accounts.md | App-specific embedded wallets, key generation, funding |
| Capabilities | references/capabilities.md | Batch transactions, gas sponsorship (paymasters), atomic execution, auxiliaryFunds, attribution |
| Prolinks | references/prolinks.md | Shareable payment links, QR codes, encoded transaction URLs |
| Troubleshooting | references/troubleshooting.md | Popup issues, gas usage, unsupported calls, migration, doc links |
Cross-Origin-Opener-Policy: same-origin-allow-popupssame-origin breaks the Base Account popuppay()testnet param in getPaymentStatus() must match pay() callauxiliaryFunds capabilitywallet_addSubAccount each session before useverifyMessage/verifyTypedData handle this automaticallyWeekly Installs
93
Repository
GitHub Stars
22
First Seen
Feb 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
codex92
opencode91
github-copilot91
kimi-cli91
amp91
gemini-cli91
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
120,000 周安装