CN109710627A - A kind of Transaction Inquiries method and device based on block chain network - Google Patents

A kind of Transaction Inquiries method and device based on block chain network Download PDF

Info

Publication number
CN109710627A
CN109710627A CN201811635776.5A CN201811635776A CN109710627A CN 109710627 A CN109710627 A CN 109710627A CN 201811635776 A CN201811635776 A CN 201811635776A CN 109710627 A CN109710627 A CN 109710627A
Authority
CN
China
Prior art keywords
transaction
information
block chain
request
transaction information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811635776.5A
Other languages
Chinese (zh)
Inventor
吴金坛
周钰
刘为怀
许玉壮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Unionpay Co Ltd
Original Assignee
China Unionpay 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 China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN201811635776.5A priority Critical patent/CN109710627A/en
Publication of CN109710627A publication Critical patent/CN109710627A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a kind of Transaction Inquiries method and device based on block chain network, method includes: to obtain the request of Client-initiated Transaction Inquiries;Transaction Inquiries request includes the identification information and user identity information of transaction to be checked;According to user identity information, judge whether Transaction Inquiries request is what personal user initiated;If so, according to the Transaction Information stored in the identification information-enquiry local data base of transaction to be checked, and return to query result corresponding with Transaction Inquiries request.The program is after the Transaction Inquiries request for receiving user, judge whether Transaction Inquiries request is high frequency inquiry request, if so, inquiring in the Transaction Information of local data base, to which the Transaction Inquiries of quick response user are requested, meets the needs of Client-initiated high frequency Transaction Inquiries.

Description

