# HOW $FAGOT WORKS

$FAGOT is a <mark style="background-color:green;">**decentralized, open sourced, AI-powered blockchain transaction verification platform**</mark>

<figure><img src="https://852840034-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnGkNI04oJaBXsfRhOci1%2Fuploads%2FZvAQ502q6gUFgyEKBP4V%2FFrame%2041395.png?alt=media&#x26;token=19eb80a4-b7ee-42a8-88f7-2d5790a74f09" alt=""><figcaption></figcaption></figure>

$FAGOT is engineered to address four common blockchain interaction scenarios, each with tailored background data retrieval and risk analysis workflows:

1. **Smart Contract Interaction (Type 1):**
   * **User Action:** Initiating a transaction to interact with a smart contract.
   * **Required Data:**
     * Contract code
     * Contract ABI
     * Transaction data (tx data)
   * **Analysis Process:**\
     The system retrieves the contract code and ABI using our dedicated “Contract Data Retrieval Tool” and then combines this information with the user’s transaction data to perform a comprehensive audit.
2. **ERC20 Token Operations (Type 2):**
   * **User Action:** Executing token operations such as approvals or transfers.
   * **Required Data:**
     * Historical transaction records of the target address
     * If the target is a smart contract, its contract code and ABI are also fetched
   * **Analysis Process:**\
     Our “Transaction History Retrieval Tool” queries the target address’s past transactions. If the target is identified as a smart contract, the “Contract Data Retrieval Tool” is additionally employed to analyze the contract’s code and ABI.
3. **ETH Transfer (Type 3):**
   * **User Action:** Initiating an ETH transfer.
   * **Required Data:**
     * Historical transaction records of the target address
     * If the target is a smart contract, an analysis of its contract code and ABI is also performed
   * **Analysis Process:**\
     Similar to ERC20 operations, the system examines the target address using our Transaction History Retrieval Tool and, if necessary, the Contract Data Retrieval Tool.
4. **Signature Request (Type 4):**
   * **User Action:** Signing a message (e.g., for authorization or granting permissions).
   * **Required Data:**
     * The raw content of the message to be signed
   * **Analysis Process:**\
     The “Message Analysis Tool” extracts and examines the raw message content, assessing whether the action could impact your wallet assets.
