rsk-swap-widget v0.0.1
RSK Swap Widget
This widget is a standalone application that can be embedded in Gatsby applications as a component, making it easy to integrate swap functionalities into your projects.
Installation
Install the SDK: The SDK is currently an internal package, so you need to get it from the GitHub registry instead of NPM.
npm install @rsksmart/rsk-swap-sdk@0.1.1
# or
yarn add @rsksmart/rsk-swap-sdk@0.1.1
Import and use the widget: In the part of your application where you want to add the widget, import it and use it as a React component.
import { RskWidget } from 'rsk-swap-widget';
// ... within your component
<RskWidget />
Notes
Compatibility: Make sure your Gatsby project is set up to use React.
Features: The widget provides an intuitive interface for users to swap between different tokens and supported networks.
SDK: The @rsksmart/rsk-swap-sdk SDK is essential for the widget's functionality, ensuring communication with the blockchain and the execution of swap operations.
We hope this widget is useful for your Gatsby projects!
8 months ago