A kind of Transaction Inquiries method and device based on block chain network
Technical field
The present embodiments relate to block chain technical field more particularly to a kind of Transaction Inquiries sides based on block chain network Method and device.
Background technique
In the total mark of consumption prototype project based on block chain, using open source block chain technology Fabric (super account book) into Row integral inquiry, but the inquiry time delay of Fabric is longer, and the high frequency Transaction Inquiries in total mark of consumption prototype is caused to have can not be successfully At being unable to satisfy the high frequency Transaction Inquiries demand of user.
Summary of the invention
The embodiment of the present invention provides a kind of Transaction Inquiries method and device based on block chain network, to meet user's height The demand of frequency Transaction Inquiries.
A kind of Transaction Inquiries method based on block chain network provided in an embodiment of the present invention, comprising:
Obtain the request of Client-initiated Transaction Inquiries;Transaction Inquiries request include transaction to be checked identification information and User identity information;
According to the user identity information, judge whether the Transaction Inquiries request is what personal user initiated;
If so, according to the Transaction Information stored in the identification information-enquiry local data base of the transaction to be checked, and Return to query result corresponding with Transaction Inquiries request;The Transaction Information stored in the local data base is according to user Transaction request and the block chain network return stateful transaction determine.
In above-mentioned technical proposal, after obtaining the request of Client-initiated Transaction Inquiries, judge whether Transaction Inquiries request is People's Client-initiated is equivalent to and judges whether Transaction Inquiries request is high frequency inquiry request, if so, according to the Transaction Inquiries The Transaction Information of the identification information-enquiry local data base of request, so that the Transaction Inquiries of quick response user are requested.Further , local data base is determined according to the stateful transaction that the transaction request and block chain network of user return, local data The Transaction Information in library is synchronous with the Transaction Information of block chain network, to meet the need of the high frequency Transaction Inquiries of personal user's initiation It asks.
Optionally, the stateful transaction returned according to the transaction request of user and the block chain network determines local The Transaction Information stored in database, comprising:
The transaction request of user is obtained, the transaction request includes Transaction Information;
The Transaction Information is stored to the local data base, and the corresponding stateful transaction of the transaction request is arranged For reset condition;
After receiving the corresponding stateful transaction of the Transaction Information that the block chain network returns, according to the block The corresponding stateful transaction of the Transaction Information that chain network returns handles the Transaction Information in the local data base.
In above-mentioned technical proposal, the Transaction Information of local data base and the Transaction Information of block chain network are synchronized, when After the transaction request for getting user in local data base, the Transaction Information in the transaction request is stored in local, and be arranged For reset condition, after the corresponding stateful transaction of Transaction Information for receiving the return of block chain, to being stored in local transaction shape State is that the Transaction Information of reset condition is handled, the transaction in Transaction Information and block chain network to ensure local data base The consistency of information, so that the Transaction Information in local data base meets the needs of Client-initiated Transaction Inquiries.
Optionally, the corresponding stateful transaction of the Transaction Information returned according to the block chain network is to described Transaction Information in ground database is handled, comprising:
When the corresponding stateful transaction of the transaction request that the block chain network returns is transaction success status, by institute The stateful transaction for stating the Transaction Information in local data base is revised as transaction success status;
When the corresponding stateful transaction of the transaction request that the block chain network returns is Fail Transaction state, by institute The stateful transaction for stating the Transaction Information in local data base is revised as Fail Transaction state.
In above-mentioned technical proposal, for the corresponding different stateful transactions of Transaction Information that block chain network returns, to local The stateful transaction of Transaction Information in database is modified, specifically, when the transaction request that block chain network returns is corresponding When stateful transaction is transaction success status, the stateful transaction of the Transaction Information in local data base is revised as trading successfully shape State is equivalent to determination and the Transaction Information is stored in local data;When the corresponding friendship of transaction request that block chain network returns When easy state is Fail Transaction state, the stateful transaction of the Transaction Information in local data base is revised as Fail Transaction state, Be equivalent to and determine and delete storage Transaction Information in the local database, thus ensure the Transaction Information of local data base with The consistency of Transaction Information in block chain network ensures that user, can be in local data base when initiating high frequency inquiry request In inquire the Transaction Inquiries of user and request corresponding query result.
Optionally, the Transaction Information is stored to the local data base described, and the transaction request is corresponding Stateful transaction be set as after reset condition, further includes:
The Transaction Information is sent to the block chain network so that the block chain network to the Transaction Information into Row common recognition operation, and return to the corresponding stateful transaction of the Transaction Information.
In above-mentioned technical proposal, after receiving the transaction request of user, which is stored to local data base, And the Transaction Information in the transaction request is sent to block chain network, so that block chain network is total to the Transaction Information Know operation, after block chain network carries out common recognition operation, returns to the corresponding stateful transaction of Transaction Information, local data base is according to the area The corresponding stateful transaction of Transaction Information that block chain network returns modifies to the stateful transaction stored in local data base.
Optionally, further includes:
If the Transaction Inquiries request is what non-personal user initiated, the transaction stored in the block chain network is inquired Information, and return to query result corresponding with Transaction Inquiries request.
In above-mentioned technical proposal, after obtaining the request of Client-initiated Transaction Inquiries, judge whether Transaction Inquiries request is People's Client-initiated, if not what personal user initiated, it can for integral publisher, accept trade company, such non-personal user The Transaction Inquiries request of initiation is low frequency inquiry request, directly can inquire the friendship in the Transaction Information of block chain network storage The corresponding query result of easy inquiry request.
Correspondingly, the embodiment of the present invention also provides a kind of Transaction Inquiries method based on block chain network, comprising:
Receive the Transaction Information that client is sent;The Transaction Information is that the client is asked in the transaction for receiving user After asking the Transaction Information is stored in and to be sent after local data base;
Common recognition operation is carried out to the Transaction Information, and returns to the Transaction Information after common recognition operation to the client Corresponding stateful transaction, so that the client modifies the local data base according to the corresponding stateful transaction of the Transaction Information The stateful transaction of the Transaction Information of middle storage.
In above-mentioned technical proposal, block chain network is after the Transaction Information for receiving client transmission, to the Transaction Information Common recognition operation is carried out, and the corresponding stateful transaction of Transaction Information after common recognition operation is back to client, so that client Modify the stateful transaction of Transaction Information in local data base, wherein the received Transaction Information of block chain network is that client is connecing It receives and is sent to block chain network after being locally stored after the transaction request of user.That is, client is receiving It after the transaction request of user, is locally stored, and is sent to block chain network, so that block chain network carries out Transaction Information Common recognition operation, and modified according to the stateful transaction that block chain network returns to the stateful transaction being locally stored, to realize The Transaction Information of local data base and the consistency of the Transaction Information in block chain network.
Optionally, described that common recognition operation carried out to the Transaction Information, and after returning to common recognition operation to the client The corresponding stateful transaction of the Transaction Information, comprising:
Determine whether the Transaction Information reaches common understanding;
If so, the Transaction Information is stored in the block chain account book of the block chain network, and to the client End returns to transaction success status;Otherwise, the Transaction Information is abandoned, and returns to Fail Transaction state to the client.
In above-mentioned technical proposal, block chain network carries out common recognition operation to Transaction Information, when transaction common recognition passes through, by this Transaction Information is stored in the block chain account book of block chain network, while returning to transaction success status to client, so that objective The confirmation of family end stores the Transaction Information in the local database;When trading, common recognition is obstructed out-of-date, which is abandoned, i.e., It does not need to be stored in the Transaction Information in the block chain account book of block chain network, while returning to Fail Transaction shape to client State, so that client deletes the Transaction Information of storage in the local database.The block chain account book of block chain network In Transaction Information it is consistent with the Transaction Information in client local data base, with meet customer transaction inquiry the needs of.
Correspondingly, the embodiment of the present invention also provides a kind of Transaction Inquiries device based on block chain network, which includes:
Acquiring unit, for obtaining the request of Client-initiated Transaction Inquiries;The Transaction Inquiries request includes friendship to be checked Easy identification information and user identity information;
Processing unit, for judging whether the Transaction Inquiries request is personal user according to the user identity information It initiates;If so, according to the Transaction Information stored in the identification information-enquiry local data base of the transaction to be checked, and return Return query result corresponding with Transaction Inquiries request;The Transaction Information stored in the local data base is according to user What the stateful transaction that transaction request and the block chain network return determined.
Optionally, the processing unit is specifically used for:
The transaction request of user is obtained, the transaction request includes Transaction Information;
The Transaction Information is stored to the local data base, and the corresponding stateful transaction of the transaction request is arranged For reset condition;
After receiving the corresponding stateful transaction of the Transaction Information that the block chain network returns, according to the block The corresponding stateful transaction of the Transaction Information that chain network returns handles the Transaction Information in the local data base.
Optionally, the processing unit is specifically used for:
When the corresponding stateful transaction of the transaction request that the block chain network returns is transaction success status, by institute The stateful transaction for stating the Transaction Information in local data base is revised as transaction success status;
When the corresponding stateful transaction of the transaction request that the block chain network returns is Fail Transaction state, by institute The stateful transaction for stating the Transaction Information in local data base is revised as Fail Transaction state.
Optionally, the processing unit is also used to:
The Transaction Information is stored to the local data base described, and by the corresponding transaction shape of the transaction request State is set as after reset condition, and the Transaction Information is sent to the block chain network, so that the block chain network pair The Transaction Information carries out common recognition operation, and returns to the corresponding stateful transaction of the Transaction Information.
Optionally, the processing unit is also used to:
If the Transaction Inquiries request is what non-personal user initiated, the transaction stored in the block chain network is inquired Information, and return to query result corresponding with Transaction Inquiries request.
Correspondingly, the embodiment of the present invention also provides a kind of Transaction Inquiries device based on block chain network, which includes:
Receiving unit, for receiving the Transaction Information of client transmission;The Transaction Information is that the client is receiving After to the transaction request of user the Transaction Information is stored in and to be sent after local data base;
Processing unit, for carrying out common recognition operation to the Transaction Information, and after returning to common recognition operation to the client The corresponding stateful transaction of the Transaction Information so that the client is modified according to the corresponding stateful transaction of the Transaction Information The stateful transaction of the Transaction Information stored in the local data base.
Optionally, the processing unit is specifically used for:
Determine whether the Transaction Information reaches common understanding;
If so, the Transaction Information is stored in the block chain account book of the block chain network, and to the client End returns to transaction success status;Otherwise, the Transaction Information is abandoned, and returns to Fail Transaction state to the client.
Correspondingly, the embodiment of the invention also provides a kind of calculating equipment, comprising:
Memory, for storing program instruction;
Processor executes above-mentioned be based on according to the program of acquisition for calling the program instruction stored in the memory The Transaction Inquiries method of block chain network.
Correspondingly, the embodiment of the invention also provides a kind of computer-readable non-volatile memory medium, including computer Readable instruction, when computer is read and executes the computer-readable instruction, so that computer execution is above-mentioned to be based on block chain The Transaction Inquiries method of network.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of schematic diagram of system architecture provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of the Transaction Inquiries method based on block chain network provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of determining local data base store transaction information provided in an embodiment of the present invention;
Fig. 4 is a kind of Transaction Inquiries device provided in an embodiment of the present invention;
Fig. 5 is another flow chart for determining local data base store transaction information provided in an embodiment of the present invention;
Fig. 6 is the flow chart of another Transaction Inquiries method provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of the Transaction Inquiries device based on block chain network provided in an embodiment of the present invention;
Fig. 8 is the structural representation of another Transaction Inquiries device based on block chain network provided in an embodiment of the present invention Figure.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into It is described in detail to one step, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall within the protection scope of the present invention.
Fig. 1 illustratively shows the embodiment of the present invention and provides what the Transaction Inquiries method based on block chain network was applicable in System architecture, the system architecture may include client 100 and block chain network 200.Wherein, client 100 is used for receiving The transaction request at family, and the transaction request of user is sent to block chain network 200, block chain network 200 is according to the friendship of user Transaction Information easily in request carries out transaction common recognition, and after determining through transaction common recognition, Transaction Information is stored to block chain In account book, so that user carries out Transaction Inquiries.
Based on foregoing description, Fig. 2 illustratively shows provided in an embodiment of the present invention a kind of based on block chain network The process of Transaction Inquiries method, the process can be executed by the Transaction Inquiries device based on block chain network, which can position In client, the client can be.As shown in Fig. 2, the process specifically includes:
Step 201, the request of Client-initiated Transaction Inquiries is obtained.
Wherein, Transaction Inquiries request includes the identification information and user identity information of transaction to be checked.The mark of user is believed For breath for judging whether the user is personal user, personal user can be understood as carrying out the requesting party of high frequency inquiry, non-individual User can be understood as carrying out the requesting party of low frequency inquiry, and non-personal user includes integrating publisher, accepting trade company etc..
Step 202, according to the user identity information, judge whether the Transaction Inquiries request is personal user's initiation 's.
According to the identification information of user, it can judge whether the requesting party of Transaction Inquiries request is personal user's hair It rises, that is, may determine that Transaction Inquiries request is high frequency inquiry or low frequency inquiry, further, which is looked into Inquiry branches to local data base or block chain network.
Step 203, if Transaction Inquiries request is that personal user initiates, according to the identification information of the transaction to be checked The Transaction Information stored in inquiry local data base, and return to query result corresponding with Transaction Inquiries request.
Wherein, the Transaction Information stored in local data base is returned according to the transaction request and block chain network of user Stateful transaction determine, which can pre-establish, for the database of store transaction information, the local Database can be Mysql database, oracle database, sybase database system etc..Block chain network be by data Layer, Network layer, common recognition layer, excitation layer, contract layer and application layer composition, which can be Fabric block chain network.
It, can be true according to the stateful transaction that the transaction request of user and block chain network return when user trades The Transaction Information of storage in the database when making customer transaction, wherein when user trades, Client-initiated transaction request It may include Transaction Information.Optionally, client deposits the Transaction Information in transaction request after the transaction request for obtaining user Storage is set as reset condition in the local data base of client, and by the corresponding stateful transaction of transaction request;Receiving area After the corresponding stateful transaction of Transaction Information that block chain network returns, according to the corresponding transaction of Transaction Information of block chain network return State handles the Transaction Information in local data base.
Specifically, when the corresponding stateful transaction of transaction request that block chain network returns is transaction success status, client End the stateful transaction of the Transaction Information in local data base is revised as transaction success status;When the transaction that block chain network returns Request corresponding stateful transaction be Fail Transaction state when, client repairs the stateful transaction of the Transaction Information in local data base It is changed to Fail Transaction state.
Herein, the transaction request of user is received in client, and the Transaction Information in transaction request is stored in local After in database, which can also be sent to block chain network by client, so that block chain network believes transaction Breath carries out common recognition operation, and returns to the corresponding stateful transaction of Transaction Information.It changes for an angle, when block chain network receives visitor After the Transaction Information that family end is sent, common recognition operation is carried out to Transaction Information, and the corresponding friendship of Transaction Information after operating that will know together Easy state returns to client.
Specifically, block chain network carries out common recognition operation to Transaction Information, that is, determine whether Transaction Information is reached altogether Know.If Transaction Information is reached common understanding, Transaction Information is stored in the block chain account book of block chain network, and is returned to client It is returned easy success status;If Transaction Information is not reached common understanding, Transaction Information is abandoned, and returns to Fail Transaction shape to client State.Herein, block chain network determine Transaction Information whether reach common understanding it can be appreciated that block chain network to Transaction Information into Row common recognition confirmation, judges whether transaction common recognition passes through, if transaction common recognition passes through, by Transaction Information write-in block chain network In block chain account book, while returning and trading successfully;If transaction common recognition does not pass through, which block chain network is not written into Block chain account book, while returning to Fail Transaction.
Client is stored according in the corresponding stateful transaction modification local data base of Transaction Information that block chain network returns Transaction Information stateful transaction.Block chain network carries out common recognition operation to Transaction Information, can determine whether Transaction Information reaches At common recognition, and return to the corresponding stateful transaction of Transaction Information after common recognition operation, specifically, the transaction received when client at When function state, i.e., when the corresponding stateful transaction of transaction request that block chain network returns is transaction success status, client will The stateful transaction of Transaction Information in local data base is revised as transaction success status, that is, client will be in local data base Transaction Information carry out confirmation storage;When client receives Fail Transaction state, i.e., when the transaction that block chain network returns Request corresponding stateful transaction be Fail Transaction state when, client repairs the stateful transaction of the Transaction Information in local data base It is changed to Fail Transaction state, that is, client deletes the Transaction Information in local data base.Realize the sheet of client The consistency of the Transaction Information of the block chain account book of the Transaction Information and block chain network of ground database.
As a kind of implementation of the embodiment of the present invention, returned according to the transaction request of user and block chain network Stateful transaction determines the Transaction Information stored in local data base, specifically can be as shown in Figure 3.
Step 301, client obtains the transaction request of user.
Step 302, client stores Transaction Information to local data base, and the corresponding stateful transaction of transaction request is set It is set to reset condition.
Step 303, Transaction Information is sent to block chain network by client.
Step 304, block chain network carries out common recognition operation to Transaction Information.
Step 305, block chain network returns to the corresponding stateful transaction of Transaction Information after common recognition operation to client.
Step 306, the corresponding stateful transaction of Transaction Information that client is returned according to block chain network is to local data base In Transaction Information handled.
It should be noted that Transaction Inquiries request can be personal user's initiation, it is also possible to non-personal user and initiates, When Transaction Inquiries request is that personal user initiates, then stored according in the identification information-enquiry local data base of transaction to be checked Transaction Information, and return to Transaction Inquiries and request corresponding query result;When Transaction Inquiries request is that non-personal user initiates, Then according to the Transaction Information stored in the identification information-enquiry block chain network of transaction to be checked, and return to Transaction Inquiries request pair The query result answered.Herein, since the local data base of client and the Transaction Information of the block chain account book of block chain network are deposited The consistency of storage, the local data base of client can satisfy the high frequency query demand of personal user.
Embodiment in order to preferably explain the present invention, as Fig. 4 shows a kind of applicable particular transactions of the embodiment of the present invention Inquiry unit.The Transaction Inquiries device includes client and Fabric block chain network, wherein client includes client query Interface and local Mysql database, client query interface is used to provide the interface of inquiry local Mysql database, local Mysql database is used to store the Transaction Information of user;Fabric block chain network includes block chain network query interface, block Chain account book, common recognition mechanism module, authority management module, block chain network query interface are used to provide connecing for inquiry block chain account book Mouthful, block chain account book is used to store the Transaction Information of user, and common recognition mechanism module is used to carry out Transaction Information common recognition operation simultaneously The corresponding stateful transaction of Transaction Information is returned to, authority management module is used to manage the operating right of block chain network.Further, Transaction Information in the local Mysql database of client and the Transaction Information in the block chain account book of Fabric block chain network It keeps synchronizing, i.e. the Transaction Information of the two storage is consistent.The Transaction Inquiries device can also encapsulate an adaptive inquiry Interface, the adaptive query interface are used for after the Transaction Inquiries request for receiving user, Transaction Inquiries request are branched to In other words local Mysql database or block chain account book when high frequency inquiry, pass through the local Mysql database of client It is inquired, when the inquiry of non-high frequency, is inquired by the block chain account book of Fabric block chain network.
Transaction Inquiries device in conjunction with shown in Fig. 4, the embodiment of the present invention is provided to be determined locally under accumulated point exchanging environment The detailed process of Mysql database, as shown in figure 5, specific as follows:
Step 501, local Mysql database is established;
Step 502, the accumulated point exchanging transaction request of user is received;
Step 503, accumulated point exchanging Transaction Information is stored to local Mysql database;
Step 504, accumulated point exchanging Transaction Information is sent to Fabric block chain network;
Step 505, it receives Fabric block chain network and returns to accumulated point exchanging stateful transaction;
Step 506, the accumulated point exchanging stateful transaction in the Mysql database of local is modified.
Transaction Inquiries device in conjunction with shown in Fig. 4, the embodiment of the present invention provide the Transaction Inquiries under accumulated point exchanging environment Detailed process, as shown in fig. 6, specific as follows:
Step 601, the Transaction Inquiries request of user is received;
Step 602, judge whether requesting party is personal user;If so, turning to step 603, otherwise, step 604 is turned to.
Step 603, high frequency inquiry is carried out by local Mysql database;
Step 604, low frequency inquiry is carried out by block chain account book;
Step 605, query result is returned.
Since the specific implementation of the present embodiment has described in other embodiments, therefore not to repeat here.
In above-described embodiment, after obtaining the request of Client-initiated Transaction Inquiries, judge whether Transaction Inquiries request is personal Client-initiated is equivalent to and judges whether Transaction Inquiries request is high frequency inquiry request, if so, being asked according to the Transaction Inquiries The Transaction Information for the identification information-enquiry local data base asked, otherwise, the identification information-enquiry area requested according to the Transaction Inquiries The Transaction Information of block chain network, that is to say, that the high frequency inquiry request of personal user is responded by local data base query interface, And integral publisher is responded by block chain network query interface or accepts the low frequency inquiry request of trade company, thus quick response The Transaction Inquiries of user are requested.Further, local data base is returned according to the transaction request and block chain network of user Stateful transaction determine, local data base receives the transaction request of user, after Transaction Information is stored, is sent to block chain Network, block chain network carry out common recognition operation to Transaction Information, and when transaction common recognition passes through, which is stored in block In the block chain account book of chain network, while transaction success status is returned to client, so that the transaction is believed in client confirmation Breath storage is in the local database;When trading, common recognition is obstructed out-of-date, which is abandoned, that is, is not needed the Transaction Information It is stored in the block chain account book of block chain network, while returning to Fail Transaction state to client, so that client will deposit The Transaction Information of storage in the local database is deleted.Transaction Information and client in the block chain account book of block chain network Transaction Information in local data base is consistent, to meet the needs of customer transaction inquiry.
Based on the same inventive concept, Fig. 7 illustratively shows provided in an embodiment of the present invention a kind of based on block link network The structure of the Transaction Inquiries device of network, the device can execute the process of the Transaction Inquiries method based on block chain network.
The device includes:
Acquiring unit 701, for obtaining the request of Client-initiated Transaction Inquiries;The Transaction Inquiries request includes to be checked The identification information and user identity information of transaction;
Processing unit 702, for judging whether the Transaction Inquiries request is personal use according to the user identity information What family was initiated;If so, according to the Transaction Information stored in the identification information-enquiry local data base of the transaction to be checked, and Return to query result corresponding with Transaction Inquiries request;The Transaction Information stored in the local data base is according to user Transaction request and the block chain network return stateful transaction determine.
Optionally, the processing unit 702 is specifically used for:
The transaction request of user is obtained, the transaction request includes Transaction Information;
The Transaction Information is stored to the local data base, and the corresponding stateful transaction of the transaction request is arranged For reset condition;
After receiving the corresponding stateful transaction of the Transaction Information that the block chain network returns, according to the block The corresponding stateful transaction of the Transaction Information that chain network returns handles the Transaction Information in the local data base.
Optionally, the processing unit 702 is specifically used for:
When the corresponding stateful transaction of the transaction request that the block chain network returns is transaction success status, by institute The stateful transaction for stating the Transaction Information in local data base is revised as transaction success status;
When the corresponding stateful transaction of the transaction request that the block chain network returns is Fail Transaction state, by institute The stateful transaction for stating the Transaction Information in local data base is revised as Fail Transaction state.
Optionally, the processing unit 702 is also used to:
The Transaction Information is stored to the local data base described, and by the corresponding transaction shape of the transaction request State is set as after reset condition, and the Transaction Information is sent to the block chain network, so that the block chain network pair The Transaction Information carries out common recognition operation, and returns to the corresponding stateful transaction of the Transaction Information.
Optionally, the processing unit 702 is also used to:
If the Transaction Inquiries request is what non-personal user initiated, the transaction stored in the block chain network is inquired Information, and return to query result corresponding with Transaction Inquiries request.
Based on the same inventive concept, Fig. 8 illustratively shows provided in an embodiment of the present invention another based on block chain The structure of the Transaction Inquiries device of network, the device include:
Receiving unit 801, for receiving the Transaction Information of client transmission;The Transaction Information is that the client is connecing It receives to be stored in the Transaction Information after the transaction request of user and be sent after local data base;
Processing unit 802 for carrying out common recognition operation to the Transaction Information, and returns to common recognition operation to the client The corresponding stateful transaction of the Transaction Information afterwards, so that the client is repaired according to the corresponding stateful transaction of the Transaction Information Change the stateful transaction of the Transaction Information stored in the local data base.
Optionally, the processing unit 802 is specifically used for:
Determine whether the Transaction Information reaches common understanding;
If so, the Transaction Information is stored in the block chain account book of the block chain network, and to the client End returns to transaction success status;Otherwise, the Transaction Information is abandoned, and returns to Fail Transaction state to the client.
Based on the same inventive concept, the embodiment of the invention also provides a kind of calculating equipment, comprising:
Memory, for storing program instruction;
Processor executes above-mentioned be based on according to the program of acquisition for calling the program instruction stored in the memory The Transaction Inquiries method of block chain network.
Based on the same inventive concept, the embodiment of the invention also provides a kind of computer-readable non-volatile memory medium, Including computer-readable instruction, when computer is read and executes the computer-readable instruction, so that computer execution is above-mentioned Transaction Inquiries method based on block chain network.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (16)

