We propose an efficient data aggregation and dynamic billing system that it consists of a permissioned blockchain. This blockchain uses a ledger that provides users anonimity and keeps users’ electricity consumption for predefined time ranges. Using consumption data of users, a billing mechanism is able to bill the users accordingly. In our construction, since all the parties in the system have the ledger, every party has the aggregated usage of the electricity without using very heavy cryptographic operations. Thanks to the ledgers in our model, the aggregation of the users’ electricity consumption can be computed by anyone in the system. Moreover, users are able to verify their bills. This results that integrity of all data is going to be preserved. In our solution we mainly use hash functions to provide the same functionality with preserving data privacy of the users.