Eterna — Trade Bitcoin Perpetuals, Decentralized and Unstoppable
Eterna - Decentralized Perpetual Futures Trading Platform
A decentralized perpetual futures trading platform built on RootStock, enabling high-leverage Bitcoin trading with native rBTC collateral. Eterna provides a complete trading experience with automated order matching, real-time price feeds, and seamless wallet integration.
Features Core Trading Features
Order Matching System The platform features an automated order matching engine that runs periodically, matches orders based on price and slippage tolerance, executes trades on-chain, updates order status to FILLED or PARTIALLY_FILLED, and records trades with transaction details.
Built with ❤️ for the RootStock ecosystem
Eterna – Decentralized Perpetual Futures Trading Platform
Overview: Eterna is a decentralized perpetual futures trading platform on RootStock, enabling high-leverage Bitcoin trading with native rBTC collateral. It provides a full trading experience with automated order matching, real-time price feeds, and seamless wallet integration.
Features: Core Trading Features:
Technical Features:
Tech Stack: Frontend: Next.js 14, TypeScript, Tailwind CSS, Radix UI + shadcn/ui, Recharts, Ethers.js Backend: Node.js, Express.js, PostgreSQL, pg driver, Ethers.js, node-cron Smart Contracts: Solidity ^0.8.19, RootStock Testnet, supports rBTC deposits, transfers, and bulk operations
Quick Start: Prerequisites: Node.js 18+, PostgreSQL 12+, Git, MetaMask or compatible wallet
Clone the Repository: git clone https://github.com/0xmkar/Eterna/ cd ddex
Backend Setup: cd backend npm install cp env.template .env # Edit .env with your config
npm run dev
Frontend Setup: cd FE npm install npm run dev
Smart Contract Deployment:
Order Matching System:
Flow: Cron Job ──▶ Order Matching Algorithm ──▶ Smart Contract (bulkTransfer) │ ▼ Database (Update Orders & Record Trades)
API Endpoints: Users API:
Orders API:
Order Matching API:
License: MIT License – see LICENSE
Built with ❤️ for the RootStock ecosystem

