trustless-work-dev
4
总安装量
4
周安装量
#52394
全站排名
安装命令
npx skills add https://github.com/trustless-work/trustless-work-dev-skill --skill trustless-work-dev
Agent 安装分布
opencode
4
gemini-cli
4
github-copilot
4
codex
4
kimi-cli
4
amp
4
Skill 文档
Trustless Work Development Skill
This skill provides comprehensive guidance for integrating Trustless Work escrow contracts into applications. Use the reference files below for detailed implementation guides.
Quick Start
When working with Trustless Work:
- Understand core concepts – See skills/api/core-concepts.md
- Choose escrow type:
- Single-release: One payment after all milestones – See skills/api/single-release-escrow.md
- Multi-release: Payments per milestone – See skills/api/multi-release-escrow.md
- Configure trustlines – See skills/api/trustlines.md
- Choose integration method:
- REST API: Direct API calls – See skills/api/ folder
- React SDK: Custom hooks for React/Next.js – See skills/react-sdk/react-sdk.md
- Blocks SDK: Pre-built UI components – See skills/blocks/introduction.md
- Implement workflow: Deploy â Fund â Complete â Approve â Release
When to Use This Skill
Apply automatically when:
- Building escrow or milestone-based payment systems
- Integrating Trustless Work API
- Working with Stellar blockchain and Soroban contracts
- Implementing conditional payment workflows
- Handling disputes in payment systems
- Users mention “escrow”, “milestone payments”, “Trustless Work”
Reference Files
REST API Documentation
- skills/api/core-concepts.md – Roles, lifecycle, flags, API authentication
- skills/api/types.md – Complete TypeScript type definitions for all payloads, responses, and errors
- skills/api/single-release-escrow.md – Single-release escrow implementation guide
- skills/api/multi-release-escrow.md – Multi-release escrow implementation guide
- skills/api/trustlines.md – Stellar trustline configuration
React SDK Documentation
- skills/react-sdk/react-sdk.md – React SDK overview and quick reference
- skills/react-sdk/hooks-reference.md – Complete detailed documentation for all hooks (
useInitializeEscrow,useFundEscrow,useApproveMilestone,useReleaseFunds,useStartDispute,useResolveDispute,useUpdateEscrow,useChangeMilestoneStatus,useWithdrawRemainingFunds,useSendTransaction) with full examples - skills/react-sdk/vibe-coding.md – Single-file AI context guide with global rules, implementation prompts, and step-by-step feature guides (essential for AI workflows)
Blocks SDK Documentation
- skills/blocks/introduction.md – Blocks SDK overview and installation
- skills/blocks/vibe-coding.md – Single-file AI context guide (essential for AI workflows)
- skills/blocks/components.md – Available UI components
- skills/blocks/providers.md – Provider setup and context API
- skills/blocks/hooks.md – TanStack Query hooks
API Base URL
Production: https://api.trustlesswork.com
All endpoints require: x-api-key: YOUR_API_KEY header
Common Transaction Flow
- Call API endpoint â Get unsigned XDR transaction
- Sign with wallet â Create signed XDR
- Submit via
/helper/send-transactionâ Broadcast to Stellar - Verify on-chain â Query with
validateOnChain=true
Resources
- Documentation: Use
mcp_trustlesswork_searchDocumentationtool - Dashboard: https://dapp.trustlesswork.com/dashboard
- Blocks Playground: https://blocks.trustlesswork.com/blocks
- Stellar Docs: https://developers.stellar.org/
- Soroban Docs: https://soroban.stellar.org/docs