1. a kind of Transaction Inquiries method based on block chain network characterized by comprising
Obtain the request of Client-initiated Transaction Inquiries;The Transaction Inquiries request includes identification information and the user of transaction to be checked Identification information;
According to the user identity information, judge whether the Transaction Inquiries request is what personal user initiated;
If so, according to the Transaction Information stored in the identification information-enquiry local data base of the transaction to be checked, and return Query result corresponding with Transaction Inquiries request;The Transaction Information stored in the local data base is the friendship according to user What the stateful transaction that easily request and the block chain network return determined.
2. the method as described in claim 1, which is characterized in that the transaction request according to user and the block link network The stateful transaction that network returns determines the Transaction Information stored in local data base, comprising:
The transaction request of user is obtained, the transaction request includes Transaction Information;
The Transaction Information is stored to the local data base, and sets former for the corresponding stateful transaction of the transaction request Beginning state;
After receiving the corresponding stateful transaction of the Transaction Information that the block chain network returns, according to the block link network The corresponding stateful transaction of the Transaction Information that network returns handles the Transaction Information in the local data base.
3. method according to claim 2, which is characterized in that the transaction returned according to the block chain network is believed Corresponding stateful transaction is ceased to handle the Transaction Information in the local data base, comprising:
When the corresponding stateful transaction of the transaction request that the block chain network returns is transaction success status, by described The stateful transaction of the Transaction Information in ground database is revised as transaction success status;
When the corresponding stateful transaction of the transaction request that the block chain network returns is Fail Transaction state, by described The stateful transaction of the Transaction Information in ground database is revised as Fail Transaction state.
4. method according to claim 2, which is characterized in that store the Transaction Information to the local data described Library, and set the corresponding stateful transaction of the transaction request to after reset condition, further includes:
The Transaction Information is sent to the block chain network, so that the block chain network is total to the Transaction Information Know operation, and returns to the corresponding stateful transaction of the Transaction Information.
5. the method as described in claim 1, which is characterized in that further include:
If the Transaction Inquiries request is what non-personal user initiated, the transaction letter stored in the block chain network is inquired Breath, and return to query result corresponding with Transaction Inquiries request.
6. a kind of Transaction Inquiries method based on block chain network characterized by comprising
Receive the Transaction Information that client is sent;The Transaction Information is the client after receiving the transaction request of user The Transaction Information is stored in and is sent after local data base;
Common recognition operation is carried out to the Transaction Information, and is corresponded to the Transaction Information that the client returns after common recognition operation Stateful transaction deposited so that the client is modified in the local data base according to the corresponding stateful transaction of the Transaction Information The stateful transaction of the Transaction Information of storage.
7. method as claimed in claim 6, which is characterized in that it is described that common recognition operation carried out to the Transaction Information, and to institute It states client and returns to the corresponding stateful transaction of the Transaction Information after common recognition operation, comprising:
Determine whether the Transaction Information reaches common understanding;
If so, the Transaction Information is stored in the block chain account book of the block chain network, and is returned to the client It is returned easy success status;Otherwise, the Transaction Information is abandoned, and returns to Fail Transaction state to the client.
8. a kind of Transaction Inquiries device based on block chain network characterized by comprising
Acquiring unit, for obtaining the request of Client-initiated Transaction Inquiries;The Transaction Inquiries request includes transaction to be checked Identification information and user identity information;
Processing unit, for judging whether the Transaction Inquiries request is personal user's initiation according to the user identity information 's;If so, according to the Transaction Information stored in the identification information-enquiry local data base of the transaction to be checked, and return with The Transaction Inquiries request corresponding query result;The Transaction Information stored in the local data base is the transaction according to user What the stateful transaction that request and the block chain network return determined.
9. device as claimed in claim 8, which is characterized in that the processing unit is specifically used for:
The transaction request of user is obtained, the transaction request includes Transaction Information;
The Transaction Information is stored to the local data base, and sets former for the corresponding stateful transaction of the transaction request Beginning state;
After receiving the corresponding stateful transaction of the Transaction Information that the block chain network returns, according to the block link network The corresponding stateful transaction of the Transaction Information that network returns handles the Transaction Information in the local data base.
10. device as claimed in claim 9, which is characterized in that the processing unit is specifically used for:
When the corresponding stateful transaction of the transaction request that the block chain network returns is transaction success status, by described The stateful transaction of the Transaction Information in ground database is revised as transaction success status;
When the corresponding stateful transaction of the transaction request that the block chain network returns is Fail Transaction state, by described The stateful transaction of the Transaction Information in ground database is revised as Fail Transaction state.
11. device as claimed in claim 9, which is characterized in that the processing unit is also used to:
The Transaction Information is stored to the local data base described, and the corresponding stateful transaction of the transaction request is set It is set to after reset condition, the Transaction Information is sent to the block chain network, so that the block chain network is to described Transaction Information carries out common recognition operation, and returns to the corresponding stateful transaction of the Transaction Information.
12. device as claimed in claim 8, which is characterized in that the processing unit is also used to:
If the Transaction Inquiries request is what non-personal user initiated, the transaction letter stored in the block chain network is inquired Breath, and return to query result corresponding with Transaction Inquiries request.
13. a kind of Transaction Inquiries device based on block chain network characterized by comprising
Receiving unit, for receiving the Transaction Information of client transmission;The Transaction Information is that the client is receiving use After the transaction request at family the Transaction Information is stored in and to be sent after local data base;
Processing unit for carrying out common recognition operation to the Transaction Information, and returns to the institute after common recognition operation to the client The corresponding stateful transaction of Transaction Information is stated, so that the client is according to the corresponding stateful transaction modification of the Transaction Information The stateful transaction of the Transaction Information stored in local data base.
14. device as claimed in claim 13, which is characterized in that the processing unit is specifically used for:
Determine whether the Transaction Information reaches common understanding;
If so, the Transaction Information is stored in the block chain account book of the block chain network, and is returned to the client It is returned easy success status;Otherwise, the Transaction Information is abandoned, and returns to Fail Transaction state to the client.
15. a kind of calculating equipment characterized by comprising
Memory, for storing program instruction;
Processor requires 1 to 7 according to the program execution benefit of acquisition for calling the program instruction stored in the memory Described in any item methods.
16. a kind of computer-readable non-volatile memory medium, which is characterized in that including computer-readable instruction, work as computer When reading and executing the computer-readable instruction, so that computer executes method as described in any one of claim 1 to 7.
CN201811635776.5A 2018-12-29 2018-12-29 A kind of Transaction Inquiries method and device based on block chain network Pending CN109710627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811635776.5A CN109710627A (en) 2018-12-29 2018-12-29 A kind of Transaction Inquiries method and device based on block chain network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811635776.5A CN109710627A (en) 2018-12-29 2018-12-29 A kind of Transaction Inquiries method and device based on block chain network

