AML Sacnner
  • Introduction to AML Scanner
  • Getting Started
    • Connecting Your Wallet
    • Initiating a Verification
  • Technology
    • Web3 Integration
    • Blockchain Interaction
    • Data Processing and Security
    • Architecture & Modules
    • Security Implementation
    • Workflow
  • Links
    • Website
    • Support
Powered by GitBook
On this page
  • Technical Details of Web3 Integration
  • 1. Wallet Connection
  • 1.1 WalletConnect Integration
  • 1.2 Direct Wallet Integration
  1. Technology

Web3 Integration

Detailed Technical Overview

PreviousInitiating a VerificationNextBlockchain Interaction

Last updated 5 months ago

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.

Technical Details of Web3 Integration

1. Wallet Connection

1.1 WalletConnect Integration

  • 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.

Key Tools & Technologies:

  • 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:

1. Session Initiation:

  • Use the WalletConnect SDK to initialize a session.

  • Generate a QR code representing the session details.

2. Peer-to-Peer Connection:

  • Establish a WebSocket connection between the wallet and the AML Scanner platform.

3. Data Exchange:

  • Retrieve the wallet address and approve interaction permissions.

4. Session Persistence:

  • Store session details securely using state management tools (Redux).

1.2 Direct Wallet Integration

  • Overview: Direct integration with browser wallets like MetaMask enables seamless connection via Web3.js or Ethers.js.

Key Tools & Technologies:

  • Web3.js/Ethers.js: For Ethereum blockchain interaction.

  • TronWeb: For TRON blockchain integration.

  • Implementation Steps:

1. Request Account Access:

  • Use ethereum.request({ method: 'eth_requestAccounts' }) to retrieve wallet addresses.

2. Establish Connection:

  • Capture the selected wallet address for further use in transaction monitoring.

3. Session Management:

  • Store user session securely on the client or server side.