Transaction payment method, device, equipment and storage medium based on blockchain

By using the method of distributing management nodes and target business nodes in the blockchain network, the problem of lag and non -decentralization of traditional cross -border payment is solved, and the timeliness and security of cross -border payment are realized, and it has realized it. Decentralized asset circulation and real -time tracking.

CN112381542BActive Publication Date: 2025-01-24SHENZHEN YUANZHONGRUI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202011296588.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-18
Publication Date
2025-01-24
Estimated Expiration
2040-11-18

AI Technical Summary

Technical Problem

There are problems of lag and non-decentralization of transit banks in traditional cross-border payments and settlements, resulting in high freezing rate of asset circulation and insufficient security.

Method used

By applying distribution management nodes and target business nodes in the blockchain network, transaction requests are obtained and verified, distributed to target business nodes, and payment information is generated and broadcast to achieve decentralization and real-time performance of cross-border payments.

Benefits of technology

It improves the timeliness and security of payment, avoids the restrictions of intermediary banks, realizes decentralized asset circulation and real-time tracking, and has high data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112381542B_ABST
    Figure CN112381542B_ABST
Patent Text Reader

Abstract

The present application relates to blockchain, and provides a transaction payment method, device, equipment and storage medium based on blockchain, the method comprising: obtaining a transaction request sent by a client, and verifying the transaction request; when the transaction request passes the verification, distributing the transaction request to a target business node in the blockchain network according to a preset distribution rule; obtaining the collection information returned by the target business node based on the transaction request, and generating a payment page according to the collection information; sending a payment page to the client for the client to display the payment page, and generating payment information in response to the user's payment operation on the payment page; verifying the payment information sent by the client, and when the payment information passes the verification, generating the income and expenditure information of the transaction request, and broadcasting the income and expenditure information in the blockchain network. The present application improves the timeliness and security of payment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of blockchain, and in particular to a transaction payment method, device, equipment and storage medium based on blockchain. Background Art

[0002] In traditional cross-border payments and settlements, both the payee and the payee need to rely on the transit bank as a third party to realize the transaction of funds. The third party provides payment transaction services. The essence of its operation is to set up an intermediate transition account between the payee and the payee to achieve a controllable pause in the remittance. Only when both parties reach an agreement can the destination of the funds be determined. The third party plays the role of intermediary custody and supervision, implements payment custody, and realizes payment guarantee through payment custody. However, the third-party business payment method is based on the third party's own gateway and payment platform to complete the overall payment process, which has lags and cannot achieve true decentralization. The freezing rate of assets during circulation is high, and the security of assets cannot be guaranteed. Summary of the invention

[0003] The main purpose of this application is to provide a blockchain-based transaction payment method, device, equipment and storage medium, aiming to improve the timeliness and security of payment through blockchain-related technologies.

[0004] In a first aspect, the present application provides a transaction payment method based on blockchain, which is applied to a distribution management node in a blockchain network, and the method comprises:

[0005] Obtaining a transaction request sent by a client and verifying the transaction request;

[0006] When the transaction request passes the verification, the transaction request is distributed to the target business node in the blockchain network according to the preset distribution rules;

[0007] Acquire the payment information returned by the target business node based on the transaction request, and generate a payment page according to the payment information;

[0008] Sending the payment page to the client so that the client displays the payment page, and generating payment information in response to a user's payment operation on the payment page;

[0009] The payment information sent by the client is verified, and when the payment information passes the verification, the income and expenditure information of the transaction request is generated, and the income and expenditure information is broadcasted in the blockchain network.

[0010] In a second aspect, the present application also provides a transaction payment device based on blockchain, comprising:

[0011] The acquisition module is used to obtain the transaction request sent by the client;

[0012] A verification module, used for verifying the transaction request;

[0013] A distribution module, configured to distribute the transaction request to a target service node in the blockchain network according to a preset distribution rule when the transaction request passes verification;

[0014] The acquisition module is further used to acquire the payment information returned by the target service node based on the transaction request;

[0015] A generation module, used to generate a payment page according to the payment information;

[0016] A sending module, configured to send the payment page to the client so that the client can display the payment page, and generate payment information in response to a user's payment operation on the payment page;

