Fund Kit Widget
Aarc Widget to deposit funds.
Every web3 application struggles to get users on board with them for a very basic reason, i.e., users have to do too much work to use the embedded wallet provided by the application.
Aarc SDK provides a very simple yet efficient way to solve this issue, the Aarc Deposit Kit Widget.
The Aarc Deposit Kit Widget has all the necessary options for an application to onboard new users those are:
Centralized Exchange Transfer
Fiat On-Ramp
Fund from an EOA
Fund Kit Widget only works for React or React based frameworks like Next.js
Let's get started on how you can integrate THE WIDGET!
Install the package
Import the Components
Setting up the config
Configuring the component only includes defining your application needs.
To learn more about the config type visit this link
If you add contract
details in the destination then the widget will automatically enable checkout
mode where it will call a smart contract.
Use Widget in component
To open the widget, first, create an AarcFundKitModal
object, call the .init()
this will initialize the listeners between the iFrame widget and your application. Then finally call .openModal()
Learn more about AarcFundKitModal
from this guide.
Last updated