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
@aarc-xyz/eth-connector is a different package which needs to be installed seperately, it will help to connect EVM based wallets.
If you are working with webpack > 5 in your react application, then you might face this error:
Error due to webpack>5
Module not found: Error: Can't resolve 'path' in '/Users/xxxxx/testing/node_modules/@aarc-xyz/migrator/node_modules/dotenv/lib'
BREAKINGCHANGE:webpack<5usedtoincludepolyfillsfornode.jscoremodulesbydefault.Thisisnolongerthecase.Verifyifyouneedthismoduleandconfigureapolyfillforit.
To resolve this error, including Polyfill you may need additional configuration, which you can find here per your application requirements.