[0017] The verification module is further used to verify the payment information sent by the client;

[0018] The generating module is further configured to generate income and expenditure information of the transaction request when the payment information passes the verification;

[0019] A broadcast module is used to broadcast and publish the income and expenditure information in the blockchain network.

[0020] In a third aspect, the present application also provides a computer device, comprising a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the blockchain-based transaction payment method as described above are implemented.

[0021] In a fourth aspect, the present application also provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the blockchain-based transaction payment method as described above are implemented.

[0022] The present application provides a transaction payment method, device, equipment and storage medium based on blockchain. The present application verifies the transaction request sent by the client, and when the transaction request passes the verification, distributes the transaction request to the target business node in the blockchain network according to the preset distribution rule, then obtains the collection information returned by the target business node based on the transaction request, generates a payment page according to the collection information, sends the payment page to the client for the client to display the payment page, and generates payment information in response to the user's payment operation on the payment page, then verifies the payment information sent by the client, and when the payment information passes the verification, generates income and expenditure information of the transaction request, and then broadcasts the income and expenditure information in the blockchain network, so that each node in the blockchain network records the income and expenditure information of the transaction request, can quickly complete the payment of funds through the relevant technology of blockchain, and the user conducts payment transactions with the business payment chain to avoid many restrictions of the transit bank. At the same time, the income and expenditure information is stored on the blockchain, which is decentralized and can track whether the funds are in place in real time. The data cannot be tampered with and has high security. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0024] Figure 1 A schematic diagram of the steps of a blockchain-based transaction payment method provided in an embodiment of the present application;

[0025] Figure 2 for Figure 1 A schematic diagram of the sub-steps of the blockchain-based transaction payment method;

[0026] Figure 3 A schematic diagram of a scenario for implementing the blockchain-based transaction payment method provided in this embodiment;

[0027] Figure 4 A schematic block diagram of a transaction payment device based on blockchain provided in an embodiment of the present application;

[0028] Figure 5 for Figure 4 A schematic block diagram of submodules of a transaction payment device based on blockchain;

[0029] Figure 6 A schematic block diagram of the structure of a computer device provided in an embodiment of the present application.

[0030] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0032] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor do they have to be executed in the order described. For example, some operations / steps can also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions. In addition, although the functional modules are divided in the device schematic, in some cases, the module division can be different from that in the device schematic.

[0033] The embodiment of the present application provides a transaction payment method, device, equipment and storage medium based on blockchain. Among them, the transaction payment method based on blockchain can be applied to a terminal device or a server. The terminal device can be an electronic device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant and a wearable device; the server can be a single server or a server cluster composed of multiple servers. The following is an explanation of the application of the transaction payment method based on blockchain to a server as an example.

[0034] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0035] Please refer to Figure 1 , Figure 1 A schematic diagram of the steps of a blockchain-based transaction payment method provided in an embodiment of the present application.

[0036] like Figure 1 As shown, the blockchain-based transaction payment method includes steps S101 to S105.

[0037] Step S101: Obtain a transaction request sent by a client, and verify the transaction request.

[0038] The server is connected to the blockchain network as a blockchain node, for example, the server is a distribution management node in the blockchain network. The blockchain network also includes multiple business nodes, and the distribution management node is used to distribute and manage the transaction requests sent by the client to distribute the transaction requests to the target business nodes in the blockchain network. The target business nodes are used to respond to the transaction requests distributed by the distribution management node to complete the complete income and expenditure process of the transaction request and reach a transaction.

[0039] It should be noted that a transaction request may include, but is not limited to, a user's request information for the intention of funds flow such as recharge, sale, transfer, etc. Exemplarily, a transaction request may be a user's request information for recharging a certain amount of digital assets into a digital wallet; or, a transaction request may be a user's request information for applying for a transfer to an overseas account. The transaction request of the embodiment of the present application is not limited to a request for the transaction circulation of legal currency, but also includes a request for the transaction circulation between non-real digital assets, such as Tether USDT, TUSD and other virtual currencies. Through the embodiment of the present application, digital assets can be circulated in global exchanges, and at the same time, the asset traceability is good, the payment risk is low and the stability is good.

