Getting Started
Welcome to CXDE! This guide will help you start building on the XRP Ledger.
What is CXDE?
CXDE is a cloud-based development environment designed specifically for XRP Ledger development. It combines three powerful tools:
- AI Assistant - Powered by Claude AI to help you write code
- Code Editor - Professional Monaco editor (same as VS Code)
- Terminal - Isolated Docker environment for testing code
Quick Start (5 Steps)
AI Assistant
The AI assistant is your coding partner. It understands XRP Ledger development and can help you build faster.
What Can It Do?
- Generate complete code files for your project
- Explain how XRP Ledger features work
- Fix bugs and errors in your code
- Answer questions about xrpl.js library
- Suggest best practices for XRPL development
How to Use It
The AI chat is located on the right side of the coding interface. Simply type your question or request and press Enter.
Example Prompts
Generate code:
"Create a script that sends 10 XRP from one wallet to another"
Get explanations:
"How do payment channels work on XRP Ledger?"
Fix errors:
"I'm getting 'tecNO_DST' error, what does this mean?"
Auto-File Creation
When the AI generates code with a filename comment (like // server.js), it automatically creates the file in your project. You don't need to manually copy and paste.
Code Editor
The code editor is based on Monaco (the same engine that powers VS Code). It supports all the features you'd expect from a modern editor.
Features
- Syntax Highlighting - Color-coded JavaScript, HTML, CSS, JSON
- Autocomplete - Smart suggestions as you type
- Error Detection - Red underlines for syntax errors
- Multi-file Editing - Switch between files easily
- Search & Replace - Find text across your project
Keyboard Shortcuts
- Ctrl/Cmd + S - Save file
- Ctrl/Cmd + F - Find in file
- Ctrl/Cmd + / - Comment/uncomment line
- Ctrl/Cmd + D - Duplicate line
- Alt + ↑/↓ - Move line up/down
File Management
Use the file explorer on the left to:
- Create new files (click "+ File" button)
- Delete files (right-click on file name)
- Rename files (right-click on file name)
- Organize files in folders
Terminal
The terminal provides an isolated environment where you can run your Node.js code safely.
How It Works
When you create a terminal session:
- A Docker container is created with Node.js installed
- Your project files are copied into the container
- The xrpl.js library is pre-installed
- You get a 10-minute session to test your code
Running Code
There are two ways to run your code:
Method 1: Quick Run Buttons
Click the "▶ Run (Testnet)" or "▶ Run (Mainnet)" buttons at the top. This runs your current file.
Method 2: Terminal Commands
Type commands directly in the terminal:
node index.js
node payment-sender.js
npm install some-package
Pre-installed Tools
- Node.js - JavaScript runtime
- npm - Package manager
- xrpl - XRP Ledger JavaScript library
- axios - HTTP client
- dotenv - Environment variables
Network Selection
You can test on two networks:
- Testnet - Free test XRP, safe for development
- Mainnet - Real XRP, use for production deployment
Projects
Projects help you organize your code into separate applications.
Creating a Project
- Click the "+ New Project" button in the top navigation
- Enter a name for your project
- Your project is created with empty file structure
Switching Projects
Use the dropdown menu at the top to switch between projects. All your files are saved automatically.
Downloading Projects
Click the "📥 Download" button to download your entire project as a ZIP file. This includes:
- All code files (.js, .html, .css, etc.)
- Configuration files (package.json, etc.)
- Folder structure
You can then open this on your local computer with any code editor.
Project Limits
You can create unlimited projects. There's no limit on the number of files or project size.
XRP Ledger Development
CXDE is optimized for building on the XRP Ledger. Here's what you can do:
Common Use Cases
1. Sending Payments
Send XRP from one wallet to another:
const { Client, Wallet } = require('xrpl')
// Ask AI: "Create a script to send 10 XRP"
2. Creating Trust Lines
Allow accounts to hold custom tokens:
// Ask AI: "How do I create a trust line?"
3. NFT Operations
Mint, buy, sell NFTs on XRP Ledger:
// Ask AI: "Show me how to mint an NFT"
4. DEX Trading
Place orders on the decentralized exchange:
// Ask AI: "Create an order on the DEX"
Testing on Testnet
Always test on testnet first:
- Get a testnet wallet from the XRP Ledger Testnet Faucet
- Use testnet endpoints:
wss://s.altnet.rippletest.net:51233 - Test all functionality with free test XRP
- Once working, switch to mainnet
Useful Resources
Payment & Subscription
CXDE uses a simple, transparent subscription model.
Pricing
- Starter (Haiku): 9 XRP · 1M Claude Haiku tokens · Solo builders
- Pro (Sonnet Mix): 30 XRP · 2.5M tokens (2M Sonnet + 0.5M Haiku) · Unlimited projects
- Scale (Sonnet + Opus): 69 XRP · 5M tokens (4M Sonnet + 1M Opus) · Dedicated support
- Duration: 30 days from payment date
How to Subscribe
- Connect your Xaman wallet
- Click "Subscribe Now" and pick a plan (9 / 30 / 69 XRP)
- Open payment request in Xaman app
- Confirm the payment for your selected plan
- Wait 2-5 minutes for confirmation
- Subscription activates automatically
Payment Address
All payments go to our XRP Ledger address. The system automatically detects your payment and activates your subscription.
Renewal
Subscriptions are NOT automatic. When your 30 days expire:
- You lose access to the platform
- Your projects and code remain saved
- Simply pay again to reactivate
- No penalties or cancellation fees
Refunds
Due to the instant nature of blockchain payments, we cannot process refunds. Please test on testnet before subscribing if you're unsure.
Token Usage
Tokens measure how much AI processing you use. Every message to the AI assistant uses tokens.
Understanding Tokens
- 1 token ≈ 0.75 words in English
- 1,000,000 tokens ≈ 750,000 words (Starter allotment)
- Code uses more tokens than plain text
- Longer messages use more tokens
How Many Tokens Do I Need?
Example usage for common tasks:
- Simple question: 50-200 tokens
- Generate a code file: 500-2000 tokens
- Explain a concept: 300-1000 tokens
- Debug code: 400-1500 tokens
Most builders sit between 500,000 and 3,000,000 tokens per month. Starter covers prototypes, Pro handles daily builds, and Scale is overkill unless you have multiple active projects.
Checking Your Usage
Your token balance is displayed at the top of the screen. It shows:
- Tokens used this month
- Tokens remaining
- Reset date
What Happens When Tokens Run Out?
If you use all tokens included in your plan:
- The AI assistant stops responding
- Code editor continues working
- Terminal continues working
- Projects remain accessible
- Tokens reset next month with your subscription
Tips to Save Tokens
- Ask specific questions instead of open-ended ones
- Use the code editor for small edits
- Don't send entire files to AI (just the relevant part)
- Clear conversation history when starting new topics