The challenges in service transactions include mutual distrust, difficulties in quantifying and accurately evaluating the value of services. There is an urgent need for a technological solution to foster collaboration between service providers and consumers, and enabling the optimization of benefits and market share through scientifically rational pricing strategies.Firstly, this paper introduces ServiceChain, a peer-to-peer distributed service management and trading system that utilizes consortium blockchain technology to effectively address issues of data privacy, security, and mutual distrust in traditional service transaction systems. Secondly, a Stackelberg pricing mechanism and benefit strategy model for service resources in a distributed environment is presented, encompassing models for optimal pricing and maximizing benefits, with the goal of maximizing interests for service providers, consumers, and the overall system. Thirdly, the security analysis and simulation experiments validate the efficacy of ServiceChain in providing secure service transactions management and trading, ensuring transaction data security and user privacy.Additionally, the positive effects of the Stackelberg pricing mechanism and profit strategy model in balancing service supply and demand, enhancing price flexibility, maximizing benefits, and ensuring security are demonstrated. In summary, these findings propose a viable solution for service resource trading and offer insights for optimizing the operation of the service market.