[0040] In one embodiment, the user generates a capital flow intention and triggers the client to generate a transaction request. The client is, for example, a mobile phone or a PC, and the trigger operation is, for example, a click operation, a slide operation, a voice control operation, a verification operation, etc., which are not specifically limited in this embodiment. The transaction request generated by the client can be transmitted to the distribution management node through a pre-set application programming interface (API), and the distribution management node can conveniently interact with the client through the application programming interface (API) for data.

[0041] In one embodiment, the transaction request generated by the client is an encrypted transaction request. The transaction request carries a key and a merchant number, which may include a client identifier or a user identifier and is one of the credentials for verifying the transaction request. The client encrypts the transaction request in a preset format, for example, splicing the transaction request in the form of key+vue, and encrypting the transaction request using an asymmetric algorithm such as the MD5 encryption algorithm and a key. It should be noted that the key is an independently set unique identification code, and the encryption process by the MD5 encryption algorithm is irreversible, ensuring that the encrypted transaction request is difficult to crack, thereby improving the security of transaction payment.

[0042] It is understandable that after the distribution management node receives the encrypted transaction request, it is necessary to decrypt and verify the encrypted transaction request, for example, by decrypting it through a preset public key corresponding to the client to obtain the plain text of the transaction request. Among them, the transaction request can also include multiple contents, such as the name of the transaction object to be traded, the category of the transaction object, the quantity of the transaction object, etc. In the subsequent data interaction process of the transaction request and its related information, such as the data interaction process between the distribution management node and the business node, the encrypted transaction request needs to be decrypted and verified, which will not be repeated here.

[0043] In one embodiment, the distribution management node verifies the transaction request, including: sending the transaction request to multiple business nodes in the blockchain network, so that the multiple business nodes can verify the key and merchant number in the transaction request. Specifically, each business node verifies the key and merchant number in the transaction request, determines whether the key and merchant number are correct, and obtains verification information; the distribution management node determines the verification result of the transaction request based on the verification information sent by the multiple business nodes. For example, when the verification information sent by multiple business nodes is that the number of verifications passed is greater than the preset number or the ratio is greater than the preset ratio, it is determined that the verification result of the transaction request is passed, that is, the transaction request passes the verification. By verifying the transaction request through multiple business nodes in the blockchain network, there is no need for the distribution management node to verify the transaction request, which improves the security and fairness of the verification. When it is inconvenient for the distribution management node to verify the transaction request, it can be verified through multiple business nodes near the distribution management node, which is highly feasible.

[0044] Step S102: When the transaction request passes the verification, the transaction request is distributed to the target business node in the blockchain network according to a preset distribution rule.

[0045] After confirming that the transaction request has passed the verification, the distribution management node records the transaction request and distributes the transaction request to the target business node in the blockchain network according to the preset distribution rules, so that the target business node can generate relevant collection information based on the transaction request, which can reduce the cost of cross-border transactions and increase the speed of capital flow. Distributing transaction requests according to the preset distribution rules makes the response to transaction requests faster and more efficient.

[0046] In one embodiment, when a transaction request passes verification, Figure 2 As shown, step S102 includes: sub-step S1021 to sub-step S1022.

[0047] Sub-step S1021: Obtain congestion information, reputation information and / or response speed of multiple business nodes in the blockchain network.

[0048] Among them, the blockchain network also includes multiple business nodes, which are used to undertake the business corresponding to the transaction request, such as undertaking the recharge business, transfer business, etc. Congestion information is used to characterize the number of accesses to the transaction request, reputation information is used to characterize the compliance record of the business node in responding to the transaction request, and response speed is used to characterize the time it takes for the business node to respond to the transaction request.

[0049] It should be noted that the number of transaction requests that each business node can process within a period of time is limited. When a business node has a larger number of pending transaction requests and a larger number of queued transaction requests, the more congested the business node is and the greater the congestion information of the business node is. When processing a transaction request, the business node may have a dispute with the user who issued the transaction request or be complained by the user. When a business node has a possible breach of contract event such as a dispute or complaint, it will affect the reputation information of the business node. The higher the reputation information of the business node, the better the compliance record of the business node in responding to the transaction request. The response speed of the business node is the time required for the business node to complete the response (confirmation of payment) of the transaction request from the receipt of the transaction request, that is, the time it takes for the business node to respond to the transaction request. The faster the response speed of the business node, the shorter the time it takes for the business node to respond to the transaction request and the better the effect. After completing a complete transaction, each business node stores related information such as congestion information, reputation information and / or response speed to facilitate the search of the distribution management node and the intelligent distribution of transaction requests.

