Everything you need to know about MoltsPay
关于 MoltsPay 你需要知道的一切
x402 for Base/Polygon, MPP for Tempo, Solana Pay-for-Success, and BNB Pre-Approval) behind one interface. The protocol layer automatically detects the target chain, selects the correct facilitator, generates signatures, and verifies settlement — so developers never implement chain-specific payment flows. See the whitepaper for the full architecture.
Universal Payment Protocol(UPP,通用支付协议)是 MoltsPay 的核心创新——一个统一的支付抽象层,让 AI Agent 通过单一 API 在多条区块链上完成支付。UPP 将四种不同的支付协议(Base/Polygon 的 x402、Tempo 的 MPP、Solana Pay-for-Success 和 BNB Pre-Approval)整合到一个接口下。协议层会自动识别目标链、选择正确的 facilitator、生成签名并验证结算——开发者无需针对每条链单独实现支付流程。完整架构请参阅白皮书。
npm install moltspay or pip install moltspay), initialize a wallet with npx moltspay init, and use the pay function to call paid services. Three lines of code to get started.
安装 MoltsPay SDK(npm install moltspay 或 pip install moltspay),用 npx moltspay init 初始化钱包,然后用 pay 函数调用付费服务。三行代码即可开始。
moltspay.pay() call works on any supported chain; UPP automatically detects the chain, selects the right facilitator, and handles signatures. (2) Gasless by default — users never need ETH, SOL, or BNB to pay; x402 uses EIP-3009 on EVM, Solana uses a server-as-fee-payer model, and BNB uses pre-approval. (3) Three lines to ship — install the SDK, initialize a wallet, call pay. Developers don't have to learn chain-specific payment mechanics like EIP-3009, SPL transfers, or EIP-712 — UPP abstracts all of that away.
三个原因:(1)一个 API 覆盖所有链——一次 moltspay.pay() 调用即可在任意支持链上工作;UPP 会自动识别链、选择合适的 facilitator 并处理签名。(2)默认免 Gas——用户无需 ETH、SOL 或 BNB 就能付款;EVM 上的 x402 使用 EIP-3009,Solana 使用服务端代付模型,BNB 采用 pre-approval。(3)三行代码上线——安装 SDK、初始化钱包、调用 pay。开发者无需学习每条链各自的支付机制(如 EIP-3009、SPL 转账、EIP-712),UPP 把这些细节全部屏蔽。
secp256k1 cryptography and ERC-20 / TIP-20 tokens with a single wallet address across all EVM chains. Solana (SVM) uses Ed25519 cryptography and the SPL token standard, which requires a separate wallet (different key type). MoltsPay manages both wallet types transparently — moltspay status shows balances on every configured chain, and the SDK routes each payment through the appropriate protocol automatically.
是的——MoltsPay 是首个在单一 API 下同时支持 EVM 和 SVM 的支付协议。EVM 链(Base、Polygon、BNB)使用 secp256k1 密码学与 ERC-20 / TIP-20 代币标准,同一个钱包地址可用于所有 EVM 链。Solana(SVM)使用 Ed25519 密码学和 SPL 代币标准,需要一个单独的钱包(密钥类型不同)。MoltsPay 会统一管理两种钱包——moltspay status 可查看所有已配置链上的余额,SDK 会自动把每笔支付路由到合适的协议。
alipay block to its config. This is a purely additive change — existing crypto-only services keep working unchanged. Unlike the crypto rails, the Alipay rail is a fiat rail (not a blockchain): there is no gas and no on-chain settlement — payment is collected through the Alipay app. See the developer guide for setup.
支持。自 v2.0 起,MoltsPay 在原有 USDC 加密货币轨之外,新增了通过支付宝(支付宝 AI 收)的法币支付轨,以人民币(CNY)结算。它复用同一套 HTTP 402 流程——服务只需在配置中加入 alipay 配置块,即可用 USDC、CNY 或两者同时定价。该能力为纯新增,既有的仅加密货币服务无需改动、照常运行。与加密货币轨不同,支付宝轨是法币轨(不是区块链):没有 Gas、不上链结算——付款通过支付宝 App 收取。配置方法见开发者指南。
wechat block to your config — see the developer guide.
支持。自 v2.1 起,MoltsPay 新增第二条法币轨——微信支付 v3 Native,以人民币结算。买家在微信中扫码一次即可付款,复用同一套 HTTP 402 流程;加密货币、支付宝、微信可在同一个服务上并存。由于微信没有免密自动付款产品,微信也被用来为余额轨充值以实现免密体验(见下条)。只需在配置中加入 wechat 配置块——详见开发者指南。
openid at top-up, and each deduction can carry a per-request EIP-191 signature. Providers stage this with auth_mode: off → shadow → enforce. With enforce, knowing a buyer_id is not enough to spend — the caller must hold the bound signing key. See the developer guide.
余额轨(v2.2+)是一个服务端的预付人民币余额。买家通过微信充值包充值一次,之后每次购买都在服务端扣款、免扫码、免密码(v2.3+)——非常适合回合制聊天智能体。安全性方面:账户在充值时锚定到微信付款人的 openid,每笔扣款可携带一次性的 EIP-191 签名。服务方用 auth_mode 分阶段上线:off → shadow → enforce。开启 enforce 后,仅知道 buyer_id 不足以花费余额——调用方必须持有绑定的签名密钥。详见开发者指南。
Join our Discord community for help and discussions
加入我们的 Discord 社区获取帮助
Join Discord加入 Discord