A blockchain-based energy storage transaction method and related device
Through the clearing smart contract and settlement smart contract of blockchain technology, the problem of inaccurate bill data in energy storage transactions is solved, the timely and accurate calibration of receivable vouchers and payable vouchers is realized, and the accuracy and timeliness of transactions are ensured. .
Patent Information
- Application Number
- CN202011378477.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-30
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-11-30
AI Technical Summary
In existing energy storage transactions, it is difficult to ensure the timeliness and accuracy of billing data at the same time, resulting in inaccurate billing data leading to collection and payment errors.
Using a blockchain-based energy storage trading method, through clearing smart contracts and settlement smart contracts, the energy transaction clearing data and transmission data are obtained at certain intervals, and receivable vouchers and payable vouchers are issued, and the quantity is calculated after the bill is settled. Calibration to ensure data accuracy.
It improves the accuracy of receivable vouchers and payable vouchers in energy storage transactions, ensuring that account data is timely and accurate, and avoiding incorrect receipts and payments.
Smart Images

Figure CN112561697B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and in particular to a blockchain-based energy storage transaction method and related devices. Background Art
[0002] With the development of the times, people have higher and higher requirements for the timeliness and accuracy of billing data (such as accounts receivable and accounts payable) of energy storage transactions. How to ensure the timeliness and accuracy of billing data at the same time has become a technical problem that needs to be solved urgently in this field.
[0003] In the prior art, in order to ensure that billing data is provided to each account as quickly as possible, the billing data of the day is usually determined based on the transaction contract signed daily, and payments are made to users based on this. In this way, the timeliness of the billing data is certainly guaranteed. However, in subsequent actual energy storage transactions, the energy transmission volume is very likely to be inconsistent with expectations due to various factors. Therefore, it is inaccurate to determine the billing data of the day only based on the transaction contract signed daily, which may easily lead to the situation where payments are made to each account based on inaccurate billing data. Summary of the invention
[0004] The present application provides a blockchain-based energy storage transaction method and related devices, which can effectively improve the accuracy of receivable vouchers and / or payable vouchers in energy storage transactions.
[0005] In order to achieve the above technical effects, the first aspect of the present application provides a method for energy storage trading based on blockchain, wherein the blockchain is deployed with a clearing smart contract and a settlement smart contract;
[0006] The above energy storage trading method includes:
[0007] At each first preset time interval, based on the clearing smart contract, the energy transaction clearing data of each account within the first preset time period is obtained, and the receivable vouchers and / or payable vouchers corresponding to the energy transaction clearing data are issued to each account;
[0008] At every second preset time interval, based on the settlement smart contract, the energy transmission data of each of the accounts within the second preset time period is obtained, and bill settlement is performed based on the energy transmission data to generate bill settlement data, and then based on the bill settlement data, the quantity of the receivable vouchers and / or the payable vouchers issued to each of the accounts within the second preset time period is calibrated respectively;
[0009] Among them, the above-mentioned first preset time length is shorter than the above-mentioned second preset time length.
[0010] Based on the first aspect of the present application, in a first possible implementation manner, based on the settlement smart contract, obtaining the energy transmission data of each account within the second preset time period includes:
[0011] Based on the electric meters corresponding to the above-mentioned accounts, the energy transmission data of the above-mentioned accounts within the above-mentioned second preset time period is obtained.
[0012] Based on the first aspect of the present application, in a second possible implementation manner, after the quantity of the receivable vouchers and / or the payable vouchers issued to the above-mentioned accounts within the above-mentioned second preset time period is calibrated based on the above-mentioned bill settlement data, the above-mentioned energy storage trading method further includes:
[0013] The calibrated accounts receivable vouchers and / or payable vouchers in the above accounts are unlocked, among which the accounts receivable vouchers and / or payable vouchers that have not been calibrated in quantity are in a locked state.
[0014] Based on the first aspect of the present application, in a third possible implementation manner, after the quantity of the receivable vouchers and / or the payable vouchers issued to the above-mentioned accounts within the above-mentioned second preset time period is calibrated based on the above-mentioned bill settlement data, the above-mentioned energy storage trading method further includes:
[0015] Based on the calibrated number of the above-mentioned receivable vouchers and / or the above-mentioned payable vouchers in each of the above-mentioned accounts, the above-mentioned accounts are respectively charged and the corresponding number of payable vouchers are deducted and / or the payment is made and the corresponding number of receivable vouchers are deducted.
[0016] Based on the first aspect of the present application or the first, second or third possible implementation of the first aspect of the present application, in a fourth possible implementation, the blockchain further deploys one or more transaction mode smart contracts;
[0017] The above energy storage transaction method further includes:
[0018] Receiving an energy transaction declaration request, wherein the energy transaction declaration request includes: instruction information of a transaction mode smart contract;
[0019] In response to the above energy transaction declaration request, the corresponding energy declaration processing is executed based on the transaction mode smart contract indicated by the above instruction information.
[0020] Based on the fourth possible implementation of the first aspect of the present application, in a fifth possible implementation, the energy transaction declaration request further includes: signature information of each account;
[0021] The above-mentioned smart contract for executing the corresponding energy declaration process based on the transaction mode indicated by the above-mentioned instruction information includes:
[0022] Based on the above signature information, determine whether the identity of each of the above accounts is legal;
[0023] If there is at least one account with an illegal identity among the above accounts, an abnormal warning will be output.
[0024] The second aspect of the present application provides a blockchain-based energy storage trading device, wherein the blockchain is deployed with a clearing smart contract and a settlement smart contract;
[0025] The above energy storage trading device includes:
[0026] A clearing unit, configured to: obtain energy transaction clearing data of each account within the first preset time period based on the clearing smart contract at each first preset time period, and issue to each account a number of receivable vouchers and / or payable vouchers corresponding to the energy transaction clearing data;
[0027] A settlement unit, configured to: obtain energy transmission data of each of the accounts within the second preset time period based on the settlement smart contract at each second preset time period, perform bill settlement based on the energy transmission data to generate bill settlement data, and then perform quantity calibration on the receivable vouchers and / or payable vouchers issued to each of the accounts within the second preset time period based on the bill settlement data;
[0028] Among them, the above-mentioned first preset time length is shorter than the above-mentioned second preset time length.
[0029] Based on the second aspect of the present application, in a first possible implementation manner, the settlement unit is specifically used to:
[0030] Based on the electric meters corresponding to the above-mentioned accounts, the energy transmission data of the above-mentioned accounts within the above-mentioned second preset time period is obtained.
[0031] The third aspect of the present application provides a blockchain-based energy storage trading device, wherein the blockchain is deployed with a clearing smart contract and a settlement smart contract, and the energy storage trading device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the energy storage trading method mentioned in the first aspect or any possible implementation method of the first aspect are implemented.
[0032] The fourth aspect of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of the energy storage trading method mentioned in the first aspect or any possible implementation of the first aspect.
[0033] As can be seen from the above, the technical solution of the present application obtains the energy transaction clearing data of each account within the first preset time period based on the clearing smart contract at each interval of the first preset time period, and issues the receivable vouchers and / or payable vouchers corresponding to the energy transaction clearing data to each account respectively; obtains the energy transmission data of each account within the second preset time period based on the settlement smart contract at each interval of the second preset time period, and performs bill settlement based on the energy transmission data to generate bill settlement data, and then calibrates the quantity of the receivable vouchers and / or payable vouchers issued to each account within the second preset time period based on the bill settlement data. Based on the technical solution of the present application, the receivable vouchers and / or payable vouchers can be provided to each account in a timely manner, and the receivable vouchers and / or payable vouchers can be calibrated at each certain interval, so that each account can receive and pay based on the calibrated receivable vouchers and / or payable vouchers, while ensuring the timeliness of the receivable vouchers and / or payable vouchers in energy storage transactions, and improving the accuracy of the receivable vouchers and / or payable vouchers in energy storage transactions. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0035] Figure 1 A schematic diagram of an embodiment of a blockchain-based energy storage transaction method provided in this application;
[0036] Figure 2 A schematic diagram of the structure of an embodiment of a blockchain-based energy storage trading device provided in this application;
[0037] Figure 3 A schematic structural diagram of another embodiment of the blockchain-based energy storage trading device provided in this application. DETAILED DESCRIPTION
[0038] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0039] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0040] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural forms unless the context clearly indicates otherwise.
[0041] The following is a clear and complete description of the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0042] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present application. Therefore, the present application is not limited to the specific embodiments disclosed below.
[0043] Embodiment 1
[0044] The present application provides a method for energy storage trading based on blockchain, wherein the blockchain is deployed with a clearing smart contract and a settlement smart contract;
[0045] like Figure 1 As shown, the above energy storage transaction method includes:
[0046] Step 101, at each first preset time interval, based on the clearing smart contract, obtaining energy transaction clearing data of each account within the first preset time period, and issuing receivable vouchers and / or payable vouchers corresponding to the energy transaction clearing data to each account;
[0047] In an embodiment of the present application, energy transaction clearing data generated by energy transactions between each account within 24 hours can be retrieved from the blockchain every 24 hours based on the clearing smart contract, and then a corresponding number of receivable vouchers and / or payable vouchers are issued to each account based on the energy transaction clearing data. The energy transaction clearing data may include data such as the amount of electricity purchased, the amount of electricity sold, the amount of electricity purchased, the amount of electricity sold, etc. The energy transaction clearing data generated every 24 hours can be used for timely reference by each account to judge its current financial status.
[0048] Specifically, after obtaining the energy transaction settlement data of each account within the first preset time period, the energy storage transaction method further includes:
[0049] Based on transaction influencing factors, the above energy transaction clearing data is adjusted accordingly, wherein the above transaction influencing factors include one or more of the cable section restrictions corresponding to each account, the climate conditions corresponding to each account and other influencing factors, which are not limited here.
[0050] Step 102: at every second preset time interval, based on the settlement smart contract, obtaining the energy transmission data of each of the accounts within the second preset time, performing bill settlement based on the energy transmission data to generate bill settlement data, and then, based on the bill settlement data, respectively calibrating the quantity of the receivable vouchers and / or the payable vouchers issued to each of the accounts within the second preset time;
[0051] Among them, the above-mentioned first preset time length is shorter than the above-mentioned second preset time length.
[0052] In an embodiment of the present application, energy transmission data of each account during energy transmission can be obtained from each account at intervals of one month based on the settlement smart contract, and bill settlement data can be generated based on the energy transmission data. Thereafter, the quantity of the receivables and / or payables vouchers received by each account within one month can be calibrated based on the bill settlement data. The bill settlement data may include data such as the actual amount of electricity sent, the actual amount of electricity received, the actual amount of electricity sold, and the actual amount of electricity purchased. The receivables and / or payables vouchers of each account after calibration can more accurately reflect the actual amount receivable or payable of each account, so as to prevent the occurrence of erroneous collection and payment.
[0053] Optionally, based on the settlement smart contract, obtaining the energy transmission data of each account within the second preset time period includes:
[0054] Based on the electric meters corresponding to the above-mentioned accounts, the energy transmission data of the above-mentioned accounts within the above-mentioned second preset time period is obtained.
[0055] It should be noted that the above-mentioned electricity meter can be an electricity meter installed on the cable used for power transmission of the above-mentioned accounts. Based on the electricity meter, the actual amount of electricity sent or the actual amount of electricity received of the above-mentioned accounts can be obtained, and the receivable vouchers and payable vouchers of the above-mentioned accounts can be calibrated according to the actual amount of electricity sent or the actual amount of electricity received, wherein the number of receivable vouchers of each account is used to record the amount of money that each account should collect, and the number of payable vouchers of each account is used to record the amount of money that each account should pay.
[0056] Optionally, after the quantity of the receivable vouchers and / or the payable vouchers issued to the respective accounts within the second preset time period is calibrated based on the bill settlement data, the energy storage transaction method further includes:
[0057] The calibrated accounts receivable vouchers and / or payable vouchers in the above accounts are unlocked, among which the accounts receivable vouchers and / or payable vouchers that have not been calibrated in quantity are in a locked state.
[0058] It should be noted that any operation other than viewing cannot be performed on the accounts receivable vouchers and / or accounts payable vouchers in a locked state. For example, the accounts receivable vouchers and / or accounts payable vouchers in a locked state cannot be moved or deleted.
[0059] Optionally, after the quantity of the receivable vouchers and / or the payable vouchers issued to the respective accounts within the second preset time period is calibrated based on the bill settlement data, the energy storage transaction method further includes:
[0060] Based on the calibrated number of the above-mentioned receivable vouchers and / or the above-mentioned payable vouchers in each of the above-mentioned accounts, the above-mentioned accounts are respectively charged and the corresponding number of payable vouchers are deducted and / or the payment is made and the corresponding number of receivable vouchers are deducted.
[0061] Specifically, each of the above receivable vouchers or the above payable vouchers may represent a preset amount receivable or a preset amount payable of the corresponding account.
[0062] Optionally, the above blockchain also deploys more than one transaction model smart contract;
[0063] The above energy storage transaction method further includes:
[0064] Receiving an energy transaction declaration request, wherein the energy transaction declaration request includes: instruction information of a transaction mode smart contract;
[0065] In response to the above energy transaction declaration request, the corresponding energy declaration processing is executed based on the transaction mode smart contract indicated by the above instruction information.
[0066] Specifically, the above-mentioned transaction model smart contract can be any one of the bilateral bidding smart contracts, bilateral negotiation smart contracts and smart contracts corresponding to other transaction models, which is not limited here; the above-mentioned energy transaction declaration request can come from an account that needs to sell energy or needs to buy energy, and the above-mentioned indication information may include one or more of the specified transaction model information, the amount of energy sold / purchased, the transaction time limit and other information, which is not limited here.
[0067] Furthermore, the energy transaction declaration request also includes: signature information of each account;
[0068] The above-mentioned smart contract for executing the corresponding energy declaration process based on the transaction mode indicated by the above-mentioned instruction information includes:
[0069] Based on the above signature information, determine whether the identity of each of the above accounts is legal;
[0070] If there is at least one account with an illegal identity among the above accounts, an abnormal warning will be output.
[0071] Specifically, if there is at least one account with an illegal identity among the above accounts, an abnormal warning is output, and then a new energy transaction declaration request is received.
[0072] Optionally, after the smart contract based on the transaction mode indicated by the instruction information executes the corresponding energy declaration process, the energy storage transaction method further includes:
[0073] Based on the result of the energy declaration process, energy scheduling is performed between the accounts corresponding to the energy transaction declaration request.
[0074] Optionally, after performing bill settlement based on the energy transmission data to generate bill settlement data, the energy storage transaction method further includes:
[0075] Based on the above bill settlement data, subsidy payment vouchers are issued to each subsidy account.
[0076] Specifically, the above-mentioned subsidy account may be an account of a relevant government department, and the above-mentioned subsidy payment voucher may be used to record information such as the recipients, amounts, and number of times the subsidy needs to be paid by the account of the relevant government department.
[0077] As can be seen from the above, the technical solution of the present application obtains the energy transaction clearing data of each account within the first preset time period based on the clearing smart contract at each interval of the first preset time period, and issues the receivable vouchers and / or payable vouchers corresponding to the energy transaction clearing data to each account respectively; obtains the energy transmission data of each account within the second preset time period based on the settlement smart contract at each interval of the second preset time period, and performs bill settlement based on the energy transmission data to generate bill settlement data, and then calibrates the quantity of the receivable vouchers and / or payable vouchers issued to each account within the second preset time period based on the bill settlement data; wherein the first preset time period is less than the second preset time period. Based on the technical solution of the present application, the receivable vouchers and / or payable vouchers can be provided to each account in a timely manner, and the receivable vouchers and / or payable vouchers can be calibrated at each interval of a certain time, so that each account can receive and pay based on the calibrated receivable vouchers and / or payable vouchers, while ensuring the timeliness of the receivable vouchers and / or payable vouchers in energy storage transactions, and improving the accuracy of the receivable vouchers and / or payable vouchers in energy storage transactions.
[0078] Embodiment 2
[0079] The present application provides a blockchain-based energy storage trading device, wherein the blockchain is deployed with a clearing smart contract and a settlement smart contract;
[0080] like Figure 2 As shown, the energy storage trading device 20 includes:
[0081] The clearing unit 201 is used to: obtain the energy transaction clearing data of each account within the first preset time period based on the clearing smart contract at each first preset time period, and issue receivable vouchers and / or payable vouchers corresponding to the energy transaction clearing data to each account;
[0082] The settlement unit 202 is used to: obtain the energy transmission data of each of the accounts within the second preset time period based on the settlement smart contract at each second preset time period, and perform bill settlement based on the energy transmission data to generate bill settlement data, and then perform quantity calibration on the receivable vouchers and / or payable vouchers issued to each of the accounts within the second preset time period based on the bill settlement data;
[0083] Among them, the above-mentioned first preset time length is shorter than the above-mentioned second preset time length.
[0084] Optionally, the settlement unit 202 is specifically configured to:
[0085] Based on the electric meters corresponding to the above-mentioned accounts, the energy transmission data of the above-mentioned accounts within the above-mentioned second preset time period is obtained.
[0086] Optionally, the settlement unit 202 is specifically configured to:
[0087] The calibrated accounts receivable vouchers and / or payable vouchers in the above accounts are unlocked, among which the accounts receivable vouchers and / or payable vouchers that have not been calibrated in quantity are in a locked state.
[0088] Optionally, the settlement unit 202 is specifically configured to:
[0089] Based on the calibrated number of the above-mentioned receivable vouchers and / or the above-mentioned payable vouchers in each of the above-mentioned accounts, the above-mentioned accounts are respectively charged and the corresponding number of payable vouchers are deducted and / or the payment is made and the corresponding number of receivable vouchers are deducted.
[0090] Optionally, the above blockchain also deploys more than one transaction model smart contract;
[0091] The energy storage trading device 20 further includes:
[0092] Declaration unit, used for:
[0093] Receiving an energy transaction declaration request, wherein the energy transaction declaration request includes: instruction information of a transaction mode smart contract;
[0094] In response to the above energy transaction declaration request, the corresponding energy declaration processing is executed based on the transaction mode smart contract indicated by the above instruction information.
[0095] Optionally, the declaration unit is specifically used for:
[0096] Obtain the signature information of each of the above accounts, and based on the above signature information, determine whether the identity of each of the above accounts is legal;
[0097] If there is at least one account with an illegal identity among the above accounts, an abnormal warning will be output.
[0098] As can be seen from the above, the technical solution of the present application obtains the energy transaction clearing data of each account within the first preset time period based on the clearing smart contract at each interval of the first preset time period, and issues the receivable vouchers and / or payable vouchers corresponding to the energy transaction clearing data to each account respectively; obtains the energy transmission data of each account within the second preset time period based on the settlement smart contract at each interval of the second preset time period, and performs bill settlement based on the energy transmission data to generate bill settlement data, and then calibrates the quantity of the receivable vouchers and / or payable vouchers issued to each account within the second preset time period based on the bill settlement data; wherein the first preset time period is less than the second preset time period. Based on the technical solution of the present application, the receivable vouchers and / or payable vouchers can be provided to each account in a timely manner, and the receivable vouchers and / or payable vouchers can be calibrated at each interval of a certain time, so that each account can receive and pay based on the calibrated receivable vouchers and / or payable vouchers, while ensuring the timeliness of the receivable vouchers and / or payable vouchers in energy storage transactions, and improving the accuracy of the receivable vouchers and / or payable vouchers in energy storage transactions.
[0099] Embodiment 3
[0100] This application also provides another energy storage trading device based on blockchain, wherein the blockchain is deployed with a clearing smart contract and a settlement smart contract, such as Figure 3 As shown, the energy storage trading device in the embodiment of the present application includes: a memory 301, a processor 302, and a computer program stored in the memory 301 and executable on the processor 302, wherein: the memory 301 is used to store software programs and modules, the processor 302 executes various functional applications and data processing by running the software programs and modules stored in the memory 301, and the memory 301 and the processor 302 are connected via a bus 303.
[0101] Specifically, the processor 302 implements the following steps by running the above computer program stored in the memory 301:
[0102] At each first preset time interval, based on the clearing smart contract, the energy transaction clearing data of each account within the first preset time period is obtained, and the receivable vouchers and / or payable vouchers corresponding to the energy transaction clearing data are issued to each account;
[0103] At every second preset time interval, based on the settlement smart contract, the energy transmission data of each of the accounts within the second preset time period is obtained, and bill settlement is performed based on the energy transmission data to generate bill settlement data, and then based on the bill settlement data, the quantity of the receivable vouchers and / or the payable vouchers issued to each of the accounts within the second preset time period is calibrated respectively;
[0104] Among them, the above-mentioned first preset time length is shorter than the above-mentioned second preset time length.
[0105] Assuming that the above is the first possible implementation, in a second possible implementation based on the first possible implementation, based on the settlement smart contract, obtaining the energy transmission data of each account within the second preset time period includes:
[0106] Based on the electric meters corresponding to the above-mentioned accounts, the energy transmission data of the above-mentioned accounts within the above-mentioned second preset time period is obtained.
[0107] In a third possible implementation based on the first possible implementation, after the quantity of the receivable vouchers and / or the payable vouchers issued to each of the accounts within the second preset time period is calibrated based on the bill settlement data, the energy storage trading method further includes:
[0108] The calibrated accounts receivable vouchers and / or payable vouchers in the above accounts are unlocked, among which the accounts receivable vouchers and / or payable vouchers that have not been calibrated in quantity are in a locked state.
[0109] In a fourth possible implementation manner based on the first possible implementation manner, after the quantity of the receivable vouchers and / or the payable vouchers issued to the respective accounts within the second preset time period is calibrated based on the bill settlement data, the energy storage trading method further includes:
[0110] Based on the calibrated number of the above-mentioned receivable vouchers and / or the above-mentioned payable vouchers in each of the above-mentioned accounts, the above-mentioned accounts are respectively charged and the corresponding number of payable vouchers are deducted and / or the payment is made and the corresponding number of receivable vouchers are deducted.
[0111] In a fifth possible implementation based on the first, second, third or fourth possible implementation, the blockchain further deploys one or more transaction model smart contracts;
[0112] The above energy storage transaction method further includes:
[0113] Receiving an energy transaction declaration request, wherein the energy transaction declaration request includes: instruction information of a transaction mode smart contract;
[0114] In response to the above energy transaction declaration request, the corresponding energy declaration processing is executed based on the transaction mode smart contract indicated by the above instruction information.
[0115] In a sixth possible implementation based on the fifth possible implementation, the energy transaction declaration request further includes: signature information of each account;
[0116] The above-mentioned smart contract for executing the corresponding energy declaration process based on the transaction mode indicated by the above-mentioned instruction information includes:
[0117] Based on the above signature information, determine whether the identity of each of the above accounts is legal;
[0118] If there is at least one account with an illegal identity among the above accounts, an abnormal warning will be output.
[0119] As can be seen from the above, the technical solution of the present application obtains the energy transaction clearing data of each account within the first preset time period based on the clearing smart contract at each interval of the first preset time period, and issues the receivable vouchers and / or payable vouchers corresponding to the energy transaction clearing data to each account respectively; obtains the energy transmission data of each account within the second preset time period based on the settlement smart contract at each interval of the second preset time period, and performs bill settlement based on the energy transmission data to generate bill settlement data, and then calibrates the quantity of the receivable vouchers and / or payable vouchers issued to each account within the second preset time period based on the bill settlement data; wherein the first preset time period is less than the second preset time period. Based on the technical solution of the present application, the receivable vouchers and / or payable vouchers can be provided to each account in a timely manner, and the receivable vouchers and / or payable vouchers can be calibrated at each interval of a certain time, so that each account can receive and pay based on the calibrated receivable vouchers and / or payable vouchers, while ensuring the timeliness of the receivable vouchers and / or payable vouchers in energy storage transactions, and improving the accuracy of the receivable vouchers and / or payable vouchers in energy storage transactions.
[0120] Embodiment 4
[0121] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed, the steps provided in the above embodiment can be implemented. Specifically, the computer program includes a computer program code, and the above computer program code can be in source code form, object code form, executable file or some intermediate form, which is not limited here; the computer-readable storage medium can be any entity or device that can carry the above computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, which is not limited here. It should be noted that the content contained in the above computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction.
[0122] As can be seen from the above, the technical solution of the present application obtains the energy transaction clearing data of each account within the first preset time period based on the clearing smart contract at each interval of the first preset time period, and issues the receivable vouchers and / or payable vouchers corresponding to the energy transaction clearing data to each account respectively; obtains the energy transmission data of each account within the second preset time period based on the settlement smart contract at each interval of the second preset time period, and performs bill settlement based on the energy transmission data to generate bill settlement data, and then calibrates the quantity of the receivable vouchers and / or payable vouchers issued to each account within the second preset time period based on the bill settlement data; wherein the first preset time period is less than the second preset time period. Based on the technical solution of the present application, the receivable vouchers and / or payable vouchers can be provided to each account in a timely manner, and the receivable vouchers and / or payable vouchers can be calibrated at each interval of a certain time, so that each account can receive and pay based on the calibrated receivable vouchers and / or payable vouchers, while ensuring the timeliness of the receivable vouchers and / or payable vouchers in energy storage transactions, and improving the accuracy of the receivable vouchers and / or payable vouchers in energy storage transactions.
[0123] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0124] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0125] It should be noted that the methods and detailed examples provided in the above embodiments can be combined with the devices and equipment provided in the embodiments, and references can be made to each other, and no further details will be given.
[0126] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0127] In the embodiments provided in the present application, it should be understood that the disclosed apparatus / terminal equipment and method can be implemented in other ways. For example, the apparatus / equipment embodiments described above are only schematic, for example, the division of the above modules or units is only a logical function division, and in actual implementation, other division methods can be used, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0128] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for energy storage trading based on blockchain, characterized in that: The blockchain is deployed with a clearing smart contract and a settlement smart contract; The energy storage transaction method comprises: At intervals of a first preset time, based on the clearing smart contract, the energy transaction clearing data of each account within the first preset time is obtained, and a number of receivable vouchers and / or payable vouchers corresponding to the energy transaction clearing data are issued to each account respectively; At every second preset time interval, based on the settlement smart contract, the energy transmission data of each account within the second preset time is obtained, and bill settlement is performed based on the energy transmission data to generate bill settlement data, and then based on the bill settlement data, the quantity of the receivable vouchers and / or the payable vouchers issued to each account within the second preset time is calibrated respectively; Based on the calibrated number of the receivable vouchers and / or the payable vouchers in each account, collect payment from each account and deduct a corresponding number of payable vouchers and / or make payment and deduct a corresponding number of receivable vouchers; Among them, the first preset time length is shorter than the second preset time length.
2. The energy storage trading method according to claim 1, characterized in that: The obtaining, based on the settlement smart contract, the energy transmission data of each account within the second preset time period comprises: Based on the electric meters corresponding to the respective accounts, energy transmission data of the respective accounts within the second preset time period is obtained.
3. The energy storage trading method according to claim 1, characterized in that: After the quantity of the receivable vouchers and / or the payable vouchers issued to each account within the second preset time period is calibrated based on the bill settlement data, the energy storage transaction method further includes: The calibrated receivable vouchers and / or payable vouchers in each account are unlocked, wherein the receivable vouchers and / or payable vouchers that have not been calibrated in quantity are all in a locked state.
4. The energy storage trading method according to any one of claims 1 to 3, characterized in that: The blockchain also deploys one or more transaction model smart contracts; The energy storage transaction method further includes: Receiving an energy transaction declaration request, wherein the energy transaction declaration request includes: indication information of a transaction mode smart contract; In response to the energy transaction declaration request, the corresponding energy declaration processing is executed based on the transaction mode smart contract indicated by the indication information.
5. The energy storage trading method according to claim 4, characterized in that: The energy transaction declaration request also includes: signature information of each account; The smart contract for executing the corresponding energy declaration process based on the transaction mode indicated by the instruction information includes: Based on the signature information, determining whether the identity of each account is legal; If there is at least one account with an illegal identity among the accounts, an abnormal warning is output.
6. A blockchain-based energy storage trading device, characterized in that: The blockchain is deployed with a clearing smart contract and a settlement smart contract; The energy storage trading device comprises: A clearing unit, configured to: obtain energy transaction clearing data of each account within a first preset time period based on the clearing smart contract at intervals of a first preset time period, and issue to each account a number of receivable vouchers and / or payable vouchers corresponding to the energy transaction clearing data; A settlement unit, configured to: obtain energy transmission data of each account within the second preset time period based on the settlement smart contract at each second preset time period, perform bill settlement based on the energy transmission data to generate bill settlement data, and then perform quantity calibration on the receivable vouchers and / or payable vouchers issued to each account within the second preset time period based on the bill settlement data; The settlement unit is further configured to: based on the calibrated number of the receivable vouchers and / or the payable vouchers in each account, respectively collect payment from each account and deduct a corresponding number of payable vouchers and / or pay payment and deduct a corresponding number of receivable vouchers; Among them, the first preset time length is shorter than the second preset time length.
7. The energy storage trading device according to claim 6, characterized in that: The settlement unit is specifically used for: Based on the electric meters corresponding to the respective accounts, energy transmission data of the respective accounts within the second preset time period is obtained.
8. A blockchain-based energy storage trading device, characterized in that: The blockchain is deployed with a clearing smart contract and a settlement smart contract, the energy storage trading device includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the method described in any one of claims 1 to 5 when executing the computer program.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Block chain clearing and settlement system and method
CN108090750A
Electric power transaction settlement system with virtual electric meter based on block chain, and settlement and account issuing method
CN110880130A