Publications (1)

Publication Number Publication Date
CN109710627A true CN109710627A (en) 2019-05-03

Family

ID=66259564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811635776.5A Pending CN109710627A (en) 2018-12-29 2018-12-29 A kind of Transaction Inquiries method and device based on block chain network

Country Status (1)

Country Link
CN (1) CN109710627A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489413A (en) * 2019-07-15 2019-11-22 杭州复杂美科技有限公司 A kind of storage of transaction record, querying method and system, equipment and storage medium
CN110827037A (en) * 2019-11-07 2020-02-21 北京海益同展信息科技有限公司 Data interaction method and device based on block chain
CN110852887A (en) * 2020-01-14 2020-02-28 支付宝(杭州)信息技术有限公司 Method and device for acquiring transaction processing state in decentralized application cluster
CN111614707A (en) * 2019-02-26 2020-09-01 傲为信息技术(江苏)有限公司 Transaction system and transaction method based on block chain
CN111784527A (en) * 2020-08-04 2020-10-16 支付宝(杭州)信息技术有限公司 Method and device for carrying out rights and interests updating through block chain
CN111813788A (en) * 2020-05-20 2020-10-23 北京金山云网络技术有限公司 Information query method and device and information synchronization method and device
CN111917859A (en) * 2020-07-28 2020-11-10 腾讯科技(深圳)有限公司 Data transmission method and device, computer equipment and storage medium
CN112035542A (en) * 2020-08-28 2020-12-04 成都质数斯达克科技有限公司 Information query method and device, electronic equipment and readable storage medium
CN112884587A (en) * 2021-04-30 2021-06-01 支付宝(杭州)信息技术有限公司 Block chain transaction execution method, block chain node and control device
CN113256419A (en) * 2021-05-21 2021-08-13 上海佩俪信息科技有限公司 Block chain transaction retrieval method and system
CN113298574A (en) * 2021-06-18 2021-08-24 中国农业银行股份有限公司 Block chain-based point management method and device and storage medium
CN113657899A (en) * 2021-10-19 2021-11-16 支付宝(杭州)信息技术有限公司 Method, device and system for transferring property right
CN113722385A (en) * 2021-11-03 2021-11-30 腾讯科技(深圳)有限公司 Data query method, device, equipment and storage medium based on block chain network

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402548A (en) * 2010-09-17 2012-04-04 金蝶软件(中国)有限公司 Method and system for controlling data query of application system
CN103516681A (en) * 2012-06-26 2014-01-15 华为技术有限公司 Network access control method and device thereof
US20170061432A1 (en) * 2015-08-26 2017-03-02 International Business Machines Corporation Multi-user transaction approval authentication
CN106611061A (en) * 2016-12-29 2017-05-03 北京众享比特科技有限公司 Database write-in method and system based on block chain network
CN106874393A (en) * 2017-01-13 2017-06-20 北京众享比特科技有限公司 Synchronizing traffic data method and system, Database Systems based on block chain
CN108764906A (en) * 2018-05-30 2018-11-06 深圳市元征科技股份有限公司 A kind of server and its block chain transaction confirmation method, device, storage medium
CN108776929A (en) * 2018-04-02 2018-11-09 成都云创智融科技有限公司 Bill processing method, system based on block chain database and readable storage medium storing program for executing
CN108830710A (en) * 2018-05-02 2018-11-16 大国创新智能科技(东莞)有限公司 Block chain transaction platform and implementation method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402548A (en) * 2010-09-17 2012-04-04 金蝶软件(中国)有限公司 Method and system for controlling data query of application system
CN103516681A (en) * 2012-06-26 2014-01-15 华为技术有限公司 Network access control method and device thereof
US20170061432A1 (en) * 2015-08-26 2017-03-02 International Business Machines Corporation Multi-user transaction approval authentication
CN106611061A (en) * 2016-12-29 2017-05-03 北京众享比特科技有限公司 Database write-in method and system based on block chain network
CN106874393A (en) * 2017-01-13 2017-06-20 北京众享比特科技有限公司 Synchronizing traffic data method and system, Database Systems based on block chain
CN108776929A (en) * 2018-04-02 2018-11-09 成都云创智融科技有限公司 Bill processing method, system based on block chain database and readable storage medium storing program for executing
CN108830710A (en) * 2018-05-02 2018-11-16 大国创新智能科技(东莞)有限公司 Block chain transaction platform and implementation method
CN108764906A (en) * 2018-05-30 2018-11-06 深圳市元征科技股份有限公司 A kind of server and its block chain transaction confirmation method, device, storage medium

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111614707A (en) * 2019-02-26 2020-09-01 傲为信息技术(江苏)有限公司 Transaction system and transaction method based on block chain
CN110489413A (en) * 2019-07-15 2019-11-22 杭州复杂美科技有限公司 A kind of storage of transaction record, querying method and system, equipment and storage medium
CN110827037A (en) * 2019-11-07 2020-02-21 北京海益同展信息科技有限公司 Data interaction method and device based on block chain
CN110852887A (en) * 2020-01-14 2020-02-28 支付宝(杭州)信息技术有限公司 Method and device for acquiring transaction processing state in decentralized application cluster
CN110852887B (en) * 2020-01-14 2020-06-12 支付宝(杭州)信息技术有限公司 Method and device for acquiring transaction processing state in decentralized application cluster
WO2021143364A1 (en) * 2020-01-14 2021-07-22 支付宝(杭州)信息技术有限公司 Method and apparatus for acquiring transaction processing state in decentralized application cluster
CN111813788A (en) * 2020-05-20 2020-10-23 北京金山云网络技术有限公司 Information query method and device and information synchronization method and device
CN111917859B (en) * 2020-07-28 2022-08-12 腾讯科技(深圳)有限公司 Data transmission method and device, computer equipment and storage medium
CN111917859A (en) * 2020-07-28 2020-11-10 腾讯科技(深圳)有限公司 Data transmission method and device, computer equipment and storage medium
CN111784527A (en) * 2020-08-04 2020-10-16 支付宝(杭州)信息技术有限公司 Method and device for carrying out rights and interests updating through block chain
CN111784527B (en) * 2020-08-04 2023-10-27 蚂蚁胜信(上海)信息技术有限公司 Method and device for updating rights and interests through block chain
CN112035542A (en) * 2020-08-28 2020-12-04 成都质数斯达克科技有限公司 Information query method and device, electronic equipment and readable storage medium
CN112884587B (en) * 2021-04-30 2021-08-03 支付宝(杭州)信息技术有限公司 Block chain transaction execution method, block chain node and control device
CN112884587A (en) * 2021-04-30 2021-06-01 支付宝(杭州)信息技术有限公司 Block chain transaction execution method, block chain node and control device
CN113256419A (en) * 2021-05-21 2021-08-13 上海佩俪信息科技有限公司 Block chain transaction retrieval method and system
CN113256419B (en) * 2021-05-21 2022-09-02 上海简苏网络科技有限公司 Block chain transaction retrieval method and system
CN113298574A (en) * 2021-06-18 2021-08-24 中国农业银行股份有限公司 Block chain-based point management method and device and storage medium
CN113657899A (en) * 2021-10-19 2021-11-16 支付宝(杭州)信息技术有限公司 Method, device and system for transferring property right
CN113722385A (en) * 2021-11-03 2021-11-30 腾讯科技(深圳)有限公司 Data query method, device, equipment and storage medium based on block chain network

