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
Migrate from an EOA
Let's get started on how you can integrate THE WIDGET!
To invoke the above component, call the useAarc the state we imported above.
<ButtononClick={() =>deposit()}
Additional Configuration (if needed)
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.