Transaction processing method and device based on block chain, equipment and storage medium
By introducing regulatory nodes and intermediate accounts into blockchain transactions for payment interception, the problem of transaction dispute adjustment is solved, efficient and high-quality completion of transactions is achieved, and the interests of all parties to the transaction are ensured.
Patent Information
- Application Number
- CN202410699160.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-27
AI Technical Summary
When conducting transactions based on decentralized blockchain technology, there is a lack of authoritative roles to regulate transaction disputes, which affects the quality and efficiency of transactions and cannot effectively protect the interests of all parties to the transaction.
By introducing regulatory nodes and intermediate accounts into the blockchain network, transaction information can be saved and confirmed, and payments can be intercepted during transaction settlement to ensure transaction accuracy and security. At the same time, arbitration nodes can be introduced to handle transaction disputes.
It effectively reduces transaction disputes and conflicts, ensures efficient and high-quality completion of transactions, ensures the interests of all parties to the transaction, and improves the transaction experience.
Smart Images

Figure CN118710403A
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and in particular to a transaction processing method, device, equipment and storage medium based on blockchain. Background Art
[0002] With the development of blockchain technology, more and more fields have been involved in blockchain technology. Among them, decentralization is the biggest feature of blockchain technology. Based on decentralized blockchain technology, transactions between users can be more direct and transparent, thereby ensuring the security and effectiveness of transactions.
[0003] However, there are also certain problems with the way transactions are conducted based on decentralized blockchain technology. For example, when disputes arise in transactions, there is a lack of an authoritative role to mediate and negotiate the disputed transactions, which not only fails to protect the interests of all parties to the transaction, but also easily affects the quality and efficiency of the transaction. Summary of the invention
[0004] The present application provides a blockchain-based transaction processing method, device, equipment and storage medium to solve the problem in the prior art that transaction conflicts cannot be resolved when transactions are conducted based on blockchain technology.
[0005] In a first aspect, the present application provides a transaction processing method based on blockchain, the method comprising:
[0006] In response to a transaction request initiated by a buyer, obtaining order information and payment information matching the transaction request;
[0007] Broadcast the order information and the payment information to all nodes in the network, and deposit the payment corresponding to the payment information into an intermediate account; wherein the nodes in the network include a plurality of supervisory nodes; the supervisory nodes indicate nodes that store and confirm transaction-related information generated by buyers and sellers during the transaction process;
[0008] In response to a transaction settlement request initiated by the seller, broadcast the order confirmation information and the order information contained in the transaction settlement request to the nodes of the entire network; wherein the order confirmation information is used to indicate that the buyer confirms receipt of at least part of the goods matching the order information;
[0009] Receive the first confirmation information fed back by each supervision node in the whole network node; and when it is determined that the quantity of the first confirmation information received meets the first quantity requirement, transfer the payment in the intermediate account that matches the order confirmation information to the seller's payment account; wherein the first confirmation information is used to indicate confirmation of receipt of the order confirmation information.
[0010] In one example, the network-wide nodes also include a seller node corresponding to the transaction request; broadcasting the order information and the payment information to the network-wide nodes includes:
[0011] Broadcasting the order information and the payment information to the multiple supervision nodes, and receiving second confirmation information fed back by each of the supervision nodes; wherein the second confirmation information is used to indicate confirmation of receiving the order information and the payment information;
[0012] When it is determined that the quantity of the received second confirmation information meets the second quantity requirement, it is confirmed that the order information and the payment information are broadcast to the seller nodes included in the whole network nodes.
[0013] In one example, the multiple supervision nodes include at least one alarm node; wherein the alarm node stores alarm information; after broadcasting the order information and the payment information to all nodes in the network, and depositing the payment corresponding to the payment information into an intermediate account, the method further includes:
[0014] Responding to a refund request initiated by the buyer and sending the refund request to the seller;
[0015] If it is determined that the seller refuses the refund, and / or the refund request is not processed within a preset time period, an alarm message is generated and the alarm message is saved in the alarm node.
[0016] In one example, the method further includes:
[0017] If it is determined that the seller has not refunded the money within a preset time period, at least part of the payment saved in the intermediate account is transferred to the buyer's reserved account.
[0018] In one example, before obtaining the order information and payment information matching the transaction request, the method further includes:
[0019] In response to a transaction request initiated by a buyer, determine seller information matching the transaction request;
[0020] From the alarm nodes, the alarm information associated with the seller information is filtered; and the alarm information associated with the seller information is displayed to the buyer.
[0021] In one example, the multiple supervision nodes include at least one arbitration node; wherein the arbitration node is used to arbitrate disputes between parties to a transaction; and the method further includes:
[0022] In response to an arbitration request initiated by a transaction party, transaction related information associated with the transaction party is obtained; and the transaction related information associated with the transaction party is sent to the arbitration node for arbitration processing; wherein the transaction party represents a buyer and / or a seller.
[0023] In one example, before responding to the transaction request initiated by the buyer, the method further includes:
[0024] In response to a user registration request, obtaining the user's identity information and registration information; wherein the registration information is used to indicate the user category requested to be registered by the user registration request;
[0025] Based on the user category indicated by the registration information, displaying a security deposit payment page that matches the user category;
[0026] After determining that the user has paid the deposit based on the deposit payment page, a unique identification code matching the user is generated to complete user registration.
[0027] In a second aspect, the present application provides a transaction processing device based on blockchain, comprising:
[0028] An acquisition unit, configured to respond to a transaction request initiated by a buyer and acquire order information and payment information matching the transaction request;
[0029] A first broadcast unit, configured to broadcast the order information and the payment information to all nodes in the network, and deposit the payment corresponding to the payment information into an intermediate account; wherein the nodes in the network include a plurality of supervisory nodes; the supervisory nodes indicate nodes for storing and confirming transaction-related information generated by buyers and sellers during the transaction process;
[0030] A second broadcast unit is configured to respond to a transaction settlement request initiated by the seller and broadcast the order confirmation information and the order information contained in the transaction settlement request to the nodes of the entire network; wherein the order confirmation information is used to indicate that the buyer confirms receipt of at least part of the goods matching the order information;
[0031] A payment collection unit is used to receive first confirmation information fed back by each supervision node in the whole network node; and when it is determined that the quantity of the first confirmation information received meets the first quantity requirement, the payment in the intermediate account that matches the order confirmation information is transferred to the payment collection account of the seller; wherein the first confirmation information is used to indicate confirmation of receipt of the order confirmation information.
[0032] In one example, the network-wide nodes also include a seller node corresponding to the transaction request; in this case, the first broadcast unit is used to:
[0033] Broadcasting the order information and the payment information to the multiple supervision nodes, and receiving second confirmation information fed back by each of the supervision nodes; wherein the second confirmation information is used to indicate confirmation of receiving the order information and the payment information;
[0034] When it is determined that the quantity of the received second confirmation information meets the second quantity requirement, it is confirmed that the order information and the payment information are broadcast to the seller nodes included in the whole network nodes.
[0035] In one example, the multiple supervision nodes include at least one alarm node; wherein the alarm node stores alarm information; in this case, the device further includes:
[0036] A refund unit, configured to broadcast the order information and the payment information to all nodes in the network, deposit the payment corresponding to the payment information into an intermediate account, and then respond to a refund request initiated by the buyer and send the refund request to the seller;
[0037] If it is determined that the seller refuses the refund, and / or the refund request is not processed within a preset time period, an alarm message is generated and the alarm message is saved in the alarm node.
[0038] In one example, the refund unit is also used to:
[0039] If it is determined that the seller has not refunded the money within a preset time period, at least part of the payment saved in the intermediate account is transferred to the buyer's reserved account.
[0040] In one example, the device further includes:
[0041] an alarm unit, configured to determine seller information matching the transaction request in response to a transaction request initiated by a buyer before obtaining order information and payment information matching the transaction request;
[0042] From the alarm nodes, the alarm information associated with the seller information is filtered; and the alarm information associated with the seller information is displayed to the buyer.
[0043] In one example, the multiple supervision nodes include at least one arbitration node; wherein the arbitration node is used to arbitrate disputes between parties to a transaction; in this case, the device further includes:
[0044] The arbitration unit is used to: in response to an arbitration request initiated by a transaction party, obtain transaction-related information associated with the transaction party; and send the transaction-related information associated with the transaction party to the arbitration node for arbitration processing; wherein the transaction party represents a buyer and / or a seller.
[0045] In one example, the device further includes:
[0046] A registration unit, used for obtaining the user's identity information and registration information in response to a user registration request before responding to a transaction request initiated by a buyer; wherein the registration information is used to indicate the user category requested to be registered by the user registration request;
[0047] Based on the user category indicated by the registration information, displaying a security deposit payment page that matches the user category;
[0048] After determining that the user has paid the deposit based on the deposit payment page, a unique identification code matching the user is generated to complete user registration.
[0049] In a third aspect, an embodiment of the present application provides a computer device, comprising: a memory, a processor; the memory stores computer execution instructions; the processor executes the computer execution instructions stored in the memory, so that the processor executes the first aspect above and / or various possible implementations of the first aspect.
[0050] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.
[0051] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.
[0052] The transaction processing method, device, equipment and storage medium based on blockchain provided by the present application can respond to the transaction request initiated by the buyer, obtain the order information and payment information matching the transaction request, broadcast the order information and payment information to the nodes of the entire network, and deposit the payment corresponding to the payment information into the intermediate account. At this time, the order information and payment information can be saved through the nodes of the entire network, thereby ensuring the accuracy of the order information and payment information, and temporarily saving the payment through the intermediate account to avoid the phenomenon that the seller does not provide the corresponding goods / services after receiving the payment. After the seller ships and the buyer confirms receipt, the seller can initiate a transaction settlement request. At this time, the order confirmation information and order information contained in the transaction settlement request can be broadcast to the nodes of the entire network in response to the transaction settlement request initiated by the seller, and the first confirmation information fed back by each supervisory node in the nodes of the entire network is received. When the number of the first confirmation information received is determined to meet the first quantity requirement, the payment matching the order confirmation information in the intermediate account is transferred to the seller's payment account. This implementation method can realize the payment interception mechanism through the supervision nodes and intermediate accounts, prevent the payment from being directly transferred to the seller's payment account, and realize the monitoring of the transaction process by a third party to ensure the accurate conduct of the transaction, reduce the phenomenon of disputes / conflicts in the transaction, thereby helping to ensure the efficient and high-quality completion of the transaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0054] Figure 1 A flowchart of a first embodiment of a transaction processing method based on blockchain provided in an embodiment of the present application;
[0055] Figure 2 A flowchart of a second embodiment of a transaction processing method based on blockchain provided in an embodiment of the present application;
[0056] Figure 3 A flowchart of a third embodiment of a blockchain-based transaction processing method provided in an embodiment of the present application;
[0057] Figure 4 A schematic diagram of the hardware structure of a blockchain-based transaction processing system provided in an embodiment of the present application;
[0058] Figure 5 A schematic diagram of the structure of a blockchain-based transaction processing device provided in an embodiment of the present application;
[0059] Figure 6 A schematic diagram of the structure of another blockchain-based transaction processing device provided in an embodiment of the present application;
[0060] Figure 7 A block diagram of a computer device provided in an embodiment of the present application.
[0061] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0062] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0063] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0064] It should be noted that the blockchain-based transaction processing method, device, equipment and storage medium provided in the present application can be used in the field of blockchain technology, in the field of artificial intelligence technology, or in any field other than the field of blockchain technology and the field of artificial intelligence technology. The application field of the blockchain-based transaction processing method, device, equipment and storage medium provided in the present application is not limited here.
[0065] At present, when conducting transactions based on decentralized blockchain technology, transactions between parties can be made more direct and transparent, thereby ensuring the security and effectiveness of transactions. However, when disputes / conflicts arise in transactions, the lack of an authoritative role to regulate and negotiate the controversial transactions not only fails to protect the interests of the parties to the transaction, but also easily affects the quality and efficiency of the transaction.
[0066] In a possible implementation, the transaction scenario based on blockchain is a pre-payment scenario, for example, the scenario is a tutoring class scenario (or a fitness card scenario, etc.), which requires the buyer to pay the fees for multiple courses at one time. At this time, if the buyer completes the payment and the seller does not provide the corresponding course and cannot contact the seller, due to the decentralization of the blockchain, the buyer cannot file a complaint against the transaction in a timely and effective manner, which damages the buyer's legitimate rights and interests and affects the quality of the transaction.
[0067] The blockchain-based transaction processing method provided in this application is intended to solve the above technical problems of the prior art.
[0068] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0069] See also Figure 1 , Figure 1 A flowchart of the first embodiment of the transaction processing method based on blockchain provided in the embodiment of the present application is shown in FIG. Figure 1 As shown, the method includes:
[0070] S101. In response to a transaction request initiated by a buyer, obtain order information and payment information matching the transaction request.
[0071] In one example, the blockchain-based transaction processing method provided in an embodiment of the present application can be applied to the blockchain. In this case, transaction-related information can be saved through each node in the blockchain.
[0072] In one example, the blockchain-based transaction processing method provided in an embodiment of the present application can be applied to a variety of transaction processing modes. For example, the transaction processing mode can be "one transaction, one payment" or "one transaction, multiple payments".
[0073] In one example, the transaction processing mode of "one transaction, one payment" means that after the buyer confirms receipt of the goods, the buyer pays the seller the money in one lump sum. In this case, the transaction processing mode of "one transaction, one payment" can also be called "quick payment mode"; the transaction processing mode of "one transaction, multiple payments" means that after the buyer pays, the seller needs to provide multiple services. In this case, the payment paid by the buyer can be paid to the seller in multiple installments. In this case, the transaction processing mode of "one transaction, multiple payments" can also be called "long contract mode". At this time, under the transaction processing mode of "one transaction, one payment", if the seller does not provide the corresponding service, the payment corresponding to the unprovided service can be returned to the buyer, thereby protecting the buyer's legitimate interests and avoiding transaction conflicts.
[0074] Based on this, the transaction request initiated by the buyer can indicate a request to purchase a physical product, or a request to purchase an online product (e.g., an online course), etc. The object of the transaction requested by the transaction request is not limited here, and the transaction can be carried out. At this time, the transaction request at least includes buyer information, seller information, and product information.
[0075] In one example, after a buyer initiates a transaction request and purchases the corresponding product, the order information and payment information of the product can be generated and saved in the node corresponding to the buyer. At this time, the payment information of the product is used to indicate the payment amount corresponding to the transaction request.
[0076] S102: Broadcast the order information and payment information to all nodes in the network, and deposit the payment corresponding to the payment information into an intermediate account.
[0077] Among them, the whole network nodes include multiple supervision nodes; the supervision nodes indicate the nodes that save and confirm the transaction-related information generated by buyers and sellers during the transaction process.
[0078] In one example, order information and payment information can be broadcast to all nodes in the entire network to synchronize transaction-related information, so that each node in the blockchain can trace the transaction-related information.
[0079] In one example, the intermediate account indicates a non-seller account that temporarily stores payment for goods. In this case, the intermediate account may be a bank account or an account under a trading platform, etc. There is no specific limitation on the intermediate account.
[0080] In one example, the transaction-related information may at least indicate: the buyer's order information when purchasing the goods, the payment information paid by the buyer after purchasing the goods, the order information and order confirmation information sent by the seller, etc.
[0081] In one example, when transaction-related information is confirmed through a monitoring node, it can be automatically confirmed according to a preset confirmation process, and / or manually confirmed. The manner in which the transaction-related information is confirmed at the monitoring node is not limited here.
[0082] S103. In response to the transaction settlement request initiated by the seller, the order confirmation information and order information included in the transaction settlement request are broadcast to all nodes in the network.
[0083] The order confirmation information is used to indicate that the buyer has confirmed receipt of at least part of the goods that match the order information.
[0084] In one example, the transaction settlement request is used to indicate a request to transfer the payment stored in the intermediary account to the seller's payment account.
[0085] In one example, in the transaction processing mode of "one transaction, one payment", the order confirmation information indicates that the buyer confirms receipt of all goods / commodities that match the order information; in the transaction processing mode of "one transaction, multiple payments", the order confirmation information indicates that the buyer receives partial goods / commodities that match the order information.
[0086] In one example, the order information included in the transaction settlement request indicates the order information received by the seller after the order information matching the transaction request initiated by the buyer is broadcasted. At this time, the seller can upload the order information again when the transaction is settled, so that the order information can be confirmed and then calculated, thereby ensuring the accuracy of the transaction.
[0087] S104, receiving the first confirmation information fed back by each supervision node in the whole network node; and when it is determined that the quantity of the received first confirmation information meets the first quantity requirement, transferring the payment in the intermediate account that matches the order confirmation information to the seller's payment account.
[0088] The first confirmation information is used to indicate confirmation of receipt of the order confirmation information.
[0089] In one example, after receiving and saving / recording the order confirmation information and order information, the regulatory node may feedback the first confirmation information. For example, the first confirmation information may include an ACK (Acknowledge character) flag, or the first confirmation information may include an ACK flag and the node information corresponding to the regulatory node.
[0090] In an example, the value of the first quantity requirement may be 3, 5, or 10, etc. There is no specific limitation on the value of the first quantity requirement, which is subject to achievable performance.
[0091] It can be known from the above description that the embodiment of the present application can respond to the transaction request initiated by the buyer, obtain the order information and payment information matching the transaction request, broadcast the order information and payment information to the nodes of the entire network, and deposit the payment corresponding to the payment information into the intermediate account. At this time, the order information and payment information can be saved through the nodes of the entire network, thereby ensuring the accuracy of the order information and payment information, and temporarily saving the payment through the intermediate account to avoid the phenomenon that the seller does not provide the corresponding goods / services after receiving the payment. After the seller ships and the buyer confirms receipt, the seller can initiate a transaction settlement request. At this time, the order confirmation information and order information contained in the transaction settlement request can be broadcast to the nodes of the entire network in response to the transaction settlement request initiated by the seller, and the first confirmation information fed back by each supervisory node in the nodes of the entire network is received. When the number of the received first confirmation information is determined to meet the first quantity requirement, the payment matching the order confirmation information in the intermediate account is transferred to the seller's payment account. This implementation method can realize the payment interception mechanism through the supervision nodes and intermediate accounts, prevent the payment from being directly transferred to the seller's payment account, and realize the monitoring of the transaction process by a third party to ensure the accurate conduct of the transaction, reduce the phenomenon of disputes / conflicts in the transaction, thereby helping to ensure the efficient and high-quality completion of the transaction.
[0092] See also Figure 2 , Figure 2 The flowchart of the second embodiment of the transaction processing method based on blockchain provided in the embodiment of the present application is as follows: Figure 2 As shown, the method includes:
[0093] S201. In response to a transaction request initiated by a buyer, obtain order information and payment information matching the transaction request.
[0094] In an example, this step can refer to the content described in S101 above, and will not be described in detail here.
[0095] In one example, after obtaining the order information and the payment information, the order information and the payment information can be broadcasted to all nodes in the network. At this time, if the nodes in the network include multiple supervisory nodes and seller nodes corresponding to the transaction request, the steps described in S202 to S203 below can be referred to. Among them, the supervisory node indicates the node that saves and confirms the transaction-related information generated by the buyer and the seller during the transaction process.
[0096] S202: Broadcast the order information and payment information to multiple supervision nodes, and receive second confirmation information fed back by each supervision node.
[0097] The second confirmation information is used to indicate confirmation of receipt of the order information and payment information.
[0098] In one example, after receiving and saving / recording the order information and payment information, the supervisory node may feedback the second confirmation information. At this time, the second confirmation information may include an ACK flag, or may include the ACK flag and the node information corresponding to the supervisory node.
[0099] S203. When it is determined that the quantity of the received second confirmation information meets the second quantity requirement, confirm that the order information is broadcast to the seller nodes included in the nodes of the entire network.
[0100] In one example, the value of the second quantity requirement may be 3, 5, or 10, etc., and the value of the second quantity requirement is not limited. The value of the second quantity requirement may be the same as or different from the value of the first quantity requirement.
[0101] At this point, after confirming that the seller's node has received the order information and payment information, the seller can ship the goods based on the received order information.
[0102] In this implementation, at least the second quantity requirement and the second confirmation information fed back by the supervision node can be used to ensure that the seller receives the order information and payment information, thereby ensuring the orderly conduct of the transaction.
[0103] S204, depositing the payment corresponding to the payment information into an intermediate account.
[0104] S205. In response to the transaction settlement request initiated by the seller, the order confirmation information and order information included in the transaction settlement request are broadcast to all nodes in the network.
[0105] The order confirmation information is used to indicate that the buyer has confirmed receipt of at least part of the goods that match the order information.
[0106] In an example, this step can refer to the content described in the above S103, which will not be repeated here.
[0107] S206. Receive the first confirmation information fed back by each supervision node in the whole network node; and when it is determined that the quantity of the received first confirmation information meets the first quantity requirement, transfer the payment in the intermediate account that matches the order confirmation information to the seller's payment account.
[0108] The first confirmation information is used to indicate confirmation of receipt of the order confirmation information.
[0109] In an example, this step can refer to the content described in S104 above, and will not be described in detail here.
[0110] See also Figure 3 , Figure 3 The flowchart of the third embodiment of the transaction processing method based on blockchain provided in the embodiment of the present application is as follows: Figure 3 As shown, the method includes:
[0111] S301. In response to a transaction request initiated by a buyer, obtain order information and payment information matching the transaction request.
[0112] In an example, this step can refer to the content described in S101 above, and will not be described in detail here.
[0113] S302: Broadcast the order information and payment information to all nodes in the network, and deposit the payment corresponding to the payment information into an intermediate account.
[0114] Among them, the whole network nodes include multiple supervision nodes; the supervision nodes indicate the nodes that save and confirm the transaction-related information generated by buyers and sellers during the transaction process.
[0115] In an example, this step can refer to the content described in S102 above, and will not be described in detail here.
[0116] In one example, the multiple supervision nodes include at least one alarm node; wherein the alarm node may store alarm information. At this time, after the order information and payment information are broadcast to all nodes in the network, and the payment corresponding to the payment information is deposited into the intermediate account, if the seller ships the goods based on the received order information and payment information, the embodiment of the present application may also perform the steps described in S303 to S305 below.
[0117] S303: Respond to the refund request initiated by the buyer and send the refund request to the seller.
[0118] In one example, the refund request initiated by the buyer may indicate a return refund request initiated by the buyer after receiving the goods, and may also indicate a refund request initiated by the buyer when the buyer has not received the goods.
[0119] S304: If it is determined that the seller refuses to refund and / or the refund request is not processed within a preset time period, an alarm message is generated and saved in an alarm node. The alarm message may indicate the seller's breach of contract information.
[0120] S305: If it is determined that the seller has not refunded the money within the preset time period, at least part of the payment saved in the intermediate account is transferred to the buyer's reserved account.
[0121] In one example, the buyer's reserved account may indicate the account used by the buyer to pay for the order, or may be another account reserved for the buyer. The buyer's reserved account is not limited here.
[0122] In one example, under the transaction processing mode of "one transaction, one payment", all the payment for goods stored in the intermediate account can be transferred to the buyer's reserved account. Under the transaction processing mode of "one transaction, multiple payments", the payment corresponding to the unconsumed part of the goods in the intermediate account can be transferred to the buyer's reserved account.
[0123] In this implementation, when it is determined that the buyer has initiated a refund request and the seller has not agreed to return the payment to the buyer within a preset time period, an automatic refund mechanism can be triggered, thereby transferring the payment saved in the intermediate account to the buyer's reserved account, thereby effectively protecting the buyer's interests.
[0124] In one example, when multiple supervision nodes include at least one alarm node, the embodiment of the present application can also determine the seller information matching the transaction request in response to the transaction request initiated by the buyer before obtaining the order information and payment information matching the transaction request; then, filter the alarm information associated with the seller information from the alarm node; and display the alarm information associated with the seller information to the buyer.
[0125] This implementation method can display warning information associated with the seller before the buyer places an order to purchase the goods, so as to remind the buyer to place the order carefully, thereby reducing the risk of transaction losses for the buyer. At the same time, it can also better constrain the seller to avoid the seller's breach of contract, thereby ensuring the quality of the transaction.
[0126] In one example, the multiple supervision nodes may also include at least one arbitration node, wherein the arbitration node is used to arbitrate disputes between the parties to the transaction. At this time, after completing the transaction according to the steps described in the above embodiments, if the transaction parties (including buyers and / or sellers) have disputes over the transaction, they may also initiate an arbitration request. At this time, in response to the arbitration request initiated by the transaction parties, transaction-related information associated with the transaction parties may be obtained; and the transaction-related information associated with the transaction parties may be sent to the arbitration node for arbitration processing.
[0127] In one example, the transaction information associated with the transaction parties may include not only the information stored in each node of the blockchain, but also the evidence information newly uploaded by the transaction parties requesting arbitration, so that the arbitration node can make arbitration more quickly and accurately based on the evidence information uploaded by the transaction parties requesting arbitration.
[0128] In one example, when arbitration processing is performed based on an arbitration node, the arbitration processing can be automatically completed according to a pre-set arbitration process. For example, the arbitration type corresponding to the arbitration request can be determined, and key information in the transaction-related information can be extracted according to the arbitration type. The arbitration result can be determined based on the key information to complete the arbitration processing process.
[0129] For example, in the case where the arbitration type indicates that the buyer initiates an arbitration request for damage compensation for physical goods, the transaction-related information may include photos of damaged goods uploaded by the buyer, photos of goods uploaded by the seller at the time of shipment, order information, shipment information, payment information, and claims information noted by the merchant. At this time, after sending the transaction-related information to the arbitration node, the arbitration node can identify and process the photos of damaged goods uploaded by the buyer and the photos of goods uploaded by the seller at the time of shipment, and determine the cause of the damage to the goods, thereby determining the arbitration result. For example, if it is determined that the cause of the damage to the goods is the damage caused by the seller's packaging problem, the amount that the seller should compensate or return can be determined based on the degree of damage to the goods and the payment paid by the buyer, thereby determining the arbitration result. For another example, if it is determined that the cause of the damage to the goods is the buyer's damage, it can be determined that the buyer's arbitration is invalid.
[0130] In another example, arbitration may be performed after manually reviewing the transaction-related information, and the method of arbitration is not limited here.
[0131] In this implementation, arbitration nodes can be introduced to arbitrate controversial transactions, which can promptly and effectively resolve transaction disputes, thereby improving not only the quality and efficiency of transactions, but also the user's transaction experience.
[0132] In one example, the blockchain-based transaction processing method provided in an embodiment of the present application can be applied to a blockchain-based transaction processing system. In this case, when the transaction parties process transactions based on the transaction processing system, they can first register account information in the transaction processing system, and after logging in, use the transaction processing system to process transactions.
[0133] In one example, before a user uses the transaction processing system, the user's identity information and registration information can be obtained in response to a user registration request. Then, based on the user category indicated by the registration information, a security deposit payment page matching the user category is displayed; and after determining that the user has paid the security deposit based on the security deposit payment page, a unique identification code matching the user is generated to complete the user registration.
[0134] In one example, the user's identity information can be used to determine the user's identity. In this case, the user's identity information can include the user's unique identification code. For example, if the user is an individual, the user's identity information can include the user's ID number. If the user is a company, the user's identity information can include the company's unified social credit code, etc. In addition, the user's identity information can also include the user's name, address, contact information, etc. The specific content of the user's identity information is not limited here.
[0135] In one example, the registration information is used to indicate the user category requested for registration by the user registration request; for example, the user category can be a buyer or a seller, or the user category can be a company or organization, or an individual, etc. The user category is not specifically limited here and is subject to practicability.
[0136] In one example, different deposit amounts can be set for different user categories. For example, for individuals, the deposit amount set to be paid can be Amount 1, and for companies, the deposit amount set to be paid can be Amount 2, where Amount 2 is greater than Amount 1.
[0137] This implementation method can ensure that the identities of all parties involved in the transaction are authentic and valid, thereby ensuring the legitimacy of the transaction.
[0138] See also Figure 4 , Figure 4 A schematic diagram of the hardware structure of a blockchain-based transaction processing system provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the blockchain-based transaction processing system includes a registration module, a user module, a buyer module, an alarm display module, a quasi-deposit module, a seller module and an arbitration module.
[0139] The registration module is used to respond to a user registration request and obtain the user's identity information and registration information to facilitate user registration.
[0140] The user module can be used to display the user's relevant information and enable the user to pay the deposit through the user module if the user has not paid the deposit when registering. After the user pays the deposit and completes the registration, the transaction can be completed based on this system.
[0141] At this time, after the user registration is completed and before the transaction is carried out, the transaction processing mode to be carried out can be selected, for example, the above-mentioned "quick payment mode" or the above-mentioned "long contract mode" can be selected for the transaction. After the transaction processing mode is determined, an order can be placed to purchase goods / products.
[0142] The buyer module includes an order module, a receiving module and a refund module. Among them, the order module is used to generate order information and payment information that match the transaction request in response to the transaction request initiated by the buyer. Then, the order information and payment information are broadcast to all nodes in the network, and the payment corresponding to the payment information is deposited into the intermediate account through the quasi-deposit module. The receiving module is used to generate and broadcast confirmation receipt information to all nodes in the network after receiving the goods sent by the seller and confirming that they are correct. The refund module is used to generate and broadcast a refund request to all nodes in the network if the buyer is not satisfied with the goods received or has not received the goods.
[0143] The warning display module is used to display the warning information associated with the corresponding seller for the buyer's reference before the buyer places an order.
[0144] The seller module includes a shipping module, a payment module, and a refund module. Among them, the shipping module is used to ship according to the order information after receiving the buyer's order information and payment information, and broadcast the shipping information to all network nodes. The payment module is used to initiate a transaction settlement request after receiving the buyer's confirmation of receipt, so as to receive the payment. The refund module is used to return the payment to the buyer after receiving the buyer's refund request, or automatically initiate a refund after the seller receives the buyer's refund request and determines that the seller has not refunded the money within a preset time period.
[0145] The arbitration module is used to receive arbitration requests initiated by sellers and / or buyers and to arbitrate disputed transactions.
[0146] like Figure 4 As shown, the blockchain-based transaction processing system provided by the embodiment of the present application may also include a broadcast module to facilitate broadcasting of information that needs to be broadcast to each node in the blockchain.
[0147] In an embodiment of the present application, when the blockchain-based transaction processing system implements the above-mentioned blockchain-based transaction processing method, it is also possible to deploy a smart contract in the blockchain-based transaction processing system to control the execution process of the blockchain-based transaction processing method. The execution process is the same as the implementation process of the embodiment described in the above method, and will not be described in detail here.
[0148] See also Figure 5 , Figure 5 A schematic diagram of a transaction processing device based on blockchain provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the blockchain-based transaction processing device 500 includes:
[0149] The acquisition unit 501 is used to respond to the transaction request initiated by the buyer and acquire the order information and payment information matching the transaction request.
[0150] The first broadcast unit 502 is used to broadcast the order information and payment information to all nodes in the entire network, and deposit the payment corresponding to the payment information into an intermediate account; wherein the nodes in the entire network include multiple supervision nodes; the supervision node indicates a node that saves and confirms transaction-related information generated by buyers and sellers during the transaction process.
[0151] The second broadcast unit 503 is used to respond to the transaction settlement request initiated by the seller and broadcast the order confirmation information and order information contained in the transaction settlement request to all nodes in the entire network; wherein the order confirmation information is used to indicate that the buyer confirms receipt of at least part of the goods matching the order information.
[0152] The payment collection unit 504 is used to receive the first confirmation information fed back by each supervision node in the whole network node; and when it is determined that the number of the received first confirmation information meets the first quantity requirement, the payment in the intermediate account that matches the order confirmation information is transferred to the seller's payment account; wherein the first confirmation information is used to indicate confirmation of receipt of the order confirmation information.
[0153] See also Figure 6 , Figure 6 A schematic diagram of the structure of another blockchain-based transaction processing device provided in an embodiment of the present application, such as Figure 6 As shown, the blockchain-based transaction processing device 600 includes:
[0154] The acquisition unit 601 is used to respond to the transaction request initiated by the buyer and acquire the order information and payment information matching the transaction request.
[0155] The first broadcast unit 602 is used to broadcast the order information and payment information to all nodes in the network, and deposit the payment corresponding to the payment information into an intermediate account; wherein the nodes in the network include multiple supervision nodes; the supervision node indicates a node that saves and confirms transaction-related information generated by buyers and sellers during the transaction process.
[0156] The second broadcast unit 603 is used to respond to the transaction settlement request initiated by the seller and broadcast the order confirmation information and order information contained in the transaction settlement request to all nodes in the entire network; wherein the order confirmation information is used to indicate that the buyer confirms receipt of at least part of the goods matching the order information.
[0157] The payment collection unit 604 is used to receive the first confirmation information fed back by each supervision node in the whole network node; and when it is determined that the number of the received first confirmation information meets the first quantity requirement, the payment in the intermediate account that matches the order confirmation information is transferred to the seller's payment account; wherein the first confirmation information is used to indicate confirmation of receipt of the order confirmation information.
[0158] In one example, the entire network of nodes also includes a seller node corresponding to the transaction request; in this case, the first broadcast unit 602 is used to:
[0159] Broadcasting the order information and payment information to multiple supervision nodes, and receiving the second confirmation information fed back by each supervision node; wherein the second confirmation information is used to indicate confirmation of receipt of the order information and payment information;
[0160] When it is determined that the quantity of the received second confirmation information meets the second quantity requirement, it is confirmed that the order information and payment information are broadcast to the seller nodes included in the nodes of the entire network.
[0161] In one example, the multiple supervision nodes include at least one alarm node; wherein the alarm node stores alarm information; in this case, the device further includes:
[0162] The refund unit 605 is used to broadcast the order information and payment information to all nodes in the network, deposit the payment corresponding to the payment information into the intermediate account, respond to the refund request initiated by the buyer, and send the refund request to the seller;
[0163] If it is determined that the seller refuses the refund, and / or the refund request is not processed within a preset time period, an alarm message is generated and saved in the alarm node.
[0164] In one example, the refund unit 605 is further configured to:
[0165] If it is determined that the seller has not refunded the money within a preset time period, at least part of the payment saved in the intermediate account is transferred to the buyer's reserved account.
[0166] In one example, the device further includes:
[0167] The alarm unit 606 is used to determine the seller information matching the transaction request in response to the transaction request initiated by the buyer before obtaining the order information and payment information matching the transaction request;
[0168] From the alarm node, the alarm information associated with the seller information is filtered; and the alarm information associated with the seller information is displayed to the buyer.
[0169] In one example, the plurality of supervision nodes include at least one arbitration node; wherein the arbitration node is used to arbitrate disputes between parties to a transaction; in this case, the device further includes:
[0170] The arbitration unit 607 is used to: in response to an arbitration request initiated by a transaction party, obtain transaction related information associated with the transaction party; and send the transaction related information associated with the transaction party to the arbitration node for arbitration processing; wherein the transaction party represents a buyer and / or a seller.
[0171] In one example, the device further includes:
[0172] The registration unit 608 is used to obtain the user's identity information and registration information in response to the user registration request before responding to the transaction request initiated by the buyer; wherein the registration information is used to indicate the user category requested to be registered by the user registration request;
[0173] Based on the user category indicated by the registration information, display a security deposit payment page that matches the user category;
[0174] After determining that the user has paid the deposit based on the deposit payment page, a unique identification code matching the user is generated to complete the user registration.
[0175] Figure 7 A block diagram of a computer device provided in an embodiment of the present application, wherein the terminal of the computer device may be a computer, a digital broadcast terminal, a message sending and receiving device, a console, a tablet device, etc.
[0176] Computer device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output (I / O) interface 712 , a sensor component 714 , and a communication component 716 .
[0177] The processing component 702 generally controls the overall operation of the computer device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.
[0178] The memory 704 is configured to store various types of data and computer-executable instructions to support operations on the computer device 700. Examples of computer-executable instructions include instructions for any application or method operating on the computer device 700, and examples of various types of data include contact data, phone book data, messages, pictures, videos, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0179] The power supply component 706 provides power to the various components of the computer device 700. The power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the computer device 700.
[0180] The multimedia component 708 includes a screen that provides an output interface between the computer device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the computer device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0181] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the computer device 700 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.
[0182] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0183] The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the computer device 700. For example, the sensor assembly 714 can detect the open / closed state of the computer device 700, the relative positioning of components, such as the display and keypad of the computer device 700, and the sensor assembly 714 can also detect the position change of the computer device 700 or a component of the computer device 700, the presence or absence of user contact with the computer device 700, the orientation or acceleration / deceleration of the computer device 700, and the temperature change of the computer device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0184] The communication component 716 is configured to facilitate wired or wireless communication between the computer device 700 and other devices. The computer device 700 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G or 6G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0185] In one example, the computer device 700 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0186] The embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. The computer-readable storage medium may be a non-temporary computer-readable storage medium, which may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc. When the computer-executable instructions stored in the non-temporary computer-readable storage medium are executed by a processor of a computer device, the computer device is enabled to implement the above-mentioned blockchain-based transaction processing method.
[0187] The embodiment of the present application also provides a computer program product, which includes a computer program. The computer program can be executed by the processor 720 of the computer device 700 to implement the above-mentioned blockchain-based transaction processing method.
[0188] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0189] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A transaction processing method based on blockchain, characterized in that: The method comprises: In response to a transaction request initiated by a buyer, obtaining order information and payment information matching the transaction request; Broadcast the order information and the payment information to all nodes in the network, and deposit the payment corresponding to the payment information into an intermediate account; wherein the nodes in the network include a plurality of supervisory nodes; the supervisory nodes indicate nodes that store and confirm transaction-related information generated by buyers and sellers during the transaction process; In response to a transaction settlement request initiated by the seller, broadcast the order confirmation information and the order information contained in the transaction settlement request to the nodes of the entire network; wherein the order confirmation information is used to indicate that the buyer confirms receipt of at least part of the goods matching the order information; Receive the first confirmation information fed back by each supervision node in the whole network node; and when it is determined that the quantity of the first confirmation information received meets the first quantity requirement, transfer the payment in the intermediate account that matches the order confirmation information to the seller's payment account; wherein the first confirmation information is used to indicate confirmation of receipt of the order confirmation information.
2. The method according to claim 1, characterized in that The network-wide nodes also include a seller node corresponding to the transaction request; Broadcasting the order information and the payment information to all nodes in the network includes: Broadcasting the order information and the payment information to the multiple supervision nodes, and receiving second confirmation information fed back by each of the supervision nodes; wherein the second confirmation information is used to indicate confirmation of receiving the order information and the payment information; When it is determined that the quantity of the received second confirmation information meets the second quantity requirement, it is confirmed that the order information and the payment information are broadcast to the seller nodes included in the whole network nodes.
3. The method according to claim 1, characterized in that The multiple supervision nodes include at least one alarm node; wherein the alarm node stores alarm information; after broadcasting the order information and the payment information to all nodes in the network, and depositing the payment corresponding to the payment information into the intermediate account, the method further includes: Responding to a refund request initiated by the buyer and sending the refund request to the seller; If it is determined that the seller refuses the refund, and / or the refund request is not processed within a preset time period, an alarm message is generated and the alarm message is saved in the alarm node.
4. The method according to claim 3, characterized in that The method further comprises: If it is determined that the seller has not refunded the money within a preset time period, at least part of the payment saved in the intermediate account is transferred to the buyer's reserved account.
5. The method according to claim 3, characterized in that: Before obtaining the order information and payment information matching the transaction request, the method further includes: In response to a transaction request initiated by a buyer, determine seller information matching the transaction request; From the alarm nodes, the alarm information associated with the seller information is filtered; and the alarm information associated with the seller information is displayed to the buyer.
6. The method according to claim 1, characterized in that The multiple supervision nodes include at least one arbitration node; wherein the arbitration node is used to arbitrate disputes between parties to a transaction; and the method further includes: In response to an arbitration request initiated by a transaction party, transaction related information associated with the transaction party is obtained; and the transaction related information associated with the transaction party is sent to the arbitration node for arbitration processing; wherein the transaction party represents a buyer and / or a seller.
7. The method according to any one of claims 1 to 6, characterized in that Before responding to the transaction request initiated by the buyer, the method further includes: In response to a user registration request, obtaining the user's identity information and registration information; wherein the registration information is used to indicate the user category requested to be registered by the user registration request; Based on the user category indicated by the registration information, displaying a security deposit payment page that matches the user category; After determining that the user has paid the deposit based on the deposit payment page, a unique identification code matching the user is generated to complete user registration.
8. A transaction processing device based on blockchain, characterized in that: include: An acquisition unit, configured to respond to a transaction request initiated by a buyer and acquire order information and payment information matching the transaction request; A first broadcast unit, configured to broadcast the order information and the payment information to all nodes in the network, and deposit the payment corresponding to the payment information into an intermediate account; wherein the nodes in the network include a plurality of supervisory nodes; the supervisory nodes indicate nodes for storing and confirming transaction-related information generated by buyers and sellers during the transaction process; A second broadcast unit is configured to respond to a transaction settlement request initiated by the seller and broadcast the order confirmation information and the order information contained in the transaction settlement request to the nodes of the entire network; wherein the order confirmation information is used to indicate that the buyer confirms receipt of at least part of the goods matching the order information; A payment collection unit is used to receive first confirmation information fed back by each supervision node in the whole network node; and when it is determined that the quantity of the first confirmation information received meets the first quantity requirement, the payment in the intermediate account that matches the order confirmation information is transferred to the payment collection account of the seller; wherein the first confirmation information is used to indicate confirmation of receipt of the order confirmation information.
9. A computer device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.
