返回顶部
c

catallax交互经济

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
962
下载量
免费
免费
2
收藏
概述
安装方式
版本历史

catallax

Catallax Skill

Interact with Catallax — a decentralized contract work protocol on Nostr using Lightning/Cashu payments and trusted escrow arbiters.

Protocol Overview

Read references/NIP-3400.md for the full spec. Key concepts:

  • - Patron: Creates tasks, funds escrow, assigns workers
  • Arbiter: Escrow agent who judges work and handles payment
  • Free Agent: Applies for tasks, delivers work, gets paid
  • Kinds: 33400 (arbiter service), 33401 (task proposal), 3402 (task conclusion)
  • Status flow: proposed → funded → in_progress → submitted → concluded

Querying Tasks

Use nak to query kind 33401 events from relays:

CODEBLOCK0

Parse the content field as JSON to get title, description, requirements. Parse tags for amount, status, categories.

Display Format

When presenting tasks to the user, show:

  • - Title (from content.title)
  • Bounty (from amount tag, in sats — show "?" if missing)
  • Status (from status tag)
  • Date (from created_at)
  • Categories (from t tags)
  • Description (from content.description, truncated)
  • Funding type (from funding_type tag: "patron" or "crowdfunding")

Querying Arbiters

CODEBLOCK1

Parse content for name, about, policy. Parse tags for feetype, feeamount, min/max amounts, categories.

Display Format

When presenting arbiters:

  • - Name (from content.name)
  • Fee (feetype + feeamount — e.g. "5%" or "1000 sats flat")
  • Min/Max (from minamount/maxamount tags)
  • Categories (from t tags)
  • About (from content.about)

Creating a Task Proposal

To create a task as a Patron, publish a kind 33401 event:

CODEBLOCK2

Generate the d-tag slug from the title (lowercase, hyphenated, with random suffix for uniqueness).

Important: The content field must be valid JSON with title, description, and optionally requirements and deadline.

Updating Task Status

Since kind 33401 is addressable replaceable, publish a new event with the same d-tag to update. Include all original tags plus changes:

CODEBLOCK3

Submitting Work (as Free Agent)

Work delivery is coordinated out-of-band per the protocol. However, agents may use kind 951 (work delivery) as a convention:

CODEBLOCK4

Task Conclusion (Arbiter only)

CODEBLOCK5

Common Queries

User saysAction
"find bounties" / "show tasks"Query kind 33401, filter status=proposed or funded
"create a task" / "post a bounty"
Build and publish kind 33401 | | "find arbiters" | Query kind 33400 | | "submit work" / "deliver" | Publish kind 951 referencing the task | | "check my tasks" | Query kind 33401 filtered by user's pubkey in p-tags | | "what's the status" | Fetch specific task by d-tag, report status |

Reference Client

For visual browsing: https://catallax-reference-client.netlify.app/catallax

Key Relays

Query multiple relays for best coverage:

  • - wss://relay.damus.io
  • wss://nos.lol
  • wss://relay.primal.net

Note: Some relays may not return results for nak req -k 33401 due to kind filtering. If nak returns empty results, fall back to a WebSocket script approach — open a WebSocket connection, send a REQ with {"kinds":[33401],"limit":50}, and collect EVENT responses until EOSE.

Edge Cases

  • - Missing amount tag: Some tasks use crowdfunding (funding_type=crowdfunding) with a NIP-75 goal tag instead of a fixed amount. Display bounty as "crowdfunded" in this case.
  • Content format: Content should be JSON but some early tasks used plain text. Try JSON.parse first, fall back to treating content as description.
  • Stale tasks: Tasks with status=proposed older than 30 days may be abandoned. Note age when displaying.
  • Multiple relays: Always publish to 3+ relays for discoverability. Query from multiple relays and deduplicate by event id.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 catallax-1776419963 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 catallax-1776419963 技能

通过命令行安装

skillhub install catallax-1776419963

下载

⬇ 下载 catallax v1.0.0(免费)

文件大小: 4.36 KB | 发布时间: 2026-4-17 20:11

v1.0.0 最新 2026-4-17 20:11
Initial release of the Catallax skill for decentralized contract work on Nostr.

- Supports browsing, filtering, and displaying open tasks/bounties and arbiter services.
- Allows users to create task proposals, submit work, update status, and conclude tasks via protocol events.
- Handles querying multiple relays, parsing tags/content, and key protocol edge cases.
- Provides clear output formats for both tasks and arbiters.
- Follows NIP-3400 and associated kind conventions for contract workflow.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部