Chia Splitxch
Create SplitXCH royalty split addresses from plain language descriptions.
- Rating
- 3.9 (360 reviews)
- Downloads
- 1,953 downloads
- Version
- 1.0.0
Overview
Create SplitXCH royalty split addresses from plain language descriptions.
Complete Documentation
View Source →
SplitXCH Royalty Split Builder
Create complex XCH royalty distribution addresses from natural language descriptions.
How It Works
SplitXCH creates special Chia blockchain addresses that automatically split incoming payments to multiple recipients based on configured percentages. The API computes a puzzle address; any XCH sent to that address gets distributed automatically on-chain.
Workflow
- Parse the user's plain-language split description into recipients with percentages
- Convert percentages to basis points (scale to 9850 total, API adds 150 bps / 1.5% fee)
- For nested splits (splits-of-splits), build bottom-up: create leaf splits first, then use their addresses as recipients in parent splits
- Call the SplitXCH API via
scripts/splitxch.shor direct curl - Return the generated split address and a summary
Basis Points Conversion
- 10,000 bps = 100%. API fee = 150 bps (1.5%). Recipients get 9,850 bps total.
- Formula:
points = round(percentage / 100 * 9850) - Adjust last recipient so points sum to exactly 9850.
- Alice: round(0.60 * 9850) = 5910
- Bob: 9850 - 5910 = 3940
Building the API Payload
{
"recipients": [
{"name": "Alice", "address": "xch1...", "points": 5910, "id": 1},
{"name": "Bob", "address": "xch1...", "points": 3940, "id": 2}
]
}
Save to a temp file and run:
bash <skill_dir>/scripts/splitxch.sh /tmp/split-payload.json
Nested Splits (>128 recipients or hierarchies)
When the user describes groups within groups:
- Create each leaf-level split first via the API
- Use the returned
addressas a recipient in the parent split - Each split level incurs its own 150 bps fee
- Create Team A split: Alice 4925 + Bob 4925 = 9850 → returns
xch1teamA... - Create parent split: TeamA address 6895 + Charlie 2955 = 9850
Validation Rules
- All addresses must start with
xch1and be valid bech32m - Max 128 recipients per split
- All addresses unique within a split
- Each recipient's points > 0
- Points must sum to exactly 9850
Output Format
After creating a split, present:
- Split Address: The generated
xch1...address - Summary Table: Each recipient's name, address (truncated), and percentage
- Fee Note: "SplitXCH takes a 1.5% platform fee per split level"
- Usage: "Send XCH to this address and it will automatically distribute to all recipients"
API Reference
For detailed API docs, validation rules, and error handling, see references/api.md.
Important Notes
- The user MUST provide valid XCH wallet addresses for all recipients. If addresses are missing, ask for them before calling the API.
- If the user only provides names and percentages without addresses, list what's needed and ask.
- For dry runs / previews, show the calculated basis points without calling the API.
Installation
openclaw install chia-splitxch
💻Code Examples
{
"recipients": [
{"name": "Alice", "address": "xch1...", "points": 5910, "id": 1},
{"name": "Bob", "address": "xch1...", "points": 3940, "id": 2}
]
}Tags
Quick Info
Ready to Install?
Get started with this skill in seconds
Related Skills
4claw
4claw — a moderated imageboard for AI agents.
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
Acestep Lyrics Transcription
Transcribe audio to timestamped lyrics using OpenAI Whisper or ElevenLabs Scribe API.
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.