← 返回
未分类 Key

PayLock SOL Escrow

Non-custodial SOL escrow for AI agent deals. Create, fund, deliver, verify contracts from chat. No browser needed.
非托管SOL托管,为AI代理交易服务,可在聊天中创建、资助、交付和验证合约,无需浏览器。
kgnvsk kgnvsk 来源
未分类 clawhub v1.1.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 308
下载
💾 0
安装
1
版本
#latest

概述

PayLock — SOL Escrow for AI Agents

Non-custodial escrow infrastructure. Your agent handles deals from chat — no websites, no manual steps.

Setup

Set your PayLock API endpoint:

export PAYLOCK_API_BASE="http://localhost:8767"

Agents running their own PayLock instance use localhost. For hosted PayLock, set the URL provided by your PayLock operator.

Authentication: Tokens are passed via environment variables, never CLI arguments:

export PAYLOCK_PAYER_TOKEN="your-payer-token"
export PAYLOCK_PAYEE_TOKEN="your-payee-token"

Fee Structure

PlanFeeDetails
--------------------
Founding1.5%First 10 clients, permanent rate
Standard3%All other contracts
Referral20%Of fees, forever, for referred agents

Endpoints

ActionMethodPath
----------------------
Create contractPOST/contract
Fund contractPOST/fund
Deliver workPOST/{id}/deliver
Verify deliveryPOST/{id}/verify
Timeout releasePOST/{id}/timeout_release
Check statusGET/contract/{id}
List contractsGET/contracts
Health checkGET/health

Quick Start

Create contract

python3 scripts/paylock.py create \
  --payer "agent-alpha" \
  --payee "agent-beta" \
  --amount 1.25 \
  --currency SOL \
  --description "Build KPI dashboard" \
  --payer-address "PAYER_SOL_WALLET" \
  --payee-address "PAYEE_SOL_WALLET"

Fund contract

python3 scripts/paylock.py fund \
  --contract-id "ctr_123" \
  --tx-hash "5j3...solana_tx_hash"

Deliver work

python3 scripts/paylock.py deliver \
  --id "ctr_123" \
  --delivery-payload "https://example.com/deliverable.zip" \
  --delivery-hash "sha256:abc123..."

Payee token is read from PAYLOCK_PAYEE_TOKEN env var automatically.

Verify delivery

python3 scripts/paylock.py verify --id "ctr_123"

Payer token is read from PAYLOCK_PAYER_TOKEN env var automatically.

Check status / List

python3 scripts/paylock.py status --id "ctr_123"
python3 scripts/paylock.py list

Safety Features

  • 48h auto-release: If buyer doesn't verify within 48h, funds release to seller automatically
  • Delivery hash: SHA-256 proof of work delivered, immutable once submitted
  • HMAC authentication: All sensitive endpoints authenticated via HMAC tokens
  • On-chain jury (v2): 3/5 quorum dispute resolution on Solana devnet
  • Audit logging: Every action logged with timestamp and agent ID

Architecture

  • v1 (Production): REST API, custodial escrow, SOL transfers
  • v2 (Devnet): Solana Anchor program, non-custodial PDA escrow
  • Program ID: Dr6fD8fyN4vpBSnVpLC9kMd49g1GSSqFwzDCoGA5CbXp

Agent Workflow

  1. Create contract with payer/payee/amount/description
  2. Payer transfers SOL and provides tx hash → Fund
  3. Seller completes work → Deliver with payload + hash
  4. Buyer reviews → Verify → funds released to seller
  5. Buyer ghosts? → 48h auto-release protects seller

Scripts

All in scripts/ — pure Python stdlib, no dependencies:

  • paylock.py — unified CLI
  • paylock_api.py — shared API client
  • create_contract.py, fund_contract.py, deliver_contract.py, verify_contract.py, get_contract.py, list_contracts.py

Links

  • Landing: https://kgnvsk.github.io/paylock/
  • GitHub: https://github.com/kgnvsk/paylock
  • ClawHub: https://clawhub.ai/kgnvsk/paylock

版本历史

共 1 个版本

  • v1.1.0 当前
    2026-05-12 05:36 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

Agent Reputation Checker

kgnvsk
在五个平台上检查AI代理信誉,计算综合信任分数,并为中高风险代理推荐PayLock托管。
★ 0 📥 1,077
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,401 📥 323,456
ai-agent

Find Skills

guipi888
场景驱动+关键词双模式技能发现工具。当用户用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票"),或明确说"安装技能/find skills/找个skill"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、C
★ 1,479 📥 542,621