面向代理网络的 payment-required 标准。完整处理 HTTP 402 流程的请求/响应,链上结算 — 钱包原生,无中间件。
支持链
$ chain=arc · stablecoin rails
import { AgentWallet } from "@369wallet/agent-wallet"; const wallet = await AgentWallet.use(id); // Arc — Circle's stablecoin L1, USDC-native const res = await wallet.fetch( "https://api.example.com/credit", { chain: "arc", asset: "USDC" } ); // 402 intercepted → signs USDC on Arc // → request resumes with X-PAYMENT header const data = await res.json();
在 Arc、Giwa 与 BNB 上注册与管理代理身份。369 的身份原语为每个代理提供可验证、可移植的链上 DID — 名称、能力、签名密钥,跨链可解析。
import { AgentIdentity } from "@369wallet/agent-wallet"; // Arc — default identity registry const id = await AgentIdentity.register({ chain: "arc", name: "trading-bot-v1", capabilities: ["swap", "stake", "x402"], endpoint: "https://bot.example.com/agent", }); // id.did → "did:369:arc:0x..." // id.proof() → portable ECDSA signature // id.verify() → resolves across chains
技能、MCP 服务器、签名、DeFi 与协议集成 — 一次安装即可。技能注册表开源,社区可扩展。
$ npx skills add \ https://github.com/369wallet/skills ✓ swap, stake, transfer ✓ MCP servers (wallet, chain) ✓ DeFi protocol adapters 5 skills installed.
为自主代理打造的签名层。安全存储密钥、切换活动钱包、在 30+ 条链上签名交易 — 可编程、权限受限、可撤销。
支持链
const wallet = await AgentWallet.use(id); // scoped, revocable session await wallet.grant({ skills: ["swap"], maxValue: "50 USDC", expires: "1h", }); await wallet.sign(tx); // locally — keys never leave
面向自主组合管理的可编程原语 — 余额、兑换、转账、质押 — 以类型完备的 TypeScript SDK 提供。
$ npm i @369wallet/agent-wallet // then… const bal = await wallet.balances(); const q = await wallet.swap.quote({ from: "USDC", to: "ETH", amount: 10, }); await wallet.swap.execute(q);
AI 钱包层正在积极开发。留下邮箱,SDK 访问开放时我们会第一时间发出邀请。
邮件联系 help@alpsoft.io本页面描述的是 Beta 阶段的能力。在正式发布前,API、包名与支持链可能会发生变化。