edeXa Docs
  • Welcome
  • Getting Started
    • Network Information
    • edeXa Mainnet/Testnet
  • edeXa Faucets
  • Smart Contract Execution & Access
  • EDX Validator Framework & Node Ecosystem
  • Gas Fee Structure on edeXa
  • Basics
    • Getting Started with edeXa (Developer Guide)
    • edeXa Cross chain Bridge
    • edeXa EDX COIN
    • edeXa Web3 Wallet Integration
    • EDX Integrations plugins B2B
    • edeXa OpenAPI
    • FAQ
Powered by GitBook
On this page
  • Key Features
  • Prerequisites
  • Installation & Setup
  • Wallet Features
  • Cross-Chain Interactions
  • Transaction Fees
  • Developer Resources
  • FAQs
  1. Basics

edeXa Web3 Wallet Integration

edeXa Wallet allows users to securely interact with the edeXa Blockchain, managing their EDX tokens, performing transactions, and interacting with decentralized applications (dApps). Through the integration of Reown's open-source SDKs, the wallet provides high-performance, scalable, and customizable Web3 functionalities.

Key Features

  • EDX Token Management: Send, receive, and manage EDX tokens within the wallet.

  • Seamless Integration: Built with Reown SDKs for easy connection to the edeXa mainnet and testnet.

  • User Authentication: Secure login and interaction with blockchain-based applications.

  • Cross-Chain Interactions: Manage and interact with assets across multiple chains supported by edeXa's native bridge.

  • Secure Transactions: Built-in encryption and signing capabilities to ensure secure transactions for both testnet and mainnet environments.

  • Open Source: Reown SDKs and integration tools are open-source, allowing for customization and community-driven development.


Prerequisites

Before starting the integration, make sure you have:

  • edeXa Wallet UI available: edeXa Wallet

  • Reown SDK installed and configured in your project.

  • Access to edeXa Mainnet and Testnet endpoints.

  • Familiarity with Ethereum-compatible Web3 tools (Solidity, EVM).


Installation & Setup

1. Install Reown SDK

To integrate edeXa Wallet in your project, you will first need to install the Reown SDK. You can install it via npm:

bashCopyEditnpm install reown-sdk

2. Configure the Wallet Provider

Once the SDK is installed, you can configure the wallet provider. Here’s an example of how you can do it:

javascriptCopyEditimport ReownSDK from 'reown-sdk';

const reown = new ReownSDK({
  network: 'mainnet', // or 'testnet'
  rpcUrl: 'https://mainnet.edexa.network/rpc', // Mainnet RPC URL
  walletUrl: 'https://wallet.work.edexa.io/', // edeXa Wallet URL
});

reown.connect(); // Connect the wallet

This will set up the connection to the edeXa Wallet and allow you to interact with the blockchain via Reown's Web3 interface.


Wallet Features

Sending EDX Tokens

To send EDX tokens from the wallet, you can use the following example:

javascriptCopyEditconst transaction = {
  from: 'sender_address',
  to: 'receiver_address',
  value: 'amount_in_wei',
};

reown.sendTransaction(transaction)
  .then(response => {
    console.log('Transaction Successful', response);
  })
  .catch(error => {
    console.error('Transaction Failed', error);
  });

This method will trigger a transaction where the sender_address sends tokens to receiver_address. The wallet will automatically handle the signing and confirmation.


Managing Account Balance

To check the balance of a wallet:

javascriptCopyEditreown.getBalance('user_address')
  .then(balance => {
    console.log('Current Balance:', balance);
  })
  .catch(error => {
    console.error('Error Fetching Balance', error);
  });

Cross-Chain Interactions

The edeXa Wallet integrates seamlessly with edeXa's Cross-Chain Bridge for asset transfers. If you are using the wallet for cross-chain transactions, you can call the following APIs to move assets between different blockchains:

javascriptCopyEditreown.crossChainTransfer({
  fromChain: 'Ethereum',
  toChain: 'Polygon',
  amount: '1000000000000000000', // amount in wei
  token: 'EDX',
})
  .then(response => {
    console.log('Cross-chain Transfer Successful', response);
  })
  .catch(error => {
    console.error('Error in Cross-chain Transfer', error);
  });
  

Transaction Fees

The edeXa Wallet operates with a gas fee structure, typical to EVM-based networks. The fees can vary depending on network congestion, but are generally lower than traditional Ethereum transactions. For the most current gas fees, you can check the edeXa Gas Tracker.


Developer Resources

For more advanced integration options and to explore the full capabilities of edeXa Wallet and Reown SDKs, refer to the following resources:

  • GitHub Repos: edeXa Token Repository

  • edeXa Explorer: edeXa Mainnet Explorer

  • Reown SDK Docs: Reown SDK Documentation


FAQs

How can I customize the edeXa Wallet?

The wallet is open-source and built using Reown SDKs. Developers are welcome to customize the user interface and extend the wallet’s functionality by modifying the source code.

Is there a fee to use the wallet?

There are no fees to use the edeXa Wallet itself. However, normal network gas fees apply when sending transactions on the edeXa blockchain.

What networks are supported by the wallet?

The wallet supports edeXa Mainnet, Testnet, and any cross-chain assets that are supported through the edeXa Bridge.

PreviousedeXa EDX COINNextEDX Integrations plugins B2B

Last updated 23 days ago

Page cover image