With the advancement of power system reform and the integration of large-scale renewable energy, the number of market players participating in electricity trading is increasing. As a result, it is difficult for the traditional centralized rading platform to deal with the rapid increase in transaction data and realize cross-regional information sharing and the unified and optimal allocation of resources. Therefore, this paper proposes a distributed electricity market trading platform based on block chain technology, and utilizes the advantages of block chain technology such as decentralization, openness, anonymity, security and reliability to establish a distributed electricity transaction mechanism based on smart contracts for electricity transaction. This paper adopts a distributed clearing transaction method to meet the needs of large-scale electricity trading, which adapts to the rapid development of large-scale renewable energy.