metr-merchant-payments/SKILL.md
Claim and withdraw payments from Metr (metrpay.com) merchant account.
npx skillsauth add bankrbot/openclaw-skills metr-merchant-paymentsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Manage your Metr merchant account — start payment sessions, end (settle) them, and withdraw funds to your wallet.
Metr is a multi-chain payment protocol that lets merchants accept crypto (USDC, SOL, POL, ETH, and custom SPL/ERC-20 tokens) via session-based checkout. Funds are held in escrow during a session and released when the session ends.
https://api.metr.app/v1All API calls require headers:
| Header | Value | When |
|--------|-------|------|
| x-api-key | Your merchant API key | All merchant endpoints |
| x-agent-key | Your agent key | Agent session endpoints |
Store your key securely in Bankr:
METR_MERCHANT_API_KEY = your merchant keyMETR_AGENT_KEY = your agent key (if using agent sessions)Initiate a checkout session for a customer.
Endpoint: POST /v1/integrate/sessions/start
Headers:
Content-Type: application/jsonx-api-key: <your-merchant-key>Body:
{
"amount": "10.00",
"currency": "USDC",
"chain": "base",
"metadata": {
"orderId": "order_12345",
"customerEmail": "[email protected]"
}
}
Response:
{
"sessionId": "sess_abc123",
"paymentUrl": "https://pay.metr.app/sess_abc123",
"status": "pending",
"expiresAt": "2026-07-01T12:00:00Z"
}
Bankr CLI equivalent:
curl -X POST https://api.metr.app/v1/integrate/sessions/start \
-H "Content-Type: application/json" \
-H "x-api-key: $METR_MERCHANT_API_KEY" \
-d '{
"amount": "10.00",
"currency": "USDC",
"chain": "base",
"metadata": {"orderId": "order_12345"}
}'
Release escrowed funds to the merchant wallet once the order is fulfilled.
Endpoint: POST /v1/integrate/sessions/{sessionId}/end
Headers:
Content-Type: application/jsonx-api-key: <your-merchant-key>Body:
{
"reason": "fulfillment_complete",
"metadata": {
"deliveredAt": "2026-07-01T10:30:00Z"
}
}
Response:
{
"sessionId": "sess_abc123",
"status": "settled",
"settledAt": "2026-07-01T10:30:05Z",
"txHash": "0x..."
}
Bankr CLI equivalent:
curl -X POST "https://api.metr.app/v1/integrate/sessions/$SESSION_ID/end" \
-H "Content-Type: application/json" \
-H "x-api-key: $METR_MERCHANT_API_KEY" \
-d '{"reason": "fulfillment_complete"}'
For AI-agent-initiated payments (e.g., an agent buying a service on behalf of a user).
Endpoint: POST /v1/agents/sessions/start
Headers:
Content-Type: application/jsonx-api-key: <your-merchant-key>x-agent-key: <your-agent-key>Body:
{
"amount": "5.00",
"currency": "USDC",
"chain": "solana",
"agentId": "agent_001",
"metadata": {
"service": "api_call",
"tier": "premium"
}
}
Endpoint: POST /v1/agents/sessions/{sessionId}/end
Headers:
Content-Type: application/jsonx-api-key: <your-merchant-key>x-agent-key: <your-agent-key>Body:
{
"reason": "service_delivered",
"metadata": {}
}
Metr does not expose a direct "claim" API endpoint. Instead:
Settlement = Claim: Ending a session automatically releases the escrowed funds to your configured merchant wallet. The txHash in the end-session response is your on-chain proof.
Withdraw from Dashboard: For bulk withdrawals or moving funds to a different wallet:
Webhook Notifications: Set up a webhook in your Metr dashboard to receive real-time events:
session.settled — funds released to merchant walletwithdrawal.completed — manual withdrawal finished| Chain | Native Token | Stablecoins | Custom Tokens | |-------|-------------|-------------|---------------| | Solana | SOL | USDC | SPL tokens | | Polygon | POL | USDC | ERC-20 tokens | | Base | ETH | USDC | ERC-20 tokens |
Common HTTP status codes from Metr API:
| Code | Meaning | Action |
|------|---------|--------|
| 400 | Bad Request | Check request body schema |
| 401 | Unauthorized | Verify x-api-key is correct |
| 403 | Forbidden | Key lacks permission for this action |
| 404 | Session Not Found | Double-check sessionId |
| 409 | Session Already Ended | Idempotency — session is already settled |
| 422 | Validation Error | Amount too small, unsupported chain, etc. |
| 500 | Internal Error | Retry or contact Metr support |
1. Customer places order on your site
2. You call POST /v1/integrate/sessions/start
3. You redirect customer to paymentUrl
4. Customer pays via Metr checkout
5. You fulfill the order (ship product, run service, etc.)
6. You call POST /v1/integrate/sessions/{id}/end
7. Funds are released to your merchant wallet
8. (Optional) You withdraw from dashboard to cold storage
development
Trust + memory layer for Bankr agents. Write a verifiable behavioral track record (decisions, hallucinations) for free, and check the risk/reputation of any agent or token before moving money — paid over x402 on Base.
tools
Cross-chain token swaps, quotes, portfolio and prices across 14 chains via the Suwappu DEX MCP server. Read-only by default; swap execution is opt-in and gated.
development
Build, inspect, configure, and safely transact with Juicebox V6 projects, terminals, rulesets, hooks, tiered NFTs, Revnets, Croptop, Bendystraw, and omnichain deployments. Use for Juicebox protocol questions, contract addresses or ABIs, project creation, payments, cash-outs, tokenomics, hooks, NFT tiers, cross-chain bridges, loan queries, transaction decoding, and Juicebox app/UI development on Ethereum, Optimism, Base, Arbitrum, or their Sepolia testnets.
tools
LP tokenized stocks onchain — range-LP Coinbase tokenized equities (NVDA, AAPL, GOOGL, META) and AERO/USDC on Aerodrome Slipstream (Base) for trading-fee + AERO emission yield. Use when the user wants to LP stocks or Aerodrome pools on Base, open/recenter/exit a Slipstream position, check pool status, NAV, or yields, get a portfolio overview ("how are my LP positions doing?") with P&L and projected APR, run a manage pass, or set up scheduled/price-triggered LP automations in the Bankr console. Auto-routes every position to the higher-yielding side — staked (AERO emissions) vs unstaked (trading fees) — at entry and re-checks on every manage pass. Bundled node scripts do the chain reads, gate checks, and calldata; writes go via the Bankr arbitrary-transaction flow. NOT for perps, spot trading, or Uniswap.