Skip to content

V1

Choose a tag to compare

@xpistellar xpistellar released this 23 Oct 02:13
· 17 commits to main since this release
7871ef3

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 -v

Step 2: Create project folder

mkdir ~/xpi-staking
cd ~/xpi-staking

Download 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-sdk

Step 4: Run the tool

node stake-claim.js

You will be asked for your Stellar secret key (starts with S...).

Menu:

  1. Stake XLM (minimum 31.4)
  2. Unstake XLM (press Enter or type 0 to unstake all)
  3. Claim XPi rewards
  4. View current stake
  5. View pending rewards
  6. 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

  1. Download XPi-Staking-mining.apk from the Releases page of this repository.
  2. Open the APK file on your phone.
  3. Allow installation if prompted.
  4. Open the app.
  5. Create a new wallet or import your existing secret key.
  6. 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 -version

Step 2: Install Android Studio

  1. Download from: https://developer.android.com/studio
  2. Extract and run:
tar -xzf android-studio-*.tar.gz
sudo mv android-studio /opt/
/opt/android-studio/bin/studio.sh
  1. 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-android

Step 4: Open in Android Studio

  1. Open Android Studio → Open → select the xpi-android folder.
  2. Wait for Gradle sync to finish.

Step 5: Build APK

  1. Build → Build Bundle(s) / APK(s) → Build APK(s)
  2. 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

  1. Extract the zip file.
  2. You will get a folder named node-v22.23.4-win-x64.
  3. 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

  1. Open the XPi-Staking-Portable folder.
  2. Click on the Address bar at the top.
  3. Type cmd and press Enter.

A Command Prompt window will open directly in this folder.

  1. 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.
pause

2. How to Use

Method 1 (Recommended)

Double-click the file run.bat

Method 2

  1. Open the folder.
  2. Click the Address bar → type cmd → press Enter.
  3. Run:
node stake-claim.js

Notes

  • You only need to run npm install one 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

  1. Download and extract the xpi-staking-web folder.
  2. Upload the entire folder to your web hosting (or place it in your local web server directory).
  3. Open the site in your browser:
    • Example: https://yourdomain.com/xpi-staking-web/
    • Or locally: http://localhost/xpi-staking-web/

How to Use

  1. Open the page in your browser.
  2. Paste your Stellar Private Key (starts with S...).
  3. 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
  4. 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