The electrical sector has been facing a wide-scale transformation with renewable energy, distributed energy resources, information, and communication technology such as distributed ledger technologies. This paper presents a methodology for analyzing a blockchain-based solution applied to energy trading in Brazil. The proposed methodology applies for a proof of concept based on blockchain and other applications. Although the proof of concept in this study addresses the free-energy market, we also developed the methodology for the regulated energy market, net metering energy market, and decentralized energy market---peer-to-peer. We developed the methodology creating energy market metrics, researching electrical sector regulation and blockchain, and validating the case study. In this paper, we presented the validation of this case study through testing a proof of concept. We presented and tested the energy methodology through analysis of the free energy market. We concluded that proof of concept and methodology developed are precise and reliable for their applications. Our methodology may have a huge impact on the Brazilian energy market and may open peer-to-peer trading after law regulation.