Similar Documents

Publication Publication Date Title
CN109710627A (en) A kind of Transaction Inquiries method and device based on block chain network
Weill et al. Is your company ready for a digital future?
CN110032571A (en) Business flow processing method, apparatus, storage medium and calculating equipment
CN112967130B (en) Method and device for identifying enterprise association relationship
US20180197121A1 (en) System and Method for Structured Collaboration Using Reusable Business Components and Control Structures in an Asset Based Component Business Model Architecture
US11222073B2 (en) System and method of creating different relationships between various entities using a graph database
CN110135966B (en) Credit limit management method and system
KR102409754B1 (en) Customer-oriented artificial intelligence platform service providing system for mediation service of interior and construction work
CN109492856B (en) Service request processing method, device, computer equipment and storage medium
CN110019422A (en) Method, apparatus and storage medium based on block chain processing occupational information
CN109815259A (en) The configuration method of service field, device, computer equipment and computer storage medium in gateway
CN114971790A (en) Processing method, device and equipment for financing lease service and readable storage medium
CN110113373A (en) A kind of expired processing method and processing device of information
Ma et al. Dynamic Hybrid Multiple Attribute Decision‐Making Problem Based on Reference Point Adaptation
CN106648613B (en) A kind of FPAC function point approximate of the cost automatic generation method and device
CN114820137A (en) Product recommendation method and device, processor and electronic equipment
RU2656720C2 (en) Asset inventory system
CN107784403A (en) The interactive management method and device of Construction Party's task in engineering management
CN108346056A (en) The authentication method and device of group's situation
CN107909242B (en) Method, platform, terminal and storage medium based on online transaction product matching
US20220300889A1 (en) Work management apparatus, work management method, and recording medium
CN110033115A (en) Investigation result determines method, apparatus and equipment
CN111178726B (en) Resource allocation decision method, system, electronic equipment and storage medium
JP7241284B1 (en) Information processing device, information processing method and program
CN110197324A (en) A kind of method and device configuring the picking time

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