Repository navigation
V1
XPi Staking Tools
Stake XLM on the Stellar network to earn XPi through a Soroban smart contract.
- Contract ID:
CDQ4OO3FU3CBNVWZX2GDU4BQQNQFAHBITTXULTVIECY4OMJGTM33M73H - Minimum stake: 31.4 XLM
- Approximate reward: ~0.0000003 XPi per day per 31.4 XLM (scales roughly linearly)
- Users keep full control of their private keys
1. Node.js CLI Tool (Ubuntu)
A simple command-line tool to stake, unstake, claim rewards, and check your balance.
Requirements
- Ubuntu 20.04 or newer
- Internet connection
Step 1: Install Node.js
sudo apt update
sudo apt install -y curl
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt install -y nodejs
node -v
npm -vStep 2: Create project folder
mkdir ~/xpi-staking
cd ~/xpi-stakingDownload or create the file stake-claim.js and paste the Node.js staking script into it.
Step 3: Install dependencies
npm init -y
npm install @stellar/stellar-sdkStep 4: Run the tool
node stake-claim.jsYou will be asked for your Stellar secret key (starts with S...).
Menu:
- Stake XLM (minimum 31.4)
- Unstake XLM (press Enter or type
0to unstake all) - Claim XPi rewards
- View current stake
- View pending rewards
- Exit
Important
- Never share your secret key.
- Make sure your account has enough XLM for the stake + network fees.
- You can unstake at any time.
2. Android App – Direct Install (APK)
Requirements
- Android 8.0 or higher
- Allow installation from unknown sources
Installation
- Download
XPi-Staking-mining.apkfrom the Releases page of this repository. - Open the APK file on your phone.
- Allow installation if prompted.
- Open the app.
- Create a new wallet or import your existing secret key.
- Stake XLM (minimum 31.4) and claim rewards inside the app.
Security
- Only download the APK from the official GitHub Releases.
- Back up your secret key offline.
- The developers never hold your private keys.
3. Build the Android App from Source (Ubuntu + Android Studio)
Requirements
- Ubuntu 22.04 or newer
- At least 8 GB RAM
- ~15 GB free disk space
Step 1: Install Java
sudo apt update
sudo apt install -y openjdk-17-jdk git unzip wget
java -versionStep 2: Install Android Studio
- Download from: https://developer.android.com/studio
- Extract and run:
tar -xzf android-studio-*.tar.gz
sudo mv android-studio /opt/
/opt/android-studio/bin/studio.sh- Complete the setup wizard and install:
- Android SDK
- Android SDK Platform (API 34+)
- Android SDK Build-Tools
Step 3: Get the source
unzip app.zip -d xpi-android
cd xpi-androidStep 4: Open in Android Studio
- Open Android Studio → Open → select the
xpi-androidfolder. - Wait for Gradle sync to finish.
Step 5: Build APK
- Build → Build Bundle(s) / APK(s) → Build APK(s)
- Find the APK at:
app/build/outputs/apk/debug/app-debug.apk
Step 6: Install
Transfer the APK to your phone and install it, or connect the phone via USB and click Run in Android Studio.
Reward Table
| Staked XLM | Approx. XPi / day |
|---|---|
| 31.4 | 0.0000003 |
| 314 | 0.0000031 |
| 3,140 | 0.000031 |
| 31,400 | 0.00031 |
Disclaimer
Use at your own risk. Only stake what you can afford. Always verify the contract ID on Stellar Expert before interacting.
XPi Lock Staking - Portable Windows Guide
1. Prepare the Portable Folder (only need to do once)
Step 1: Download full Node.js
Download the official Windows zip (not the installer):
👉 https://nodejs.org/dist/v22.23.4/node-v22.23.4-win-x64.zip
Step 2: Extract and rename
- Extract the zip file.
- You will get a folder named
node-v22.23.4-win-x64. - Rename that folder to
XPi-Staking-Portable.
Step 3: Copy required files
Copy these 2 files into the XPi-Staking-Portable folder:
stake-claim.js(the staking script)package.json(with the content below)
package.json content:
{
"name": "xpi-staking",
"version": "1.0.0",
"main": "stake-claim.js",
"dependencies": {
"@stellar/stellar-sdk": "^14.0.0"
}
}Step 4: Install dependencies
- Open the
XPi-Staking-Portablefolder. - Click on the Address bar at the top.
- Type
cmdand press Enter.
A Command Prompt window will open directly in this folder.
- Run the following command:
npm install
Wait until you see the message added ... packages. This only needs to be done once.
Step 5: Create run.bat (optional but recommended)
Create a new file named run.bat in the same folder with this content:
@echo off
cd /d "%~dp0"
title XPi Lock Staking - Portable
echo.
echo ========================================
echo XPi Lock Staking (Portable)
echo Min stake: 31.4 XLM
echo ========================================
echo.
node.exe stake-claim.js
echo.
pause2. How to Use
Method 1 (Recommended)
Double-click the file run.bat
Method 2
- Open the folder.
- Click the Address bar → type
cmd→ press Enter. - Run:
node stake-claim.js
Notes
- You only need to run
npm installone time. - After that, you can copy the entire folder to any other Windows computer and run it without installing Node.js.
- Your private key is only used locally on your machine.
XPi Lock Staking - Web Version Guide
Overview
This is a browser-based version of the XPi Lock Staking tool.
All operations (Stake / Unstake / Claim / View) run entirely in your browser.
Your private key never leaves your computer.
Requirements
- Any modern browser (Chrome, Edge, Firefox, Safari…)
- Internet connection (to call Stellar Horizon & Soroban RPC)
- A web server or local server to host the files (PHP, Apache, Nginx, or even simple static hosting)
How to Deploy
- Download and extract the
xpi-staking-webfolder. - Upload the entire folder to your web hosting (or place it in your local web server directory).
- Open the site in your browser:
- Example:
https://yourdomain.com/xpi-staking-web/ - Or locally:
http://localhost/xpi-staking-web/
- Example:
How to Use
- Open the page in your browser.
- Paste your Stellar Private Key (starts with
S...). - Choose an action:
- Stake XLM → enter amount (minimum 31.4 XLM)
- Unstake → enter amount or leave empty/0 to unstake all
- Claim → claim pending rewards
- View get_stake → check current stake
- View pending → check estimated rewards
- Confirm the action and wait for the result in the log panel.
Folder Structure
xpi-staking-web/
├── index.php ← Main page
├── lib/
│ └── stellar-sdk.min.js ← Full Stellar SDK (local, no CDN)
├── css/
│ └── style.css
├── js/
│ └── app.js ← All staking logic
└── README.md
Important Notes
- No data is stored on the server.
- Private key is only used inside your browser.
- You still need internet access to communicate with the Stellar network.
- For maximum security, only use this tool on a trusted personal device.
Full Changelog: https://github.com/xpistellar/xpi-stellar-mining/commits/V1