[0050] Sub-step S1022: selecting a target service node from the multiple service nodes according to the congestion information, reputation information and / or response speed of the multiple service nodes, and distributing the transaction request to the target service node.

[0051] The distribution management node can distribute transaction requests based on the congestion information of the business nodes. The business nodes with smaller congestion information process transaction requests faster, the business nodes with higher credibility information process transaction requests better, and the business nodes with faster response speed take less time to process transaction requests, which is conducive to the rapid completion of payment.

[0052] In one embodiment, the business node corresponding to the smallest congestion information, the largest reputation information and / or the smallest response speed among multiple business nodes is determined as the target business node, which is conducive to ensuring the security of payment and quickly completing the payment.

[0053] In another embodiment, the priorities of congestion information, reputation information, and response speed are determined; the congestion information, reputation information, or response speed with a higher priority is selected as an influencing factor; and a target business node is selected from multiple business nodes according to the influencing factor. For example, if the priority corresponding to the response speed is the highest, the business node corresponding to the smallest response speed is selected as the target business node to improve the timeliness of payment.

[0054] In one embodiment, a first preset coefficient corresponding to the congestion information is determined, and a first score of each business node is calculated according to the first preset coefficient and the congestion information of multiple business nodes; a second preset coefficient corresponding to the reputation information is determined, and a second score of each business node is calculated according to the second preset coefficient and the reputation information of multiple business nodes; a third preset coefficient corresponding to the response speed is determined, and a third score of each business node is calculated according to the third preset coefficient and the response speed of multiple business nodes; a target business node is selected from multiple business nodes according to the first score, the second score and the third score of each business node. Among them, the first preset coefficient, the second preset coefficient and the third preset coefficient can be set according to actual conditions and can be positive or negative. The first score, the second score and the third score of each business node are added, and the business node with the lowest or highest total score is selected as the target business node, so that the distribution management node distributes the transaction request to a stable and efficient business node, which is conducive to the user and the business payment chain to conduct payment transactions.

[0055] Exemplarily, the first preset coefficient is 0.5, the second preset coefficient is -0.3, and the third preset coefficient is 0.4. The business node with smaller congestion information processes transaction requests faster, and the business nodes with smaller first scores prevail. The business node with higher credibility information processes transaction requests better. Since the second preset coefficient is a negative number, the business nodes with smaller second scores prevail. The business nodes with faster response speeds take shorter time to process transaction requests, and the business nodes with smaller third scores prevail. The total score of each business node is the sum of the first score, the second score and the third score. Therefore, selecting the business node with the lowest total score as the target business node will achieve better payment transaction results.

[0056] In one embodiment, when the performance parameter of the target service node is less than or equal to the preset performance parameter, and the current duration of the target service node responding to the transaction request is greater than or equal to the preset duration, a new target service node is selected from multiple service nodes, and the transaction request is distributed to the new target service node. Among them, the performance parameter includes at least one of the parameters such as the CPU operating speed, memory size, disk write performance, and disk read performance. The preset performance parameter and the preset duration can be flexibly set by the user, and this embodiment does not specifically limit them.

[0057] It should be noted that the set allocation rules include that the distribution management node can switch to any business node, which is conducive to the distribution and control of pending transactions. For example, if the distribution management node distributes the transaction request to business system A, and finds that business system A does not meet the preset performance parameters or the server is down, the business processing can be temporarily interrupted. At this time, it can quickly switch to business system B, so that the overall business of the distribution management node is not affected and can be used normally.

[0058] In one embodiment, after the distribution management node distributes the transaction request to the target business node in the blockchain network, the target business node generates relevant payment information based on the transaction request. The payment information includes payment methods supported by the target business node, payment amount, payee, payment account, payment address link, etc. The payment methods include UnionPay, WeChat, Alipay and other payment methods. The target business node also needs to return the generated payment information to the distribution management node.

