The traditional grid power supply is security-centered, and its operation, control and management mode are all passive power supply grid, with insufficient power supply controllability and utilization. Now a decentralized, secure and controllable demand-side response power supply model based on blockchain is proposed, which uses blockchain technology to ensure a multi-party trustworthy power supply environment, and integrates and optimizes the regulation of each power supply node to actively distribute the demand-side response of the grid, and distributed power The blockchain node design of distributed power supply can prevent the grid blockage problem at the peak of power consumption and strengthen the comprehensive utilization of power resources. In order to further ensure the safety and stability of grid operation, the blockchain-based active distribution network planning with demand-side response is carried out with the help of peak-valley time-sharing tariff optimization model. The experiments show that the model can adjust the real-time load in the demand-side response to the relatively balanced horizontal demand by the blockchain technology, and the smart contract can adjust the transaction price safely and reasonably according to the actual situation, so as to ensure the balanced and stable operation of the grid.