> For the complete documentation index, see [llms.txt](https://docs.eclipse.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eclipse.xyz/developers/tutorials-and-guides/developer-guides/dapp-deployment-tutorial-eclipse-devnet/building-a-react-app-front-end/step-2-install-solana-web3.js-and-wallet-adapter-dependencies.md).

# Step 2: Install Solana Web3.js and Wallet Adapter Dependencies

Integrating your React app with the Eclipse Devnet and providing wallet connectivity are essential steps in enabling users to interact with your NFT minter. This requires installing several packages related to Solana's web3.js library and wallet adapters. Here's how to proceed with the installation of these dependencies.

**Install Core Dependencies**

1. **Open Your Project's Terminal**:
   * Ensure you're in the root directory of your `nftminterfrontend` React project in your terminal or command line interface.
2. **Execute the Installation Command**:
   * Run the following command to install the Solana web3.js library and wallet adapter packages:

     ```bash
     npm install @solana/web3.js @solana/wallet-adapter-react @solana/wallet-adapter-wallets @solana/wallet-adapter-react-ui
     ```
   * This command installs the core packages required for interacting with the Solana blockchain and integrating wallet functionality into your React app.

**Install Additional Dependencies**

Some functionalities and wallet integrations require additional packages. Ensure a comprehensive setup by installing these additional dependencies:

1. **Install Extended Dependencies**:
   * Run the following npm command to include all necessary libraries:

     ```bash
     npm install @solana/web3.js @solana/wallet-adapter-react @solana/wallet-adapter-react-ui @solana/wallet-adapter-wallets @solana/wallet-adapter-base @project-serum/sol-wallet-adapter @emotion/react @emotion/styled
     ```
   * These packages provide the foundational components for Solana blockchain communication, various wallet integrations, and UI components styled with Emotion (a library for writing CSS styles with JavaScript).

**Verify Installation**

* After installing the dependencies, it's good practice to verify that they are correctly added to your project. Check your `package.json` file to see the added libraries under the `dependencies` section.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.eclipse.xyz/developers/tutorials-and-guides/developer-guides/dapp-deployment-tutorial-eclipse-devnet/building-a-react-app-front-end/step-2-install-solana-web3.js-and-wallet-adapter-dependencies.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