[0059] Step S103: Obtain the payment information returned by the target business node based on the transaction request, and generate a payment page according to the payment information.

[0060] The distribution management node obtains the payment information returned by the target business node based on the transaction request, records the payment information, and then generates a payment page using the payment method, payment amount, payee, payment account number, payment address link and other information in the payment information. The data interaction between the distribution management node and the target business node is based on the agreed application program interface API.

[0061] Step S104: sending the payment page to the client so that the client can display the payment page, and generating payment information in response to the user's payment operation on the payment page.

[0062] The distribution management node returns the payment page to the client through the pre-set application program interface API. The client displays the payment page on the display interface and generates payment information in response to the user's payment operation on the payment page. The payment information includes payment method, payment amount, payer, payment time, payment account number, etc. The payment method is the same as the payment method supported by the target business node, including UnionPay, WeChat, Alipay and other payment methods. The user's payment operation on the payment page includes scanning code, entering password, entering fingerprint code, entering facial features and other payment operations.

[0063] Step S105: verify the payment information sent by the client. When the payment information passes the verification, generate the income and expenditure information of the transaction request, and broadcast the income and expenditure information in the blockchain network.

[0064] Among them, income and expenditure information includes transaction requests, collection information and payment information. The transaction pool of the target business node records income and expenditure information. The target business node can quickly know the complete income and expenditure process of the payment transaction through the income and expenditure information recorded in the transaction pool, and make effective records when making cross-border payments or recharge conversions between legal currency and digital assets to ensure the rationality and security of asset circulation.

[0065] In one embodiment, the payment information sent by the client is verified, including: the distribution management node sends the payment information sent by the client to multiple business nodes in the blockchain network, so that the multiple business nodes can verify the payment information. When multiple business nodes in the blockchain network receive the payment information released by the distribution management node, they can verify the payment information. Exemplarily, each business node enters the bank transfer system through the network interface to verify whether the payment account, the receiving account and the payment amount contained in the payment information are correct, whether there is enough payment amount in the payment account, whether the target business node confirms the receipt, etc., and sends the verification result of the payment information to the distribution management node. When confirming that the payment information has passed the verification, the distribution management node generates the income and expenditure information of the transaction request, and publishes the income and expenditure information to the blockchain network, which can effectively avoid the existence of forged false payment information and false payment information, and improve the security of transaction payment.

[0066] Please refer to Figure 3 , Figure 3 A schematic diagram of a scenario for implementing the blockchain-based transaction payment method provided in this embodiment.

[0067] like Figure 3 As shown, the user sends a transaction request through the client 10, for example, the transaction request is transmitted to the distribution management node 20 through a preset application program interface API, the distribution management node 20 verifies the transaction request sent by the client 10, and when the transaction request passes the verification, distributes the transaction request to the target business node 30 in the blockchain network according to the preset distribution rules, and then the distribution management node 20 obtains the collection information returned by the target business node 30 based on the transaction request, and generates a payment page according to the collection information, and sends the payment page to the client 10, the client 10 displays the payment page, and generates payment information in response to the user's payment operation on the payment page, and then the client 10 sends the payment information to the distribution management node 20, the distribution management node 20 verifies the payment information sent by the client 10, and when the payment information passes the verification, generates the income and expenditure information of the transaction request, and then broadcasts the income and expenditure information in the blockchain network.

[0068] The blockchain-based transaction payment method provided in the above embodiment verifies the transaction request sent by the client, and when the transaction request passes the verification, distributes the transaction request to the target business node in the blockchain network according to the preset distribution rules, then obtains the collection information returned by the target business node based on the transaction request, generates a payment page according to the collection information, sends the payment page to the client for the client to display the payment page, and generates payment information in response to the user's payment operation on the payment page, then verifies the payment information sent by the client, and when the payment information passes the verification, generates income and expenditure information of the transaction request, and then broadcasts the income and expenditure information in the blockchain network, so that each node in the blockchain network records the income and expenditure information of the transaction request, can quickly complete the payment of funds through the relevant technologies of the blockchain, avoids many restrictions of the transit bank, and at the same time, the income and expenditure information is stored on the blockchain, which is decentralized and can track whether the funds are in place in real time, with extremely high security and data that cannot be tampered with.

