Web3 Integration
Detailed Technical Overview
Last updated
Detailed Technical Overview
Last updated
The Web3 integration in AML Scanner provides a seamless and secure mechanism for connecting wallets, retrieving blockchain data, and initiating AML checks for USDT transactions on ERC20 and TRC20. This is achieved through the use of modern Web3 libraries, blockchain APIs, and industry-standard protocols.
Overview: WalletConnect allows users to securely link their mobile or desktop wallets to the AML Scanner platform via QR code or deep linking. This facilitates real-time interaction between the platform and the wallet without exposing private keys.
WalletConnect SDK (JavaScript/TypeScript): Manages session creation and peer-to-peer communication.
QR Code Generators: Libraries qrcode.react for dynamically generating QR codes for WalletConnect sessions.
Implementation Steps:
Use the WalletConnect SDK to initialize a session.
Generate a QR code representing the session details.
Establish a WebSocket connection between the wallet and the AML Scanner platform.
Retrieve the wallet address and approve interaction permissions.
Store session details securely using state management tools (Redux).
Overview: Direct integration with browser wallets like MetaMask enables seamless connection via Web3.js or Ethers.js.
Web3.js/Ethers.js
: For Ethereum blockchain interaction.
TronWeb: For TRON blockchain integration.
Implementation Steps:
Use ethereum.request({ method: 'eth_requestAccounts' })
to retrieve wallet addresses.
Capture the selected wallet address for further use in transaction monitoring.
Store user session securely on the client or server side.