Prerequisites
Before you begin installing the GlueX widget, please ensure you have the following in place:- Integrator ID and API key: You must have registered for and obtained your unique Integrator ID and API Key from the GlueX Developer Portal. These credentials are essential for authenticating your API requests and for tracking your usage and any partner specific configurations (like fees)
- Node.js and package manager: Ensure you have a recent version of Node.js installed on your system, along with its package manager (npm/yarn/pnpm/bun)
Installation
Install the package
The GlueX widget is distributed as an npm package. It relies onwagmi
and @tanstack/react-query
as peer dependencies for managing blockchain interactions and data fetching, respectively.
Use your preferred package manager to install the widget, SDK and their essential peer dependencies:
Update dependencies (if necessary)
The widget utilizeswagmi
and @tanstack/react-query
. If your project already includes these packages, it is crucial to ensure they are updated to versions compatible with the GlueX widget to avoid conflicts or unexpected behavior
For comprehensive guidance on upgrading wagmi
to its latest compatible version, please refer to the official wagmi migration guide
Next Steps
Once the necessary packages are installed, the next crucial step is to integrate the GlueX Widget into your specific application framework. We provide dedicated guides to streamline this process for popular development environments:- React Integration Guide
- NextJS Integration Guide
- Vite Integration Guide
- Gatsby Integration Guide
- Rainbowkit Integration Guide
- Vue Integration Guide (coming soon)