Getting Started with edeXa (Developer Guide)
1. Introduction
Welcome to edeXa! Whether you're building on the Testnet or Mainnet, edeXa offers developers a flexible, fast, and secure blockchain environment for your decentralized applications. Let’s get you started on the right foot.
2. Step-by-Step Guide to Get Started
Step 1: Set Up Your Development Environment
To start developing on edeXa, you'll need a few basic tools:
Install edeXa Wallet (recommended) or MetaMask (or another Ethereum-compatible wallet) to interact with the blockchain.
Set up Remix IDE or your preferred development environment for smart contracts. Open your browser and visit https://remix.ethereum.org/.


Step 2: Connect to edeXa Network
To connect to the edeXa Testnet or Mainnet:
RPC URLs for Testnet & Mainnet:
Testnet: https://testnet.edexa.network/rpc
Mainnet: https://mainnet.edexa.network/rpc You can also visit https://chainlist.org/?search=edexa&testnets=true

Use these URLs to configure your wallet or development tools like Truffle or Hardhat for seamless interaction with the network.
Step 3: Access the edeXa Faucet
Get Testnet EDX tokens for testing your contracts or transactions on Testnet:
Faucet link: edeXa Testnet Faucet

Get tokens to experiment with smart contract interactions or transactions.
Step 4: Start Building Your Smart Contracts
Necessary Preparations: Open your browser and visit Remix IDE.
Click the File Explorer icon in the left navigation bar of Remix.
Click the "+" icon to create a new workspace. Name your workspace (e.g., "edeXaWorkspace").
Create a new
.solsmart contract, and name it something easy to remember likeMyContract.sol.
Basic Operations: In your new
.solsmart contract, importedeXaApp.sol. This will allow your smart contract to inherit fromedeXaAppand access its functionality.For example:
Override the
_edeXaReceivefunction in your smart contract. This is a protected function that will be called when your contract receives a cross-chain message. You can customize this function to define how your contract will handle incoming messages.
Initialize Your Smart Contract: When initializing your smart contract, call the
edeXaAppinitialize function. This function takes two parameters: theadminand the_edeXaGatewayaddress.Example:
Sending Cross-Chain Messages: To send messages or contract calls to other chains, you can use the
_dispatchMessagefunction provided byedeXaApp. This function allows you to send messages to any specified chain or contract.Example:
Estimate Fees: Use the
estimateFeefunction to calculate the fee required to send a cross-chain message. This function takes two parameters: the target chain ID and the gas limit.Example:
3. Resources
edeXa API Documentation
4. Contact & Support
Join the Developer Community: Discord
Submit a Support Request: helpdesk@edexa.com
Explore edeXa Labs: edeXa Labs Innovation Center
Last updated