Install & Setup
Acta Deposit is built for developer speed. Whether you're working on a dApp, crypto exchange, or a fintech platform, you can start accepting secure crypto deposits in just a few minutes using the Actalink React widget.
This section walks you through:
- Installing the widget
- Setting up the necessary providers
- Rendering a live deposit button in your app
- Executing a test deposit (e.g., 1 USDC on Polygon)
Let’s go step-by-step.
Install the Widget
First, install the official widget package:Note
The widget currently supports React and Next.js. Integration for other frameworks (Vue, Svelte, etc.) is coming soon.
Wrap the Required Providers
Render the Deposit Button
Now that everything is set up, let’s add a functional deposit button to your app. This button will trigger the deposit flow when clicked.
Explained
address
: Address of Payer wallet.projectId
: Unique Id for Deposit project.amount
: Value in smallest unit (1 USDC = 1,000,000 micro USDC)chainId
: 137 is Polygon Mainnettoken
: The symbol of the token to depositreceiver
: The wallet or smart account address where funds will be depositedfeeInclusive
: Whether the deposit fee should be deducted from the user or added on toprecurring
: Option to enable recurring deposit action on widget.walletClient
: Required for EIP-1193 wallet interaction (comes from Wagmi)wagmiConfig
: Location of wagmi configuration file.
Test It Live (1 USDC on Polygon)
Once integrated:- Open your app in the browser.
- Connect a wallet like MetaMask.
- Click the Deposit button.
- Confirm the transaction in the wallet popup.
- You’ll see a success callback once the transaction is confirmed.
You can also configure webhooks to get server-side notifications when the deposit is confirmed. (Covered in the Webhooks section.)
That’s It!
You’ve successfully integrated the Acta Deposit widget. In just a few lines of code, you now have:
- A fully functional, user-friendly crypto deposit flow
- Support for multi-chain EVM deposits
- Real-time on-chain confirmation tracking