CN113643014B - Block chain-based transaction management method, apparatus, device, medium, and program - Google Patents

Block chain-based transaction management method, apparatus, device, medium, and program Download PDF

Info

Publication number
CN113643014B
CN113643014B CN202110924728.3A CN202110924728A CN113643014B CN 113643014 B CN113643014 B CN 113643014B CN 202110924728 A CN202110924728 A CN 202110924728A CN 113643014 B CN113643014 B CN 113643014B
Authority
CN
China
Prior art keywords
transaction
transactions
commercial bank
instruction
payment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110924728.3A
Other languages
Chinese (zh)
Other versions
CN113643014A (en
Inventor
马丽忠
王舒榕
杨毅
肖凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology Co Ltd
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC, ICBC Technology Co Ltd filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110924728.3A priority Critical patent/CN113643014B/en
Publication of CN113643014A publication Critical patent/CN113643014A/en
Application granted granted Critical
Publication of CN113643014B publication Critical patent/CN113643014B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The disclosure provides a transaction management method based on a blockchain, which can be applied to the technical field of blockchains. The transaction management method comprises the following steps: acquiring a plurality of transactions, each transaction including a first commercial bank for performing a first transaction operation; extracting a first commercial bank of each transaction; for each first commercial bank, counting the transaction of executing the first transaction operation through the first commercial bank to obtain a first transaction set corresponding to the first commercial bank; for each first transaction set, sending a first transaction instruction to a corresponding first commercial bank; the first transaction instruction is configured to enable the first commercial bank to execute a first transaction operation and feed back an operation result of the first transaction operation; and updating the state of the transaction corresponding to the operation result stored in the account book according to the operation result. The present disclosure also provides a blockchain-based transaction management device, apparatus, medium, and program product.

Description

Block chain-based transaction management method, apparatus, device, medium, and program
Technical Field
The present disclosure relates to the field of blockchains, and in particular, to a blockchain-based transaction management method, apparatus, electronic device, readable storage medium, and program product.
Background
At present, the funds circulation among enterprises is realized through a payment clearing system among banks, and information flows for recording the funds circulation are scattered in the own hands of each enterprise, so that the consistency of the actual conditions (funds flows) of the funds circulation and the information flows is difficult to be ensured, and the risk of tampering the information flows exists in the funds circulation process.
At present, how to ensure the consistency of the fund flow and the information flow is a technical problem to be solved urgently.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a blockchain-based transaction management method, apparatus, electronic device, readable storage medium, and program product capable of ensuring the consistency of a funds stream and an information stream.
According to a first aspect of the present disclosure, there is provided a blockchain-based transaction management method, comprising:
Acquiring a plurality of transactions, each transaction including a first commercial bank for performing a first transaction operation;
storing the plurality of transactions in an account book of a blockchain, and extracting the first commercial bank of each transaction;
For each extracted first commercial bank, counting the transactions which execute the first transaction operation through the first commercial bank from the plurality of transactions, and extracting the transactions in a to-be-executed state from the transactions to obtain a first transaction set corresponding to the first commercial bank;
for each first transaction set, sending a first transaction instruction to the first commercial bank corresponding to the first transaction set; the first transaction instruction is configured to enable the first commercial bank to execute the first transaction operation according to the transaction in the first transaction set and the first transaction instruction, and feed back an operation result of the first transaction operation;
and updating the state of the transaction corresponding to the operation result stored in the account book according to the operation result.
According to an embodiment of the present disclosure, the transaction management method further includes a step of generating the plurality of transactions, the step of generating the plurality of transactions including:
acquiring a funds transfer demand, the funds transfer demand including a plurality of accounts involved in a funds transfer process;
determining the fund circulation sequence among the accounts according to preset configuration information;
And generating a plurality of transactions according to the fund circulation sequence and the accounts, wherein each transaction comprises a plurality of accounts, and the accounts in each transaction comprise a payment account and a collection account.
According to an embodiment of the disclosure, for N transactions generated according to the same requirement of the funds circulation among the plurality of transactions, the nth transaction further includes a preamble transaction;
The step of counting, for each of the first commercial banks extracted, the transactions for which the first transaction operation is performed by the first commercial bank from the plurality of transactions, and extracting the transactions in a state to be performed therefrom to obtain a first transaction set corresponding to the first commercial bank includes:
For the nth transaction, when the preamble transaction of the transaction is in a transaction completion state, determining that the transaction is in a to-be-executed state, wherein N is more than 1 and less than or equal to N, and both N and N are positive integers.
According to an embodiment of the disclosure, the first transaction instruction comprises a payment instruction, the first transaction operation comprises a payment operation, each transaction further comprises a transaction amount;
The step of sending, for each of the first transaction sets, a first transaction instruction to the first commercial bank corresponding to the first transaction set includes:
Transmitting the payment instruction to the first commercial bank, the payment instruction configured to:
Causing the first merchant bank to acquire the payment account, the collection account, and the transaction amount for each transaction in the first set of transactions, and to perform the payment operation in accordance with the payment account, the collection account, and the transaction amount for each transaction in the first set of transactions, and to take the result of the payment operation as the result of the operation of the first transaction operation.
According to an embodiment of the disclosure, the step of updating the state of the transaction stored in the ledger and corresponding to the operation result according to the operation result includes:
when the payment operation is successful, updating the state of the transaction corresponding to the payment operation to a payment completion state;
And generating a display signal, wherein the display signal is configured to enable a display device to display the current state of each transaction in the plurality of transactions according to the display signal.
According to an embodiment of the present disclosure, each transaction of the plurality of transactions further includes a second commercial bank for performing a second transaction operation, and the transaction management method further includes:
Extracting the second commercial bank for each transaction;
Acquiring the transaction in a payment completion state in the plurality of transactions to obtain a second transaction set;
For each extracted second commercial bank, counting the transactions which execute the second transaction operation through the second commercial bank from the second transaction set to obtain a third transaction set corresponding to the second commercial bank;
For each third transaction set, sending a second transaction instruction to the second commercial bank corresponding to the third transaction set; the second transaction instructions are configured to cause the second merchant bank to perform the second transaction operation in accordance with each transaction in the third set of transactions and the second transaction instructions.
According to an embodiment of the present disclosure, each of the plurality of transactions includes a collection account and a transaction amount, the second transaction instruction includes a collection confirmation instruction, and the second transaction operation includes a collection confirmation operation;
The step of sending, for each of the third transaction sets, a second transaction instruction to the second commercial bank corresponding to the third transaction set includes:
sending the receipt confirmation instruction to the second commercial bank, the receipt confirmation instruction configured to: causing the second commercial bank to perform the collection confirmation operation to obtain and feed back the collection information of the collection account for each transaction in the third set of transactions;
Determining a transaction corresponding to the collection information according to the collection information, and judging whether the collection information is matched with the transaction amount in the transaction;
And when the collection information is matched with the transaction amount in the transaction, updating the state of the transaction into a transaction completion state.
A second aspect of the present disclosure provides a blockchain-based transaction management device, comprising:
an acquisition module for acquiring a plurality of transactions, each transaction including a first commercial bank for performing a first transaction operation;
the extraction module is used for storing the transactions into an account book of a blockchain and extracting a first commercial bank of each transaction;
The transaction set establishing module is used for counting the transactions which execute the first transaction operation through the first commercial bank from the plurality of transactions, and extracting the transactions in a to-be-executed state from the transactions to obtain a first transaction set corresponding to the first commercial bank;
The sending module is used for sending a first transaction instruction to a first commercial bank corresponding to each first transaction set; the first transaction instruction is configured to enable the first commercial bank to execute the first transaction operation according to the transaction in the first transaction set and the first transaction instruction, and feed back an operation result of the first transaction operation;
and the updating module is used for updating the state of the transaction corresponding to the operation result stored in the account book according to the operation result.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the transaction management method described above.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the transaction management method described above.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the transaction management method described above.
One or more of the above embodiments have the following advantages or benefits:
the status of each transaction in the ledger is recorded as well as changes in status, including, for example, in payment completion, in collection completion, etc., so that the ledger stores a complete stream of funds in the transfer process. And the state of each transaction in the account book is updated according to the execution result of the first commercial bank, and meanwhile, the data in the account book can not be tampered by the characteristics of the blockchain, so that the information flow recorded in the account book is consistent with the actual condition of funds in the circulation process, and the security of the funds circulation is improved.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be more apparent from the following description of embodiments of the disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a blockchain-based transaction management method, apparatus, electronic device, readable storage medium, and program product according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow diagram of a blockchain-based transaction management method in accordance with an embodiment of the present disclosure;
FIG. 3 schematically illustrates a schematic diagram of an interaction process of a blockchain-based transaction management method in accordance with embodiments of the present disclosure;
FIG. 4 schematically illustrates a flow chart of generating multiple transactions according to an embodiment of the present disclosure;
FIG. 5a schematically illustrates a flow chart of extracting a transaction in a pending execution state according to an embodiment of the present disclosure;
FIG. 5b schematically illustrates a flow chart of sending a first transaction instruction according to an embodiment of the present disclosure;
FIG. 5c schematically illustrates a flow chart of a state of an update transaction according to an embodiment of the present disclosure;
FIG. 6 schematically illustrates a flow chart of sending a second transaction instruction according to an embodiment of the present disclosure;
FIG. 7 schematically illustrates a flow chart of sending a second transaction instruction according to an embodiment of the present disclosure;
FIG. 8 schematically illustrates a block diagram of a blockchain-based transaction management device in accordance with an embodiment of the present disclosure;
fig. 9 schematically illustrates a block diagram of an electronic device adapted to implement a blockchain-based transaction management method in accordance with an embodiment of the present disclosure.
Detailed Description
For the convenience of understanding the scheme of the embodiment of the present application, a brief description of related concepts is given below:
First, blockchain techniques.
Blockchain technology, also known as distributed ledger technology, is an emerging technology in which several computing devices participate in "accounting" (i.e., recording transaction data) together, maintaining a complete distributed database. Blockchain technology has been widely used in many fields because of its decentralized (i.e., no central node), public transparency, the ability of each computing device to participate in database records, and the ability to quickly synchronize data between computing devices.
Currently, blockchains can be divided into: public chains and alliance chains. A public chain refers to a blockchain that is readable by any device worldwide, or that any device can participate in the consensus verification process of a transaction. The federation chain, also called a community blockchain (consortium block chains), means that the federation is composed of participating members of a given blockchain, and business transaction information between the members is recorded in the blockchain, defining the size and rights of use. The deployment of blockchains of embodiments of the present disclosure may employ federated chains.
Second, blockchain nodes.
The blockchain in embodiments of the present disclosure may also be referred to as a blockchain system. The blockchain system in embodiments of the present disclosure includes a plurality of blockchain nodes (hereinafter may be simply referred to as nodes). The node is a device with communication function and storage function, such as a device with block chain data. Each node may either receive information or generate information. Communication and data synchronization is maintained between different nodes by maintaining a common blockchain. Specifically, in the blockchain system, any node can generate new blockchain data according to data related to transactions sent by a client, and issue the new blockchain data to other nodes in a broadcast mode, and the other nodes can verify the blockchain data. When all nodes in the blockchain system reach consensus, new blockchain data may be added to the blockchain.
Alternatively, a node in an embodiment of the present disclosure may be understood as a processing unit. In one implementation, a node may be a physical device, such as a server or computer. In another implementation, the node may be a virtual computer; virtual computers are a collective term for the operating environment that software in all types of virtualized devices virtualizes, and the concept includes virtual machines and containers. In other implementations, a node in an embodiment of the present disclosure may be a process or a thread; the thread is the minimum unit of the operation system capable of carrying out operation scheduling, is contained in the process and is the actual operation unit in the process; a process is a program in a computer that is a basic unit of resource allocation and scheduling by a system with respect to one run activity on a certain data set.
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a convention should be interpreted in accordance with the meaning of one of skill in the art having generally understood the convention (e.g., "a system having at least one of A, B and C" would include, but not be limited to, systems having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related personal information of the user all conform to the regulations of related laws and regulations, necessary security measures are taken, and the public order harmony is not violated.
Embodiments of the present disclosure provide a blockchain-based transaction management method, comprising: a plurality of transactions are acquired, each transaction including a first commercial bank for performing a first transaction operation. The plurality of transactions are stored in a ledger of the blockchain and a first commercial bank of each transaction is extracted. For each extracted first commercial bank, counting the transaction of executing the first transaction operation through the first commercial bank from a plurality of transactions, and extracting the transaction in a to-be-executed state from the transaction to obtain a first transaction set corresponding to the first commercial bank. For each first transaction set, a first transaction instruction is sent to a first commercial bank corresponding to the first transaction set. The first transaction instruction is configured to enable the first commercial bank to execute a first transaction operation according to the transaction in the first transaction set and the first transaction instruction, and feed back an operation result of the first transaction operation. And updating the state of the transaction corresponding to the operation result stored in the account book according to the operation result.
By adopting the transaction management method based on the blockchain, the state of each transaction in the account book and the change of the state are recorded, wherein the states comprise payment completion, collection completion and the like, so that the account book stores complete information flow of funds in the circulation process. And the state of each transaction in the account book is updated according to the execution result of the first commercial bank, and meanwhile, the data in the account book can not be tampered by the characteristics of the blockchain, so that the information flow recorded in the account book is consistent with the actual condition of funds in the circulation process, and the security of the funds circulation is improved.
Fig. 1 schematically illustrates an application scenario diagram of a blockchain-based transaction management method, apparatus, electronic device, readable storage medium, and program product according to an embodiment of the present disclosure.
As shown in fig. 1, an application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the blockchain-based transaction management method provided by the embodiments of the present disclosure may be generally executed by the server 105. Accordingly, the blockchain-based transaction management device provided by embodiments of the present disclosure may be generally disposed in the server 105. The blockchain-based transaction management methods provided by embodiments of the present disclosure may also be performed by a server or cluster of servers other than the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the blockchain-based transaction management device provided by the embodiments of the present disclosure may also be provided in a server or server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The blockchain-based transaction management method of the disclosed embodiments will be described in detail below with reference to the scenario described in fig. 1, with reference to fig. 2.
Fig. 2 schematically illustrates a flow chart of a blockchain-based transaction management method in accordance with an embodiment of the present disclosure. As shown in fig. 2, the transaction management method of this embodiment includes steps S210 to S250.
In step S210, the blockchain obtains a plurality of transactions, each transaction including a first commercial bank for performing a first transaction operation.
In the disclosed embodiments, "transaction" may refer to a transaction activity in the business arts, such as payment, collection, and the like. Multiple enterprises and multiple commercial banks may participate in the blockchain as nodes of the blockchain. After one of the enterprises puts forward a demand for funds transfer, multiple transactions may be generated by the enterprise platform, for example, company a is a head office, company b is a subcontracting company, company c is a material provider, the demand for funds transfer may include the demand put forward by company a for purchasing material, at which time the enterprise platform may generate two transactions, namely, one transaction in which company a pays company b (requires company b to purchase material), and one transaction in which company b pays company c (purchases material). The enterprise platform may upload multiple transactions to the blockchain by invoking a pre-configured smart contract. In addition to uploading multiple transactions to the blockchain, the enterprise platform may also update and query the contents of the ledger by invoking the intelligent contract.
The first transaction operation may be a payment operation, or may be a repayment operation, a transfer operation, or other transaction operation as would occur to one of skill in the art. Optionally, in an embodiment of the present disclosure, the first transaction operation is specifically a payment operation. The first commercial bank is a bank for making a payment, for example, company a makes a payment to company b through bank a, which is the first commercial bank of the embodiment of the present disclosure.
In step S220, the blockchain stores the plurality of transactions in the ledger of the blockchain and extracts the first commercial bank of each transaction.
In step S230, for each of the extracted first commercial banks, the blockchain counts transactions that execute the first transaction operation by the first commercial bank from a plurality of transactions, and extracts the transactions in a state to be executed therefrom, so as to obtain a first transaction set corresponding to the first commercial bank.
In embodiments of the present disclosure, the plurality of transactions may be each performed by a different first commercial bank, e.g., the plurality of transactions includes transaction X, transaction Y, and transaction Z, which perform the payment operation by bank a, and transaction Y performs the payment operation by bank B. The first transaction set counted for bank a then includes transaction X and transaction Z, and the first transaction set counted for bank B then includes transaction Y. After counting the first transaction set corresponding to each bank, in step S240, batch processing may be performed on multiple transactions of the bank, which will be described in detail below, and will not be described in detail here. Each of the plurality of transactions may include various states such as waiting, waiting to be executed, and execution completion, and may be specifically determined according to actual needs, which is not limited herein. Optionally, in the embodiment of the present disclosure, the states of at least two transactions in the multiple transactions may be associated with each other, for example, the multiple transactions include two transactions, the former transaction defaults to be executed before execution is completed, the state of the former transaction may be obtained when the state of the latter transaction is determined, and the latter transaction is determined to be in a waiting state when the former transaction has not been executed; when the execution of the previous transaction is completed, the latter transaction is determined to be in a state to be executed.
Alternatively, in the embodiment of the present disclosure, for each first commercial bank, in addition to extracting the first transaction set, the total number of transactions, the total amount of transactions, and the like may be counted, specifically may be determined according to actual needs, and is not limited herein.
In step S240, for each first transaction set, the blockchain sends a first transaction instruction to a first commercial bank corresponding to the first transaction set. The first transaction instruction is configured to enable the first commercial bank to execute a first transaction operation according to the transaction in the first transaction set and the first transaction instruction, and feed back an operation result of the first transaction operation.
In the embodiment of the disclosure, the first transaction instruction can include address information of the first commercial bank corresponding to the first transaction instruction, so that the blockchain can send the first transaction instruction to the first commercial bank corresponding to the first transaction instruction according to the address information. In an embodiment of the disclosure, the first transaction instruction may correspond to each transaction in the first transaction set one by one, and the first commercial bank may obtain, in response to the first transaction instruction, transaction content of one transaction corresponding to the first transaction instruction from the first transaction set, where the transaction content may include a payment account, a collection account, a transaction amount, and the like. The first commercial bank may perform a first transaction operation, such as a payment operation, based on the transaction content. The first commercial bank returns operation results to the blockchain after performing the first transaction operation, for example, the operation results may include a successful payment or a failed payment.
In step S250, the blockchain updates the state of the transaction corresponding to the operation result stored in the ledger according to the operation result.
In the disclosed embodiment, the status of each transaction in the ledger and the change in status are recorded, including, for example, in payment, in collection, etc., such that the ledger stores a complete flow of information of funds during the transfer. And the state of each transaction in the account book is updated according to the operation result of the first commercial bank, and meanwhile, the data in the account book can not be tampered by the characteristics of the blockchain, so that the information flow recorded in the account book is consistent with the actual condition of funds in the circulation process, and the security of the funds circulation is improved. Moreover, according to the embodiment of the disclosure, the state change of each transaction is recorded through the blockchain, and each enterprise participating in the fund circulation can check the state of each transaction, so that each transaction in the fund circulation process is disclosed and transparent, data sharing is realized, and fund supervision is facilitated.
The blockchain-based transaction management methods provided by embodiments of the present disclosure are further described below in conjunction with fig. 1-7.
Fig. 3 schematically illustrates a schematic diagram of an interaction process of a blockchain-based transaction management method according to an embodiment of the disclosure. As shown in fig. 3, the interactors of the embodiments of the disclosure include an enterprise platform, a blockchain, and business banks, wherein the enterprise platform and the blockchain are used to perform the blockchain-based transaction management method of the embodiments of the disclosure, and the enterprise platform and the blockchain may each be deployed in a server 105.
In the disclosed embodiments, various enterprises may participate in blockchains through enterprise platforms. The enterprise platform can generate a plurality of corresponding transactions according to the fund circulation demands put forward by the enterprise, and send the transactions up to the blockchain by calling the intelligent contract. The enterprise platform may also perform approval management and management of related information on the transactions prior to sending the multiple transactions to the blockchain. In addition, the enterprise platform can manage each enterprise, such as registration, login, logout, and the like.
Fig. 4 schematically illustrates a flow chart of generating multiple transactions according to an embodiment of the present disclosure.
As shown in fig. 4, in some embodiments, the transaction management method further includes a step of generating a plurality of transactions, and the step of generating the plurality of transactions includes steps S310 to S330.
At step S310, the enterprise platform obtains a funds transfer requirement including a plurality of accounts involved in the transfer of funds.
In the embodiment of the disclosure, the plurality of accounts involved in the funds in the circulation process may refer to accounts of a plurality of enterprises involved in the funds in the circulation process, or may refer to accounts of a plurality of individuals involved in the funds in the circulation process, which may be specifically determined according to actual needs, and is not limited herein. For example, company a is a package company, company b is a subcontracting company, company c is a material provider, and the funds transfer demand includes a demand made by company a for purchasing material (hereinafter referred to as funds transfer demand D), which requires an account related to company a, an account of company b, and an account of public and private third during the transfer process. For another example, a dispatch executive is dispatched to the company by dispatching a company's pent, and the funds transfer requirements include requirements set forth by the company's formates for issuing wages to the dispatch executive (hereinafter referred to as funds transfer requirements E), funds involving the company's pent account, and the dispatch executive's account during the transfer.
In step S320, the enterprise platform determines a sequence of funds circulation among the plurality of accounts according to the preset configuration information.
In step S330, the enterprise platform generates a plurality of transactions according to the order of the funds transfer and the plurality of accounts, wherein each transaction includes a plurality of accounts, and the plurality of accounts in each transaction includes a payment account and a collection account.
In the embodiment of the disclosure, the preset configuration information may be determined according to actual needs, for example, for the funds transfer requirement D, the transfer sequence of funds is an account of company a, an account of company b, an account of company c. At this time, two transactions may be generated, the first transaction including an account of company a and an account of company b, wherein the account of company a is a payment account and the account of company b is a collection account; the second transaction includes an account of company b and an account of company c, wherein the account of company b is a payment account and the account of company c is a collection account.
It should be noted that, in the embodiment of the present disclosure, the payment account refers to an account opened by an enterprise or an individual to be paid in a first commercial bank, and the collection account may be an account opened by an enterprise or an individual to be collected in the first commercial bank, or may be an account opened by an enterprise or an individual in another commercial bank, which is specifically determined according to actual needs, and is not limited herein.
Fig. 5a schematically illustrates a flow chart of extracting a transaction in a state to be executed according to an embodiment of the present disclosure. In some embodiments, as shown in fig. 5a, for N transactions generated according to the same funds transfer requirement among the multiple transactions, the nth transaction further includes a preamble transaction. Step S230 includes step S231.
In step S231, for the nth transaction, when the preamble transaction of the transaction is in the transaction completion state, the blockchain determines that the transaction is in the to-be-executed state, wherein N is greater than 1 and less than or equal to N, and N and N are both positive integers.
As previously described, for the funds transfer requirement D, the first transaction pays company a to company b and the second transaction (i.e., the nth transaction) pays company b to company c. The blockchain can find the first transaction from the account book according to the identification information of the first transaction when judging the state of the second transaction, judge whether the first transaction is in a transaction completion state, if so, determine that the second transaction is in a state to be executed, and if not, determine that the second transaction is in a state to be executed.
In the embodiment of the disclosure, the account book stores a plurality of transactions, and the plurality of transactions may be generated according to different funds circulation requirements, for example, one part of the plurality of transactions is generated according to the funds circulation requirement D, and the other part of the plurality of transactions is generated according to the funds circulation requirement E.
Alternatively, in the embodiment of the present disclosure, step S230 may be performed periodically according to a preset time interval, so that a batch operation can be performed on a plurality of transactions stored in the ledger and generated according to different funds circulation requirements. For example, in the first cycle, the first transaction set acquired through step S230 includes a transaction D1 generated according to the funds transfer demand D and a transaction E1 generated according to the funds transfer demand E. At this time, a first transaction instruction may be transmitted to the first commercial bank corresponding to the transactions d1 and e1 to enable the first commercial bank to perform a first transaction operation on the two transactions at step S240.
It should be noted that, in the embodiment of the present disclosure, each transaction may further include a subsequent transaction, so that a plurality of transactions generated according to the same requirement of funds circulation are related back and forth, so that a chain of funds in the circulation process is clear and transparent.
In some embodiments, the first transaction instructions include payment instructions, the first transaction operation includes a payment operation, and each transaction further includes a transaction amount. Fig. 5b schematically illustrates a flow chart of sending a first transaction instruction according to an embodiment of the present disclosure. As shown in connection with fig. 3 and 5b, step S240 includes step S241.
In step S241, the blockchain sends a payment instruction to the first commercial bank. The payment instructions are configured to: the method comprises the steps of enabling a first commercial bank to acquire a payment account, a collection account and a transaction amount of each transaction in a first transaction set, executing payment operation according to the payment account, the collection account and the transaction amount of each transaction in the first transaction set, and taking a result of the payment operation as an operation result of the first transaction operation.
In the embodiment of the disclosure, after sending the payment instruction to the first commercial bank, the blockchain may determine whether the payment instruction is sent successfully, and if so, the blockchain may update the status of a transaction corresponding to the payment instruction to be notified of the payment. Optionally, in the embodiment of the present disclosure, when the state of any transaction stored in the ledger changes, the blockchain may send a transaction state change notification to the enterprise platform; if not, the reason description of the transmission failure can be obtained and used for generating prompt information or carrying out subsequent operations such as re-extraction.
In the embodiment of the disclosure, a corresponding transaction adaptation module may be deployed in the first commercial bank, and the transaction adaptation module may be capable of acquiring a payment instruction, and may acquire, in response to the payment instruction, transaction content of a transaction corresponding to the payment instruction, that is, a payment account, a collection account, a transaction amount, and the like in the foregoing, from the first transaction set. The transaction adaptation module can also send the acquired transaction content to a core transaction module of the first commercial bank, and the core transaction module can pay from a payment account to a collection account according to the transaction amount, so that payment operation is executed. The transaction adaptation module may further obtain an operation result of the core transaction module executing the first transaction operation, and feed back the operation result to the blockchain.
Fig. 5c schematically illustrates a flow chart of updating the status of a transaction according to an embodiment of the present disclosure. As shown in fig. 5c, in some embodiments, step S250 includes steps S251 to S253.
In step S251, the blockchain determines whether the payment operation was successful. When the payment operation is successful, step S252 is performed, and when the payment operation is failed, a description of the reason for the failure may be obtained for generating a prompt message or performing a subsequent re-lifting operation.
In step S252, the blockchain updates the status of the transaction corresponding to the payment result to a payment complete status.
In step S253, the blockchain generates a display signal configured to cause the display device to display a current status of each of the plurality of transactions according to the display signal.
In the embodiment of the present disclosure, in addition to displaying the current status of each transaction, information related to status change may be displayed, for example, the initiator, the execution time, etc., which may be specifically determined according to actual needs, and is not limited herein.
Fig. 6 schematically illustrates a flow chart of sending a second transaction instruction according to an embodiment of the present disclosure. As shown in fig. 6, each of the plurality of transactions further includes a second commercial bank for performing a second transaction operation, and the transaction management method further includes steps S410 to S440.
In step S410, the blockchain extracts the second commercial bank for each transaction.
In embodiments of the present disclosure, the second transaction operation may include a confirmation operation corresponding to the first transaction operation, e.g., when the first transaction operation is a payment operation, the second transaction operation is a receipt confirmation operation; when the first transaction operation is a repayment operation, the second transaction operation is a repayment check operation, etc. Alternatively, in the embodiment of the present disclosure, the second transaction operation is a receipt confirmation operation, and the second commercial bank may be a commercial bank that performs a receipt in the transaction, that is, a commercial bank where a receipt account is located.
In step S420, the blockchain obtains a transaction in a payment completion state among the plurality of transactions to obtain a second transaction set.
In the disclosed embodiment, as described above, in step S252, after the first commercial bank successfully pays, the blockchain updates the status of the transaction to a payment complete status. Alternatively, in the embodiment of the present disclosure, step S420 may be periodically performed according to a preset time interval. When it is determined that a certain transaction among the plurality of transactions is in a payment completion state, step S430 and step S440 are performed to transmit a second transaction instruction to the corresponding second commercial bank, so that the second commercial bank can perform the second transaction operation on the plurality of transactions in batches.
In step S430, for each of the extracted second commercial banks, transactions for which a second transaction operation is performed by the second commercial bank are counted from the second transaction set to obtain a third transaction set corresponding to the second commercial bank.
In the embodiment of the disclosure, the plurality of transactions may be respectively executed by different second commercial banks, for example, the plurality of transactions includes a transaction X, a transaction Y, and a transaction Z, where the transaction X and the transaction Z are paid by a bank a to a bank B, and for the transaction X and the transaction Z, the bank a is a first commercial bank, the bank B is a second commercial bank, and the transaction X and the transaction Z form a third transaction set of the bank B. The transaction Y is paid by the bank B to the bank C, and for the transaction Y, the bank B is the first commercial bank, the bank C is the second commercial bank, and the transaction Y forms a third transaction set of the bank C.
Alternatively, in the embodiment of the present disclosure, for each second commercial bank, in addition to extracting the third transaction set, the total number of transactions, the total amount of transactions, and the like may be counted, specifically may be determined according to actual needs, and is not limited herein.
In step S440, for each third transaction set, the blockchain sends a second transaction instruction to a second commercial bank corresponding to the third transaction set. The second transaction instructions are configured to cause the second merchant bank to perform a second transaction operation in accordance with each transaction in the third transaction set and the second transaction instructions.
In some embodiments, the second transaction instruction includes a receipt confirmation instruction and the second transaction operation includes a receipt confirmation operation. Fig. 7 schematically illustrates a flow chart of sending a second transaction instruction according to an embodiment of the disclosure. As shown in conjunction with fig. 3 and 7, step S440 includes steps S441 to S445.
In step S441, the blockchain sends a collection confirmation instruction to the second commercial bank, the collection confirmation instruction configured to: the second commercial bank is caused to perform a collection confirmation operation to obtain and feed back the collection information of the collection account for each transaction in the third set of transactions.
In the embodiment of the disclosure, after sending the receipt confirmation instruction to the second commercial bank, the blockchain may determine whether the receipt confirmation instruction is sent successfully, and if so, the blockchain may update the status of a transaction corresponding to the receipt confirmation to be notified of the receipt confirmation; if not, the reason description of the transmission failure can be obtained and used for generating prompt information or carrying out subsequent operations such as re-extraction.
In an embodiment of the disclosure, the receipt confirmation instruction corresponds to the transaction in the third transaction set one by one, and the transaction adaptation module disposed in the first commercial bank may further obtain the receipt confirmation instruction, and may be capable of obtaining, in response to the receipt confirmation instruction, transaction content, such as a receipt account, of a transaction corresponding to the receipt confirmation instruction, from the third transaction set. The transaction adaptation module may further send the acquired transaction content to a core transaction module of the second commercial bank, so that the core transaction module may query a recent fund flowing in the collection account to perform a collection confirmation operation, and feed back the fund flowing to the transaction adaptation module. The transaction adaptation module may also feed back funds in the blockchain as cash flow information.
In step S442, the blockchain obtains the payment information fed back by the second commercial bank.
In step S443, the blockchain determines a transaction corresponding to the payment information based on the payment information.
In step S444, the blockchain determines whether the payment information matches the transaction amount in the transaction, i.e., whether the payment amount matches the payment amount. When the receipt information matches the transaction amount in the transaction, step S445 is performed, and when the receipt information does not match the transaction amount in the transaction, a corresponding prompt may be generated and notifying that the receipt confirmation fails.
In step S445, the status of the transaction is updated to the transaction completed status.
It should be noted that, in other embodiments, the second commercial bank may determine whether the collection is successful through the core transaction module, so that the second commercial bank may directly feed back the collection result, and the blockchain updates the status of a corresponding transaction according to the collection result fed back by the second commercial bank.
In the embodiment of the present disclosure, the foregoing method steps may be repeatedly executed according to a preset period, so that each transaction stored in the ledger includes: complete information flow of waiting-executing-payment completion-receipt confirmation-transaction completion, and the state of each transaction is associated with the actual operation of a commercial bank, thereby ensuring the consistency of the information flow and the fund flow. Moreover, by adopting the transaction management method of the embodiment of the disclosure, financial business fields such as total subpackage, purchasing, accounting of labor companies, wage distribution of enterprises and the like can be supported, and the application scene is wide.
Based on the transaction management method based on the blockchain, the disclosure also provides a transaction management device based on the blockchain. The device will be described in detail below in connection with fig. 8.
Fig. 8 schematically illustrates a block diagram of a blockchain-based transaction management device in accordance with an embodiment of the present disclosure.
As shown in fig. 8, the blockchain-based transaction management device 800 of this embodiment includes: the acquisition module 810, the extraction module 820, the transaction set creation module 830, the transmission module 840, and the update module 850.
The acquiring module 810 is configured to acquire a plurality of transactions, each transaction including a first commercial bank configured to perform a first transaction operation. In an embodiment, the obtaining module 810 may be configured to perform the step S210 described above, which is not described herein.
The extraction module 820 is configured to store a plurality of transactions in a ledger of the blockchain, and extract a first commercial bank of each transaction. In an embodiment, the extracting module 820 may be used to perform the step S220 described above, which is not described herein.
The transaction set creation module 830 is configured to, for each first commercial bank, count transactions that execute a first transaction operation by the first commercial bank from a plurality of transactions, and extract the transactions in a state to be executed from the transactions to obtain a first transaction set corresponding to the first commercial bank. In an embodiment, the transaction set establishment module 830 may be configured to perform the step S230 described above, which is not described herein.
The sending module 840 is configured to send, for each first transaction set, a first transaction instruction to a first commercial bank corresponding to the first transaction set. The first transaction instruction is configured to enable the first commercial bank to execute a first transaction operation according to the transaction in the first transaction set and the first transaction instruction, and feed back an operation result of the first transaction operation. In an embodiment, the sending module 840 may be configured to perform the step S240 described above, which is not described herein.
And the updating module 850 is configured to update, according to the operation result, the state of the transaction corresponding to the operation result stored in the ledger. In an embodiment, the update module 850 may be used to perform the step S250 described above, which is not described herein.
With the blockchain-based transaction management device of the embodiments of the present disclosure, the state change of each transaction, for example, payment in progress, and payment in progress, is recorded by the blockchain. Each enterprise participating in the fund circulation can check the state of each transaction, so that each transaction in the fund circulation process is public and transparent, and data tamper resistance can be achieved through a block chain consensus mechanism, thereby ensuring the consistency of information flow and fund flow and improving the security of fund circulation.
Any of the plurality of modules of the acquisition module 810, the extraction module 820, the transaction set creation module 830, the transmission module 840, and the update module 850 may be combined in one module to be implemented, or any of the plurality of modules may be split into a plurality of modules, according to embodiments of the present disclosure. Or at least some of the functionality of one or more of the modules may be combined with, and implemented in, at least some of the functionality of other modules. According to embodiments of the present disclosure, at least one of the acquisition module 810, the extraction module 820, the transaction set creation module 830, the transmission module 840, and the update module 850 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable way of integrating or packaging circuitry, or in any one of or a suitable combination of three of software, hardware, and firmware. Or at least one of the acquisition module 810, the extraction module 820, the transaction set establishment module 830, the transmission module 840 and the update module 850 may be at least partially implemented as computer program modules which, when executed, may perform the respective functions.
Fig. 9 schematically illustrates a block diagram of an electronic device adapted to implement a blockchain-based transaction management method in accordance with an embodiment of the present disclosure.
As shown in fig. 9, an electronic device 900 according to an embodiment of the present disclosure includes a processor 901 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 902 or a program loaded from a storage portion 908 into a Random Access Memory (RAM) 903. The processor 901 may include, for example, a general purpose microprocessor (e.g., a CPU), a first instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. Processor 901 may also include on-board memory for caching purposes. Processor 901 may include a single processing unit or multiple processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 903, various programs and data necessary for the operation of the electronic device 900 are stored. The processor 901, the ROM 902, and the RAM 903 are connected to each other by a bus 904. The processor 901 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 902 and/or the RAM 903. Note that the program may be stored in one or more memories other than the ROM 902 and the RAM 903. The processor 901 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in one or more memories.
According to an embodiment of the disclosure, the electronic device 900 may also include an input/output (I/O) interface 905, the input/output (I/O) interface 905 also being connected to the bus 904. The electronic device 900 may also include one or more of the following components connected to the I/O interface 905: including an input portion 906 of a keyboard, mouse, etc. Including an output portion 907 such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc., and a speaker, etc. Including a storage portion 908 of a hard disk or the like. And a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drive 910 is also connected to the I/O interface 905 as needed. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on the drive 910 so that a computer program read out therefrom is installed into the storage section 908 as needed.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments. Or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs that, when executed, implement the blockchain-based transaction management methods provided by embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 902 and/or RAM 903 and/or one or more memories other than ROM 902 and RAM 903 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowcharts. When the computer program product is run in a computer system, the program code is for causing the computer system to implement the blockchain-based transaction management method provided by the embodiments of the present disclosure.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 901. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed, and downloaded and installed in the form of a signal on a network medium, via communication portion 909, and/or installed from removable medium 911. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 909 and/or installed from the removable medium 911. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 901. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be provided in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. These examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (11)

1. A blockchain-based transaction management method, comprising:
Acquiring a plurality of transactions, each transaction including a first commercial bank for performing a first transaction operation;
storing the plurality of transactions in an account book of a blockchain, and extracting the first commercial bank of each transaction;
For each extracted first commercial bank, counting the transactions which execute the first transaction operation through the first commercial bank from the plurality of transactions, and extracting the transactions in a to-be-executed state from the transactions to obtain a first transaction set corresponding to the first commercial bank;
For each first transaction set, sending a first transaction instruction to the first commercial bank corresponding to the first transaction set; the first transaction instruction is configured to enable the first commercial bank to execute a first transaction operation according to the transaction in the first transaction set and the first transaction instruction, and feed back an operation result of the first transaction operation;
And updating the state of the transaction corresponding to the operation result stored in the account book according to the operation result, wherein each state change of each transaction is recorded in the account book.
2. The transaction management method of claim 1, further comprising the step of generating the plurality of transactions, the step of generating the plurality of transactions comprising:
acquiring a funds transfer demand, the funds transfer demand including a plurality of accounts involved in a funds transfer process;
determining the fund circulation sequence among the accounts according to preset configuration information;
And generating a plurality of transactions according to the fund circulation sequence and the accounts, wherein each transaction comprises a plurality of accounts, and the accounts in each transaction comprise a payment account and a collection account.
3. The method of claim 2, wherein for N transactions among the plurality of transactions generated according to the same demand for funds transfer, the nth transaction further comprises a preamble transaction;
The step of counting, for each of the first commercial banks extracted, the transactions for which the first transaction operation is performed by the first commercial bank from the plurality of transactions, and extracting the transactions in a state to be performed therefrom to obtain a first transaction set corresponding to the first commercial bank includes:
For the nth transaction, when the preamble transaction of the transaction is in a transaction completion state, determining that the transaction is in a to-be-executed state, wherein N is more than 1 and less than or equal to N, and both N and N are positive integers.
4. The transaction management method according to claim 2, wherein the first transaction instruction includes a payment instruction, the first transaction operation includes a payment operation, and each transaction further includes a transaction amount;
The step of sending, for each of the first transaction sets, a first transaction instruction to the first commercial bank corresponding to the first transaction set includes:
Transmitting the payment instruction to the first commercial bank, the payment instruction configured to:
Causing the first merchant bank to acquire the payment account, the collection account, and the transaction amount for each transaction in the first set of transactions, and to perform the payment operation in accordance with the payment account, the collection account, and the transaction amount for each transaction in the first set of transactions, and to take the result of the payment operation as the result of the operation of the first transaction operation.
5. The transaction management method according to claim 4, wherein the step of updating the state of the transaction corresponding to the operation result stored in the ledger according to the operation result includes:
when the payment operation is successful, updating the state of the transaction corresponding to the payment operation to a payment completion state;
And generating a display signal, wherein the display signal is configured to enable a display device to display the current state of each transaction in the plurality of transactions according to the display signal.
6. The transaction management method of claim 1, wherein each of the plurality of transactions further comprises a second commercial bank for conducting a second transaction operation, the transaction management method further comprising:
Extracting the second commercial bank for each transaction;
Acquiring the transaction in a payment completion state in the plurality of transactions to obtain a second transaction set;
For each extracted second commercial bank, counting the transactions which execute the second transaction operation through the second commercial bank from the second transaction set to obtain a third transaction set corresponding to the second commercial bank;
For each third transaction set, sending a second transaction instruction to the second commercial bank corresponding to the third transaction set; the second transaction instructions are configured to cause the second merchant bank to perform the second transaction operation in accordance with each transaction in the third set of transactions and the second transaction instructions.
7. The transaction management method according to claim 6, wherein each of the plurality of transactions includes a collection account and a transaction amount, the second transaction instruction includes a collection confirmation instruction, and the second transaction operation includes a collection confirmation operation;
The step of sending, for each of the third transaction sets, a second transaction instruction to the second commercial bank corresponding to the third transaction set includes:
sending the receipt confirmation instruction to the second commercial bank, the receipt confirmation instruction configured to: causing the second commercial bank to perform the collection confirmation operation to obtain and feed back the collection information of the collection account for each transaction in the third set of transactions;
Determining a transaction corresponding to the collection information according to the collection information, and judging whether the collection information is matched with the transaction amount in the transaction;
And when the collection information is matched with the transaction amount in the transaction, updating the state of the transaction into a transaction completion state.
8. A blockchain-based transaction management device, comprising:
an acquisition module for acquiring a plurality of transactions, each transaction including a first commercial bank for performing a first transaction operation;
the extraction module is used for storing the transactions into an account book of a blockchain and extracting a first commercial bank of each transaction;
The transaction set establishing module is used for counting the transactions which execute the first transaction operation through the first commercial bank from the plurality of transactions, and extracting the transactions in a to-be-executed state from the transactions to obtain a first transaction set corresponding to the first commercial bank;
The sending module is used for sending a first transaction instruction to a first commercial bank corresponding to each first transaction set; the first transaction instruction is configured to enable the first commercial bank to execute the first transaction operation according to the transaction in the first transaction set and the first transaction instruction, and feed back an operation result of the first transaction operation;
and the updating module is used for updating the state of the transaction corresponding to the operation result stored in the account book according to the operation result.
9. An electronic device, comprising:
one or more processors;
Storage means for storing one or more programs,
Wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the transaction management method of any of claims 1-7.
10. A computer readable storage medium having stored thereon executable instructions, which when executed by a processor cause the processor to perform the transaction management method according to any of claims 1 to 7.
11. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the transaction management method according to any of claims 1 to 7.
CN202110924728.3A 2021-08-12 2021-08-12 Block chain-based transaction management method, apparatus, device, medium, and program Active CN113643014B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110924728.3A CN113643014B (en) 2021-08-12 2021-08-12 Block chain-based transaction management method, apparatus, device, medium, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110924728.3A CN113643014B (en) 2021-08-12 2021-08-12 Block chain-based transaction management method, apparatus, device, medium, and program

Publications (2)

Publication Number Publication Date
CN113643014A CN113643014A (en) 2021-11-12
CN113643014B true CN113643014B (en) 2024-05-17

Family

ID=78421157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110924728.3A Active CN113643014B (en) 2021-08-12 2021-08-12 Block chain-based transaction management method, apparatus, device, medium, and program

Country Status (1)

Country Link
CN (1) CN113643014B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543516A (en) * 2019-07-26 2019-12-06 深圳壹账通智能科技有限公司 Intelligent contract processing method and device, computer equipment and storage medium
CN111177275A (en) * 2020-01-02 2020-05-19 肖光昱 Block chain-based management method, terminal, device and storage medium
CN111369371A (en) * 2020-05-27 2020-07-03 杭州产链数字科技有限公司 Business ticket financing system and method based on block chain
CN112508558A (en) * 2020-11-21 2021-03-16 首钢京唐钢铁联合有限责任公司 Transaction system and method based on block chain
CN112513906A (en) * 2019-07-23 2021-03-16 创新先进技术有限公司 Managing transactions over blockchain networks

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190172059A1 (en) * 2017-12-05 2019-06-06 Bank Of America Corporation Real-time net settlement by distributed ledger system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112513906A (en) * 2019-07-23 2021-03-16 创新先进技术有限公司 Managing transactions over blockchain networks
CN110543516A (en) * 2019-07-26 2019-12-06 深圳壹账通智能科技有限公司 Intelligent contract processing method and device, computer equipment and storage medium
CN111177275A (en) * 2020-01-02 2020-05-19 肖光昱 Block chain-based management method, terminal, device and storage medium
CN111369371A (en) * 2020-05-27 2020-07-03 杭州产链数字科技有限公司 Business ticket financing system and method based on block chain
CN112508558A (en) * 2020-11-21 2021-03-16 首钢京唐钢铁联合有限责任公司 Transaction system and method based on block chain

Also Published As

Publication number Publication date
CN113643014A (en) 2021-11-12

Similar Documents

Publication Publication Date Title
US11283865B2 (en) Service meshes and smart contracts for zero-trust systems
WO2019100308A1 (en) Business trip reimbursement method, system, storage medium and terminal
US20190087477A1 (en) Deployment Of Object Code
CN111833169A (en) Ledger management method and apparatus
US20190121669A1 (en) Executing tasks using modular and intelligent code and data containers
US20180089627A1 (en) System and method for advanced candidate screening
US10318546B2 (en) System and method for test data management
US20170316405A1 (en) Systems and Methods for Control and Reconciliation of Virtual Token Accounts
CN111815372B (en) Live broadcast processing method and device based on block chain, electronic equipment and storage medium
US10120888B2 (en) Automated task execution based on task criteria
CN114303164A (en) Supplier invoice reconciliation and payment using event driven platform
US20170032352A1 (en) Integration of extended computer system functionality
US20220198538A1 (en) Systems and methods for controlling access to resources
CN110473036A (en) A kind of method and apparatus generating order number
US20230262043A1 (en) Hidden line property of online content to inhibit bot activity
US11488146B1 (en) System and method for closing pre-authorization amounts on a virtual token account
CN111768322A (en) Charitable service platform system
US10540342B2 (en) In-memory transaction processing
CN111859049B (en) Method for realizing differential display of enterprise salary information and message generation method
CN113643014B (en) Block chain-based transaction management method, apparatus, device, medium, and program
CN106875268B (en) Bank account information reminding method, server and terminal
US20200349620A1 (en) Email address verification
US20150127450A1 (en) Method and system for automated detection of can-spam violations by merchants and acquirers
US20150120522A1 (en) System and method for efficient allocation of resources in a financial services branch
KR20210068655A (en) Open market system with enhanced security by applying blockchain

Legal Events

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