[0069] Please refer to Figure 4 , Figure 4 A schematic block diagram of a blockchain-based transaction payment device provided in an embodiment of the present application.

[0070] like Figure 4 As shown, the transaction payment device 200 based on blockchain is applied to a distribution management node in a blockchain network. The transaction payment device 200 based on blockchain includes:

[0071] The acquisition module 201 is used to acquire the transaction request sent by the client;

[0072] A verification module 202, used to verify the transaction request;

[0073] A distribution module 203 is used to distribute the transaction request to a target business node in the blockchain network according to a preset distribution rule when the transaction request passes the verification;

[0074] The acquisition module 201 is further used to acquire the payment information returned by the target service node based on the transaction request;

[0075] A generating module 204, used to generate a payment page according to the payment information;

[0076] The sending module 205 is used to send the payment page to the client so that the client can display the payment page, and generate payment information in response to the user's payment operation on the payment page;

[0077] The verification module 202 is further used to verify the payment information sent by the client;

[0078] The generating module 204 is further configured to generate income and expenditure information of the transaction request when the payment information passes the verification;

[0079] The broadcast module 206 is used to broadcast and publish the income and expenditure information in the blockchain network.

[0080] In one embodiment, Figure 5 As shown, the distribution module 203 includes:

[0081] An acquisition submodule 2031 is used to acquire congestion information, reputation information and / or response speed of multiple service nodes in the blockchain network;

[0082] A distribution submodule 2032, configured to select a target service node from the multiple service nodes according to the congestion information, reputation information and / or response speed of the multiple service nodes, and distribute the transaction request to the target service node;

[0083] The congestion information is used to characterize the number of accesses to the transaction request, the reputation information is used to characterize the compliance record of the service node in responding to the transaction request, and the response speed is used to characterize the time length for the service node to respond to the transaction request.

[0084] In one embodiment, the distribution submodule 2032 is further used to:

[0085] A service node corresponding to the smallest congestion information, the largest reputation information and / or the smallest response speed among the multiple service nodes is determined as a target service node.

[0086] In one embodiment, the distribution submodule 2032 is further used to:

[0087] Determine a first preset coefficient corresponding to the congestion information, and calculate a first score for each of the service nodes according to the first preset coefficient and congestion information of the plurality of service nodes;

[0088] Determine a second preset coefficient corresponding to the reputation information, and calculate a second score for each of the service nodes according to the second preset coefficient and the reputation information of the plurality of service nodes;

[0089] Determine a third preset coefficient corresponding to the response speed, and calculate a third score for each of the service nodes according to the third preset coefficient and the response speeds of the plurality of service nodes;

[0090] A target service node is selected from the multiple service nodes according to the first score, the second score, and the third score of each service node.

[0091] In one embodiment, the distribution module 203 is further configured to:

[0092] When the performance parameter of the target business node is less than or equal to the preset performance parameter, and the current duration of the target business node responding to the transaction request is greater than or equal to the preset duration, a new target business node is selected from the multiple business nodes, and the transaction request is distributed to the new target business node.

[0093] In one embodiment, the income and expenditure information includes the transaction request, collection information and payment information, and the transaction pool of the target service node records the income and expenditure information.

[0094] In one embodiment, the verification module 202 is further configured to:

[0095] The transaction request is sent to multiple business nodes in the blockchain network so that the multiple business nodes can verify the key and merchant number in the transaction request.

[0096] It should be noted that technical personnel in the relevant field can clearly understand that for the convenience and conciseness of description, the specific working process of the above-described device and each module and unit can refer to the corresponding process in the aforementioned blockchain-based transaction payment method embodiment, and will not be repeated here.

[0097] The apparatus provided in the above embodiment may be implemented in the form of a computer program. The computer program may be Figure 6 Runs on the computer device shown.

[0098] See also Figure 6 , Figure 6 A schematic block diagram of the structure of a computer device provided in an embodiment of the present application. The computer device may be a server or a terminal device.

