multiversx-dapp-frontend

Integrate React frontends with MultiversX blockchain for wallet and transaction handling.

12|5|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/multiversx/mx-ai-skills --skill multiversx-dapp-frontend
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: multiversx-dapp-frontend
Source: https://github.com/multiversx/mx-ai-skills/tree/main/skills/multiversx-dapp-frontend
Command: npx skills add https://github.com/multiversx/mx-ai-skills --skill multiversx-dapp-frontend

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the integration of React applications with the MultiversX blockchain, enabling seamless wallet connections, transaction management, and smart contract interactions for dApp development.

Core Features & Use Cases

  • Wallet Integration: Connect to various MultiversX wallets (xPortal, DeFi Wallet, etc.) using UnlockPanelManager.
  • Authentication Management: Utilize hooks like useGetIsLoggedIn and useGetAccount to manage user login status and display account information.
  • Transaction Handling: Send EGLD and ESDT transfers, and interact with smart contracts using SDK-dapp utilities.
  • Protected Routes: Implement authentication guards for secure dApp pages.
  • Use Case: Develop a decentralized exchange (DEX) frontend where users can connect their wallets, view their balances, and execute token swaps by interacting with a smart contract.

Quick Start

Integrate the MultiversX SDK-dapp into your React application by calling initApp() in src/main.tsx before rendering your root component.

Frequently Asked Questions about multiversx-dapp-frontend

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect a MultiversX wallet in a React dApp?

Connect MultiversX wallets in React by integrating the UnlockPanelManager from the SDK to support xPortal and DeFi Wallet. This component handles the connection interface and user authentication flow.

What is the best way to manage user login state for a MultiversX blockchain app?

The best way to manage login state for a MultiversX blockchain app is using built-in React hooks like useGetIsLoggedIn and useGetAccount. These hooks track authentication status and fetch connected account information automatically.

Can I use React to send EGLD and ESDT token transfers on MultiversX?

Yes, you can use React to send EGLD and ESDT transfers on MultiversX. The SDK-dapp utilities provide functions to construct, sign, and broadcast token transfers and interact with smart contracts.

How do I initialize the MultiversX SDK-dapp in a React frontend?

Initialize the MultiversX SDK-dapp by calling the initApp() function in your src/main.tsx file before rendering the root component. This sets up the blockchain development environment for your React application.

Does the MultiversX SDK-dapp support protected routes for secure dApp pages?

Yes, the MultiversX SDK-dapp supports protected routes for secure dApp pages. Implement authentication guards using provided hooks to restrict access based on the user's wallet login status.

Why use the MultiversX SDK-dapp for building a decentralized exchange frontend?

Use the MultiversX SDK-dapp for building a DEX frontend because it provides tools for wallet integration, balance display, and smart contract interactions. This simplifies complex blockchain operations into manageable React components.