Energy Internet transaction method and system based on blockchain

Through intelligent acquisition devices and adaptive quotation competition strategies, the decentralization and transparency of energy transactions are solved, and the challenges between transaction fairness and market flexibility in the existing system are achieved, achieving the fairness and efficiency of energy transactions.

CN119273471BActive Publication Date: 2025-03-25SHENZHEN COMTOP INFORMATION TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411482779.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-03-25
Estimated Expiration
2044-10-23

AI Technical Summary

Technical Problem

The existing blockchain-based energy Internet trading system has challenges between achieving transaction fairness and market flexibility, and lacks an effective interest protection mechanism, which affects transaction efficiency and fairness.

Method used

Through the intelligent acquisition device, user power data is collected and interacted with the blockchain, smart contracts are formulated based on adaptive quotation competition strategies and interest protection strategies to achieve decentralization and transparency of energy transactions. Use adaptive quotation adjustment schemes and priority determination schemes to ensure transaction fairness and flexibility, and increase transaction security through deposit mechanisms.

Benefits of technology

It improves the fairness and impartiality of energy transactions, makes the returns between buyers and sellers balanced, increases the flexibility and efficiency of transactions, and reduces the additional costs caused by lack of trust.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119273471B_ABST
    Figure CN119273471B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of Internet energy trading technology, and in particular to an energy Internet trading method and system based on blockchain, wherein the method comprises the following steps: collecting the user's electricity data through an intelligent collection device and interacting with the blockchain, wherein the electricity data includes electricity consumption, power generation and transaction electricity, and the users include energy sellers and energy consumers; formulating a smart contract for deployment on a blockchain network based on an adaptive bidding competition strategy and an interest protection strategy; the user registers on an energy trading platform and submits a transaction request, thereby realizing energy trading based on the smart contract and the power grid; generating a new block using transaction information, and connecting the new block to the end of the blockchain for storage based on a consensus mechanism. The present invention can improve the fairness of energy trading and balance the benefits of buyers and sellers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet energy trading, and in particular to an energy Internet trading method and system based on blockchain. Background Art

[0002] In recent years, smart grids have provided unprecedented opportunities to alleviate the energy crisis caused by the shortage of fossil fuel resources by integrating distributed renewable energy, making it possible for distributed energy and consumers to be connected. The traditional power energy trading model is limited by the centralized architecture, resulting in information asymmetry, lack of transparency, and complex trust mechanisms, which in turn affects the fair competition environment of market participants. Introducing blockchain technology into smart grids can effectively solve the above problems. Blockchain has the characteristics of decentralization, immutability, and high transparency. In the field of energy Internet transactions, blockchain technology can not only break the centralized monopoly of the traditional power trading market, realize the distributed storage and sharing of transaction data, and reduce the unfairness caused by information asymmetry, but also ensure the authenticity and integrity of transaction records, provide a reliable trust basis for both parties to the transaction, and reduce the additional costs caused by lack of trust.

[0003] However, although blockchain technology provides a solution to the fairness problem of power energy trading in theory, it still faces many challenges in practical application. On the one hand, the complexity of the power energy trading market requires the blockchain system to have a high degree of real-time, stability and security to cope with the needs of large-scale transactions and complex power grid dispatching. On the other hand, how to ensure the fairness of transactions while taking into account the flexibility, efficiency and economy of the power market is also an important topic for the application of blockchain technology in the field of energy Internet transactions. Most of the existing blockchain-based energy Internet transactions are in the primary stage. Therefore, further research and development of efficient and fair blockchain-based energy Internet transaction methods and systems are of great significance to promoting the development of the power energy trading market. Summary of the invention

[0004] In view of the defects in the prior art, the present invention provides an energy Internet transaction method and system based on blockchain.

[0005] In order to achieve the above-mentioned purpose, in the first aspect, the present invention provides an energy Internet transaction method based on blockchain, the method comprising the following steps: collecting the user's electricity data through an intelligent collection device and interacting with the blockchain, the electricity data including electricity consumption, power generation and transaction electricity, and the users including energy sellers and energy consumers; formulating a smart contract for deployment on the blockchain network based on an adaptive bidding competition strategy and an interest protection strategy; the user registers on the energy trading platform and submits a transaction request, thereby realizing energy transactions based on the smart contract and the power grid; generating a new block using the transaction information, and connecting the new block to the end of the blockchain for storage based on a consensus mechanism. The present invention can improve the fairness of energy transactions and balance the benefits of buyers and sellers.

[0006] Optionally, the adaptive bidding competition strategy includes the following steps:

[0007] The user publishes the energy trading volume on the energy trading platform, thereby determining the bidder among the users;

[0008] The bidder sets an initial bid amount and an acceptable bid range on the energy trading platform;

[0009] The bidder uses an adaptive bid adjustment scheme to make a bid based on the initial bid amount, the acceptable bid range and the bid information published by the energy trading platform;

[0010] Based on the quotation results, a priority determination scheme is used to determine the two parties to the energy transaction and the energy transaction price.

[0011] Furthermore, the use of adaptive bidding competition strategy can guarantee the needs of users within the same trading cycle to the greatest extent. Among them, the use of adaptive bidding adjustment scheme can improve the flexibility of transactions, and the use of priority determination scheme can ensure the determination of both parties in energy transactions and the fairness of transaction prices.

[0012] Optionally, the energy transaction volume includes energy sold and energy consumed;

[0013] The user publishes the energy transaction volume on the energy transaction platform, and then determines the bidder among the users, including the following steps:

[0014] All the energy selling users publish their own energy selling amount on the energy trading platform, thereby obtaining the total energy selling amount;

[0015] All the energy-consuming users publish their own energy consumption on the energy trading platform, thereby obtaining the total energy consumption;

[0016] The user corresponding to the larger of the total energy sales amount and the total energy consumption amount is regarded as a bidder, and the user corresponding to the smaller of the total energy sales amount and the total energy consumption amount is regarded as a non-bidder.

