Install & Setup
Acta Access 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 SDK.
This guide explains how to integrate the SDK into your React or Next.js web app using Wagmi, RainbowKit, and Viem clients.
Installation Requirements
Before integrating, ensure your project meets the following dependencies:
1. Core Dependencies
2. Required Frameworks
Your frontend should be built on:
- React 18+ or Next.js 13+ (App Router compatible)
- TypeScript (recommended)
- TailwindCSS or your preferred styling setup
Configure Wallet Connection
You need to connect a user wallet using RainbowKit and Wagmi.Add this setup to your root layout or provider file:
Now include it at the root of your app:
Note
The widget currently supports React and Next.js. Integration for other frameworks (Vue, Svelte, etc.) is coming soon.
Set Up Wallet Connection Components
To connect a user’s wallet, use RainbowKit’s ConnectButton.Example usage inside your app:
Access Required Clients
The SDK requires two essential Wagmi hooks:
| Hook | Purpose | Required For |
|---|---|---|
useWalletClient() | Provides signer (the user’s connected wallet) | Sending transactions |
usePublicClient() | Provides blockchain read access | Fetching network data and confirming transactions |
Initialize the SDK
Before sending payments, initialize the ActaAccessSDK with your unique projectId. You can get the projectId from Developers section of Acta Access on Actalink Dashboard.Create a Payment Transaction
The SDK supports two types of payments:(A) One-Time Payment
Use this to send a single payment to a receiver.
(A) Recurring Payment
For automated periodic transfers.
Check Payment Status
After creating a payment, track its confirmation status:That’s It!
You’ve successfully integrated the Acta Access SDK. In just a few lines of code, you now have:
- A fully functional, user-friendly crypto deposit flow
- Real-time on-chain confirmation tracking