paydece-test
v3.1.18
Published
A widget SDK for integrating Paydece.io in other dApps
Downloads
13
Readme
Paydece App Widget
A widget component for integrating Paydece services into your Next.js / Vite / React applications.
Table of Contents
Introduction
The Paydece App Widget is designed to seamlessly integrate Paydece services into your Next.js / Vite / React applications. This widget provides essential functionalities for quick setup and customization.
Installation
Install the package using npm:
npm install paydece-app-widget
## Getting Started
import Widget from 'paydece-app-widget'
import 'paydece-app-widget/dist/style.css'
<Widget chainIdList={[56, 97, 5, 137, 80002]} apiKey="xxxxxxxxxxxxxxxxxxxxxxxxx" />;
npm run dev
# or
yarn dev
## Example
To ensure the widget works correctly, you must provide the chainIdList and apiKey parameters. Here's an example of how to use the widget:
<Widget chainIdList={[56, 97, 5, 137, 80002]} apiKey="xxxxxxxxxxxxxxxxxxxxxxxxx" />;
*chainIdList: An array of supported blockchain network IDs.
*apiKey: Your unique API key to authenticate requests.