[0017] Furthermore, the present invention uses the total energy sales and total energy consumption to determine the bidder's quotation, so that both parties of the energy transaction can find a reasonable transaction price in the competitive market, and the needs of at least one of the two parties of the energy transaction can be met.

[0018] Optionally, the quotation information includes information of the bidder, the quotation amount and the quotation status, and the quotation status includes successful quotation and failed quotation;

[0019] The bidder using the adaptive bid adjustment scheme to make a bid according to the initial bid amount, the acceptable bid range and the bid information published by the energy trading platform comprises the following steps:

[0020] Comparing the initial bid amounts of each user in the bidder, and sorting the users in the bidder in order of the initial bid amounts;

[0021] When the total amount of energy transactions released by the non-bidder can be satisfied by the sum of the energy transaction amounts of the first k users among the bidders, the first k users among the bidders will succeed in their bids, and the bids of other users among the bidders will fail;

[0022] For users whose bids fail, the bid amount is automatically adjusted based on the acceptable bid range using a bid adjustment model until the bid is successful or exceeds the acceptable bid range.

[0023] Furthermore, using the quotation adjustment model to adjust the quotation amount makes the user's quotation more intelligent, and automatically adjusts the quotation within the reasonable price range set by the user to strive for a successful transaction, thereby increasing the flexibility of the transaction.

[0024] Optionally, when the bid amount exceeds the acceptable bid range and the bid is still unsuccessful, the bidder uses the adaptive bid adjustment scheme to bid according to the initial bid amount, the acceptable bid range and the bid information published by the energy trading platform, further comprising the following steps:

[0025] If the user wants to continue to participate in the bidding, the acceptable bid range can be expanded;

[0026] If the user does not want to continue to participate in the bidding, the acceptable bid range remains unchanged, the bidding fails, and the user is recorded as a candidate user.

[0027] Furthermore, the present invention allows users to expand the acceptable bid range or choose to exit when the bid fails, thereby enhancing user autonomy and participation, allowing users to respond to market price fluctuations more flexibly and improving transaction success rates. Users who exit the bid are recorded as standby users, which provides a basis for determining the fairness of both parties in energy transactions.

[0028] Optionally, the quotation adjustment model satisfies the following relationship:

[0029]

[0030] in, The amount of the user's next quotation. is the user's current quotation amount, is the amount of the user's last bid, N is the number of users in the bidder, is the last bid amount of the j-th user among the bidders, is the current bid amount of the j-th user among the bidders, k is the number of failed bids by the user, and are the lower and upper limits of the acceptable bid range, respectively. is the predicted value of the quotation, is the limit of the acceptable bid range; when the bidders are the energy seller and the energy consumer, The values ​​of are and .

[0031] Furthermore, the bid adjustment model combines the number of users, bids from other users, the number of failed bids, and the limit of the acceptable bid range. It can also differentiate the bid prediction values ​​based on whether the bidder is an energy seller or an energy consumer, thus ensuring the rationality and effectiveness of the bid adjustment.

[0032] Optionally, the first k users among the bidders are recorded as initial successful bidders, the final bid amount of the initial successful bidder is recorded as the pre-selected successful bid amount, and the final bid amount of each candidate user is recorded as the candidate bid amount;

[0033] The method of determining the energy transaction parties and the energy transaction price based on the quotation results using the priority determination scheme includes the following steps:

[0034] Determine whether there are candidate bid amounts that are the same as the pre-selected successful bid amounts, and record the corresponding initial successful bid users and candidate users as a comparison user group;

[0035] Calculate the priority judgment values ​​of the initial successful bidder and the candidate users in each comparison user group respectively, and when the priority judgment value of the candidate user is greater than the priority judgment value of the initial successful bidder, use the candidate user to replace the initial successful bidder, thereby obtaining the successful bidder, and record the final bid amount of the successful bidder as the successful bid amount;

[0036] Determine whether there are multiple successful bidders with the same successful bid amount, and record the successful bidders with the same successful bid amount as users with the same bid price;

[0037] Sorting the users who have successfully bid according to the order of the successful bid amounts, wherein the users with the same bid are sorted according to the order of the initial bid amounts;

[0038] The priority decision model is used to calculate the priority decision values ​​of each user with the same price, and the ranking of the users with the same price is adjusted in descending order according to the priority decision values, so as to achieve matching between the user who successfully bids and the non-bidder;

[0039] The average of the successful bid amounts is used as the energy transaction price.

[0040] Furthermore, by comparing the pre-selected successful bid amount with the standby bid amount, allowing the standby user to replace the initial successful bid user when the priority judgment value is higher, and adjusting the ranking of users with the same price, more accurate transaction matching is achieved, increasing the fairness of the transaction. In addition, using the average of the successful bid amount as the energy transaction price reduces the extreme price fluctuations and makes the transaction price more reasonable and stable.

[0041] Optionally, the priority decision model satisfies the following relationship:

[0042]

[0043] in, is the priority decision value of the user when conducting the i-th energy transaction, is the energy transaction amount when the user conducts the i-1th energy transaction, The account balance before the user conducts the i-1th energy transaction. is the energy transaction amount when the user conducts the i-th energy transaction, is the account balance of the user before the i-th energy transaction, It is the value of the first priority decision factor after the user conducts the i-2th energy transaction. is the value of the second priority decision factor after the user conducts the i-2th energy transaction, and T is the time interval between the user's i-1th energy transaction and the i-th energy transaction.

[0044] Furthermore, the priority judgment model takes into account multiple factors such as the user's transaction history, account balance, and transaction time interval, providing users with a dynamic and comprehensive priority evaluation method. It can also encourage users to actively participate in transactions and keep their accounts active, helping to improve the activity and efficiency of users' energy trading.

[0045] Optionally, the interest protection strategy includes the following steps:

[0046] Freeze part of the user's transaction funds as a deposit;

[0047] After the successful bidder is matched with the non-bidder, if one party refuses to complete the transaction and becomes a defaulter, the deposit of the defaulter will be transferred to the other party as compensation;

