Getting Started

Getting Started with XDEX Development

Welcome to the XDEX Developer Hub — your starting point for integrating with the XDEX protocol, built on both the Solana and X1 blockchains.

XDEX is a decentralized exchange featuring:

  • An Automated Market Maker (AMM)

  • Jupiter-powered aggregated routing

  • A Swap-to-Earn rewards engine

  • $XDEX staking and vaults

  • Dual-chain support: Solana (live) and X1 (under rollout)

This section helps developers and ecosystem partners connect, integrate, and build on XDEX infrastructure.


🌐 Supported Networks

Chain
Status
RPC Endpoint
Notes

Solana

Live

https://api.mainnet-beta.solana.com

Jupiter aggregation, AMM routing

X1

Testnet

https://rpc.testnet.x1.xyz

Solana-fork chain

💡 For all XDEX smart contracts, the X1 chain is a Solana-compatible runtime, meaning Solana tooling like Anchor, solana-web3.js, and Phantom/Backpack wallets work out of the box.


🧰 Tooling & Requirements

To interact with XDEX, you'll need:

  • A Solana or X1 wallet (e.g., Backpack, Phantom)

  • RPC provider or connection to a local validator

  • Familiarity with:

    • @solana/web3.js or solana-py

    • Anchor framework (for IDL use)

    • SPL Token program and Token-2022 extensions (optional)


📦 Core Repositories (Coming Soon)

Component
Repo (Private/Test)
Description

XDEX_Frontend

github.com/xdex_xyz/frontend

React + Next.js frontend

XDEX_Backend

github.com/xdex_xyz/backend

Indexer, vault accounting, rewards

XDEX_Contract

github.com/xdex_xyz/contracts

AMM, staking, vaults (Solana Anchor)


🔐 Wallets & Signing

XDEX supports all Solana-compatible wallets:

  • Backpack (recommended on X1)

  • Phantom

Transactions are executed client-side and signed directly by the user's wallet — no custody or intermediaries.


💎 Token Standards

  • $XDEX is a Token-2022 mint on Solana

  • Bridged to X1 mainnet using a native bridge (no wrapped assets)

  • Token interactions (swaps, LP, vaults) are 100% on-chain


💠 Key Smart Contract Functions

  • Swap

  • Add/Remove Liquidity

  • Claim Rewards

  • Stake / Unstake $XDEX

  • Claim Vault USDC earnings

Full program IDLs and integration samples available in the IDL Reference section.


⚙️ Integration Use Cases

You can integrate XDEX into your app or protocol to:

  • Route swaps through the AMM or aggregator

  • Let users stake/unstake directly from your dApp

  • Display live liquidity, reward stats, and APR

  • Build custom swap UIs using on-chain pools

Last updated