[0099] like Figure 6 As shown, the computer device includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.

[0100] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any transaction payment method based on blockchain.

[0101] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.

[0102] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any transaction payment method based on blockchain.

[0103] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0104] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0105] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps:

[0106] Obtaining a transaction request sent by a client and verifying the transaction request;

[0107] When the transaction request passes the verification, the transaction request is distributed to the target business node in the blockchain network according to the preset distribution rules;

[0108] Acquire the payment information returned by the target business node based on the transaction request, and generate a payment page according to the payment information;

[0109] Sending the payment page to the client so that the client displays the payment page, and generating payment information in response to a user's payment operation on the payment page;

[0110] The payment information sent by the client is verified, and when the payment information passes the verification, the income and expenditure information of the transaction request is generated, and the income and expenditure information is broadcasted in the blockchain network.

[0111] In one embodiment, when the processor implements distributing the transaction request to the target service node in the blockchain network according to the preset distribution rule, it is used to implement:

[0112] Obtaining congestion information, reputation information and / or response speed of multiple service nodes in the blockchain network;

[0113] Selecting a target service node from the multiple service nodes according to congestion information, reputation information and / or response speed of the multiple service nodes, and distributing the transaction request to the target service node;

[0114] The congestion information is used to characterize the number of accesses to the transaction request, the reputation information is used to characterize the compliance record of the service node in responding to the transaction request, and the response speed is used to characterize the time length for the service node to respond to the transaction request.

[0115] In one embodiment, when the processor implements the selecting of the target service node from the multiple service nodes according to the congestion information, reputation information and / or response speed of the multiple service nodes, it is configured to implement:

[0116] A service node corresponding to the smallest congestion information, the largest reputation information and / or the smallest response speed among the multiple service nodes is determined as a target service node.

[0117] In one embodiment, when the processor implements the selecting of the target service node from the multiple service nodes according to the congestion information, reputation information and / or response speed of the multiple service nodes, it is configured to implement:

[0118] Determine a first preset coefficient corresponding to the congestion information, and calculate a first score for each of the service nodes according to the first preset coefficient and congestion information of the plurality of service nodes;

[0119] Determine a second preset coefficient corresponding to the reputation information, and calculate a second score for each of the service nodes according to the second preset coefficient and the reputation information of the plurality of service nodes;

[0120] Determine a third preset coefficient corresponding to the response speed, and calculate a third score for each of the service nodes according to the third preset coefficient and the response speeds of the plurality of service nodes;

[0121] A target service node is selected from the multiple service nodes according to the first score, the second score, and the third score of each service node.

[0122] In one embodiment, the processor is further configured to implement:

[0123] When the performance parameter of the target business node is less than or equal to the preset performance parameter, and the current duration of the target business node responding to the transaction request is greater than or equal to the preset duration, a new target business node is selected from the multiple business nodes, and the transaction request is distributed to the new target business node.

[0124] In one embodiment, the income and expenditure information includes the transaction request, collection information and payment information, and the transaction pool of the target service node records the income and expenditure information.

[0125] In one embodiment, the processor, when implementing the verification of the transaction request, is used to implement:

[0126] The transaction request is sent to multiple business nodes in the blockchain network so that the multiple business nodes can verify the key and merchant number in the transaction request.

[0127] It should be noted that technical personnel in the relevant field can clearly understand that, for the convenience and conciseness of description, the specific working process of the computer device described above can refer to the corresponding process in the aforementioned blockchain-based transaction payment method embodiment, and will not be repeated here.

[0128] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions. The method implemented when the program instructions are executed can refer to the various embodiments of the blockchain-based transaction payment method of the present application.

[0129] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the computer device.

[0130] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0131] It should also be understood that the term "and / or" used in the specification of this application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.