[0048] After the successful bidding user is matched with the non-bidder, if both parties in the transaction refuse to complete the transaction or successfully complete the transaction, the deposits of both parties will be returned to their respective accounts.

[0049] Furthermore, the deposit mechanism can increase the cost of default in transactions, protect the rights and interests of honest users, and improve energy trading efficiency to a certain extent.

[0050] In the second aspect, the present invention also provides an energy Internet transaction system based on blockchain, the system uses the energy Internet transaction method based on blockchain provided by the present invention, the system includes: an intelligent collection device, the intelligent collection device is used to collect the user's electricity data and interact with the blockchain, the electricity data includes electricity consumption, power generation and transaction electricity, and the users include energy sellers and energy consumers; a smart contract module, the smart contract module is used to formulate a smart contract for deployment on the blockchain network based on an adaptive bidding competition strategy and an interest protection strategy; an energy trading platform, the user registers on the energy trading platform and submits a transaction request, and then realizes energy transactions based on the smart contract and the power grid; a blockchain network module, the blockchain network module generates a new block using transaction information, and connects the new block to the end of the blockchain for storage based on a consensus mechanism. The system provided by the present invention can stably execute the method provided by the present invention, and improve the practicality of the method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0052] Figure 1 This is a flowchart of a blockchain-based energy internet transaction method according to an embodiment of the present invention;

[0053] Figure 2 This is a schematic diagram of the framework of the energy Internet trading system based on blockchain according to an embodiment of the present invention. DETAILED DESCRIPTION

[0054] The specific embodiments of the present invention will be described in detail below. It should be noted that the embodiments described herein are only for illustration and are not intended to limit the present invention. In the following description, a large number of specific details are set forth in order to provide a thorough understanding of the present invention. However, it is obvious to those of ordinary skill in the art that these specific details do not need to be adopted to implement the present invention. In other examples, in order to avoid confusing the present invention, known circuits, software or methods are not specifically described.

[0055] Throughout the specification, references to "one embodiment," "an embodiment," "an example," or "an example" mean that a particular feature, structure, or characteristic described in conjunction with the embodiment or example is included in at least one embodiment of the present invention. Therefore, the phrases "in one embodiment," "in an embodiment," "an example," or "an example" appearing in various places throughout the specification do not necessarily all refer to the same embodiment or example. In addition, particular features, structures, or characteristics may be combined in one or more embodiments or examples in any suitable combination and / or subcombination. In addition, it should be understood by those of ordinary skill in the art that the figures provided herein are for illustrative purposes and that the figures are not necessarily drawn to scale.

[0056] It should be noted in advance that, in an optional embodiment, except for independent explanations, the same symbols or letters appearing in all formulas have the same meanings and values.

[0057] In an alternative embodiment, see Figure 1 The present invention provides an energy Internet transaction method based on blockchain, the method comprising the following steps:

[0058] S1. Collect the user's electricity data through the intelligent collection device and interact with the blockchain. The electricity data includes electricity consumption, power generation and transaction electricity. Users include energy sellers and energy consumers.

[0059] Specifically, in this embodiment, the user's home needs to install a power generation device and an energy storage device for storing the electric energy generated by the power generation device. The power generation device and the energy storage device are connected to the intelligent collection device, and the intelligent collection device is connected to the distribution network. The power generation device is a photovoltaic power generation system, the energy storage device is a battery, and the intelligent collection device is a smart meter. The intelligent collection device can not only collect the power generated by the power generation device and the power stored by the energy storage device, but also interact with the blockchain to synchronize the user's power generation and the power stored by the energy storage device to the blockchain for power trading. The power generated by the power generation device is the power generation; the power consumed by the user in daily life is the power consumption; the user transmits the power in the battery to others through the distribution network to sell the power, or the power purchased from other users received through the distribution network is the transaction power. When trading power, the user who buys power is the energy consuming user, and the user who sells power is the energy selling user.

[0060] Furthermore, since power trading requires high security and involves the participation of multiple departments, the blockchain used in this embodiment is a consortium chain, and the DPoS consensus mechanism is used as the consensus mechanism for the subsequent energy trading platform. Since the consortium chain and the DPoS consensus mechanism are both existing technologies, they will not be described in detail here.

[0061] S2. Based on the adaptive bidding competition strategy and interest protection strategy, a smart contract for deployment on the blockchain network is formulated.

[0062] Specifically, in this embodiment, the use of an adaptive bidding competition strategy can guarantee the needs of users within the same transaction cycle to the greatest extent, wherein an adaptive bidding adjustment scheme is used to improve the flexibility of transactions, and a priority determination scheme is used to ensure the determination of both parties in energy transactions and the fairness of transaction prices. The adaptive bidding competition strategy specifically includes the following steps:

[0063] F1. Users publish energy trading volumes on the energy trading platform, thereby determining bidders among users.

[0064] The energy transaction volume includes the energy sold and the energy consumed. Step F1 specifically includes the following steps:

[0065] F11. All the energy selling users publish their own energy selling amounts on the energy trading platform, and thereby obtain the total energy selling amount.

[0066] In this embodiment, the energy sales amount refers to the amount of electricity that the energy seller wants to sell. All energy sellers publish their own energy sales amounts on the energy trading platform, and the sum of the energy sales amounts of all energy sellers is the total energy sales amount.

[0067] Users can interact with smart contracts through the energy trading platform, which consists of a user interface and a decentralized application. The user interface is a mobile app, and the decentralized application runs on the blockchain network and uses smart contracts to automatically execute transactions, ensuring the transparency, security and immutability of transactions.

