planet-ringedDeploy agent

This guide walks you through deploying an agent using the FrausAI Framework. Follow the steps below carefully to ensure a successful deployment.

Step 1: Clone the Framework

  1. Clone the FrausAI Framework repository to your local machine:

    Copy

    git clone https://github.com/frausai/frausai-framework-v.1.git
    cd frausai-framework-v.1

Step 2: Set Up Your .env File

  1. Inside the main directory, locate the .env.example file.

  2. Rename it to .env:

    Copy

    cp .env.example .env
  3. Open the .env file and replace placeholders with your private key and other required configurations:

    Copy

    # Example .env configuration
    PRIVATE_KEYPAIR=your-private-key-here
    OPENAI_API_KEY=your-openai-api-key-here
    RPC_ENDPOINT=https://api.mainnet-beta.solana.com
    API_KEY=your-api-key-here
    
    ACTION=buy
    MINT=TokenContractAddressHere
    AMOUNT=100

Step 3: Configure defineAgent.ts

  1. Open the defineAgent.ts file located in the src folder:

    Copy

  2. Modify the agentDetails object with your agent's specific details:

    Copy

  3. Save the changes.


Step 4: Build the Project

  1. Run the following commands to build the project:

    Copy

  2. If TypeScript compilation is required:


Step 5: Deploy the Agent

Run:

Example Output


Output Breakdown

  1. Agent Details: Displays the details of the agent being deployed, including the name, symbol, description, and website.

  2. Transaction Status:

    • Confirms that the transaction has been sent to the blockchain.

  3. Transaction Successful:

    • Indicates that the deployment was successful and provides the transaction signature.

  4. SolScan Link:

    • The 🔗 View on SolScan section provides a clickable URL to view the transaction details on SolScan. This allows you to verify the deployment, view the status, and confirm the token creation.


How to Verify on SolScan

  1. Copy the transaction signature from the output:

    Copy

  2. Open the SolScan link provided:

    Copy

  3. Review the transaction details, including:

    • The token creation.

    • The wallet that initiated the transaction.

    • The gas fees paid.


Example SolScan Page

On SolScan, you'll see:

  • Transaction Status: Confirmed

  • Token Details: Includes the agent token name, symbol, and supply.

  • Wallet Information: The wallet address that deployed the agent.


Step 6: Verify Deployment

After deployment:

  1. Use the npm run interactfraus command to interact with your agent:

    Copy

  2. Use the API or CLI commands to fetch details about your agent or perform actions like trading tokens.


Example defineAgent.ts Configuration


circle-exclamation

Last updated