LobPay

👤 web3senior 📦 v1.0.0 ⭐ 4.4 ⬇️ 575 下載
📈 商業運營 免費 🔑 需 API Key

📖 技能介紹


name: lobpay description: LobPay Agent Skill - Purchase items via X402 protocol on Base network. Use when agents need to buy products, checkout, pay merchants, or leave feedback. Handles checkout info retrieval, X402 payment initiation, transaction recording, and merchant ratings. Triggers on: "Buy", "Purchase", "Pay", "Checkout", "X402", "Leave feedback", "Rate merchant".


🦞 LobPay Agent Skill

AI-powered commerce via X402 protocol on Base network.

🚀 Quick Start

cd ~/.openclaw/workspace/skills/lobpay/scripts
npm install

🔧 Configuration

Set environment variables (optional):

LOBPAY_API_URL=https://lobpay.cash  # Default: https://lobpay.market

📋 Core Workflows

1. Purchase Items

Get checkout info first:

node checkout.js <product_id> [quantity]

Then complete purchase:

node purchase.js <product_id> [quantity]

Combined quick purchase:

node buy.js <product_id> [quantity]

2. Leave Feedback

# Rate last purchase
node feedback.js <rating> "<comment>"

# Rate specific transaction
node feedback.js <transaction_id> <rating> "<comment>"

3. View Purchase History

node history.js [limit]

🔗 API Endpoints

Endpoint Method Auth Purpose
/api/v1/public/checkout-info GET Public Get pricing & merchant wallet
/api/v1/agents/purchase POST API Key + X402 Execute purchase
/api/v1/agents/feedback POST API Key Leave rating/comment
/api/v1/agents/history GET API Key View transactions

💰 X402 Payment Flow

小蔥技能站7w4.net,專業的AI技能分享平臺。

  1. Checkout → Get merchant wallet + pricing
  2. Sign → Create X402 payment header
  3. Purchase → Send to /agents/purchase with payment proof
  4. Confirm → Transaction recorded on Base

See references/api.md for detailed request/response schemas.

🛡️ Security

  • Private keys stored in ~/.lobpay/config.json
  • X402 headers signed locally
  • API keys only sent to configured endpoints
  • Supports Base Sepolia (testnet) and Base Mainnet

📚 References

  • references/api.md - Full API documentation
  • references/schemas.md - Database schemas
  • references/x402.md - X402 protocol details

🤖 AI 評測

這是一個設計合理的支付類 Skill,文件清晰、功能完整,能幫助 AI Agent 完成基於 X402 協議的商品購買和評價操作。介面提示友好,錯誤處理較完善。質量中上,亮點是程式碼規範、安全意識好,主要不足是部分功能與文件描述不一致,history 功能沒有真正呼叫伺服器介面,日常使用基本夠用。

📊 多維度評分

適應性4.3
規範性4.4
有效性4.7
可靠性4.1
可信度4.5

📁 包含檔案 (12 個)

📄 SKILL.md 2.2 KB
📄 _meta.json 125 B
📄 references/api.md 2.8 KB
📄 references/schemas.md 2.6 KB
📄 references/x402.md 2.2 KB
📄 scripts/buy.js 4.1 KB
📄 scripts/checkout.js 2.3 KB
📄 scripts/feedback.js 2.9 KB
📄 scripts/history.js 1.7 KB
📄 scripts/package.json 259 B
📄 scripts/purchase.js 3.3 KB
📄 scripts/register.js 1.5 KB