Aptex is a comprehensive Web3 payment and trading ecosystem built on the Aptos blockchain that revolutionizes digital transactions by combining traditional fintech convenience with blockchain innovation and advanced DeFi features. Our platform transforms complex blockchain addresses into user-friendly identifiers while providing advanced financial primitives like Autopay systems, bill splitting, gamified rewards through NFTs, and professional-grade perpetual futures trading powered by Kana Labs.
Built on enterprise-grade infrastructure by Nodit, Aptex ensures lightning-fast blockchain queries, reliable data access, and seamless user experience. The integration of Kana Labs enables traders to access leveraged perpetual futures markets directly from their wallet, creating a unified platform for payments, savings, and trading.
To make blockchain payments as simple as sending a text message while unlocking the full potential of decentralized finance for everyday users - from simple peer-to-peer payments to advanced leveraged trading.
- Human-Readable IDs: Convert complex blockchain addresses to simple
wallet_idandupi_idformats - Secure Key Management: Client-side wallet generation and management
- Multi-Account Support: Manage multiple wallets from a single interface
- QR Code Integration: Easy scanning for quick transactions
- Instant INR conversion to APT in real time and transfer
- Payment request system with approval/rejection workflow
- Transaction history with detailed analytics
- Cross-border remittances support
- Custom Split Amounts: Define individual amounts for each participant
- Automatic Request Generation: Creates individual payment requests for all participants
- Real-time Tracking: Monitor payment status from all participants
- Flexible Distribution: Support for unequal splits based on consumption
- On-Chain Credit Agreements: Trustless autopay contracts between users and companies
- Auto-Pay Mechanism: Pre-deposit funds for automatic monthly deductions
- Payment Scheduling: Enforced due dates with early payment protection
- Transparent Terms: All agreement terms stored on-chain
- Default Protection: Built-in safeguards against payment defaults
Progressive tier system based on transaction activity:
- Bronze (1+ transactions): Entry-level rewards
- Silver (10+ transactions): Enhanced benefits
- Gold (50+ transactions): Premium perks
- Platinum (100+ transactions): VIP status
- Diamond (250+ transactions): Ultimate tier
- Company-Created Templates: Businesses can create promotional offers
- Automated Distribution: Random rewards after transactions
- Expiration Management: Time-bound validity for urgency
- Transferable Assets: Trade and gift coupon NFTs
- Real-world Integration: Redeem for actual products/services
- Transaction Analytics: Detailed spending patterns and trends
- Portfolio Tracking: Real-time balance monitoring across accounts
- Reward Tracking: Monitor loyalty progress and earned benefits
- Export Functionality: Download transaction history as Excel files
- Leveraged Trading: Trade crypto perps with up to 125x leverage
- Real-time Markets: Access live perpetual futures markets on Aptos
- Advanced Order Types: Market orders, limit orders, stop-loss, and take-profit
- Position Management: Track and manage open positions with live P&L
- Risk Indicators: Real-time liquidation prices and margin utilization
- Trading History: Complete history of all trades and positions
- Market Analytics: 24h volume, price changes, funding rates, and open interest
- Combined Holdings: View spot and perps positions in one place
- Unrealized P&L: Real-time profit/loss tracking for open positions
- Risk Management: Monitor margin requirements and liquidation risks
- Performance Metrics: Track trading performance over time
- Enhanced Balance Fetching: Fast and reliable account balance queries
- Transaction History: Comprehensive transaction data with filtering
- Token Metadata: Detailed token information, logos, and prices
- Multi-token Support: Track all tokens and assets in one call
- Account Resources: Access complete on-chain account data
- Historical Data: Access blockchain state at any point in time
- Batch Queries: Efficient multi-data point retrieval
- Smart Filtering: Advanced search and filter capabilities
- Analytics Ready: Data optimized for analytics and reporting
- High Availability: 99.9% uptime guarantee
- Low Latency: Sub-second response times for blockchain queries
- Scalability: Handle high-volume requests without rate limiting issues
- Reliability: Enterprise-grade infrastructure for production applications
frontend/
βββ src/
β βββ components/ # Reusable UI components
β β βββ perps/ # Perpetual futures trading components
β β β βββ PerpsTradingSection.tsx
β β β βββ PerpsMarketsList.tsx
β β β βββ PerpsTradingPanel.tsx
β β β βββ PerpsPositionsManager.tsx
β β β βββ PerpsPortfolioOverview.tsx
β β βββ ... # Other UI components
β βββ pages/ # Main application pages
β βββ contexts/ # React context providers
β βββ services/ # External API integrations
β β βββ nodit/ # Nodit blockchain infrastructure
β β β βββ noditClient.ts
β β β βββ accountService.ts
β β β βββ tokenService.ts
β β βββ kana/ # Kana Labs perps trading
β β βββ kanaClient.ts
β β βββ perpsService.ts
β βββ utils/ # Utility functions
β βββ hooks/ # Custom React hooks
βββ public/ # Static assets
βββ package.json # Dependencies and scripts
contract/
βββ sources/
β βββ wallet_system.move # Main contract implementation
βββ tests/
β βββ wallet_tests.move # Comprehensive test suite
βββ Move.toml # Project configuration
βββ build/ # Compiled bytecode
struct PaymentRequest has store, drop, copy {
id: u64,
from: address,
to: address,
amount: u64,
message: String,
status: u8,
created_at: u64,
}struct SplitBill has store, drop, copy {
id: u64,
creator: address,
total_amount: u64,
description: String,
splits: vector<SplitEntry>,
created_at: u64,
}struct EmiAgreement has store, drop {
id: u64,
user: address,
company: address,
total_amount: u64,
monthly_amount: u64,
months_total: u64,
months_paid: u64,
next_due_date: u64,
status: u8,
auto_pay_approved: bool,
deposited_amount: u64,
}register_wallet_id(): Register human-readable wallet IDregister_upi_id(): Register UPI-style identifierget_address_by_wallet_id(): Resolve wallet ID to blockchain address
create_payment_request(): Create P2P payment requestpay_request(): Process payment requestdirect_transfer(): Instant APT transfer between addresses
create_split_bill(): Initialize bill splitting with custom amountsjoin_split_bill(): Add participants to existing splitpay_split_amount(): Process individual split payments
create_emi_agreement(): Establish EMI contractdeposit_for_auto_pay(): Pre-fund for automatic paymentsprocess_emi_payment(): Execute monthly EMI deductionapprove_auto_pay(): Enable automatic payment collection
mint_loyalty_nft(): Award loyalty tier NFTscreate_coupon_template(): Company creates promotional offersmint_coupon_nft(): Distribute coupon rewardsredeem_coupon(): Use coupon for discounts
- Node.js (v18+)
- npm or yarn
- Aptos CLI
- Git
- Clone Repository
git clone https://github.com/your-username/aptos-risein.git
cd aptos-risein- Frontend Setup
cd frontend
npm install
npm run dev- Smart Contract Deployment
cd contract
aptos init
aptos move compile
aptos move publishCreate .env file in frontend directory:
VITE_APTOS_NODE_URL=https://fullnode.devnet.aptoslabs.com/v1
VITE_APTOS_FAUCET_URL=https://faucet.devnet.aptoslabs.com
VITE_CONTRACT_ADDRESS=your_deployed_contract_address
# Nodit Infrastructure (Optional but recommended for enhanced performance)
VITE_NODIT_API_KEY=your_nodit_api_key
VITE_NODIT_BASE_URL=https://aptos-mainnet.nodit.io
# Kana Labs Perps Trading (Required for trading features)
VITE_KANA_API_URL=https://api.kanalabs.io
VITE_KANA_WS_URL=wss://ws.kanalabs.io- Visit Nodit.io
- Sign up for a free account
- Navigate to API Keys section
- Generate a new API key
- Add to
.envfile asVITE_NODIT_API_KEY
Benefits: Enhanced blockchain data queries, faster balance fetching, comprehensive transaction history
- Visit Kana Labs
- Register for API access
- Generate API credentials
- Add to
.envfile
Features Enabled: Perpetual futures trading, leverage trading, position management
-
Access Trading Section
- Navigate to "Perps Trading" in the dashboard sidebar
- Browse available perpetual futures markets
- View real-time prices, 24h changes, and funding rates
-
Open a Position
- Select a market (e.g., APT-PERP, BTC-PERP)
- Choose Long or Short direction
- Set leverage (1x to 125x)
- Enter position size
- Add optional stop-loss/take-profit levels
- Review and confirm order
-
Manage Positions
- Monitor open positions in the Positions tab
- View real-time P&L and liquidation prices
- Close positions partially or fully
- Adjust stop-loss/take-profit levels
- Track performance metrics
-
Enhanced Balance Viewing
- Real-time balance updates via Nodit API
- Faster load times compared to standard RPC
- Multi-token balance tracking
-
Transaction History
- Comprehensive transaction data
- Advanced filtering by date, amount, and type
- Export functionality for record-keeping
-
Token Information
- Automatic token metadata fetching
- Display token logos and symbols
- Price information and statistics
- Daily Payments: Seamless APT transfers with INR reference
- Group Expenses: Split restaurant bills, travel costs, and shared purchases
- Savings Goals: EMI-based systematic investment plans
- Rewards Collection: Earn and trade loyalty NFTs and coupons
- Trading & Investing: Access perpetual futures markets with leverage
- Portfolio Management: Track all assets and positions in real-time
- Advanced Trading: Use stop-loss/take-profit orders for risk management
- Customer Payments: Accept crypto payments with traditional UX
- Loyalty Programs: Create engaging NFT-based reward systems
- Recurring Billing: Implement subscription models with EMI contracts
- Marketing Campaigns: Distribute promotional NFT coupons
- Trading Infrastructure: Integrate perps trading for advanced users
- Leveraged Trading: Access up to 125x leverage on perpetual futures
- Risk Management: Use advanced order types and position monitoring
- Market Analysis: Real-time data, funding rates, and open interest
- Portfolio Tracking: Combined view of spot and derivative positions
- Performance Analytics: Track trading history and P&L metrics
- Lending Products: Offer EMI-based loans with automated collection
- Remittances: Facilitate cross-border money transfers
- Payment Processing: Integrate blockchain payments into existing systems
- Reward Programs: Launch innovative NFT-based customer engagement
- Trading Services: Provide derivatives trading to customers
- Access Control: Role-based permissions for sensitive operations
- Input Validation: Comprehensive parameter checking
- Overflow Protection: Safe arithmetic operations
- Reentrancy Guards: Protection against recursive calls
- Client-Side Encryption: Sensitive data encrypted before storage
- Secure Key Management: Private keys never leave the browser
- Input Sanitization: Protection against XSS and injection attacks
- HTTPS Enforcement: All communications encrypted in transit
- Core wallet functionality
- Basic P2P payments
- User registration system
- Bill splitting mechanism
- EMI system implementation
- NFT rewards system
- Merchant partnerships
- Advanced analytics
- Perpetual futures trading integration (Kana Labs)
- Enhanced blockchain infrastructure (Nodit)
- Cross-chain bridges
- Additional trading pairs
- B2B payment solutions
- White-label solutions
- Compliance tools
- Institutional trading features
- Aptos Blockchain: High-performance L1 blockchain
- Move Language: Secure smart contract development
- Aptos SDK: Official TypeScript SDK for Aptos integration
- React 18: Modern UI library with hooks
- TypeScript: Type-safe development
- Vite: Fast build tool and dev server
- Tailwind CSS: Utility-first CSS framework
- Radix UI: Accessible component primitives
- Framer Motion: Smooth animations
- React Query: Data fetching and caching
- Recharts: Data visualization
- Provider: Enterprise-grade Aptos blockchain infrastructure
- Features Used:
- Web3 Data API for real-time balance queries
- Enhanced transaction history retrieval
- Token metadata and information services
- Account resource queries
- Benefits:
- 99.9% uptime guarantee
- Sub-second response times
- Reduced load on public RPC nodes
- Advanced query capabilities
- Documentation: Nodit API Docs
- Integration Files:
frontend/src/services/nodit/
- Provider: Leading DeFi derivatives protocol on Aptos
- Features Used:
- Perpetual futures markets access
- Real-time market data and pricing
- Order execution (market, limit, stop orders)
- Position management and tracking
- P&L calculation and risk metrics
- Benefits:
- Up to 125x leverage
- Low latency trading
- Deep liquidity
- Advanced order types
- Documentation: Kana Labs Docs
- Integration Files:
frontend/src/services/kana/
- ESLint: Code linting
- Prettier: Code formatting
- TypeScript: Static type checking
- Zod: Runtime type validation
- React Hook Form: Form management
- Nodit Integration Guide - Complete guide for Nodit API integration
- Perps Trading Integration - Guide for Kana Labs perps trading
- Contract Deployment Guide - Smart contract deployment instructions
- Nodit API: Real-time blockchain data and infrastructure
- Kana Labs API: Perpetual futures trading and market data
- Aptos SDK: Blockchain interaction and transaction signing
- Perps Trading Components:
frontend/src/components/perps/PerpsTradingSection.tsx- Main trading interfacePerpsMarketsList.tsx- Market browserPerpsTradingPanel.tsx- Order placementPerpsPositionsManager.tsx- Position trackingPerpsPortfolioOverview.tsx- Portfolio summary
- Nodit Services:
frontend/src/services/nodit/noditClient.ts- API client configurationaccountService.ts- Account and balance queriestokenService.ts- Token metadata and information
- Kana Services:
frontend/src/services/kana/kanaClient.ts- Trading API clientperpsService.ts- Trading operations and data
We welcome contributions from the community! Please see our Contributing Guidelines for details.
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new features
- Submit a pull request
Built with β€οΈ for the future of payments
Β© 2025 Aptex Wallet. All rights reserved.
