# Blockchain-Based UAV-Assisted Mobile Edge Computing for Dual Game Resource Allocation
## 1 Introduction  
More and more fields are being impacted by the rapid development of the Internet of Things (IoT), artificial intelligence (AI), and 5G communication technologies [1], and mobile edge computing (MEC) has become an important cornerstone for supporting these emerging technologies and applications. By deploying computing and storage resources at the edge of the network, MEC can significantly reduce the latency of data processing, improve computing efficiency [2], and support a variety of real-time applications, such as smart cities [3], autonomous driving, healthcare, and industrial IoT. MEC has attracted widespread attention as an emerging computing paradigm. By pushing computing andstorage resources from the cloud to the network edge, MEC significantly reduces latency and improves the responsiveness of services. However, due to the limited resources of edge devices, how to efficiently manage and allocate these resources has become an urgent issue. Unmanned aerial vehicles (UAVs) are widely used in MEC environments as flexible and mobile computing nodes [4]. Drones can not only provide computing resources for users on the ground, but also act as relay nodes to enhance the coverage and quality of communication. Drones can be dynamically deployed in areas that require computing resources to provide users on the ground with low-latency, high-bandwidth computing services. Drones can also act as relay nodes to extend network coverage, especially in disaster areas or remote areas where traditional infrastructure is difficult to cover. Drones can dynamically adjust task offloading and resource allocation strategies based on real-time network and user requirements to improve overall system efficiency [5]. Blockchain technology has attracted increasing attention due to its decentralized, tamper-proof, and transparent characteristics [6]. By introducing blockchain technology into MEC, the security and trust of the system can be significantly improved. Through the distributed ledger technology of blockchain, decentralized resource management and transactions can be realized, avoiding single points of failure. Blockchain ensures the privacy and security of user data through encryption technology and smart contracts, preventing data leakage and tampering. Smart contracts automate resource transactions and management, improving the efficiency and transparency of resource allocation and reducing manual intervention. Overall, blockchain-based systems have the characteristics of decentralization and tamper-proof data recording, laying a solid foundation for information security. This security has enabled blockchain technology to be widely used in many scenarios with extremely high system security and confidentiality requirements [7]. In the UAV-based MEC environment, resource allocation is a multi-level decision problem with significant hierarchical characteristics. The Stackelberg game, as a typical hierarchical game model, is suitable for this scenario. The Stackelberg game model optimizes resource pricing and allocation strategies through a hierarchical decision-making process between the leader (server) and the followers (drones). The leader sets the price and the followers respond to the price. The Stackelberg game model can effectively optimize the balance between resource supply and demand, improve system utility, and through reasonable strategy adjustments during the Stackelberg game process, the system can reach a Nash equilibrium and maximize the utility of each participant [8; 9]. Most existing resource allocation methods focus on static or single optimization strategies, which have difficulty coping with dynamic and complex system environments. In addition, traditional centralized resource allocation methods have trust and security problems, making it difficult to ensure system reliability and stability in an open environment.