[0132] The serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A transaction payment method based on blockchain, characterized in that: Applied to a distribution management node in a blockchain network, the method comprises: Obtaining a transaction request sent by a client and verifying the transaction request; When the transaction request passes the verification, the congestion information, reputation information and response speed of multiple business nodes in the blockchain network are obtained, and a target business node is selected from the multiple business nodes according to the congestion information, reputation information and response speed of the multiple business nodes, and the transaction request is distributed to the target business node; Acquire the payment information returned by the target business node based on the transaction request, and generate a payment page according to the payment information; Sending the payment page to the client so that the client displays the payment page, and generating payment information in response to a user's payment operation on the payment page; Verifying the payment information sent by the client, generating income and expenditure information of the transaction request when the payment information passes the verification, and broadcasting the income and expenditure information in the blockchain network; The step of selecting a target service node from the multiple service nodes according to the congestion information, reputation information, and response speed of the multiple service nodes includes: Determine a first preset coefficient corresponding to the congestion information, and calculate a first score for each of the service nodes according to the first preset coefficient and congestion information of the plurality of service nodes; Determine a second preset coefficient corresponding to the reputation information, and calculate a second score for each of the service nodes according to the second preset coefficient and the reputation information of the plurality of service nodes; Determine a third preset coefficient corresponding to the response speed, and calculate a third score for each of the service nodes according to the third preset coefficient and the response speeds of the plurality of service nodes; A target service node is selected from the multiple service nodes according to the first score, the second score, and the third score of each service node.

2. The transaction payment method based on blockchain as claimed in claim 1, characterized in that: The selecting a target service node from the multiple service nodes according to the congestion information, reputation information, and response speed of the multiple service nodes includes: A service node corresponding to the smallest congestion information, the largest reputation information, and the smallest response speed among the multiple service nodes is determined as a target service node.

3. The transaction payment method based on blockchain as claimed in claim 1, characterized in that: The method further comprises: When the performance parameter of the target business node is less than or equal to the preset performance parameter, and the current duration of the target business node responding to the transaction request is greater than or equal to the preset duration, a new target business node is selected from the multiple business nodes, and the transaction request is distributed to the new target business node.

4. The transaction payment method based on blockchain as claimed in claim 1, characterized in that: The income and expenditure information includes the transaction request, collection information and payment information, and the transaction pool of the target business node records the income and expenditure information.

5. The transaction payment method based on blockchain as claimed in any one of claims 1 to 3, characterized in that: The verifying the transaction request includes: The transaction request is sent to multiple business nodes in the blockchain network so that the multiple business nodes can verify the key and merchant number in the transaction request.

6. A transaction payment device based on blockchain, characterized in that: include: The acquisition module is used to obtain the transaction request sent by the client; A verification module, used for verifying the transaction request; A distribution module, configured to obtain congestion information, reputation information, and response speed of multiple business nodes in the blockchain network when the transaction request passes verification, select a target business node from the multiple business nodes according to the congestion information, reputation information, and response speed of the multiple business nodes, and distribute the transaction request to the target business node; The acquisition module is further used to acquire the payment information returned by the target service node based on the transaction request; A generation module, used to generate a payment page according to the payment information; A sending module, configured to send the payment page to the client so that the client can display the payment page, and generate payment information in response to a user's payment operation on the payment page; The verification module is further used to verify the payment information sent by the client; The generating module is further configured to generate income and expenditure information of the transaction request when the payment information passes the verification; A broadcast module, used for broadcasting and publishing the income and expenditure information in the blockchain network; Among them, the distribution module is also used to determine a first preset coefficient corresponding to the congestion information, and calculate a first score for each of the business nodes based on the first preset coefficient and the congestion information of multiple business nodes; determine a second preset coefficient corresponding to the reputation information, and calculate a second score for each of the business nodes based on the second preset coefficient and the reputation information of multiple business nodes; determine a third preset coefficient corresponding to the response speed, and calculate a third score for each of the business nodes based on the third preset coefficient and the response speeds of multiple business nodes; and select a target business node from the multiple business nodes based on the first score, the second score and the third score of each of the business nodes.

7. A computer device, characterized in that: The computer device includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the blockchain-based transaction payment method as described in any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the blockchain-based transaction payment method as described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Computer webpage payment method based on blockchain technology

    CN107341729A

  • Mobile terminal browser payment method based on block chain technology

    CN107423981A

  • Payment method based on blockchain technology

    CN107480978A

  • Active scanning payment method on user mobile terminal based on blockchain technology

    CN107506997A

  • Regional consensus method, system and device

    CN109547530A