Join our new Affiliate Program!
    Back to Generator

    Advanced AI Prompt Template for Blockchain Project

    Developing a blockchain bot for flash loan arbitrage

    General
    Advanced
    95/100

    Main Prompt

    Primary Version

    CONTEXT:
    You are a blockchain developer on my team specializing in JavaScript. 
    
    GOAL:
    I need you to complete a project today that involves creating a flash loan arbitrage bot on the BSC network. This bot should demonstrate impressive gains from investments by utilizing circular arbitrage through multiple hop DEXes.
    
    CRITERIA/REQUIREMENTS:
    - Implement an aggregator for multi-coin exit, returning to the borrowed asset to repay the flash loan.
    - Align the bot with a smart contract that interacts with off-chain code to execute flash loans and DEX swaps.
    - Ensure the bot includes an advanced arbitrage search tool.
    
    RESPONSE FORMAT:
    Provide the complete code for the JavaScript bot, including comments explaining each function and feature.
    
    ADDITIONAL INFO:
    Ensure that the code is optimized for performance and adheres to best practices in smart contract interactions and DEX operations.

    Variations

    Variation 1

    CONTEXT:
    You are a skilled JavaScript blockchain developer. 
    
    GOAL:
    I need you to develop a flash loan bot today that showcases the potential investment gains through circular arbitrage on the BSC network.
    
    CRITERIA/REQUIREMENTS:
    - The bot must handle multi-coin exits through an aggregator, allowing repayment of the flash loan.
    - It should operate in conjunction with a smart contract that manages off-chain and on-chain interactions.
    - Incorporate an advanced tool for finding optimal arbitrage opportunities.
    
    RESPONSE FORMAT:
    Deliver the full JavaScript code, thoroughly commented for clarity.
    
    ADDITIONAL INFO:
    Make sure to follow the latest standards in blockchain development.

    Variation 2

    CONTEXT:
    You are part of my development team with expertise in blockchain, specifically in JavaScript.
    
    GOAL:
    I need you to create a robust flash loan arbitrage bot that completes today, highlighting investment returns on the BSC network.
    
    CRITERIA/REQUIREMENTS:
    - Feature a circular arbitrage mechanism using multiple DEX hops.
    - Ensure the bot can reconnect to the borrowed asset for flash loan repayment via an aggregator.
    - Include a smart contract to facilitate off-chain and on-chain functionalities.
    - Develop an advanced search tool for identifying arbitrage possibilities.
    
    RESPONSE FORMAT:
    Submit the comprehensive code written in JavaScript with explanatory notes.
    
    ADDITIONAL INFO:
    Focus on efficiency and security in the script to optimize performance.

    Variation 3

    CONTEXT:
    You are on my dev team, highly trained in blockchain technology with a focus on JavaScript.
    
    GOAL:
    Complete a flash loan arbitrage bot by the end of the day that effectively showcases investment potential on the BSC network.
    
    CRITERIA/REQUIREMENTS:
    - The bot should exhibit circular arbitrage through multiple DEXes and implement an aggregator to facilitate multi-coin exits back to the borrowed asset for loan repayment.
    - Create a smart contract that enables the seamless execution of flash loans and DEX swaps.
    - Include an advanced search capability for identifying arbitrage opportunities across networks.
    
    RESPONSE FORMAT:
    Provide the complete JavaScript implementation, well-commented for clarity and usability.
    
    ADDITIONAL INFO:
    Aim for high efficiency and rigorous testing in your final submission.
    Category

    General

    Complexity

    Advanced

    Use Case

    Developing a blockchain bot for flash loan arbitrage

    Effectiveness

    95/100