The invention discloses a block chain electric energy transaction method based on an energy proof consensus mechanism, and the method comprises the steps: taking the node power generation amount as the workload for energy proof, and obtaining the accounting right and the block-out reward through competitive power generation. The more the electric energy generated by the node is, the higher the probability of obtaining the accounting right is, and the node obtaining the accounting right obtains all the electric charge rewards of the whole microgrid deduction loss and the network passing electric charge cost in the time period. Compared with the prior art, scientific theory and technical support can be provided for a micro-grid electric energy transaction method, and the application in the micro-grid can promote the micro-grid to achieve the advantages of decentralization, detrust, tamper resistance, small system operation loss, high economic benefit, active participation of users and the like. A prosperous and safe electric energy transaction environment is created for the micro-grid, and the method has obvious technical value and practical significance; and meanwhile, the research content in the block chain energy field is enriched, the development of a consensus mechanism in the block chain energy field is promoted, and the method has positive academic value.