[0068] Users can register and log in to the energy trading platform through the mobile app. Specifically, the user enters the basic user information on the mobile app, and completes the registration after being reviewed by the energy trading platform. The basic user information should at least include the user nickname, account number, password, energy storage device capacity and voltage level. After successful registration, the user can enter the account number and password on the mobile app to log in to the energy trading platform, and publish various energy trading information such as energy sales, energy consumption, quotation amount and acceptable bid range on the energy trading platform. In addition, the energy trading platform can also push messages to users through the mobile app to feedback various energy trading information such as the quotation amount and quotation status of all users. In fact, the detailed construction method of the energy trading platform can refer to the existing technology, so it will not be explained in detail here.

[0069] F12. All the energy-consuming users publish their own energy consumption on the energy trading platform, and then obtain the total energy consumption.

[0070] In this embodiment, the energy consumption refers to the amount of electricity that the energy consuming user wants to purchase. All energy consuming users publish their own energy consumption on the energy trading platform, and the sum of the energy consumption of all energy consuming users is the total energy consumption.

[0071] F13. The user corresponding to the larger of the total energy sales amount and the total energy consumption amount is regarded as a bidder, and the user corresponding to the smaller of the total energy sales amount and the total energy consumption amount is regarded as a non-bidder.

[0072] In this embodiment, if the total amount of energy sold is greater than the total amount of energy consumed, the electricity market is in a state of supply exceeding demand, and the energy selling users are bidders who make quotations, and the energy consuming users are non-bidders; if the total amount of energy sold is less than the total amount of energy consumed, at this time the supply is less than the demand, and the energy consuming users are bidders who make quotations, and the energy selling users are non-bidders.

[0073] The present invention uses the total amount of energy sold and the total amount of energy consumed to determine the bidder's quotation, so that both parties of the energy transaction can find a reasonable transaction price in a competitive market, and the electricity demand of at least one of the two parties of the energy transaction is met.

[0074] F2. The bidder sets an initial bid amount and an acceptable bid range on the energy trading platform.

[0075] In this embodiment, the bidder sets the initial bid amount and the acceptable bid range in the user interface, which are then published by the energy trading platform to make other users aware.

[0076] Specifically, if the bidder is an energy seller, the initial bid amount is generally the upper limit of the acceptable bid range. If the bidder is an energy consumer, the initial bid amount is generally the lower limit of the acceptable bid range.

[0077] F3. The bidder uses an adaptive bid adjustment scheme to make a bid based on the initial bid amount, the acceptable bid range and the bid information released by the energy trading platform.

[0078] The quotation information includes the information of the bidder, the quotation amount and the quotation status. The quotation status includes successful quotation and failed quotation. Step F3 specifically includes the following steps:

[0079] F31. Compare the initial bid amounts of each user in the bidder, and sort the users in the bidder in order of the initial bid amounts.

[0080] Specifically, in this embodiment, when the bidder is an energy seller, the corresponding energy sellers are sorted in order from small to large according to the initial bid amount. If there are multiple energy sellers with the same initial bid amount, these energy sellers are sorted randomly. When the bidder is an energy consumer, the corresponding energy consumer is sorted in order from large to small according to the initial bid amount. If there are multiple energy consumers with the same initial bid amount, these energy consumers are sorted randomly.

[0081] F32. When the total amount of energy transactions released by the non-bidder can be satisfied by the sum of the energy transaction amounts of the first k users among the bidders, the first k users among the bidders successfully bid, and the bids of other users among the bidders fail.

[0082] Specifically, in this embodiment, the total amount of energy transactions includes the total amount of energy sold and the total amount of energy consumed. Based on F31, if the bidder is an energy seller, when the sum of the energy sold by the current k energy sellers is just not less than the total amount of energy consumed, it means that the total amount of energy consumed by the non-bidder can be satisfied by the sum of the energy sold by the first k energy sellers. Then the first k energy sellers in the bidder bid successfully, and the remaining energy sellers fail to bid. When the sum of the energy sold by the current k energy sellers is just equal to the total amount of energy consumed, the kth energy seller can just sell all of its energy sold; when the sum of the energy sold by the current k energy sellers is just greater than the total amount of energy consumed, the kth energy seller can sell part of its energy sold.

[0083] If the bidder is an energy-consuming user, when the sum of the energy consumption published by the current k energy-consuming users is not less than the total energy sales, it means that the total energy sales published by the non-bidding party can be satisfied by the sum of the energy consumption of the first k energy-consuming users. Then the first k energy-consuming users in the bidder bid successfully, and the remaining energy-consuming users fail to bid. When the sum of the energy consumption published by the current k energy-consuming users is equal to the total energy sales, the kth energy-consuming user can buy the same amount of electricity as his own energy consumption; when the sum of the energy consumption published by the current k energy-consuming users is greater than the total energy sales, the kth energy-consuming user can only buy less electricity than his own energy consumption.

[0084] F33. For users whose bids fail, based on the acceptable bid range, the bid adjustment model is used to automatically adjust the bid amount until the bid is successful or exceeds the acceptable bid range.

[0085] Specifically, in this embodiment, the quotation adjustment model satisfies the following relationship:

[0086]

[0087] in, The amount of the user's next quotation. is the user's current quotation amount, is the user's last bid amount, N is the number of users on the bidder side, is the last bid amount of the j-th user among the bidders, is the current bid amount of the jth user among the bidders, k is the number of failed bids by the user, and are the lower and upper limits of the acceptable bid range, is the predicted value of the quotation, is the limit of the acceptable bidding range; when the bidders are energy sellers and energy consumers, The values ​​of are and The bid adjustment model combines the number of users, bids from other users, the number of failed bids, and the limit of the acceptable bid range. It can also differentiate the bid forecast value based on whether the bidder is an energy seller or an energy consumer, thus ensuring the rationality and effectiveness of the bid adjustment.

[0088] Furthermore, since the energy trading platform can push messages to users through the mobile app to feedback various energy trading information such as the bid amount and bid status, users can know the bid amounts and bid status of other users after each adjustment. In addition, since the bid amounts of users who failed to bid will be adjusted, while the bid amounts of users who successfully bid will not, after each round of bid adjustment, the users in the bidder need to be re-sorted according to the sorting method of step F31, and new users who failed to bid will appear.

