CN115760090A - Transaction processing method, device and system based on block chain - Google Patents

Transaction processing method, device and system based on block chain Download PDF

Info

Publication number
CN115760090A
CN115760090A CN202211332447.XA CN202211332447A CN115760090A CN 115760090 A CN115760090 A CN 115760090A CN 202211332447 A CN202211332447 A CN 202211332447A CN 115760090 A CN115760090 A CN 115760090A
Authority
CN
China
Prior art keywords
transaction
time
user
information
operator
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211332447.XA
Other languages
Chinese (zh)
Inventor
王晓红
黄攀
黄丝
景东亚
惠海芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202211332447.XA priority Critical patent/CN115760090A/en
Publication of CN115760090A publication Critical patent/CN115760090A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a transaction processing method, a device and a system based on a block chain, in particular to the field of the block chain, wherein the method comprises the following steps: determining an operator node, transaction article information, expected transaction time and preset request time, determining a deposit amount based on the transaction article information, and making a deposit deduction for a user based on the deposit amount; sending the information of the transaction articles and the expected transaction time to an operator node so that the operator can carry out target transaction according to the information of the transaction articles and the expected transaction time; determining a transaction amount discount coefficient based on a reception time when the user transmits the article reception confirmation information, a delivery time when the operator transmits the article delivery confirmation information, an expected transaction time, and a reservation request time; and carrying out transaction deduction on the user based on the transaction amount discount coefficient, the transaction article information and the deposit amount. The invention can promote the smooth proceeding of the offline transaction and is beneficial to protecting the benefits of the user, thereby improving the efficiency of the offline transaction.

Description

