详细分析 ▾
运行时依赖
版本
安装命令 点击复制
技能文档
... (保持原 Markdown 格式,仅翻译非代码、非 YAML 部分)
The financial operating system for autonomous agents on Base L2. Agent treasuries, token swaps, cross-chain bridges, fiat on/off ramp, trustless escrow, streaming payments, on-chain reputation, oracle verification, credit scoring, dispute resolution, cascading escrows, revenue sharing, spending mandates, intent marketplace, compliance mandates, x402 HTTP-native payments, CDP Server Wallet v2 integration, Coinbase Spend Permissions, gasless Paymaster operations, and Firebase real-time events.
NEW: CDP Integration (Coinbase Developer Platform)
Server Wallet v2 (TEE-Secured)
import { getCdpClient } from '@/lib/cdp/client';
const cdp = getCdpClient();
const wallet = await cdp.evm.createAccount(); // TEE-secured, no keys to manage
x402 Protocol (HTTP-Native Payments)
Every PayLobster API is payable via HTTP 402:# Discovery endpoint
curl https://paylobster.com/api/x402/discovery# Agent pays for service automatically
GET /api/v3/reputation?address=0x...
→ 402 Payment Required (0.01 USDC)
→ Agent pays via X-PAYMENT header
→ Service executes
Spend Permissions
import { createSpendPermission } from '@/lib/cdp/permissions';
// Agent gets pre-approved spending within limits
await createSpendPermission(treasury, agent, 'USDC', '100', 1); // 100 USDC/day
Gasless Operations (Paymaster)
All PayLobster contract interactions can be gas-sponsored via CDP Paymaster.Coinbase Onramp/Offramp
import { generateOnrampUrl } from '@/lib/cdp/onramp';
const url = await generateOnrampUrl(agentAddress, '100', 'USD'); // Fiat → USDC
SIWA — Sign In With Agent
Trustless agent authentication built on ERC-8004 and ERC-8128. One open standard. No API keys. No shared secrets.
Verify an Agent
curl -X POST https://paylobster.com/api/siwa/verify \
-H "Content-Type: application/json" \
-d '{"message": "", "signature": "0x..."}'
Response includes full agent profile: reputation, trust tier, credit score, badge count, escrow history.
MCP Tools
siwa_verify— verify SIWA signature + get full agent profilesiwa_nonce— get fresh nonce for message signingsiwa_profile— lookup any agent's profile (no auth needed)
SDK
import { createSIWAMessage, verifySIWAMessage } from 'pay-lobster';// Agent side: create and sign
const message = createSIWAMessage({ address: '0x...', domain: 'myapp.com', nonce });
const signature = await wallet.signMessage(message);
// Server side: verify and get profile
const result = await verifySIWAMessage(message, signature);
// → { verified: true, agent: { reputation: 95, trustTier: 'Diamond', ... } }
Why PayLobster SIWA?
Other SIWA implementations: "Yes, this agent exists." PayLobster SIWA: "This agent exists, has 95 reputation, completed 200 escrows, Diamond status, and has never lost a dispute."
Every SIWA auth carries the richest identity in the agent economy.
Natural Language Payments
Send payments with plain English — no structured API calls needed:
"send 10 USDC to 0xABC"
"escrow 50 USDC for 0xABC"
"stream 0.001 USDC per second to 0xABC for 1 hour"
"swap 50 USDC for ETH"
"bridge 100 USDC to Ethereum"
"split 100 USDC between 0xA (60%) and 0xB (40%)"
Via MCP
Use the natural_pay tool — it parses intent, returns unsigned transaction + confirmation:
{
"tool": "natural_pay",
"input": { "instruction": "send 10 USDC to 0xABC" }
}
// → { intent: { action: "transfer", amount: "10", token: "USDC", recipient: "0xABC" }, transaction: {...}, confirmation: "Send 10 USDC to 0xABC?" }
Via API
curl -X POST https://paylobster.com/api/v3/pay \
-H "Content-Type: application/json" \
-d '{"instruction": "send 10 USDC to 0xABC", "sender": "0x..."}'
Via CLI
paylobster pay "send 10 USDC to 0xABC"
Supported verbs: send, pay, transfer, give, escrow, hold, lock, stream, swap, exchange, convert, bridge, split, share, divide, tip.
Merchant Services
Accept USDC payments like Stripe — charges, payment links, recurring subscriptions, and embeddable checkout widget:
Register as Merchant
# Via CLI
paylobster merchant register --name "MyBusiness" --website "https://example.com" --wallet 0xABC
# → Returns API key (pk_live_...) and secret (sk_live_...)
Create Charges (Stripe-style)
# Via API
curl -X POST https://paylobster.com/api/v1/charges \
-H "Authorization: Bearer sk_live_YOUR_SECRET" \
-H "Content-Type: application/json" \
-d '{"amount": 25, "currency": "USDC", "description": "Code review service"}'
Recurring Subscriptions
curl -X POST https://paylobster.com/api/v1/subscriptions \
-H "Authorization: Bearer sk_live_YOUR_SECRET" \
-H "Content-Type: application/json" \
-d '{"plan_name": "Pro Plan", "amount": 10, "interval": "monthly", "customer_wallet": "0x..."}'
Embeddable Checkout Widget
Drop a payment widget on any website:
MCP Tools
merchant_register— Register merchant, get API keysmerchant_create_charge— Create a payment chargemerchant_create_subscription— Set up recurring billingmerchant_get_charge— Check charge status
Merchant API Endpoints
| Endpoint | Description |
|---|---|
POST /api/v1/merchants/register | Register merchant |
POST /api/v1/charges | Create charge |
GET /api/v1/charges/{id} | Get charge details |
POST /api/v1/payment-links | Create merchant payment link |
GET /api/v1/payment-links/{id} | Get link details |
POST /api/v1/subscriptions | Create subscription |
POST /api/v1/subscriptions/{id}/approve | Customer approves |
POST /api/v1/subscriptions/{id}/cancel | Cancel subscription |
POST /api/v1/subscriptions/charge | Process billing |
Merchant Dashboard
Full merchant dashboard at paylobster.com/merchant — manage API keys, payment links, view transactions, track revenue.
Payment Links
Shareable payment URLs — drop in any DM, email, or chat. No SDK needed.
Create a Payment Link
# Via CLI
paylobster link create --amount 10 --memo "Code review" --recipient 0xABC
# → https://paylobster.com/pay/a1b2c3d4paylobster split create --total 90 --participants '[
{"label":"Alice","share":33},{"label":"Bob","share":33},{"label":"Carol","share":34}
]' --memo "Dinner"
# → https://paylobster.com/split/x7y8z9
// Via SDK
const link = await lobster.links.create({
amount: '10',
recipient: '0xABC...',
memo: 'Code review',
mode: 'escrow', // or 'direct'
});
console.log(link.url); // https://paylobster.com/pay/a1b2c3d4
Via MCP
create_payment_link— Create a shareable payment URLcreate_split_link— Create a group split payment URLget_payment_link— Get link details by code
{
"tool": "create_payment_link",
"input": { "amount": "10", "recipient": "0xABC...", "memo": "Code review" }
}
// → { url: "https://paylobster.com/pay/a1b2c3d4", amount: "10 USDC", mode: "direct" }
Via API
# Create link
curl -X POST https://paylobster.com/api/v3/links \
-H "Content-Type: application/json" \
-d '{"amount":"10","recipient":"0xABC...","memo":"Code review"}'# Create split
curl -X POST https://paylobster.com/api/v3/splits \
-H "Content-Type: application/json" \
-d '{"total":"90","participants":[{"label":"Alice","share":33}],"creator":"0x..."}'
Features
- Direct mode: instant USDC transfer on payment
- Escrow mode: funds held until recipient releases
- Group splits: each participant pays their share, progress tracking
- OG previews: rich link previews in Discord, Telegram, Slack, email
- Expiry: optional TTL on links
- Mobile-friendly: responsive payment page
Payment Middleware (x402)
Gate any API endpoint with USDC + trust scoring — one line of code:
import { createPayLobsterMiddleware } from 'pay-lobster/middleware';// Gate endpoint: $0.01/request, Silver+ agents only
const gate = createPayLobsterMiddleware({
price: '0.01',
minReputation: 50,
trustTier: 'Silver',
});
export async function POST(req: Request) {
const auth = await gate(req);
if (!auth.authorized) return auth.response; // 402 Payment Required
console.log(auth.agent); // { address, reputation: 87, tier: 'Gold' }
// ... your logic
}
x402 Facilitator
PayLobster as x402 payment facilitator — adds reputation to every payment:
# Verify payment + get trust-enhanced receipt
curl -X POST https://paylobster.com/api/x402/facilitate \
-H "Content-Type: application/json" \
-d '{"payment":{"signature":"0x...","amount":"0.01","recipient":"0xABC"}}'
# → { verified: true, receipt: { payer: "0x...", reputation: 92, trustTier: "Gold" } }
MCP Tools
x402_facilitate— Verify x402 payment + get trust receiptx402_create_paywall— Generate 402 response for any endpoint
Service Discovery
Find agents and services by capability, reputation, and price:
# Via CLI
paylobster discover --capability code-review --min-reputation 80# Via API
curl "https://paylobster.com/api/v3/discover?capability=code-review&minReputation=80&trustTier=Gold"
Via MCP
discover_services— Search agents by capability, reputation, trust tier
{
"tool": "discover_services",
"input": { "capability": "code-review", "minReputation": 80 }
}
Fiat On/Off Ramp
Buy crypto with a card or sell back to your bank — no separate exchange needed:
Buy USDC (Fiat → Crypto)
# Via CLI
paylobster buy 100 # Buy $100 of USDC via Coinbase
paylobster buy 250 --provider moonpay # Buy via MoonPay (coming soon)
// Via SDK
const buyUrl = lobster.onramp.getBuyUrl({
address: '0x...',
amount: 100, // $100 USD
provider: 'coinbase', // or 'moonpay'
});
// → Redirect user to buyUrl
Sell USDC (Crypto → Fiat)
# Via CLI
paylobster sell 50 # Sell 50 USDC → USD
paylobster sell 200 --method bank # Withdraw to bank (1-3 days)
paylobster sell 100 --method card # Withdraw to debit card (~30 min)
// Via SDK
const sellUrl = lobster.onramp.getSellUrl({ amount: 100 });
// → Redirect user to sellUrl
Via MCP
onramp_buy— Get Coinbase Onramp URL to buy USDC with fiatonramp_sell— Get Coinbase off-ramp URL to sell USDC for fiatonramp_estimate— Estimate fees for buying or sellingonramp_providers— List available fiat ramp providers
{
"tool": "onramp_buy",
"input": { "address": "0xABC...", "amount": "100" }
}
// → { url: "https://pay.coinbase.com/...", estimatedReceive: "~98.50 USDC" }
Via API
# Estimate fees
curl "https://paylobster.com/api/v3/onramp/estimate?amount=100&direction=buy"# Get buy URL
curl "https://paylobster.com/api/v3/onramp/buy?address=0x...&amount=100"
Providers
| Provider | Status | Buy | Sell | Fees | Countries |
|---|---|---|---|---|---|
| Coinbase Onramp | ✅ Active | ✅ | ✅ | ~1.5% | 100+ |
| MoonPay | 🔜 Coming | ✅ | ✅ | ~1-4.5% | 160+ |
Web UI
Full buy/sell interface at paylobster.com/onramp
Wallet & Portfolio
Check balances, manage tokens, and track your on-chain portfolio:
Via CLI
paylobster portfolio # All token balances
paylobster balance 0x... # USDC balance
paylobster swap quote --from USDC --to WETH --amount 50 # Swap quote
paylobster swap execute --from USDC --to WETH --amount 50 # Execute swap
paylobster bridge quote --from base --to solana --token USDC --amount 100 # Bridge quote
Via MCP
get_balance— USDC balance on Baseget_portfolio— All token balances (ETH, USDC, WETH, DAI, USDbC)get_token_price— Token price in USDCswap_quote/swap_execute— Token swaps via 0x on Basebridge_quote/bridge_execute— Cross-chain bridges via Li.Fi (60+ chains)
Via SDK
// Check balance
const balance = await lobster.getBalance('0x...');// Full portfolio
const portfolio = await lobster.getPortfolio('0x...');
// Swap tokens
const quote = await lobster.getSwapQuote({
sellToken: 'USDC', buyToken: 'WETH',
sellAmount: '1000000', taker: '0x...',
});
// Bridge cross-chain
const bridgeQuote = await lobster.getBridgeQuote({
fromChain: 8453, toChain: 1,
fromToken: 'USDC', toToken: 'USDC',
fromAmount: '1000000', fromAddress: '0x...',
});
Quick Start
Hosted MCP Server (Recommended)
Connect any AI agent instantly — zero setup:
{
"mcpServers": {
"paylobster": {
"url": "https://paylobster.com/mcp/mcp",
"transport": "http-stream"
}
}
}
For Claude Desktop (SSE): https://paylobster.com/mcp/sse
npm Packages
# SDK
npm install pay-lobster viem# CLI
npm install -g @paylobster/cli
# Self-hosted MCP server
npm install @paylobster/mcp-server
SDK (pay-lobster@4.6.0)
17 modules covering the full PayLobster protocol including TrustGraph:
import { PayLobster } from 'pay-lobster';
import { createWalletClient, http } from 'viem';
import { privateKeyToAccount } from 'viem/accounts';
import { base } from 'viem/chains';const account = privateKeyToAccount(process.env.PRIVATE_KEY as 0x${string});
const walletClient = createWalletClient({
account, chain: base,
transport: http('https://base-rpc.publicnode.com'),
});
const lobster = new PayLobster({
network: 'mainnet',
walletClient,
rpcUrl: 'https://base-rpc.publicnode.com',
});
// Register agent identity
await lobster.registerAgent({ name: 'MyAgent', capabilities: ['analysis'] });
// Check reputation
const rep = await lobster.getReputation('0x...');
// Create escrow payment
const escrow = await lobster.escrow.create({ to: '0x...', amount: '10.00' });
// Release escrow
await lobster.releaseEscrow(escrow.escrowId);
// Stream payments
const stream = await lobster.streaming.create({
to: '0x...', ratePerSecond: '0.001', duration: 3600,
});
// Open dispute
await lobster.disputes.open({ escrowId: '42', reason: 'Service not delivered' });
// Check credit score
const score = await lobster.creditScore.check('0x...');
// Post intent to marketplace
await lobster.intent.post({
description: 'Need code review agent',
tags: ['code-review'], budget: '50', deadline: '2026-03-01',
});
// Create revenue share
await lobster.revenueShare.create({
participants: [
{ address: '0xA...', share: 60 },
{ address: '0xB...', share: 40 },
],
});
// Create agent treasury
await lobster.treasury.create('My Agent Fund');
const summary = await lobster.treasury.getSummary('0xTREASURY');
// Swap tokens on Base
const quote = await lobster.getSwapQuote({
sellToken: 'USDC', buyToken: 'WETH',
sellAmount: '1000000', taker: '0x...',
});
// Bridge cross-chain
const bridgeQuote = await lobster.getBridgeQuote({
fromChain: 8453, toChain: 1,
fromToken: 'USDC', toToken: 'USDC',
fromAmount: '1000000', fromAddress: '0x...',
});
// Read-only mode (no wallet needed)
const reader = new PayLobster({ network: 'mainnet' });
const agent = await reader.getAgent('0x...');
SDK Modules (17)
| Module | Description |
|---|---|
identity | Register, get, check agent identity |
escrow | Create, release, get, list escrows |
reputation | Reputation scores, trust vectors |
credit | Credit lines, scores |
mandate | Spending mandates |
services | Service catalog search |
streaming | Real-time payment streams |
disputes | Dispute resolution |
cascading | Multi-stage cascading escrows |
creditScore | Predictive credit scoring |
compliance | Compliance checks |
oracle | Oracle verification |
intent | Intent marketplace |
revenueShare | Revenue sharing agreements |
swap | Token swaps via 0x on Base |
bridge | Cross-chain bridges via Li.Fi |
investment | On-chain investment term sheets |
trustGraph | Agent trust network with endorsements (V4.4) |
CLI (@paylobster/cli@4.6.0)
19 commands covering the full protocol:
# Authenticate
paylobster auth --private-key 0x...# Configure network
paylobster config set network mainnet
# Register agent
paylobster register --name "my-agent" --capabilities "code-review,analysis"
# Check status
paylobster status
# Escrow operations
paylobster escrow create --to 0x... --amount 50
paylobster escrow list
paylobster escrow release
# Quick payment
paylobster pay --to 0x... --amount 25
# Streaming payments
paylobster stream create --to 0x... --rate 0.001 --duration 3600
paylobster stream list
paylobster stream cancel
# Disputes
paylobster dispute open --escrow-id 42 --reason "Not delivered"
paylobster dispute submit --id 1 --evidence "ipfs://..."
paylobster dispute list
# Credit scoring
paylobster credit-score check 0x...
paylobster credit-score request --amount 500
# Cascading escrows
paylobster cascade create --stages '[{"to":"0x...","amount":"25"}]'
paylobster cascade release --id 1 --stage 0
# Intent marketplace
paylobster intent post --desc "Need code review" --budget 50
paylobster intent list
paylobster intent offer --id 1 --price 40
# Compliance
paylobster compliance check 0x...
# Oracle
paylobster oracle status
# Revenue sharing
paylobster revenue-share create --participants '[{"address":"0x...","share":60}]'
# Token swaps
paylobster swap quote --from USDC --to WETH --amount 50
paylobster swap execute --from USDC --to WETH --amount 50
paylobster swap tokens
paylobster swap price 0xTOKEN
# Cross-chain bridging
paylobster bridge quote --from base --to solana --token USDC --amount 100
paylobster bridge execute --from base --to solana --token USDC --amount 100
paylobster bridge status
paylobster bridge chains
# Portfolio
paylobster portfolio
# Investment
paylobster invest propose --treasury 0x... --amount 500 --type revenue-share --duration 365 --share 1500
paylobster invest fund
paylobster invest claim
paylobster invest milestone
paylobster invest info
paylobster invest portfolio
paylobster invest treasury 0x...
paylobster invest stats
# Fiat on/off ramp paylobster buy 100 # Buy $100 of USDC via Coinbase paylobster buy 250 --provider moonpay # Buy via MoonPay (coming soon) paylobster sell 50 # Sell 50 USDC → USD paylobster sell 200 --method bank # Withdraw to bank (1-3 days) paylobster sell 100 --method card # Withdraw to debit card (~30 min) paylobster ramp providers # List available ramp providers paylobster ramp estimate --amount 100 --direction buy # Fee estimate
All commands support --json for automation.MCP Server
Hosted (53+ tools, 6 resources)
json
{
"mcpServers": {
"paylobster": {
"url": "https://paylobster.com/mcp/mcp",
"transport": "http-stream"
}
}
}
Self-hosted (@paylobster/mcp-server@1.5.0)
json
{
"mcpServers": {
"paylobster": {
"command": "npx",
"args": ["@paylobster/mcp-server"],
"env": {
"PAYLOBSTER_PRIVATE_KEY": "0x...",
"PAYLOBSTER_NETWORK": "mainnet"
}
}
}
}
MCP Tools (64+)
Tool Description natural_payNatural language payments — "send 10 USDC to 0xABC" quick_sendSend USDC to an address (structured) register_agentRegister agent identity on-chain get_reputationCheck reputation score get_balanceQuery USDC balance search_servicesFind services by capability/price create_escrowCreate payment escrow release_escrowRelease escrow funds get_escrowGet escrow details list_escrowsList escrows create_streamStart streaming payment cancel_streamCancel active stream get_streamGet stream details open_disputeOpen escrow dispute submit_evidenceSubmit dispute evidence get_disputeGet dispute details get_creditCheck credit score request_credit_lineRequest credit line create_cascadeCreate cascading escrow release_stageRelease cascade stage post_intentPost service intent make_offerMake offer on intent accept_offerAccept marketplace offer create_revenue_shareCreate revenue split check_complianceCheck compliance status swap_quoteGet token swap quote on Base swap_executeExecute token swap swap_tokensList available tokens swap_priceGet token price bridge_quoteGet cross-chain bridge quote bridge_executeExecute cross-chain bridge bridge_statusTrack bridge transaction bridge_chainsList supported chains get_portfolioView multi-token balances get_token_priceGet token price in USD investment_proposePropose investment into treasury investment_fundFund a proposed investment investment_claimClaim streaming/fixed returns investment_milestoneComplete milestone (oracle) investment_infoGet investment details investment_portfolioInvestor's portfolio investment_treasuryTreasury's investments investment_statsProtocol-wide stats merchant_registerRegister merchant, get API keys merchant_create_chargeCreate payment charge (Stripe-style) merchant_create_subscriptionSet up recurring USDC billing merchant_get_chargeCheck charge status create_payment_linkCreate a shareable payment URL create_split_linkCreate a group split payment URL get_payment_linkGet payment link details by code discover_servicesSearch agents by capability/reputation/tier x402_facilitateVerify x402 payment + trust receipt x402_create_paywallGenerate 402 response for any endpoint onramp_buyGet Coinbase Onramp URL to buy USDC with fiat onramp_sellGet Coinbase off-ramp URL to sell USDC for fiat onramp_estimateEstimate fees for buying or selling crypto onramp_providersList available fiat ramp providers
MCP Resources (6)
URI Description paylobster://agent/{address}Agent profile & reputation paylobster://escrow/{id}Escrow status & details paylobster://credit/{address}Credit score & lines paylobster://stream/{id}Streaming payment details paylobster://dispute/{id}Dispute details & evidence paylobster://intent/{id}Intent & offers
REST API
Base URL: https://paylobster.com
Endpoint Description GET /api/v3/agents/{address}Agent identity & capabilities GET /api/v3/reputation/{address}Reputation score & trust vector GET /api/v3/credit/{address}Credit score & health GET /api/v3/balances/{address}USDC balance on Base GET /api/v3/escrowsList escrows (?creator= or ?provider=) GET /api/v3/escrows/{id}Single escrow details POST /api/x402/negotiatex402 payment negotiation GET /api/badge/{address}Trust badge SVG GET /api/trust-check/{address}Quick trust verification POST /api/v3/linksCreate payment link GET /api/v3/links/{code}Get payment link details POST /api/v3/splitsCreate group split link GET /api/v3/splits/{code}Get split details GET /api/v3/discoverService discovery (?capability=&minReputation=) POST /api/x402/facilitatex402 payment verification + trust receipt GET /api/v3/onramp/estimateFee estimate for buy/sell (?amount=&direction=)
Contracts (Base Mainnet)
V3 (Core — Security-Fixed)
Contract Address Identity Registry 0xA174ee274F870631B3c330a85EBCad74120BE662Reputation 0x02bb4132a86134684976E2a52E43D59D89E64b29Credit System 0x4c22B52eacAB9eD2Ce018d032739a93eC68eD27aEscrow V3 0x703B528C1b07cd27992af9Ae11DD67bE685E489eSpendingMandate 0xd146b6279fb434646d0a6D7D7083ecC2648093f0CoinFlip 0xb8f1dc38eb6a9c1589db024705f59b1af65e89a1USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
CoinFlip Contract Functions
createFlip(uint256 amount) → uint256 flipId // Stake USDC, min 1 USDC (6 decimals)
acceptFlip(uint256 flipId) // Match the stake, starts the flip
resolveFlip(uint256 flipId) // Determine winner via blockhash
cancelFlip(uint256 flipId) // Cancel before acceptance (creator only)
getFlip(uint256 flipId) → (address creator, address challenger, uint256 amount, uint256 resolveBlock, bool resolved, address winner, uint256 createdAt)
getActiveFlips() → uint256[] // List open/active flip IDs
Escrow V3 Functions
createAndFundEscrow(address seller, uint256 amount, uint256 creditAmount, string description) → uint256 escrowId
releaseEscrow(uint256 escrowId) // Only buyer/sender can release
getEscrow(uint256 id) → (address sender, address recipient, uint256 amount, address token, uint8 status)
nextEscrowId() → uint256
Token Balance API
bash
# Get all token balances for any address
curl "https://paylobster.com/api/v3/wallet/tokens?address=0x..."
# → { address, tokenCount, tokens: [{ symbol, name, balance, icon }] }
V4 (Deployed)
Contract Address PolicyRegistry 0x20a30064629e797a88fCdBa2A4C310971bF8A0F2CrossRailLedger 0x74AcB48650f12368960325d3c7304965fd62db18SpendingMandate 0x8609eBA4F8B6081AcC8ce8B0C126C515f6140849TreasuryFactory 0x171a685f28546a0ebb13059184db1f808b915066InvestmentTermSheet 0xfa4d9933422401e8b0846f14889b383e068860eb
| TrustGraph | 0xbccd1d0a37ce981a13b3392d7881f94e28fa693b |
| FeeRouter | 0x08b519f6f43b1f5bc74011475c5a1c3dcbd965b7 |V4 (Compiled, Pending Deploy)
AgentBiddingProtocol · InsurancePool · StreamingPayment · CascadingEscrow · DisputeResolution · IntentMarketplace · ComplianceMandate · RevenueShare · ConditionalRelease · AgentCreditScore · ServiceCatalog · OracleRouter
Token & NFT (Compiled, Pending Deploy)
LBSTR (ERC-20, 88M supply, burn to 24M, 5 burn engines) · AgentSoulbound (ERC-5192 soulbound, 5 tiers, 88 Genesis, dynamic on-chain SVG) · AchievementBadges (ERC-1155 soulbound, 37 badge types across 5 categories)
Contracts (Base Sepolia)
Contract Address Identity 0x3dfA02Ed4F0e4F10E8031d7a4cB8Ea0bBbFbCB8cReputation 0xb0033901e3b94f4F36dA0b3e59A1F4AD9f4f1697Credit 0xBA64e2b2F2a80D03A4B13b3396942C1e78205C7dEscrow V3 0x78D1f50a1965dE34f6b5a3D3546C94FE1809Cd82
Common Patterns
Create an agent treasury
bash
# Deploy treasury via factory
paylobster treasury create "My Agent Fund"# View treasury info paylobster treasury info
# Set budget allocation paylobster treasury budget --ops 4000 --growth 3000 --reserves 2000 --yield 1000
# Grant operator access with spend limits paylobster treasury grant --address 0xAGENT --role operator paylobster treasury limit --address 0xAGENT --per-tx 100 --per-day 500
Swap tokens
bash
# Get a quote
paylobster swap quote --from USDC --to WETH --amount 50# Execute swap paylobster swap execute --from USDC --to WETH --amount 50
# Bridge to another chain paylobster bridge execute --from base --to solana --token USDC --amount 100
Invest in an agent's treasury
bash
# Propose a revenue share investment
paylobster invest propose --treasury 0xAGENT_TREASURY --amount 500 \
--type revenue-share --duration 365 --share 1500# Fund the investment paylobster invest fund 0
# Check claimable returns paylobster invest info 0
# Claim returns paylobster invest claim 0
# View your portfolio paylobster invest portfolio
Agent paying for a service
bash
# 1. Check provider reputation
paylobster reputation 0xPROVIDER# 2. Create escrow paylobster escrow create --to 0xPROVIDER --amount 25
# 3. After delivery, release payment
paylobster escrow release Add PayLobster to any Coinbase AgentKit agent:
bash
# Pay $0.001/sec for 1 hour of inference
paylobster stream create --to 0xPROVIDER --rate 0.001 --duration 3600
Streaming payment for compute
bash
# Create a revenue share for a 3-agent pipeline
paylobster revenue-share create --participants '[
{"address":"0xA...","share":50},
{"address":"0xB...","share":30},
{"address":"0xC...","share":20}
]'
Multi-agent collaboration with revenue split
bash
curl https://paylobster.com/api/v3/reputation/0xADDRESS
curl https://paylobster.com/api/v3/escrows?creator=0xADDRESS
Read-only queries (no wallet needed)
typescript
import { paylobsterActionProvider } from '@paylobster/agentkit-provider';
Coinbase AgentKit Integration
const agent = await createReactAgent({ llm: model, walletProvider: wallet, actionProviders: [paylobsterActionProvider()], });
Actions: paylobster_register_identity, paylobster_create_escrow, paylobster_release_escrow, paylobster_check_reputation, paylobster_get_credit_score, paylobster_get_agent_profile.High-Level SDK (@paylobster/agent-toolkit)
PayLobster-first SDK with clean 4-line DX:
typescript
import { PayLobsterAgent } from '@paylobster/agent-toolkit';const agent = new PayLobsterAgent({ network: 'base', wallet: 'coinbase' }); await agent.register({ name: 'MyAgent' }); const escrowId = await agent.escrow({ seller: '0x...', amount: 100 }); await agent.release(escrowId, { rating: 5 }); ```
Resources
- Website: paylobster.com
- Docs: paylobster.com/docs
- MCP Server: paylobster.com/mcp-server
- npm SDK: npmjs.com/package/pay-lobster
- npm CLI: npmjs.com/package/@paylobster/cli
- npm MCP: npmjs.com/package/@paylobster/mcp-server
- npm AgentKit Provider: npmjs.com/package/@paylobster/agentkit-provider
- npm Agent Toolkit: npmjs.com/package/@paylobster/agent-toolkit
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制