[0089] Using the quotation adjustment model to adjust the quotation amount makes the user's quotation more intelligent, and automatically adjusts the quotation within the reasonable price range set by the user to strive for a successful transaction, increasing the flexibility of the transaction.

[0090] When the bid amount exceeds the acceptable bid range and the bid is still unsuccessful, step F3 further includes the following steps:

[0091] F34. If the user wants to continue to participate in the bidding, the acceptable bid range can be expanded.

[0092] In this embodiment, if the bidder is an energy seller and wants to continue to participate in the bidding, the energy seller should lower the lower limit of the acceptable bidding range on the energy trading platform to expand the acceptable bidding range; if the bidder is an energy consumer and wants to continue to participate in the bidding, the energy consumer should increase the upper limit of the acceptable bidding range on the energy trading platform to expand the acceptable bidding range. After expanding the acceptable bidding range, the corresponding user of the bidder can continue to participate in the bidding.

[0093] F35. If the user does not want to continue to participate in the bidding, the acceptable bid range remains unchanged, the bidding fails, and the user is recorded as a candidate user.

[0094] In this embodiment, the user is allowed to expand the acceptable bid range or choose to withdraw when the bid fails, which enhances the user's autonomy and participation, allowing the user to respond to market price fluctuations more flexibly and improve the transaction success rate. The user who withdraws from the bid is recorded as a standby user, which provides a basis for subsequently determining the fairness of both parties in the energy transaction.

[0095] F4. Based on the quotation results, use the priority determination scheme to determine the two parties to the energy transaction and the energy transaction price.

[0096] The first k users among the bidders are recorded as the initial successful bidders, the final bid amount of the initial successful bidder is recorded as the pre-selected successful bid amount, and the final bid amount of each candidate user is recorded as the candidate bid amount. Step F4 specifically includes the following steps:

[0097] F41. Determine whether there are candidate quotation amounts that are the same as the pre-selected successful quotation amounts, and record the corresponding initial successful quotation users and candidate users as a comparison user group.

[0098] In this embodiment, taking the energy seller as the bidder as an example, assuming that the k+1th energy seller and the kth energy seller have the same bid, but due to the total energy consumption limit of the non-bidder, the k+1th energy seller will not be recorded as the initial successful bidder, but will be recorded as a candidate user. At this time, if the first k energy sellers are directly allowed to trade energy with energy consuming users, then this is obviously unfair to the k+1th energy seller. At this time, the k+1th energy seller and the kth energy seller can be recorded as a comparison user group, so as to facilitate the subsequent re-determination of the arrangement order of the two and improve the fairness of energy trading.

[0099] F42. Calculate the priority judgment values ​​of the initial successful bid user and the standby users in each comparison user group respectively, and when the priority judgment value of the standby user is greater than the priority judgment value of the initial successful bid user, use the standby user to replace the initial successful bid user, thereby obtaining the successful bid user, and record the final bid amount of the successful bid user as the successful bid amount.

[0100] In this embodiment, according to the description of step F41, the priority decision model is used to calculate the priority decision value, and the priority decision model satisfies the following relationship:

[0101]

[0102] in, is the priority decision value of the user when conducting the i-th energy transaction, That is, the user's current priority decision value. is the energy transaction amount when the user conducts the i-1th energy transaction, The account balance before the user conducts the i-1th energy transaction. is the energy transaction amount when the user conducts the i-th energy transaction, That is, the user's energy transaction amount. is the account balance of the user before the i-th energy transaction, That is, the current amount of money in the user's account. It is the value of the first priority decision factor after the user conducts the i-2th energy transaction. is the second priority decision factor value after the user conducts the i-2th energy transaction, T is the time interval between the user's i-1th energy transaction and the i-th energy transaction, and one time interval is 7 days. , The number of days between the user's i-1th energy transaction and the i-th energy transaction. This priority judgment model takes into account multiple factors such as the user's transaction history, account balance, and transaction time interval, providing users with a dynamic and comprehensive priority evaluation method, and can encourage users to actively participate in transactions and keep their accounts active, which helps to improve the activity and efficiency of users' energy transactions.

[0103] In the priority judgment model, the value of the first priority judgment factor is used to reflect the user's activeness in energy trading, while the value of the second priority judgment factor reflects the user's integrity in energy trading. Therefore, the higher the user's priority judgment value is, the more active and trustworthy the user is. The initial values ​​of the first priority judgment factor and the second priority judgment factor are both 10, and they satisfy the following relationship in turn:

[0104]

[0105]

[0106] in, is the value of the first priority decision factor before the i-th energy transaction, that is, the current value of the first priority decision factor, at which time the i-th energy transaction is not completed; is the value of the second priority decision factor before the i-th energy transaction, that is, the current value of the second priority decision factor. At this time, the i-th energy transaction is not completed. If it is the first energy transaction , If this is your second energy transaction .

[0107] Furthermore, by comparing the successful pre-selected bid amount with the standby bid amount, the standby user is allowed to replace the initial successful bid user when the priority judgment value is higher, thereby achieving more accurate transaction matching and increasing the fairness of the transaction.

[0108] F43. Determine whether there are multiple successful bidders with the same successful bid amount, and record the successful bidders with the same successful bid amount as users with the same price.

[0109] In this embodiment, after step F41 and step F42, the replacement between the initial successful bidder and the candidate user has been completed, and the user who finally participates in the energy transaction is determined, that is, the successful bidder. However, taking the energy seller as the bidder as an example, if the successful bid amount of the kth energy seller is the same as that of the k-1th energy seller and the kth energy seller can only sell part of its own energy sales, then this may be unfair to the kth energy seller. Therefore, it is necessary to further sort the successful bidders to further improve the accuracy of transaction matching and the fairness of energy transactions.

[0110] F44. Sort the users who have successfully quoted according to the order of the successful quotation amounts, wherein the users who have quoted the same price are sorted according to the order of the initial quotation amounts.

[0111] F45. Use the priority decision model to calculate the priority decision value of each user with the same price, and adjust the ranking of the users with the same price in descending order of the priority decision value, thereby achieving matching between the user who successfully bids and the non-bidder.

[0112] In this embodiment, if the priority judgment values ​​of users with the same price are different, the ranking of users with the same price is adjusted in descending order according to the priority judgment values, and the ranking of other users who have successfully bid remains unchanged, thereby ensuring the fairness of energy trading. If the priority judgment values ​​of users with the same price are the same, since step F44 ranks users with the same price in the order of the initial bid amount, the first-come-first-served rule is followed, which can also ensure the fairness of energy trading.

[0113] Furthermore, if the bidder is an energy-selling user, then after adjusting the ranking of successful bidders, according to the ranking of successful bidders, first ensure that the first successful bidder can sell all the electricity sold, then ensure that the second successful bidder can sell all the electricity sold, and so on. If the bidder is an energy-consuming user, then after adjusting the ranking of successful bidders, according to the ranking of successful bidders, first ensure that the first successful bidder can buy enough electricity, then ensure that the second successful bidder can buy enough electricity, and so on.

[0114] F46. The average of the successful bid amounts is used as the energy transaction price.

[0115] In this embodiment, the average of the successful bid amounts is used as the energy transaction price, which reduces the extreme price fluctuations, makes the transaction price more reasonable and stable, and enables different energy transaction parties to use the same price for energy transactions, thereby increasing the fairness of the transaction.

[0116] Furthermore, in this embodiment, the benefit protection strategy is used to increase the dishonesty cost in transactions, protect the rights and interests of honest users, and improve the efficiency of energy transactions to a certain extent. The benefit protection strategy specifically includes the following steps:

[0117] H1. Freeze part of the user’s transaction funds as a deposit.

[0118] In this embodiment, users can recharge transaction funds on the mobile app for energy trading. Before the transaction, the smart contract freezes 10% of the user's transaction funds of this energy transaction amount as a deposit.

[0119] H2. After the successful bidder is matched with the non-bidder, if one party in the transaction refuses to complete the transaction and becomes a defaulter, the deposit of the defaulter shall be transferred to the other party as compensation.

[0120] H3. After the successful bidder is matched with the non-bidder, if both parties in the transaction refuse to complete the transaction or successfully complete the transaction, the deposits of both parties will be returned to their respective accounts.

[0121] Furthermore, a smart contract that integrates the adaptive bidding competition strategy and the interest protection strategy is written based on the Remix compiler, and the smart contract can adaptively quote and protect the interests of users. It should be noted that the formulated smart contract is not limited to the functions corresponding to the adaptive bidding competition strategy and the interest protection strategy of this embodiment, but can also include some existing basic functions such as transaction timing function, transfer function, withdrawal function, receive function and balance query function. Considering that these basic functions are conventional settings of existing smart contracts for energy trading, they are not described in detail in this embodiment.

[0122] S3. The user registers on the energy trading platform and submits a transaction request, thereby realizing energy trading based on the smart contract and the power grid.

[0123] Specifically, in this embodiment, the way in which users register on the energy trading platform is shown in step F11. After successful registration, the user can enter the account number and password on the mobile app to log in to the energy trading platform, and submit a transaction request on the energy trading platform. The submitted transaction request includes various energy trading information such as energy sold, energy consumed, quoted amount and acceptable bid range.

[0124] Furthermore, if the user meets the rules of the smart contract and becomes a successful bidder, the smart contract generates a transaction order. After the transaction order passes the legality review of the energy trading platform, the user can complete the transaction according to the content agreed in the transaction order, that is, the buyer pays the fee within the specified time, and the seller transmits electricity to the buyer through the distribution network within the specified time. After the transaction is completed, the smart meter will record and feedback the transaction electricity to the energy trading platform, and after the signatures of both parties to the transaction are confirmed, the smart contract will automatically settle, and then execute step S4.

[0125] S4. Generate new blocks using transaction information, and connect the new blocks to the end of the blockchain for storage based on the consensus mechanism.

[0126] Specifically, in this embodiment, this step is a prior art, so it will not be described in detail here.

[0127] It should be noted that, in some cases, the actions described in the specification can be performed in a different order and still achieve the desired results. In this embodiment, the order of steps given is only to make the embodiment appear clearer and easier to explain, rather than to limit it.

[0128] In an alternative embodiment, see Figure 2 The present invention also provides an energy Internet transaction system based on blockchain, which uses the energy Internet transaction method based on blockchain provided by the present invention. The system includes an intelligent collection device A1, a smart contract module A2, an energy transaction platform A3 and a blockchain network module A4.

[0129] The intelligent collection device A1 is used to collect the user's electricity data and interact with the blockchain. The electricity data includes electricity consumption, power generation and transaction electricity. Users include energy sellers and energy consumers.

[0130] Specifically, in this embodiment, the intelligent collection device A1 is a smart meter. The electricity data collected by the smart meter is uploaded to the blockchain network through an encrypted network for electricity trading, as described in step S1.

[0131] The smart contract module A2 is used to formulate a smart contract for deployment on the blockchain network based on an adaptive bidding competition strategy and an interest protection strategy.

[0132] Specifically, in this embodiment, the smart contract module A2 is built based on Remix, and the Solidity language can be used to complete the development, compilation, testing, deployment, debugging and interaction of Ethereum smart contracts. The smart contract developed based on the smart contract module A2 is deployed on the blockchain network module A4.

[0133] Furthermore, the adaptive bidding competition strategy and the interest protection strategy are specifically as described in step S2.

[0134] The user registers on the energy trading platform A3 and submits a transaction request, thereby realizing energy trading based on the smart contract and the power grid.

[0135] Specifically, in this embodiment, the user can use the energy trading platform A3 to interact with the smart contract in the blockchain network module A4, as described in step S3.

[0136] The blockchain network module A4 generates a new block using transaction information, and connects the new block to the end of the blockchain for storage based on a consensus mechanism.