Transaction processing method, device and system based on block chain
Technical Field
The present invention relates to the field of transaction processing technologies, and in particular, to the field of blockchain, and in particular, to a method, an apparatus, and a system for processing transactions based on blockchain.
Background
In the process of the offline transaction, the user is often required to inform the expected operator of the information of the required articles and the expected time information in advance, so that the operator can prepare for the offline transaction in advance and can perform the offline transaction with the user at the corresponding time.
In the prior art, users often notify expected transaction article information and transaction time information to operators through a mode such as communication application, telephone or short message. However, the communication application of the operator needs to receive the information about the transaction items, the transaction time information, various social and life information, and the like of other users, and the received information is relatively complicated, which is not beneficial for the operator to find and extract the information about the transaction sent by the user in time, and is easy to cause the operator to forget the information about the transaction sent by the user, so that the operator may not be able to perform offline transaction with the user according to expectation (for example, the operator may not be able to perform transaction with the user at the corresponding expected time because the operator forgets or does not find the information about the transaction sent by the user in time, or the operator may not be able to perform transaction with the user in time at the corresponding expected time because the operator has a wrong preparation process for the transaction because of complicated information, so that the types and the quantity of the provided items are not equal during the transaction), and the telephone and the short message are treated in the same way. Moreover, the operator may lose the user if the delivery of the goods is not completed according to the expected transaction time but delayed, and there is no means for compensating the loss of the user if the operator delays the delivery, which is not good for protecting the user's interest.
In summary, the prior art has the problems that offline transactions are difficult to smoothly perform, the benefits of users are difficult to be fully protected, and the efficiency of the offline transactions is low.
Disclosure of Invention
The invention aims to provide a transaction processing method based on a block chain, which aims to solve the problems that offline transactions are difficult to smoothly carry out and the benefits of users are difficult to fully protect in the prior art, so that the efficiency of the offline transactions is low. Another object of the present invention is to provide a transaction processing device based on blockchain. It is a further object of this invention to provide a blockchain based transaction processing system. It is a further object of the present invention to provide a computer apparatus. It is a further object of the invention to provide a readable medium. It is a further object of this invention to provide a computer program product.
To achieve the above object, an aspect of the present invention discloses a transaction processing method based on a blockchain, the method including:
determining an operator node, transaction article information, expected transaction time and predetermined request time corresponding to a blockchain based on a transaction predetermined request sent by a user node in the blockchain, determining a corresponding deposit amount based on the transaction article information, and making a deposit deduction for a user corresponding to the user node based on the deposit amount;
sending the information of the transaction items and the expected transaction time to the operator node so that an operator corresponding to the operator node performs target transaction with the user according to the information of the transaction items and the expected transaction time;
determining a corresponding transaction amount discount coefficient based on the receiving time of the user sending the item receiving confirmation information of the target transaction, the delivery time of the operator sending the item delivery confirmation information of the target transaction, the expected transaction time and the reservation request time; and carrying out transaction deduction on the user based on the transaction amount discount coefficient, the transaction article information and the deposit amount.
Optionally, further comprising:
determining one or more first target user nodes subscribing to the operator node in a block chain based on subscription record information sent by the operator node;
and sending the expected operation time sent by the operator node, the expected deliverable identification corresponding to the expected operation time, the expected delivery quantity corresponding to the expected deliverable identification and the expected commodity unit price to the first target user node.
Optionally, further comprising:
determining one or more corresponding second target user nodes in the block chain based on the user information to be pushed sent by the operator node;
and transmitting the expected operation time sent by the operator node, the expected deliverable identification corresponding to the expected operation time, the expected delivery quantity corresponding to the expected deliverable identification and the expected unit price of the deliverable to the second target user node.
Optionally, the determining, based on the transaction reservation request sent by the user node in the blockchain, a corresponding operator node, information of the transaction item, an expected transaction time, and a reservation request time in the blockchain includes:
based on the transaction reservation request, obtaining an operator identification, transaction article information and transaction time information;
determining the operator node according to the operator identification, and determining the expected transaction time according to the transaction time information;
and determining the sending time of the user node for sending the transaction reservation request as the reservation request time.
Optionally, the determining a corresponding subscription amount based on the transaction item information includes:
determining a corresponding target item identification, a target item quantity corresponding to the target item identification and a target item unit price based on the transaction item information;
obtaining a total price of the transaction item based on the target item identification, the target item quantity corresponding to the target item identification and the target item unit price;
and determining the deposit amount based on a preset deposit proportion and the total price of the transaction items.
Optionally, the determining a corresponding transaction amount discount coefficient based on the receiving time of the user sending the item receiving confirmation information of the target transaction, the delivery time of the operator sending the item delivery confirmation information of the target transaction, the expected transaction time, and the predetermined request time includes:
obtaining a transaction completion time based on the receipt time and the delivery time;
obtaining a target molecule based on a preset discount weight and a first time difference between the expected transaction time and the predetermined request time;
and taking a second time difference between the transaction completion time and the predetermined request time as a target denominator, and dividing the target numerator by the target denominator to determine the transaction amount discount coefficient.
Optionally, further comprising:
prior to dividing the target numerator by the target denominator,
and judging whether the target numerator is greater than or equal to the target denominator, if so, determining the discount coefficient of the transaction amount to be 1.
Optionally, obtaining the transaction completion time based on the receiving time and the delivery time includes:
and judging whether the third time difference between the receiving time and the delivery time is greater than or equal to a preset time difference threshold value, and if not, taking the receiving time or the delivery time as the transaction completion time.
Optionally, further comprising:
and when the third time difference between the receiving time and the delivery time is judged to be larger than or equal to a preset time difference threshold value, taking the average time of the receiving time and the delivery time as the transaction completion time.
Optionally, the deducting the transaction amount of the user based on the transaction amount discount coefficient, the transaction article information and the deposit amount includes:
subtracting the amount of the fixed money from the total price of the transaction article corresponding to the information of the transaction article to obtain initial amount to be paid;
multiplying the initial amount to be paid by the transaction amount discount coefficient to obtain a final amount to be paid;
and carrying out transaction deduction on the user based on the final amount to be paid.
In order to achieve the above object, another aspect of the present invention discloses a blockchain-based transaction processing apparatus, the apparatus including:
the request analysis module is used for determining an operator node, transaction article information, expected transaction time and predetermined request time corresponding to the block chain based on a transaction predetermined request sent by a user node in the block chain, determining a corresponding deposit amount based on the transaction article information, and performing deposit deduction on a user corresponding to the user node based on the deposit amount;
the information sending module is used for sending the transaction article information and the expected transaction time to the operator node so that an operator corresponding to the operator node can perform target transaction with the user according to the transaction article information and the expected transaction time;
the transaction processing module is used for determining a corresponding transaction amount discount coefficient based on the receiving time of the user for sending the item receiving confirmation information of the target transaction, the delivery time of the operator for sending the item delivery confirmation information of the target transaction, the expected transaction time and the predetermined request time; and carrying out transaction deduction on the user based on the transaction amount discount coefficient, the transaction article information and the deposit amount.
In order to achieve the above object, a further aspect of the present invention discloses a transaction processing system based on a blockchain, comprising a transaction processing device based on a blockchain, a user node and an operator node;
the transaction processing device based on the block chain comprises a request analysis module, an information sending module and a transaction processing module;
the request analysis module is used for determining the operator node, the transaction article information, the expected transaction time and the predetermined request time corresponding to the block chain based on the transaction predetermined request sent by the user node in the block chain, determining the corresponding deposit amount based on the transaction article information, and making a deposit deduction for the user corresponding to the user node based on the deposit amount;
the information sending module is used for sending the information of the transaction articles and the expected transaction time to the operator node so that an operator corresponding to the operator node can perform target transaction with the user according to the information of the transaction articles and the expected transaction time;
the transaction processing module is used for determining a corresponding transaction amount discount coefficient based on the receiving time of the user for sending the article receiving confirmation information of the target transaction, the delivery time of the operator for sending the article delivery confirmation information of the target transaction, the expected transaction time and the predetermined request time; and carrying out transaction deduction on the user based on the transaction amount discount coefficient, the transaction article information and the deposit amount.
The invention also discloses a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method when executing the program.
The invention also discloses a computer-readable medium, on which a computer program is stored which, when executed by a processor, implements a method as described above.
The invention also discloses a computer program product comprising a computer program which, when executed by a processor, implements the method as described above.
The block chain-based transaction processing method, device and system provided by the invention can determine the corresponding operator node, transaction article information, expected transaction time and reservation request time in the block chain through the transaction reservation request sent by the user node in the block chain, determine the corresponding deposit amount based on the transaction article information, and make a deposit deduction for the user corresponding to the user node based on the deposit amount, can fully analyze the transaction reservation request of the user, determine the transaction article information and transaction time information which are expected by the user and fully characterize transaction elements, and can determine the operator node corresponding to the expected operator of the user and obtain the reservation request time which can fully characterize the time node of the user initiating the transaction, thereby being beneficial to accurately inform the expected operator of the transaction related information of the user, and enable the preparation work and formal process of the subsequent transaction to be carried out according to the detailed and expected transaction article information and transaction time information, thereby being beneficial to improve the accuracy of the offline transaction, thereby being beneficial to the smooth progress of the offline transaction, and being beneficial to make the exact balance of the transaction amount of the transaction and the actual discount coefficient when the transaction is carried out on the actual discount is carried out according to the transaction information and the discount coefficient is accurately compensated by the actual discount coefficient, thereby being beneficial to the discount coefficient of the transaction payment of the transaction. Providing a guarantee to the operator (if the user runs the order without engaging in the transaction, for example, the deduction can offset the cost and time lost to the operator in preparing for the target transaction) also helps to protect the operator's interests.
The information of the transaction articles and the expected transaction time are sent to the operator node, so that the operator corresponding to the operator node can carry out target transaction with the user according to the information of the transaction articles and the expected transaction time, the block chain node can be specially used for storing relevant transaction information without storing other easily-interfered irrelevant information, the stored information is convenient for positioning, inquiring and combing and capturing, and the information in the block chain is not easy to be distorted and convenient to trace, the operator can timely find and clearly and accurately extract the relevant transaction information sent by the user, the operator is not easy to forget the information, the operator can participate in offline transaction according to the expected transaction time and accurately provide the expected transaction articles in the offline transaction, and the operator can smoothly carry out offline transaction with the user according to the expected transaction time, so that the smooth performance of the offline transaction is facilitated.
Determining a corresponding transaction amount discount coefficient by based on a reception time when the user transmits the item reception confirmation information of the target transaction, a delivery time when the operator transmits the item delivery confirmation information of the target transaction, an expected transaction time, and a reservation request time; the transaction deduction is carried out on the user based on the transaction amount discount coefficient, the transaction article information and the fixed-amount, the difference situation of the real delivery time and the expected transaction time in the whole transaction process can be determined more accurately and clearly by taking the time of the user confirming the article receiving and the time of the operator confirming the article delivering as the basis and taking the preset request time as a reference object, so as to determine the corresponding transaction amount discount coefficient, on the basis of enabling the transaction amount discount coefficient to fully reflect the default degree of delayed delivery of the operator, the trade is balanced by considering both the time of the user confirming the transaction and the time of the operator confirming the transaction, the influence of negative factors of unreal time of the transaction confirmation provided by a single party is reduced, and the coincidence degree of the transaction amount discount coefficient and the real delayed delivery situation of the operator is further improved, therefore, the accuracy of determining the discount coefficient of the transaction amount can be improved, the accuracy of carrying out transaction deduction on the user based on the discount coefficient of the transaction amount in the follow-up process can be improved, the law that a part of transaction fee and transaction fee needing to be deducted can be offset by a pre-deducted deposit and closely related to the specific situation (measuring the cost and the corresponding benefit of the article) of the transaction article is fully considered when the user is deducted, the accuracy of carrying out transaction deduction on the user is further improved, the steps can accurately make up the loss of the user by correspondingly reducing the deduction amount on the user according to the delay degree of the operator when the operator does not complete the delivery of the article according to the expected transaction time but delays the delivery (fully considering the operation law that the delay degree of the delayed delivery of the operator closely related to the loss of the user), on the basis of promoting the off-line transaction to be smoothly carried out, the method is beneficial to protecting the benefits of users.
In summary, the transaction processing method, apparatus and system based on the blockchain provided by the present invention can promote smooth progress of the offline transaction, and is beneficial to protecting the benefits of the user, thereby improving the efficiency of the offline transaction.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 shows a schematic diagram of a blockchain based transaction processing system of an embodiment of the invention;
FIG. 2 is a flow chart illustrating a method for processing transactions based on blockchains according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating an alternative process of resolving a transaction reservation request, in accordance with an embodiment of the invention;
FIG. 4 is a schematic diagram illustrating an alternative step of determining a subscription amount in accordance with embodiments of the invention;
FIG. 5 is a schematic diagram illustrating an optional step of determining a corresponding transaction amount discount coefficient according to an embodiment of the present invention;
FIG. 6 shows a block diagram of a blockchain based transaction processing device according to an embodiment of the invention;
FIG. 7 illustrates a schematic diagram of a computer device suitable for use in implementing embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As used herein, "first," "second," … …, etc., are not specifically meant to be sequential or sequential, nor are they meant to limit the invention, but merely to distinguish between elements or operations described in the same technical language.
As used herein, the terms "comprising," "including," "having," "containing," and the like are open-ended terms that mean including, but not limited to.
As used herein, "and/or" includes any and all combinations of the described items.
It should be noted that, in the technical solution of the present invention, the acquisition, storage, use, processing, etc. of the data all conform to the relevant regulations of the national laws and regulations.
It should be noted that the method, the device, and the system for transaction processing based on the blockchain disclosed in the present application may be used in the technical field of transaction processing, and may also be used in any field other than the technical field of transaction processing.
The embodiment of the invention discloses a transaction processing system based on a block chain, which comprises a transaction processing device 101 based on the block chain, a user node 102 and an operator node 103, as shown in figure 1;
the transaction processing device 101 based on the block chain comprises a request analysis module, an information sending module and a transaction processing module;
the request analysis module is used for determining the operator node 103, the transaction article information, the expected transaction time and the predetermined request time corresponding to the blockchain based on the transaction predetermined request sent by the user node 102 in the blockchain, determining the corresponding deposit amount based on the transaction article information, and making a deposit deduction for the user corresponding to the user node 102 based on the deposit amount;
the information sending module is configured to send the information of the transaction item and the expected transaction time to the operator node 103, so that an operator corresponding to the operator node 103 performs a target transaction with the user according to the information of the transaction item and the expected transaction time;
the transaction processing module is used for determining a corresponding transaction amount discount coefficient based on the receiving time of the user for sending the article receiving confirmation information of the target transaction, the delivery time of the operator for sending the article delivery confirmation information of the target transaction, the expected transaction time and the predetermined request time; and carrying out transaction deduction on the user based on the transaction amount discount coefficient, the transaction article information and the deposit amount.
For example, the transaction processing apparatus 101 based on a blockchain may be disposed in the blockchain, or may be disposed outside the blockchain, and when the transaction processing apparatus is disposed in the blockchain, the specific execution logic of the request parsing module and the information sending and transaction processing module may exist in the form of an intelligent contract. It should be noted that, the specific arrangement of the transaction processing device 101 based on the blockchain can be determined by those skilled in the art according to practical situations, and the above description is only an example, and is not limited thereto.
For example, the number of user nodes 102 and the number of operator nodes 103 in the blockchain may be determined by those skilled in the art according to practical situations, and the embodiment of the present invention is not limited thereto. For example, the number of user nodes 102 may be, but is not limited to, one or more, and the number of operator nodes 103 may also be, but is not limited to, one or more.
Illustratively, one user node 102 may correspond to, but is not limited to, one user, and one operator node 103 may correspond to, but is not limited to, one operator. It should be noted that, the specific correspondence between the user node 102 and the user and the specific correspondence between the operator node 103 and the operator can be determined by those skilled in the art according to actual situations, and the above description is only an example, and is not limited thereto.
The block chain-based transaction processing method, device and system provided by the invention can determine the corresponding operator node, transaction article information, expected transaction time and reservation request time in the block chain through the transaction reservation request sent by the user node in the block chain, determine the corresponding deposit amount based on the transaction article information, and make a deposit deduction for the user corresponding to the user node based on the deposit amount, can fully analyze the transaction reservation request of the user, determine the transaction article information and transaction time information which are expected by the user and fully characterize transaction elements, and can determine the operator node corresponding to the expected operator of the user and obtain the reservation request time which can fully characterize the time node of the user initiating the transaction, thereby being beneficial to accurately inform the expected operator of the transaction related information of the user, and enable the preparation work and formal process of the subsequent transaction to be carried out according to the detailed and expected transaction article information and transaction time information, thereby being beneficial to improve the accuracy of the offline transaction, thereby being beneficial to the smooth progress of the offline transaction, and being beneficial to make the exact balance of the transaction amount of the transaction and the actual discount coefficient when the transaction is carried out on the actual discount is carried out according to the transaction information and the discount coefficient is accurately compensated by the actual discount coefficient, thereby being beneficial to the discount coefficient of the transaction payment of the transaction. Providing a guarantee to the operator (if the user runs the order without engaging in the transaction, for example, the deduction can offset the cost and time lost to the operator in preparing for the target transaction) also helps to protect the operator's interests.
The information of the transaction articles and the expected transaction time are sent to the operator node, so that the operator corresponding to the operator node can carry out target transaction with the user according to the information of the transaction articles and the expected transaction time, the block chain node can be specially used for storing relevant transaction information without storing other easily-interfered irrelevant information, the stored information is convenient for positioning, inquiring and combing and capturing, and the information in the block chain is not easy to be distorted and convenient to trace, the operator can timely find and clearly and accurately extract the relevant transaction information sent by the user, the operator is not easy to forget the information, the operator can participate in offline transaction according to the expected transaction time and accurately provide the expected transaction articles in the offline transaction, and the operator can smoothly carry out offline transaction with the user according to the expected transaction time, so that the smooth performance of the offline transaction is facilitated.
Determining a corresponding transaction amount discount coefficient by based on a reception time when the user transmits the item reception confirmation information of the target transaction, a delivery time when the operator transmits the item delivery confirmation information of the target transaction, an expected transaction time, and a reservation request time; the transaction deduction is carried out on the user based on the transaction amount discount coefficient, the transaction article information and the fixed-amount, the difference situation of the real delivery time and the expected transaction time in the whole transaction process can be determined more accurately and clearly by taking the time of the user confirming the article receiving and the time of the operator confirming the article delivering as the basis and taking the preset request time as a reference object, so as to determine the corresponding transaction amount discount coefficient, on the basis of enabling the transaction amount discount coefficient to fully reflect the default degree of delayed delivery of the operator, the trade is balanced by considering both the time of the user confirming the transaction and the time of the operator confirming the transaction, the influence of negative factors of unreal time of the transaction confirmation provided by a single party is reduced, and the coincidence degree of the transaction amount discount coefficient and the real delayed delivery situation of the operator is further improved, therefore, the accuracy of determining the discount coefficient of the transaction amount can be improved, the accuracy of carrying out transaction deduction on the user based on the discount coefficient of the transaction amount in the follow-up process can be improved, the law that a part of transaction fee and transaction fee needing to be deducted can be offset by a pre-deducted deposit and closely related to the specific situation (measuring the cost and the corresponding benefit of the article) of the transaction article is fully considered when the user is deducted, the accuracy of carrying out transaction deduction on the user is further improved, the steps can accurately make up the loss of the user by correspondingly reducing the deduction amount on the user according to the delay degree of the operator when the operator does not complete the delivery of the article according to the expected transaction time but delays the delivery (fully considering the operation law that the delay degree of the delayed delivery of the operator closely related to the loss of the user), on the basis of promoting the off-line transaction to be smoothly carried out, the method is beneficial to protecting the benefits of users.
In summary, the transaction processing method, device and system based on the blockchain provided by the invention can promote the smooth progress of the offline transaction, and is beneficial to protecting the benefits of the user, thereby improving the efficiency of the offline transaction.
The following describes an implementation process of the transaction processing method based on a blockchain according to an embodiment of the present invention, taking the transaction processing apparatus 101 based on a blockchain as an execution subject. It can be understood that the execution subject of the transaction processing method based on the blockchain provided by the embodiment of the present invention includes, but is not limited to, the transaction processing device 101 based on the blockchain.
Based on this, the embodiment of the present invention discloses a transaction processing method based on a block chain, as shown in fig. 2, the method specifically includes the following steps:
s201: based on a transaction reservation request sent by a user node in a block chain, determining an operator node, transaction article information, expected transaction time and reservation request time corresponding to the block chain, determining a corresponding deposit amount based on the transaction article information, and making a deposit deduction for a user corresponding to the user node based on the deposit amount.
S202: and sending the information of the transaction items and the expected transaction time to the operator node so that the operator corresponding to the operator node performs target transaction with the user according to the information of the transaction items and the expected transaction time.
S203: determining a corresponding transaction amount discount coefficient based on the receiving time of the user sending the item receiving confirmation information of the target transaction, the delivery time of the operator sending the item delivery confirmation information of the target transaction, the expected transaction time and the reservation request time; and carrying out transaction deduction on the user based on the transaction amount discount coefficient, the transaction article information and the deposit amount.
For example, the operator in the embodiment of the present invention may be, but is not limited to, a floating merchant, and the like. It should be noted that the specific nature of the operator can be determined by those skilled in the art according to the actual situation, and the above description is only an example and is not intended to limit the scope of the invention.
For example, the deduction of the deposit made for the user based on the deposit amount may be, but is not limited to, deducting the corresponding deposit amount from funds in a payment account corresponding to the user under the condition of authorization of the user. It should be noted that, the specific implementation manner of making a payment deduction for the subscription based on the subscription amount may be determined by those skilled in the art according to actual situations, and the above description is only an example, and is not limited thereto.
For example, the operator performs the target transaction with the user according to the transaction item information and the transaction time information, and may prepare, but not limited to, transaction items of corresponding types and quantities according to the transaction item information for the operator, and carry the transaction items to participate in the target transaction at the time corresponding to the transaction time information and perform the target transaction with the user. It should be noted that, for the specific implementation manner of the operator performing the target transaction with the user according to the transaction article information and the transaction time information, the specific implementation manner may be determined by those skilled in the art according to actual situations, and the above description is only an example, and does not limit this.
Preferably, the transaction address which is contained in the transaction reservation request and is expected and designated by the user can be obtained through analysis based on the transaction reservation request, so that the transaction address can be sent to the operator node when the transaction article information and the expected transaction time are sent to the operator node, and an operator corresponding to the operator node can reach the expected transaction place of the user more accurately according to the transaction address to carry out target transaction with the user.
The block chain-based transaction processing method, device and system provided by the invention can determine the corresponding operator node, transaction article information, expected transaction time and reservation request time in the block chain through the transaction reservation request sent by the user node in the block chain, determine the corresponding deposit amount based on the transaction article information, and make a deposit deduction for the user corresponding to the user node based on the deposit amount, can fully analyze the transaction reservation request of the user, determine the transaction article information and transaction time information which are expected by the user and fully characterize transaction elements, and can determine the operator node corresponding to the expected operator of the user and obtain the reservation request time which can fully characterize the time node of the user initiating the transaction, thereby being beneficial to accurately inform the expected operator of the transaction related information of the user, and enable the preparation work and formal process of the subsequent transaction to be carried out according to the detailed and expected transaction article information and transaction time information, thereby being beneficial to improve the accuracy of the offline transaction, thereby being beneficial to the smooth progress of the offline transaction, and being beneficial to make the exact balance of the transaction amount of the transaction and the actual discount coefficient when the transaction is carried out on the actual discount is carried out according to the transaction information and the discount coefficient is accurately compensated by the actual discount coefficient, thereby being beneficial to the discount coefficient of the transaction payment of the transaction. Providing a guarantee to the operator (if the user runs the order without engaging in the transaction, for example, the deduction can offset the cost and time lost to the operator in preparing for the target transaction) also helps to protect the operator's interests.
The information of the transaction articles and the expected transaction time are sent to the operator node, so that the operator corresponding to the operator node can carry out target transaction with the user according to the information of the transaction articles and the expected transaction time, the block chain node can be specially used for storing relevant transaction information without storing other easily-interfered irrelevant information, the stored information is convenient for positioning, inquiring and combing and capturing, and the information in the block chain is not easy to be distorted and convenient to trace, the operator can timely find and clearly and accurately extract the relevant transaction information sent by the user, the operator is not easy to forget the information, the operator can participate in offline transaction according to the expected transaction time and accurately provide the expected transaction articles in the offline transaction, and the operator can smoothly carry out offline transaction with the user according to the expected transaction time, so that the smooth performance of the offline transaction is facilitated.
Determining a corresponding transaction amount discount coefficient by based on a reception time when the user transmits the item reception confirmation information of the target transaction, a delivery time when the operator transmits the item delivery confirmation information of the target transaction, an expected transaction time, and a reservation request time; the transaction deduction is carried out on the user based on the transaction amount discount coefficient, the transaction article information and the fixed-amount, the difference situation of the real delivery time and the expected transaction time in the whole transaction process can be determined more accurately and clearly by taking the time of the user confirming the article receiving and the time of the operator confirming the article delivering as the basis and taking the preset request time as a reference object, so as to determine the corresponding transaction amount discount coefficient, on the basis of enabling the transaction amount discount coefficient to fully reflect the default degree of delayed delivery of the operator, the trade is balanced by considering both the time of the user confirming the transaction and the time of the operator confirming the transaction, the influence of negative factors of unreal time of the transaction confirmation provided by a single party is reduced, and the coincidence degree of the transaction amount discount coefficient and the real delayed delivery situation of the operator is further improved, therefore, the accuracy of determining the discount coefficient of the transaction amount can be improved, the accuracy of carrying out transaction deduction on the user based on the discount coefficient of the transaction amount in the follow-up process can be improved, the law that a part of transaction fee and transaction fee needing to be deducted can be offset by a pre-deducted deposit and closely related to the specific situation (measuring the cost and the corresponding benefit of the article) of the transaction article is fully considered when the user is deducted, the accuracy of carrying out transaction deduction on the user is further improved, the steps can accurately make up the loss of the user by correspondingly reducing the deduction amount on the user according to the delay degree of the operator when the operator does not complete the delivery of the article according to the expected transaction time but delays the delivery (fully considering the operation law that the delay degree of the delayed delivery of the operator closely related to the loss of the user), on the basis of promoting the off-line transaction to be smoothly carried out, the method is beneficial to protecting the benefits of users.
In summary, the transaction processing method, device and system based on the blockchain provided by the invention can promote the smooth progress of the offline transaction, and is beneficial to protecting the benefits of the user, thereby improving the efficiency of the offline transaction.
In an optional embodiment, further comprising:
determining one or more first target user nodes subscribing to the operator node in a block chain based on subscription record information sent by the operator node;
and sending the expected operation time sent by the operator node, the expected deliverable identification corresponding to the expected operation time, the expected delivery quantity corresponding to the expected deliverable identification and the expected commodity unit price to the first target user node.
For example, the subscription record information may be, but is not limited to, record information of node information of a user node performing a subscription operation on the operator node (e.g., performing attention on the operator node by triggering a related control button) recorded in the operator node or the blockchain related background file. When the user node performs corresponding subscription operation on the operator node, the related intelligent contract can automatically attach the node information of the user node performing the subscription operation to the corresponding subscription record information, wherein the node information of the user node includes but is not limited to a node ID, a node name, an account ID and an account name corresponding to the user node, and the like of the user node. It should be noted that the specific nature, source, content, etc. of the subscription record information can be determined by those skilled in the art according to the actual situation, and the above description is only an example, and is not limited thereto.
For example, the determining, based on the subscription record information sent by the operator node, one or more first target user nodes subscribing to the operator node in the block chain may be, but is not limited to, performing analysis based on the subscription record information to obtain node information of one or more user nodes subscribing to the operator node, which is included in the subscription record information, and then performing analysis or query based on the node information to obtain the corresponding first target user nodes. It should be noted that, for a specific implementation manner of determining, based on the subscription record information sent by the operator node, one or more first target user nodes subscribing to the operator node in the block chain, may be determined by those skilled in the art according to actual situations, and the foregoing description is only an example, and does not limit this.
For example, the expected operation time may be, but is not limited to, a time period of expected operation made by an operator or a time point of expected operation start. It should be noted that, the content of the expected operation time can be determined by those skilled in the art according to the actual situation, and the above description is only an example, and is not limited thereto.
For example, the expected delivered item identifier corresponding to the expected operation time may be, but is not limited to, an item name, an item type or an item number of an item that the operator expects to sell, offer or deliver in the operation process corresponding to the expected operation time. It should be noted that the specific nature and content of the expected delivered item identifier corresponding to the expected operation time can be determined by those skilled in the art according to the actual situation, and the above description is only an example and is not limiting.
For example, an expected deliverable identification may correspond to an expected amount of deliverable and an expected unit price for the item.
Through the steps, before the operator starts to operate, the specific expected operation time and various related information of the articles expected to be provided can be pushed to the user node subscribing the operator node corresponding to the operator, so that the corresponding user can accurately know the expected operation time of the operator concerned by the corresponding user and various related information of the articles expected to be provided in advance for reference, the user subscribing the operator can more accurately and conveniently determine whether to perform offline transaction with the operator based on the actual situation, and the specific scheme (for example, the number of articles of a certain model which are preset in advance and the time when the online transaction is performed with the operator to start the transaction and the like) of the offline transaction with the operator is determined in advance based on the actual situation, thereby better meeting the transaction requirements and experiences of the users of the relevant subscriber operators, and facilitating the user to perform the offline transaction with the operator in mind more smoothly, and further improving the transaction efficiency.
In an optional embodiment, further comprising:
determining one or more corresponding second target user nodes in the block chain based on the user information to be pushed sent by the operator node;
and transmitting the expected operation time sent by the operator node, the expected deliverable identification corresponding to the expected operation time, the expected delivery quantity corresponding to the expected deliverable identification and the expected unit price of the deliverable to the second target user node.
For example, the user information to be pushed may be, but is not limited to, a node of a prospective user that the operator node selects and determines to wish to push by itself, and thus is formed based on a node ID, a node name, an account ID or an account name of a corresponding user of the prospective user node. It should be noted that, the specific source, nature, content, etc. of the user information to be pushed may be determined by those skilled in the art according to practical situations, and the above description is only an example, and is not limited thereto. The expected user node corresponding to the user information to be pushed may be, but is not limited to, a user node subscribed to the operator node or a user node not subscribed to the operator node.
Illustratively, the determining one or more corresponding second target user nodes in the block chain based on the user information to be pushed sent by the operator node may be, but is not limited to, analyzing the user information to be pushed to obtain corresponding node IDs, node names, account IDs or account names of corresponding users, and the like, and further performing mapping query according to the node IDs, the node names, the account IDs or account names of corresponding users, and determining the corresponding second target user nodes. It should be noted that, for a specific implementation manner of determining one or more second target user nodes corresponding to the block chain based on the user information to be pushed sent by the operator node, the specific implementation manner may be determined by a person skilled in the art according to an actual situation, and the above description is only an example, and does not limit this.
Through the steps, an operator corresponding to the operator node can conveniently broadcast the information according to the demand and the willingness of the operator, the popularization of the related operation information can be more conveniently, quickly and accurately carried out on the user who wants to popularize the operator node through the block chain, the operation time, the specific article information and the like can be more comprehensively popularized, the promoted user can be attracted and paid attention to, more users can be more favorably enabled to be willing to trade with the operator, and the income of the operator can be further favorably improved.
In an alternative embodiment, as shown in fig. 3, the determining the corresponding operator node, the transaction item information, the expected transaction time and the predetermined request time in the blockchain based on the transaction reservation request sent by the user node in the blockchain includes the following steps:
s301: based on the transaction reservation request, operator identification, transaction article information and transaction time information are obtained.
S302: and determining the operator node according to the operator identification, and determining the expected transaction time according to the transaction time information.
S303: and determining the sending time of the user node for sending the transaction reservation request as the reservation request time.
For example, the step S301 may be, but is not limited to, parsing the transaction reservation request to obtain the operator identifier, the transaction item information, and the transaction time information corresponding to or included in the transaction reservation request. It should be noted that, for the specific implementation manner of step S301, it can be determined by those skilled in the art according to practical situations, and the above description is only an example, and is not limited thereto.
For example, in step S302, the operator node may be determined by performing a corresponding query using the operator identifier, or the operator node may be determined by performing a corresponding query using the operator identifier, and then determining the operator node by performing a corresponding query using the operator node identifier (for example, a node ID or a node name, etc.); and then, analyzing the transaction time information to obtain the expected transaction time included in or corresponding to the transaction time information. The operator identifier may be, but is not limited to, an account ID, an account name, a name, an identity card number, or a credit code of the operator, which is obtained by authorization of the operator. Wherein the expected transaction time may be, but is not limited to, a time when the user expects and inputs to conduct a transaction. It should be noted that, the specific implementation manner of step S302, the specific form of the operator identifier and the nature of the expected transaction time can be determined by those skilled in the art according to practical situations, and the above description is only an example and is not limited thereto.
For example, the sending time of the user node sending the transaction reservation request may be, but is not limited to, a sending time that the user node automatically forms and records in a related log, a background file, or node information when sending the transaction reservation request, may also be, but is not limited to, a sending time that the user of the user node specifies and inputs and then records in a related log, a background file, or node information, and may also be, but is not limited to, a sending time that the user node automatically forms and records in a related log, a background file, or node information when receiving the transaction reservation request. The specific nature of the sending time may be, but is not limited to, the time when the user node sends the transaction reservation request, the sending time specified by the user, or the time when the transaction reservation request is received. It should be noted that the specific source and nature of the sending time can be determined by those skilled in the art according to the actual situation, and the above description is only an example and is not limiting.
Through the steps, the transaction reservation request can be analyzed and determined more finely and accurately to determine the transaction article information and the transaction time information, the operator identification obtained through preliminary analysis is taken as a basis, the corresponding operator node is further analyzed and determined more quickly and accurately by means of the uniqueness advantage of the identification and the advantage of being convenient for quickly and accurately searching related information, the actual time of information transmission operation can be determined as the reservation request time for formally performing transaction reservation, the reservation request time is made to be more consistent with the actual situation, the accuracy of the determined reservation request time is improved, the accuracy and the speed of analyzing the transaction reservation request are improved, the smooth operation of the whole transaction is facilitated, and the benefits of users are protected.
In an alternative embodiment, as shown in fig. 4, the determining the corresponding subscription amount based on the transaction item information includes the following steps:
s401: and determining a corresponding target item identification, a target item quantity corresponding to the target item identification and a target item unit price based on the transaction item information.
S402: and obtaining a total price of the transaction item based on the target item identification, the target item quantity corresponding to the target item identification and the target item unit price.
S403: and determining the deposit amount based on a preset deposit proportion and the total price of the transaction items.
For example, in step S401, the transaction item information may be, but is not limited to, analyzed to obtain a target item identifier corresponding to or included in the transaction item information, a target item quantity corresponding to the target item identifier, and a target item unit price. The target item identifier may be, but is not limited to, a type, a number, a name, or the like of the item, one transaction item information corresponds to one or more target item identifiers, and one target item identifier corresponds to one target item quantity and one target item unit price. It should be noted that, the specific implementation manner of step S401, the specific form of the target item identifier, and the corresponding relationship in the transaction item information may be determined by those skilled in the art according to actual situations, and the above description is only an example, and does not limit this.
For example, in the step S402, the target item quantity of each target item identifier and the target item unit price may be multiplied to obtain an item price corresponding to each target item identifier, and then the item prices corresponding to each target item identifier are superimposed to obtain the total price of the transaction item. It should be noted that, for the specific implementation manner of step S402, it can be determined by those skilled in the art according to practical situations, and the above description is only an example, and is not limited thereto.
For example, the step S403 may be, but not limited to, multiplying the subscription ratio by the total price of the transaction item to determine the subscription amount. Wherein, the ratio of the gold can be but not limited to 2%, 5% or 10%, etc., but is generally not more than or equal to 20%. The specific implementation manner of step S403, the specific value of the gold fixing ratio, and the like can be determined by those skilled in the art according to actual circumstances, and the above description is only an example, and is not limited thereto.
Through the steps, the information of the transaction articles can be fully analyzed, the total price of the transaction articles can be more accurately determined according to the specific article identification, the corresponding quantity and the unit price, so that the accuracy of determining the amount of the deposit according to the total price of the transaction articles and the credit weight is improved, the deposit and deduction can be more accurately performed on the user, the user can further provide sufficient and accurate guarantee for the offline transaction in advance, the user can be promoted to participate in the offline transaction in the order of the user, even if the user runs the order, the sufficient deposit provided in advance can further make up the cost and time consumed by the operator in the preparation process to a greater extent, the benefit loss of the operator is further reduced, and the benefit of the operator is further protected.
In an alternative embodiment, as shown in fig. 5, the determining the corresponding discount coefficient of the transaction amount based on the receiving time of the item receiving confirmation information of the target transaction sent by the user, the delivery time of the item delivery confirmation information of the target transaction sent by the operator, the expected transaction time and the predetermined request time comprises the following steps:
s501: based on the receipt time and the delivery time, a transaction completion time is obtained.
S502: and obtaining a target molecule based on a preset discount weight and a first time difference between the expected transaction time and the reservation request time.
S503: and taking a second time difference between the transaction completion time and the predetermined request time as a target denominator, and dividing the target numerator by the target denominator to determine the transaction amount discount coefficient.
For example, the step S501 may be, but is not limited to, taking an average time of the receiving time and the delivering time as the transaction completion time. It should be noted that, for the specific implementation manner of step S501, it can be determined by those skilled in the art according to practical situations, and the foregoing description is only an example, and is not limited thereto.
For example, the article reception confirmation information may be formed and sent by, but is not limited to, a user through a corresponding transaction application, a blockchain application, or a user node, for example, when the user clicks a receive confirmation button on the transaction application, the relevant control logic may capture the operation and automatically form and send the corresponding article reception confirmation information, or when the user clicks the receive confirmation button on the blockchain application, the relevant control logic may capture the operation and automatically form and send the corresponding article reception confirmation information through the corresponding user node. It should be noted that, the specific sending method of the article reception confirmation information can be determined by those skilled in the art according to actual situations, and the above description is only an example, and is not limited thereto.
For example, the article delivery confirmation information may be formed and sent by, but not limited to, the operator through the corresponding transaction application, the blockchain application, or the operator node, for example, when the operator clicks the confirmation delivery button on the transaction application, the relevant control logic may capture the operation and automatically form and send the corresponding article delivery confirmation information, or when the operator clicks the confirmation delivery button on the blockchain application, the relevant control logic may capture the operation and automatically form and send the corresponding article delivery confirmation information through the corresponding operator node. It should be noted that the specific sending method of the article delivery confirmation information can be determined by those skilled in the art according to actual situations, and the above description is only an example, and is not limited thereto.
Illustratively, the discount weight may be determined by those skilled in the art according to practical situations, and the embodiment of the present invention is not limited thereto. For example, the discount weight may be taken as a value in the range of (0,1 ], such as 0.95, 0.9 or 0.85, etc. preferably, when determining the discount weight, referring to the urgency (urgency) of the user's demand for the item, the more urgency the user's demand for the item, the smaller the discount weight, so as to fully consider the fact that the user demands the item for delivery by the urgent demand operator, if the operator delays delivery, the loss to the user will be greater than the loss when the user does not demand the item urgently, thereby facilitating the user to be compensated indirectly more by having the user pay less the relevant amount when the operator delays delivery and the user demands the item urgently.
For example, the step S502 may be, but is not limited to, multiplying the discount weight by the first time difference to obtain the target molecule. It should be noted that, for the specific implementation manner of step S502, it can be determined by those skilled in the art according to practical situations, and the foregoing description is only an example, and is not limited thereto.
Through the steps, the basis for measuring the delay degree of the delay delivery of the operator can be specifically refined to the corresponding time difference (the time difference respectively corresponds to the time for completing the actual transaction and the time for completing the expected transaction by taking the fixed predetermined request time as reference), so that the transaction amount discount coefficient can be specifically, quickly and accurately determined, and the transaction amount discount coefficient is corrected according to the actual situation and the demand through the discount weight, so that the transaction amount discount coefficient can be more fully combined with the related demand, and the extra influence condition of extra loss caused to the user due to the delay of the operator when the user has further demand (for example, the article is urgently needed) can be further accurately reflected on the basis of reflecting the delay condition of the operator. Therefore, the above steps can make the transaction amount discount coefficient more in line with the actual situation, so that the transaction amount discount coefficient can be improved to be negatively related to the delay degree of the operator, and further, when the delay of the operator is more serious, the amount of money required to be paid by the user is less, the loss compensation indirectly obtained by the user is more, and the protection degree of the benefits of the user is greatly improved.
In an optional embodiment, further comprising:
prior to dividing the target numerator by the target denominator,
and judging whether the target numerator is greater than or equal to the target denominator, if so, determining the discount coefficient of the transaction amount to be 1.
Through the steps, when the operator makes a delivery in advance and does not make the delivery overdue, the user does not need to pay the fee exceeding the normal transaction amount (if the transaction amount discount coefficient is not made to be 1 when the target numerator is larger than the target denominator, the discount coefficient is made to be larger than 1, so that the user makes the payment in excess, economic loss is caused to the user), and the benefit of the user is further protected.
In an alternative embodiment, said deriving a transaction completion time based on said receipt time and delivery time comprises:
and judging whether the third time difference between the receiving time and the delivery time is greater than or equal to a preset time difference threshold value, and if not, taking the receiving time or the delivery time as the transaction completion time.
For example, the preset time difference threshold may be determined by a person skilled in the art according to actual situations, and for example, the preset time difference threshold may be, but is not limited to, 3 minutes or 5 minutes, etc.
When the difference between the receiving time and the delivery time is not obvious, the confirmation of the transaction ending time by the operator and the user is not obviously diverged, so that no matter whether the receiving time or the delivery time is selected as the transaction ending time for subsequent operation, the determined discount coefficients have no obvious deviation, and therefore, the steps can improve the speed of determining the transaction ending time by directly determining the transaction ending time on the basis of not influencing the accuracy of the determined transaction amount discount coefficients, so that the speed of overall transaction processing can be improved, and further the efficiency of the transaction is improved.
In an alternative embodiment of the method according to the invention, further comprising:
and when the third time difference between the receiving time and the delivery time is judged to be larger than or equal to a preset time difference threshold value, taking the average time of the receiving time and the delivery time as the transaction completion time.
For example, the preset time difference threshold may be determined by a person skilled in the art according to actual situations, and for example, the preset time difference threshold may be, but is not limited to, 3 minutes or 5 minutes, etc.
Through the steps, when the operator and the user have obvious divergence in the confirmation of the transaction ending time, the time for confirming the transaction by the user and the time for confirming the transaction by the operator are further deeply considered to carry out deeper balance, so that the confirmed transaction finishing time is as far as possible consistent with the time for actually finishing the delivery, the influence of negative factors which are possibly unreal by the time for confirming the transaction provided by a single party is further favorably reduced, the consistency degree of the transaction amount discount coefficient and the real delayed delivery condition of the operator is further favorably improved, the accuracy of the transaction amount discount coefficient is further improved, and the benefit of the user is further favorably protected.
In an optional embodiment, the deducting the transaction from the user based on the transaction amount discount coefficient, the transaction item information and the deposit amount includes:
subtracting the money amount from the total price of the transaction article corresponding to the transaction article information to obtain an initial amount to be paid;
multiplying the initial amount to be paid by the transaction amount discount coefficient to obtain a final amount to be paid;
and carrying out transaction deduction on the user based on the final amount to be paid.
For example, based on the amount to be paid, the specific principle of performing the transaction deduction on the user may refer to the description of the step of performing the deposit deduction on the user based on the deposit amount in the embodiment of the present invention, and details are not described here.
Through the steps, the amount to be paid can be accurately and clearly calculated according to the specific total price of the transaction items and the amount of the pre-paid deposit, so that the amount to be paid can accurately represent the amount of money to be paid except the deposit, the accuracy of the final amount to be paid obtained based on the amount to be paid is improved, the accuracy of transaction deduction is improved, and the smooth proceeding of the offline transaction is further promoted.
Based on the same principle, the embodiment of the present invention discloses a transaction processing device 600 based on a blockchain, as shown in fig. 6, the transaction processing device 600 based on a blockchain includes:
the request analysis module 601 is configured to determine, based on a transaction reservation request sent by a user node in a block chain, an operator node, transaction item information, expected transaction time, and reservation request time corresponding to the block chain, determine a corresponding deposit amount based on the transaction item information, and perform deposit deduction on a user corresponding to the user node based on the deposit amount;
an information sending module 602, configured to send the information of the transaction item and the expected transaction time to the operator node, so that an operator corresponding to the operator node performs a target transaction with the user according to the information of the transaction item and the expected transaction time;
a transaction processing module 603, configured to determine a corresponding transaction amount discount coefficient based on a receiving time when the user sends the item reception confirmation information of the target transaction, a delivery time when the operator sends the item delivery confirmation information of the target transaction, an expected transaction time, and a predetermined request time; and carrying out transaction deduction on the user based on the transaction amount discount coefficient, the transaction article information and the deposit amount.
In an optional embodiment, the apparatus further comprises a first pushing module configured to:
determining one or more first target user nodes subscribing to the operator node in a block chain based on subscription record information sent by the operator node;
and sending the expected operation time sent by the operator node, the expected deliverable identification corresponding to the expected operation time, the expected delivery quantity corresponding to the expected deliverable identification and the expected commodity unit price to the first target user node.
In an optional embodiment, the apparatus further comprises a second pushing module configured to:
determining one or more corresponding second target user nodes in the block chain based on the user information to be pushed sent by the operator node;
and sending the expected operation time sent by the operator node, the expected deliverable identification corresponding to the expected operation time, the expected delivery quantity corresponding to the expected deliverable identification and the expected commodity unit price to the second target user node.
In an optional embodiment, the request parsing module 601 is configured to:
based on the transaction reservation request, obtaining an operator identification, transaction article information and transaction time information;
determining the operator node according to the operator identification, and determining the expected transaction time according to the transaction time information;
and determining the sending time of the user node for sending the transaction reservation request as the reservation request time.
In an optional embodiment, the request parsing module 601 is configured to:
determining a corresponding target item identification, a target item quantity corresponding to the target item identification and a target item unit price based on the transaction item information;
obtaining a total price of the transaction item based on the target item identification, the target item quantity corresponding to the target item identification and the unit price of the target item;
and determining the deposit amount based on a preset deposit proportion and the total price of the transaction items.
In an optional embodiment, the transaction processing module 603 is configured to:
obtaining a transaction completion time based on the receipt time and the delivery time;
obtaining a target molecule based on a preset discount weight and a first time difference between the expected transaction time and the predetermined request time;
and taking a second time difference between the transaction completion time and the predetermined request time as a target denominator, and dividing the target numerator by the target denominator to determine the transaction amount discount coefficient.
In an optional embodiment, the system further comprises a transaction amount discount coefficient modification module, configured to:
prior to dividing the target numerator by the target denominator,
and judging whether the target numerator is greater than or equal to the target denominator, if so, determining the discount coefficient of the transaction amount to be 1.
In an optional embodiment, the transaction processing module 603 is configured to:
and judging whether the third time difference between the receiving time and the delivery time is greater than or equal to a preset time difference threshold value, and if not, taking the receiving time or the delivery time as the transaction completion time.
In an alternative embodiment, the further transaction completion time correction module is configured to:
and when the third time difference between the receiving time and the delivery time is judged to be larger than or equal to a preset time difference threshold value, taking the average time of the receiving time and the delivery time as the transaction completion time.
In an optional embodiment, the transaction processing module 603 is configured to:
subtracting the amount of the fixed money from the total price of the transaction article corresponding to the information of the transaction article to obtain initial amount to be paid;
multiplying the initial amount to be paid by the transaction amount discount coefficient to obtain a final amount to be paid;
and carrying out transaction deduction on the user based on the final amount to be paid.
Since the principle of solving the problem of the transaction processing device 600 based on the blockchain is similar to that of the method, the implementation of the transaction processing device 600 based on the blockchain can refer to the implementation of the method, and details are not described herein again.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer device, which may be, for example, a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or a combination of any of these devices.
In a typical example, the computer device comprises in particular a memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor implements the method as described above.
Referring now to FIG. 7, shown is a schematic block diagram of a computer device 700 suitable for use in implementing embodiments of the present application.
As shown in fig. 7, the computer device 700 includes a Central Processing Unit (CPU) 701, which can perform various appropriate works and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data necessary for the operation of the system 700 are also stored. The CPU701, the ROM702, and the RAM703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including components such as a Cathode Ray Tube (CRT), a liquid crystal feedback (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted as necessary in the storage section 708.
In particular, according to an embodiment of the present invention, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (15)

1. A transaction processing method based on a blockchain is characterized by comprising the following steps:
determining an operator node, transaction article information, expected transaction time and predetermined request time corresponding to a blockchain based on a transaction predetermined request sent by a user node in the blockchain, determining a corresponding deposit amount based on the transaction article information, and making a deposit deduction for a user corresponding to the user node based on the deposit amount;
sending the information of the transaction items and the expected transaction time to the operator node so that an operator corresponding to the operator node performs target transaction with the user according to the information of the transaction items and the expected transaction time;
determining a corresponding transaction amount discount coefficient based on the receiving time of the user sending the item receiving confirmation information of the target transaction, the delivery time of the operator sending the item delivery confirmation information of the target transaction, the expected transaction time and the reservation request time; and carrying out transaction deduction on the user based on the transaction amount discount coefficient, the transaction article information and the deposit amount.
2. The method of claim 1, further comprising:
determining one or more first target user nodes subscribing to the operator node in a block chain based on subscription record information sent by the operator node;
and transmitting the expected operation time sent by the operator node, the expected deliverable identification corresponding to the expected operation time, the expected delivery quantity corresponding to the expected deliverable identification and the expected unit price of the deliverable to the first target user node.
3. The method of claim 1, further comprising:
determining one or more corresponding second target user nodes in the block chain based on the user information to be pushed sent by the operator node;
and sending the expected operation time sent by the operator node, the expected deliverable identification corresponding to the expected operation time, the expected delivery quantity corresponding to the expected deliverable identification and the expected commodity unit price to the second target user node.
4. The method of claim 1, wherein determining the corresponding operator node, the transaction item information, the expected transaction time, and the predetermined request time in the blockchain based on the transaction reservation request sent by the user node in the blockchain comprises:
based on the transaction reservation request, obtaining an operator identification, transaction article information and transaction time information;
determining the operator node according to the operator identification, and determining the expected transaction time according to the transaction time information;
and determining the sending time of the user node for sending the transaction reservation request as the reservation request time.
5. The method of claim 1, wherein said determining a corresponding subscription amount based on said transaction item information comprises:
determining a corresponding target item identification, a target item quantity corresponding to the target item identification and a target item unit price based on the transaction item information;
obtaining a total price of the transaction item based on the target item identification, the target item quantity corresponding to the target item identification and the target item unit price;
and determining the deposit amount based on a preset deposit proportion and the total price of the transaction items.
6. The method of claim 1, wherein determining the corresponding transaction amount discount coefficient based on the time of receipt of the item receipt confirmation message sent by the user for the target transaction, the time of delivery of the item delivery confirmation message sent by the operator for the target transaction, the expected transaction time, and the reservation request time comprises:
obtaining a transaction completion time based on the receipt time and the delivery time;
obtaining a target molecule based on a preset discount weight and a first time difference between the expected transaction time and the predetermined request time;
and taking a second time difference between the transaction completion time and the predetermined request time as a target denominator, and dividing the target numerator by the target denominator to determine the transaction amount discount coefficient.
7. The method of claim 6, further comprising:
prior to dividing the target numerator by the target denominator,
and judging whether the target numerator is greater than or equal to the target denominator, if so, determining the discount coefficient of the transaction amount to be 1.
8. The method of claim 6, wherein deriving a transaction completion time based on the receive time and the delivery time comprises:
and judging whether the third time difference between the receiving time and the delivery time is greater than or equal to a preset time difference threshold value, and if not, taking the receiving time or the delivery time as the transaction completion time.
9. The method of claim 8, further comprising:
and when the third time difference between the receiving time and the delivery time is judged to be larger than or equal to a preset time difference threshold value, taking the average time of the receiving time and the delivery time as the transaction completion time.
10. The method of claim 5, wherein said debiting the user for the transaction based on the transaction amount discount factor, the transaction item information, and the subscription amount comprises:
subtracting the money amount from the total price of the transaction article corresponding to the transaction article information to obtain an initial amount to be paid;
multiplying the initial amount to be paid by the transaction amount discount coefficient to obtain a final amount to be paid;
and carrying out transaction deduction on the user based on the final amount to be paid.
11. A blockchain-based transaction processing apparatus, comprising:
the request analysis module is used for determining the operator node, the transaction article information, the expected transaction time and the predetermined request time corresponding to the block chain based on the transaction predetermined request sent by the user node in the block chain, determining the corresponding deposit amount based on the transaction article information, and making a deposit deduction for the user corresponding to the user node based on the deposit amount;
the information sending module is used for sending the information of the transaction articles and the expected transaction time to the operator node so that an operator corresponding to the operator node can carry out target transaction with the user according to the information of the transaction articles and the expected transaction time;
the transaction processing module is used for determining a corresponding transaction amount discount coefficient based on the receiving time of the user for sending the item receiving confirmation information of the target transaction, the delivery time of the operator for sending the item delivery confirmation information of the target transaction, the expected transaction time and the predetermined request time; and carrying out transaction deduction on the user based on the transaction amount discount coefficient, the transaction article information and the deposit amount.
12. A transaction processing system based on a blockchain is characterized by comprising a transaction processing device based on the blockchain, a user node and an operator node;
the transaction processing device based on the block chain comprises a request analysis module, an information sending module and a transaction processing module;
the request analysis module is used for determining the operator node, the transaction article information, the expected transaction time and the predetermined request time corresponding to the block chain based on the transaction predetermined request sent by the user node in the block chain, determining the corresponding deposit amount based on the transaction article information, and making a deposit deduction for the user corresponding to the user node based on the deposit amount;
the information sending module is used for sending the information of the transaction articles and the expected transaction time to the operator node so that an operator corresponding to the operator node can perform target transaction with the user according to the information of the transaction articles and the expected transaction time;
the transaction processing module is used for determining a corresponding transaction amount discount coefficient based on the receiving time of the user for sending the item receiving confirmation information of the target transaction, the delivery time of the operator for sending the item delivery confirmation information of the target transaction, the expected transaction time and the predetermined request time; and carrying out transaction deduction on the user based on the transaction amount discount coefficient, the transaction article information and the deposit amount.
13. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-10 when executing the program.
14. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-10.
15. A computer program product, characterized in that the computer program product comprises a computer program which, when being executed by a processor, carries out the method of any one of claims 1-10.
CN202211332447.XA 2022-10-28 2022-10-28 Transaction processing method, device and system based on block chain Pending CN115760090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211332447.XA CN115760090A (en) 2022-10-28 2022-10-28 Transaction processing method, device and system based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211332447.XA CN115760090A (en) 2022-10-28 2022-10-28 Transaction processing method, device and system based on block chain

Publications (1)

Publication Number Publication Date
CN115760090A true CN115760090A (en) 2023-03-07

Family

ID=85355632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211332447.XA Pending CN115760090A (en) 2022-10-28 2022-10-28 Transaction processing method, device and system based on block chain

Country Status (1)

Country Link
CN (1) CN115760090A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116628757A (en) * 2023-07-20 2023-08-22 东方空间技术(山东)有限公司 Spacecraft supply chain management method, equipment and storage medium based on block chain

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116628757A (en) * 2023-07-20 2023-08-22 东方空间技术(山东)有限公司 Spacecraft supply chain management method, equipment and storage medium based on block chain
CN116628757B (en) * 2023-07-20 2023-10-13 东方空间技术(山东)有限公司 Spacecraft supply chain management method, equipment and storage medium based on block chain

Similar Documents

Publication Publication Date Title
US8249552B1 (en) Pre and post-paid service plan manager
CN109961365B (en) Account receiving record processing method and system based on block chain intelligent contract
US11276059B2 (en) System and method for autonomous sustenance of digital assets
US20190139049A1 (en) Order Information Processing Methods, Apparatuses and Systems
CN111709777A (en) Payment mode recommendation method, system, terminal device and storage medium
CN111507686B (en) Automatic budget system and method for engineering design change
CN110610414A (en) Data processing method and system
CN110298644B (en) Account additional money method, account additional money device, server and readable storage medium
CN112184240A (en) Refund request processing method and device
CN115760090A (en) Transaction processing method, device and system based on block chain
CN109598612A (en) The method and apparatus of resource seller's seven sale
CN114462992A (en) Payment method, system and device
CN113518117A (en) ETC transaction recommendation method, bank server, computer device and medium
CN108564354B (en) Settlement method, service platform and server
CN111651345A (en) System testing method and device and electronic equipment
CN114363179B (en) Cost optimization method and device for cloud product
US20180165685A1 (en) Method, Terminal, and Related Server for Providing Transaction Object
CN114723448A (en) Transaction data processing method, server, application terminal and system
CN113034150B (en) Refund method for unmanned retail terminal
CN110300000B (en) Charging mode changing method and device, electronic equipment and readable storage medium
CN115099801A (en) Payment information processing method and device based on public cloud
CN114943539A (en) Method and device for processing automatic renewal transaction
CN115496564A (en) Transaction processing method, device and system based on block chain
KR102667194B1 (en) Cloud infrastructure shared resource billing division method and system
CN113344698B (en) Asset securitization income segmentation method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination