Quick Start
Create MarsApp Address
Use the command line tool to create a new MarsApp project and obtain a unique address:
relayx-cli createUpon successful creation, you will receive:
📍 MarsApp Unique Address: This is your application's unique identifier on the RelayX Network
🔑 Owner Account: Used for signing operations on the MarsApp
🚀 Master Account: Used for publishing the MarsApp to the network
Generated directory structure:
{RelayAppAddress}.config/
├── config.json # RelayApp configuration file
├── owner.json # Owner account information
├── master.json # Master account information
└── agents/ # Agent account folderAfter creation, a config.json configuration file will be generated in the current directory.
Prepare Frontend Code
Environment requirements:
Node.js 16.0 or higher
Git version control tool
Clone the official template project and start development:
# Clone the template project
git clone https://github.com/RelayX-Protocol/RelayApp-React-Template.git
cd RelayApp-React-Template
# Install dependencies
npm install
# Configure RelayApp address to environment variable
# Replace your_relayapp_address with the RelayApp address created in Step 1
echo "VITE_RELAYAPP_ADDRESS=your_relayapp_address" > .env.production
# Build the frontend application
npm run buildSign and Package
Rename the built frontend files to the MarsApp address, and ensure the .config configuration directory is at the same level as the project folder.
🔔 Important Note: The
relayx-clitool is installed globally, so you only need to execute commands in the working directory that contains both the project folder and configuration folder.
Required Directory Structure:
workspace/
├── 1J7JEhjW1wHhaw1ZtDxAdjuehapRa7og1m/ # RelayApp project folder (frontend build output)
│ ├── index.html
│ ├── assets/
│ └── ...
└── 1J7JEhjW1wHhaw1ZtDxAdjuehapRa7og1m.config/ # Configuration folder
├── config.json
├── owner.json
├── master.json
└── agents/Operation Steps:
# 1. Create working directory
mkdir -p workspace
# 2. Copy the built frontend project to the working directory
cp -r 1J7JEhjW1wHhaw1ZtDxAdjuehapRa7og1m workspace/1J7JEhjW1wHhaw1ZtDxAdjuehapRa7og1m
# 3. Move the configuration directory to the working directory
mv 1J7JEhjW1wHhaw1ZtDxAdjuehapRa7og1m.config workspace/
# 4. Enter the working directory
cd workspace
# 5. Execute signing
relayx-cli signAfter successful signing, you can proceed with the publishing operation.
Apply for Release Certificate
Open the RelayX Certificate application in the RelayX client (such as MarsCat)
Apply for release certificate according to the interface instructions
After obtaining the certificate, import it using the command line:
relayx-cli import --cert "YOUR_CERTIFICATE"📝 Note: The publishing certificate is used to verify your identity, ensuring that only authorized users can publish MarsApp.
📖 View detailed certificate application and management guide →
Test Run
After publishing is complete, you can test the application in the following ways:
Open the RelayX client (such as MarsCat)
Search for your MarsApp address (the address created in Creation step) in the MarsApp list
Download and run the MarsApp for testing
✅ Complete: Congratulations on successfully publishing your first MarsApp!
Further Learning
After completing the development of your first MarsApp, it is recommended to dive deeper into the following content:
relayx-cli Tool Usage Guide →: Gain in-depth understanding of the command-line tool's complete features and advanced usage
RelayX API Detailed Documentation →: Learn about the complete API features and usage methods
Self Service Configuration Guide →: Learn how to deploy and configure backend services
Smart Contract Integration →: Master integration methods with blockchain platforms
If you encounter any issues during development, please refer to the official documentation or seek help through official channels.
Last updated