[0137] Specifically, in this embodiment, the blockchain network module A4 can build a blockchain network and store the DPoS consensus mechanism and the smart contract formulated by the smart contract module. When the two parties of the energy transaction conduct energy transactions, the blockchain network module A4 generates a new block using the transaction information and connects the new block to the end of the blockchain for storage based on the DPoS consensus mechanism.

[0138] In summary, the method provided by the present invention realizes the decentralization of power energy transactions and high transparency of transactions based on blockchain technology, ensuring fair, just and safe energy transactions. Specifically, the method uses the total amount of energy sold and the total amount of energy consumed to determine the bidder to make a quotation, so that the needs of at least one of the two parties of the energy transaction are met; the adaptive quotation adjustment scheme used makes the quotation more intelligent, and can guarantee the autonomy and participation of users, so that users can more flexibly respond to market price fluctuations and improve the success rate of transactions. The quotation adjustment model used combines the number of users, the quotations of other users, the number of failed quotations and the limit of the acceptable bidding range, and can differentiate the quotation prediction value according to whether the bidder is an energy seller or an energy consumer, thereby ensuring the rationality and effectiveness of the quotation adjustment; the priority determination scheme used compares the quotation amounts of different users, and then allows users to replace each other and adjust the user ranking based on the priority judgment value, and takes the average of the successful quotation amount as the energy transaction price, thereby increasing the fairness of the transaction. The priority judgment model used takes into account multiple factors such as the user's transaction history, account balance and transaction time interval, provides users with a dynamic and comprehensive priority evaluation method, and can encourage users to actively participate in transactions and keep their accounts active; the deposit mechanism is used to increase the cost of default in transactions, protect the rights and interests of honest users, and improve the efficiency of energy transactions to a certain extent. In addition, the system provided by the present invention is a system compatible with the present method, which can stably execute the method provided by the present invention and improve the practicability of the method of the present invention.

[0139] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.

Claims

1. The energy internet transaction method based on blockchain is characterized by: The steps include: Collecting the electricity data of users through intelligent collection devices, the electricity data includes electricity consumption, power generation and transaction electricity, and users include energy sellers and energy consumers; Formulate smart contracts for deployment on blockchain networks based on adaptive bidding competition strategies and interest protection strategies; The adaptive bidding competition strategy includes the following steps: All the energy sellers publish their own energy sales volume on the energy trading platform, and then obtain the total energy sales volume; All the energy-consuming users publish their own energy consumption on the energy trading platform, and then obtain the total energy consumption; The user corresponding to the larger of the total energy sales amount and the total energy consumption amount is regarded as a bidder, and the user corresponding to the smaller of the total energy sales amount and the total energy consumption amount is regarded as a non-bidder; The bidder sets an initial bid amount and an acceptable bid range on the energy trading platform; According to the initial bid amount, the acceptable bid range and the bid information published by the energy trading platform, the bidder uses the adaptive bid adjustment scheme to make a bid, which specifically includes the following steps: Comparing the initial bid amounts of each user in the bidder, and sorting the users in the bidder in order of the initial bid amounts; When the total amount of energy transactions released by the non-bidder can be satisfied by the sum of the energy transaction amounts of the first k users among the bidders, the first k users among the bidders will succeed in their bids, and the bids of other users among the bidders will fail; For users whose bids fail, based on the acceptable bid range, the bid adjustment model is used to automatically adjust the bid amount until the bid succeeds or exceeds the acceptable bid range; The quote adjustment model satisfies the following relationship: in, The amount of the user's next quotation. is the user's current quotation amount, is the amount of the user's last bid, N is the number of users in the bidder, is the last bid amount of the j-th user among the bidders, is the current bid amount of the jth user among the bidders, k is the number of failed bids by the user, and are the lower and upper limits of the acceptable bid range, respectively. is the predicted value of the quotation, is the limit of the acceptable bid range; when the bidders are the energy seller and the energy consumer, The values ​​of are and ; When the bid amount exceeds the acceptable bid range and the bid is still unsuccessful, if the user wants to continue to participate in the bidding, the acceptable bid range can be expanded; When the bid amount exceeds the acceptable bid range and the bid is still unsuccessful, if the user does not want to continue to participate in the bid, the acceptable bid range remains unchanged, the bid fails, and the user is recorded as a candidate user; The energy transaction volume includes the energy sold and the energy consumed, the quotation information includes the information of the bidder, the quotation amount and the quotation status, and the quotation status includes the quotation success and the quotation failure; The first k users among the bidders are recorded as initial successful bidders, the final bid amount of the initial successful bidder is recorded as the pre-selected successful bid amount, and the final bid amount of each candidate user is recorded as the candidate bid amount; Determine whether there are candidate bid amounts that are the same as the pre-selected successful bid amounts, and record the corresponding initial successful bid users and candidate users as a comparison user group; Calculate the priority judgment values ​​of the initial successful bidder and the candidate users in each comparison user group respectively, and when the priority judgment value of the candidate user is greater than the priority judgment value of the initial successful bidder, use the candidate user to replace the initial successful bidder, thereby obtaining the successful bidder, and record the final bid amount of the successful bidder as the successful bid amount; Determine whether there are multiple successful bidders with the same successful bid amount, and record the successful bidders with the same successful bid amount as users with the same bid price; Sorting the users who have successfully bid according to the order of the successful bid amounts, wherein the users with the same bid are sorted according to the order of the initial bid amounts; The priority decision model is used to calculate the priority decision values ​​of each user with the same price, and the ranking of the users with the same price is adjusted in descending order according to the priority decision values, so as to achieve matching between the user who successfully bids and the non-bidder; The priority decision model satisfies the following relationship: in, is the priority decision value of the user when conducting the i-th energy transaction, is the energy transaction amount when the user conducts the i-1th energy transaction, The account balance before the user conducts the i-1th energy transaction. is the energy transaction amount when the user conducts the i-th energy transaction, is the account balance of the user before the i-th energy transaction, It is the value of the first priority decision factor after the user conducts the i-2th energy transaction. is the value of the second priority decision factor after the user conducts the i-2th energy transaction, T is the time interval between the user's i-1th energy transaction and the i-th energy transaction; The average of the successful bid amounts is used as the energy transaction price; The user registers on the energy trading platform and submits a transaction request, thereby realizing energy trading based on the smart contract and the power grid; Transaction information is used to generate new blocks, and based on the consensus mechanism, the new blocks are connected to the end of the blockchain for storage.

2. The energy internet transaction method based on blockchain according to claim 1 is characterized in that: The interest protection strategy includes the following steps: Freeze part of the user's transaction funds as a deposit; After the successful bidder is matched with the non-bidder, if one party refuses to complete the transaction and becomes a defaulter, the deposit of the defaulter will be transferred to the other party as compensation; After the successful bidding user is matched with the non-bidder, if both parties in the transaction refuse to complete the transaction or successfully complete the transaction, the deposits of both parties will be returned to their respective accounts.

3. A blockchain-based energy internet transaction system, wherein the system uses the blockchain-based energy internet transaction method according to any one of claims 1 to 2, characterized in that: The energy internet trading system based on blockchain includes: An intelligent collection device, which is used to collect the user's electricity data and interact with the blockchain. The electricity data includes electricity consumption, power generation and transaction electricity. The users include energy sellers and energy consumers. A smart contract module, which is used to formulate a smart contract for deployment on a blockchain network based on an adaptive bidding competition strategy and an interest protection strategy; The adaptive bidding competition strategy includes the following steps: All the energy sellers publish their own energy sales volume on the energy trading platform, and then obtain the total energy sales volume; All the energy-consuming users publish their own energy consumption on the energy trading platform, and then obtain the total energy consumption; The user corresponding to the larger of the total energy sales amount and the total energy consumption amount is regarded as a bidder, and the user corresponding to the smaller of the total energy sales amount and the total energy consumption amount is regarded as a non-bidder; The bidder sets an initial bid amount and an acceptable bid range on the energy trading platform; According to the initial bid amount, the acceptable bid range and the bid information published by the energy trading platform, the bidder uses the adaptive bid adjustment scheme to make a bid, which specifically includes the following steps: Comparing the initial bid amounts of each user in the bidder, and sorting the users in the bidder in order of the initial bid amounts; When the total amount of energy transactions released by the non-bidder can be satisfied by the sum of the energy transaction amounts of the first k users among the bidders, the first k users among the bidders will succeed in their bids, and the bids of other users among the bidders will fail; For users whose bids fail, based on the acceptable bid range, the bid adjustment model is used to automatically adjust the bid amount until the bid succeeds or exceeds the acceptable bid range; The quote adjustment model satisfies the following relationship: in, The amount of the user's next quotation. is the user's current quotation amount, is the amount of the user's last bid, N is the number of users in the bidder, is the last bid amount of the j-th user among the bidders, is the current bid amount of the jth user among the bidders, k is the number of failed bids by the user, and are the lower and upper limits of the acceptable bid range, respectively. is the predicted value of the quotation, is the limit of the acceptable bid range; when the bidders are the energy seller and the energy consumer, The values ​​of are and ; When the bid amount exceeds the acceptable bid range and the bid is still unsuccessful, if the user wants to continue to participate in the bidding, the acceptable bid range can be expanded; When the bid amount exceeds the acceptable bid range and the bid is still unsuccessful, if the user does not want to continue to participate in the bid, the acceptable bid range remains unchanged, the bid fails, and the user is recorded as a candidate user; The energy transaction volume includes the energy sold and the energy consumed, the quotation information includes the information of the bidder, the quotation amount and the quotation status, and the quotation status includes the quotation success and the quotation failure; The first k users among the bidders are recorded as initial successful bidders, the final bid amount of the initial successful bidder is recorded as the pre-selected successful bid amount, and the final bid amount of each candidate user is recorded as the candidate bid amount; Determine whether there are candidate bid amounts that are the same as the pre-selected successful bid amounts, and record the corresponding initial successful bid users and candidate users as a comparison user group; Calculate the priority judgment values ​​of the initial successful bidder and the candidate users in each comparison user group respectively, and when the priority judgment value of the candidate user is greater than the priority judgment value of the initial successful bidder, use the candidate user to replace the initial successful bidder, thereby obtaining the successful bidder, and record the final bid amount of the successful bidder as the successful bid amount; Determine whether there are multiple successful bidders with the same successful bid amount, and record the successful bidders with the same successful bid amount as users with the same bid price; Sorting the users who have successfully bid according to the order of the successful bid amounts, wherein the users with the same bid are sorted according to the order of the initial bid amounts; The priority decision model is used to calculate the priority decision values ​​of each user with the same price, and the ranking of the users with the same price is adjusted in descending order according to the priority decision values, so as to achieve matching between the user who successfully bids and the non-bidder; The priority decision model satisfies the following relationship: in, is the priority decision value of the user when conducting the i-th energy transaction, is the energy transaction amount when the user conducts the i-1th energy transaction, The account balance before the user conducts the i-1th energy transaction. is the energy transaction amount when the user conducts the i-th energy transaction, is the account balance of the user before the i-th energy transaction, It is the value of the first priority decision factor after the user conducts the i-2th energy transaction. is the value of the second priority decision factor after the user conducts the i-2th energy transaction, T is the time interval between the user's i-1th energy transaction and the i-th energy transaction; The average of the successful bid amounts is used as the energy transaction price; An energy trading platform, where users register and submit trading requests, thereby achieving energy trading based on the smart contract and the power grid; The blockchain network module generates new blocks using transaction information, and connects the new blocks to the end of the blockchain for storage based on a consensus mechanism.

Citation Information

Patent Citations

  • Self-adaptive bidding multi-energy P2P transaction platform based on block chain

    CN114626922A

  • Distributed power transaction pairing settlement method based on block chain

    CN117035919A