CN110489413A - A kind of storage of transaction record, querying method and system, equipment and storage medium - Google Patents

A kind of storage of transaction record, querying method and system, equipment and storage medium Download PDF

Info

Publication number
CN110489413A
CN110489413A CN201910633154.7A CN201910633154A CN110489413A CN 110489413 A CN110489413 A CN 110489413A CN 201910633154 A CN201910633154 A CN 201910633154A CN 110489413 A CN110489413 A CN 110489413A
Authority
CN
China
Prior art keywords
transaction
address
block
transaction record
record
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
CN201910633154.7A
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.)
Hangzhou Fuzamei Technology Co Ltd
Original Assignee
Hangzhou Fuzamei 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 Hangzhou Fuzamei Technology Co Ltd filed Critical Hangzhou Fuzamei Technology Co Ltd
Priority to CN201910633154.7A priority Critical patent/CN110489413A/en
Publication of CN110489413A publication Critical patent/CN110489413A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • 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/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/36Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes
    • G06Q20/367Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Finance (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of storage of transaction record, querying method and system, equipment and storage mediums, belong to block chain technical field.Obtain transaction address in trading in block, exchange block height, the index traded within a block, transaction record content, storage is in the local database.Sky is returned if do not inquired according to transaction record content corresponding with transaction address in transaction address inquiry local data base;If inquired, the corresponding transaction record of the transaction address and its content are returned.When account address is imported in wallet for existing scheme and opening Rescan function acquisition historical trading, very time-consuming, not friendly enough, the technical problem of customer experience difference;The present invention no longer needs to obtain historical trading by traversing all blocks, it is only necessary to whether have corresponding record by account address lookup database, greatly improve the efficiency of inquiry account historical Transaction Information.

Description

A kind of storage of transaction record, querying method and system, equipment and storage medium
Technical field
The present invention relates to block chain technical field more particularly to a kind of storages of transaction record, querying method and system, equipment And storage medium.
Background technique
Block chain wallet module monitors the add/del (adding or deleting operation) of block at present, filters and pays the bill from block The All Activity of packet account address is simultaneously saved in wallet database, the convenient historical trading that account is inquired by wallet.Work as handle When account account-C imported into B wallet from A wallet, B wallet only can begin listening for filtering account from oneself current block height The transaction of family account-C.If necessary to which the historical trading of account account-C is imported into B wallet, it is necessary to open The scanning function of Rescan.The function of Rescan is that block height 0 begins stepping through institute from the database of block chain node local There is the All Activity of block, the transaction for filtering out account account-C comes and is saved in wallet.When node save block very This traversal can be time-consuming when more, even if the account imported, there is no crossing to trade, Rescan can also be traversed from 0 block height All Activity, this is the time-consuming processing being not necessarily to;Therefore existing scheme imports account address in wallet and opens Rescan Very time-consuming when function obtains historical trading, not friendly enough, customer experience is poor.
Summary of the invention
1. technical problems to be solved by the inivention
In order to overcome the above technical problems, the present invention provides a kind of storage of transaction record, querying method and systems, equipment And storage medium, it is no longer necessary to obtain historical trading by traversing all blocks, it is only necessary to pass through account address lookup data Whether library has corresponding record, greatly improves the efficiency of inquiry account historical Transaction Information.
2. technical solution
To solve the above problems, technical solution provided by the invention are as follows:
In a first aspect, the invention proposes a kind of transaction record storage methods, comprising: obtain transaction in trading in block Address, exchange block height, the index traded within a block, transaction record content, storage in the local database.
Further improving is, the transaction address includes that transaction sends address and transaction acceptance address.
Further improving is, according to the sequence parsing transaction traded in block, transaction ground is obtained in trading in block Location, exchange block height, the index traded within a block, transaction record content is stored in the local of block chain node In database.
Second aspect, the invention proposes a kind of transaction record querying methods, comprising: inquires block chain according to transaction address Transaction record content corresponding with transaction address returns to sky if do not inquired in the local data base of node;If looked into It askes, then returns to the corresponding transaction record of the transaction address and its content;Wherein, it is deposited in the local data base of block chain node Contain the transaction address that obtains in trading in block, exchange block height, the index traded within a block, transaction note Record content.
Further improving is, receives the transaction record inquiry request for the transaction address that wallet module is sent, query result Back to wallet module.
The third aspect, the invention proposes a kind of storage of transaction record and inquiry systems, comprising:
Transaction record parsing module, for obtaining transaction address in trading in block, exchange block height, hand over Index easily within a block, transaction record content;Transaction record memory module is obtained for store transaction record parsing module Transaction address, exchange block height, the index traded within a block, transaction record content;Transaction record enquiry module, Transaction record content corresponding with transaction address in transaction record memory module is inquired according to transaction address, and query result is returned Return to wallet module.
Further improving is, the transaction address includes that transaction sends address and transaction acceptance address.
Further improving is that transaction record memory module is located locally in database.
Fourth aspect, the invention proposes a kind of equipment, the equipment includes: one or more processors;Memory is used In storing one or more programs, when one or more of programs are executed by one or more of processors, so that institute It states one or more processors and executes method as described above.
5th aspect, the invention proposes a kind of storage medium for being stored with computer program, which is held by processor The method as described in any of the above item is realized when row.
3. beneficial effect
Using technical solution provided by the invention, compared with prior art, have the following beneficial effects:
The present invention provides a kind of storage mode based on trading account address store transaction information, greatly improves inquiry The efficiency of account historical Transaction Information;After wallet imports an account address, it is no longer necessary to be obtained by traversing all blocks Historical trading, it is only necessary to whether have corresponding record by account address lookup database.
Detailed description of the invention
Fig. 1 is a kind of flow chart for transaction record storage method that the embodiment of the present invention 1 provides.
Fig. 2 is a kind of flow chart for transaction record querying method that the embodiment of the present invention 2 provides.
Fig. 3 is a kind of flow chart for transaction record querying method that mono- preferred embodiment of Fig. 2 provides.
Fig. 4 is the structural schematic diagram of a kind of transaction record storage and inquiry system that the embodiment of the present invention 3 provides.
Fig. 5 is a kind of flow chart for transaction record storage method that the embodiment of the present invention 5 provides.
Fig. 6 is the structural schematic diagram of a kind of transaction record storage and inquiry system that the embodiment of the present invention 5 provides.
Fig. 7 is a kind of flow chart for transaction record querying method that the embodiment of the present invention 5 provides.
Fig. 8 is a kind of device structure schematic diagram of the invention.
Specific embodiment
To further appreciate that the contents of the present invention, in conjunction with accompanying drawings and embodiments, the present invention is described in detail.
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to invention is illustrated only in attached drawing.
Heretofore described first, second equal words are convenient and be arranged in order to describe technical solution of the present invention, and There is no specific restriction effect, be to refer to, restriction effect is not constituted to technical solution of the present invention.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Embodiment 1
The present embodiment proposes a kind of transaction record storage method, is suitable for block chain node, as shown in Figure 1, comprising:
S101, obtain transaction address in trading in block, exchange block height, the rope traded within a block Draw, transaction record content;
S103, by transaction address, exchange block height, the index traded within a block stores in transaction record Storage is in the local data base of block chain node.
Further, index within a block of trading refers to the number of transaction within a block;The transaction address includes handing over Address and transaction acceptance address are easily sent, according to the sequence parsing transaction traded in block, transaction is obtained in trading in block Address, exchange block height, the index traded within a block, transaction record content is stored in the sheet of block chain node In ground database.
Embodiment 2
The present embodiment proposes a kind of transaction record querying method, is suitable for block chain node, as shown in Figure 2, comprising:
S201, transaction record content corresponding with transaction address in local data base is inquired according to transaction address;
S203, whether inquire, if do not inquired, return to sky;If inquired, the transaction address is returned Corresponding transaction record and its content;
Wherein, the transaction address obtained in trading in block, transaction are stored in the local data base of block chain node The block height at place, the index traded within a block, transaction record content.
As shown in figure 3, block chain node receives the transaction note for the transaction address that wallet module is sent before step S201 Inquiry request is recorded, after step S203, query result returns to wallet module.
Embodiment 3
A kind of transaction record of the present embodiment stores and inquiry system, as shown in Figure 4, comprising:
Transaction record parsing module, for obtaining transaction address in trading in block, exchange block height, hand over Index easily within a block, transaction record content;
Transaction record memory module, for store transaction record parsing module obtain transaction address, exchange area Block height, the index traded within a block, transaction record content;
Transaction record enquiry module inquires transaction record corresponding with transaction address in local data base according to transaction address Content, and query result is returned into wallet module.
Wherein, the transaction address includes that transaction sends address and transaction acceptance address;Transaction record memory module is located at In local data base.
Embodiment 4
Similar with embodiment 1-3, the present embodiment proposes the method and system of a kind of transaction record storage and inquiry, parses area Transmission or reception account address in block transaction, store corresponding Transaction Information by account address, conveniently by account Corresponding historical transactional information is inquired in location.
After a block enters block chain node, transaction record parsing module parses the transaction in block, according to account Address, exchange block height, transaction index within a block and every transaction content, thus orderly store transaction In the transaction record memory module of local data base.
When there is account address to import wallet, triggering obtains the historical transactional information of this account address.Wallet module is sent The historical transactional information of this account address is obtained, the transaction record that block chain node receives the transaction address that wallet module is sent is looked into Request is ask, according to transaction record content corresponding with account address in account address lookup transaction record memory module;
S203, whether inquire, if do not inquired, return to sky;If inquired, the transaction address is returned Corresponding transaction record and its content, are orderly sent to wallet module for historical trading in batches;
Wherein, it is stored in the transaction record memory module of the local data base of block chain node and is obtained in trading in block The transaction address taken, exchange block height, the index traded within a block, transaction record content.
Using the present embodiment technical solution wallet module import account address after obtain historical trading when, do not need from Block height 0 begins stepping through local data base, to greatly improve efficiency.
Embodiment 5
On the public chain Chain33 of the complicated U.S. 33 in Hangzhou, Chain33 be an exploitation threshold it is low, can plug, easily upgrading, divide The efficient block chain framework of layer, for developing public chain, alliance's chain and private chain etc..Bit-cell wallet is a to be opened based on Chain33 The client of hair, BTY node deployment, BTY may be implemented using bit-cell wallet, and environmental protection POS digs the functions such as mine online.
Bit-cell wallet, that is, wallet module are installed on the node of Chain33, can be accommodated in wallet module several Account address, i.e. transaction address;After transaction address imported into bit-cell wallet, acquisition all of the transaction address can be triggered and gone through History Transaction Information.Block height 0 begins stepping through the All Activity of all blocks from the database of block chain node local, filtering All historical transactional informations that the transaction address participates in out import wallet module, to check the historical trading of the transaction address Record, this mode obtain very time-consuming when historical trading, and not friendly enough, customer experience is poor.
Similar with embodiment 1-4, the present embodiment proposes the method and system of a kind of transaction record storage and inquiry, in this reality While applying the scheme traveling of example, Chain33 is normally carried out transaction creation, broadcast, is packaged block, block broadcast, block common recognition, Each Chain33 node stores the block after common recognition in the local database.
A kind of transaction record storage method, as shown in Figure 5, comprising:
All block H0-Hn of S301, Chain33 node traverses, n is integer, parses all friendships in all block H0-Hn Easily, obtain every transaction address Addr, block height Hi where every transaction (i=0,1,2,3,, n, n is integer), every The index Index of transaction within a block, every transaction record content Tran;
S303, Addr, Hi, Index, Tran are stored in the local database, form as shown in table 1 below is stored in In Chain33 node local data base.
Specifically, it is assumed that BTY-Addr1, BTY-Addr2, BTY-Addr3,, BTY-Addrz (z is integer) be The upper any z transaction address of Chain33;Block height be Hm (m is integer) block in include several transaction (this implementation Official holiday be equipped with x transaction, x is integer), be denoted as respectively: Tran1, Tran2, Tran3,, Tranx;Corresponding index are as follows: 1,2, 3,,,x;Transaction record content includes: amount, the timestamp, the data information carried of trading that transaction is related to, its being related to of trading His transaction address etc..BTY-Addr1 is that transaction sends address in transaction Tran1, and BTY-Addr2 is transaction acceptance address;Transaction BTY-Addr2 is that transaction sends address in Tran2, and BTY-Addr3, BTY-Addr4 and BTY-Addr5 are transaction acceptance address, BTY-Addr3, BTY-Addr4 are that transaction sends address in transaction Tran3, and BTY-Addr2, BTY-Addr5 and BTY-Addr7 are Transaction acceptance address.
Transaction record in 1 the present embodiment of table saves form
Transaction address Exchange block height The index of transaction within a block Transaction record content
... ... ... ...
BTY-Addr1 Hm 1 Tran1
BTY-Addr2 Hm 1 Tran1
BTY-Addr2 Hm 2 Tran2
BTY-Addr2 Hm 3 Tran3
BTY-Addr3 Hm 2 Tran2
BTY-Addr3 Hm 3 Tran3
BTY-Addr4 Hm 2 Tran2
BTY-Addr4 Hm 3 Tran3
BTY-Addr5 Hm 2 Tran2
BTY-Addr5 Hm 3 Tran3
BTY-Addr7 Hm 3 Tran3
... ... ... ...
Assuming that BTY-Addr1, BTY-Addr4, BTY-Addr7 and BTY-Addr101 are on bit-cell wallet BTY-wa33 Several transaction addresses in any four transaction address;So as transaction address BTY-Addr1, BTY-Addr4, BTY- After Addr7 and BTY-Addr101 is imported on bit-cell wallet BTY-wa33, as shown in Figure 7:
S401, bit-cell wallet BTY-wa33 can actively to Chain33 node send inquiry transaction address BTY-Addr1, The transaction record inquiry request of BTY-Addr4, BTY-Addr7 and BTY-Addr101;
The transaction record that S403, Chain33 node receive the above transaction address that bit-cell wallet BTY-wa33 is sent is looked into Ask request;
Whether S405, Chain33 node local data base store All Activity information, if it is not, to close on or its His Chain33 node issues the above transaction address transaction record of inquiry and obtains inquiry request, closes on or other Chain33 nodes receive Inquiry request continues step S407;If so, continuing step S407;
Chain33 node is inquired according to transaction address BTY-Addr1, BTY-Addr4, BTY-Addr7 and BTY-Addr101 Local data base, close on or other Chain33 node databases in transaction record content corresponding with transaction address;
S407, whether inquire, if do not inquired, empty, expression is returned to bit-cell wallet BTY-wa33;If It inquires, then returns to the corresponding transaction record of the transaction address and its content to bit-cell wallet BTY-wa33;
If local node does not store All Activity information, to close on or other Chain33 nodes issue inquiry ask It asks, closes on or other Chain33 nodes receive inquiry request, query result is sent to the section where bit-cell wallet BTY-wa33 On point, it is then introduced on bit-cell wallet BTY-wa33.
In this example, it is assumed that transaction address BTY-Addr101 does not have any transaction record, then final inquiry knot Fruit is as shown in table 2, will react on the interface of bit-cell wallet BTY-wa33, checks for user.Using the technology of the present embodiment Scheme does not need to begin stepping through local data from block height 0 when obtaining historical trading after wallet module imports account address Library, to greatly improve search efficiency.
The transaction record of table 2 BTY-Addr1, BTY-Addr4, BTY-Addr7 and BTY-Addr101
Transaction address Exchange block height The index of transaction within a block Transaction record content
BTY-Addr1 Hm 1 Tran1
BTY-Addr4 Hm 2 Tran2
BTY-Addr4 Hm 3 Tran3
BTY-Addr7 Hm 3 Tran3
BTY-Addr101 null null null
A kind of storage of transaction record and inquiry system, as shown in Figure 6, comprising:
Transaction record parsing module, for obtaining every transaction address Addr in trading in all block H0-Hn, every Exchange block height Hi, the index Index of every transaction within a block, every transaction records content Tran;
Transaction record memory module, the Addr, Hi, Index, Tran obtained for store transaction record parsing module;
Transaction record enquiry module, according to transaction address inquire local data base in transaction address BTY-Addr1, BTY- The corresponding transaction record content of Addr4, BTY-Addr7 and BTY-Addr101, and query result is returned into bit-cell wallet BTY-wa33。
Wherein, the transaction address includes that transaction sends address and transaction acceptance address;Transaction record memory module is located at In local data base.
Embodiment 6
A kind of equipment, the equipment include: one or more processors;Memory, for storing one or more programs, When one or more of programs are executed by one or more of processors, so that one or more of processors execute Method as described above.
A kind of storage medium being stored with computer program realizes such as above embodiments 1- when the program is executed by processor Method described in any one of 5 technical solutions.
Fig. 8 is a kind of structural schematic diagram for equipment that one embodiment of the invention provides.
As shown in figure 8, present invention also provides a kind of equipment 500, including one or more centres as on the other hand Unit (CPU) 501 is managed, can be added according to the program being stored in read-only memory (ROM) 502 or from storage section 508 The program that is downloaded in random access storage device (RAM) 503 and execute various movements appropriate and processing.In RAM503, also deposit It contains equipment 500 and operates required various programs and data.CPU501, ROM502 and RAM503 pass through the phase each other of bus 504 Even.Input/output (I/O) interface 505 is also connected to bus 504.
I/O interface 505 is connected to lower component: the importation 506 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 508 including hard disk etc.; And the communications portion 509 of the network interface card including LAN card, modem etc..Communications portion 509 via such as because The network of spy's net executes communication process.Driver 510 is also connected to I/O interface 505 as needed.Detachable media 511, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 510, in order to read from thereon Computer program be mounted into storage section 508 as needed.
Particularly, according to disclosed embodiments, the method for any of the above-described embodiment description may be implemented as counting Calculation machine software program.For example, disclosed embodiments include a kind of computer program product comprising be tangibly embodied in Computer program on machine readable media, the computer program include the method for executing any of the above-described embodiment description Program code.In such embodiments, which can be downloaded and be pacified from network by communications portion 509 Dress, and/or be mounted from detachable media 511.
As another aspect, present invention also provides a kind of computer readable storage medium, the computer-readable storage mediums Matter can be computer readable storage medium included in the device of above-described embodiment;It is also possible to individualism, it is unassembled Enter the computer readable storage medium in equipment.Computer-readable recording medium storage has one or more than one program, should Program is used to execute by one or more than one processor is described in the present processes.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, this is depending on related function.Also it wants It is noted that the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, Ke Yitong The dedicated hardware based system of functions or operations as defined in executing is crossed to realize, or by specialized hardware and can be calculated The combination of machine instruction is realized.
Being described in the embodiment of the present application involved unit or module can be realized by way of software, can also be with It is realized by way of hardware.Described unit or module also can be set in the processor, for example, each unit can To be the software program being arranged in computer or intelligent movable equipment, it is also possible to the hardware device being separately configured.Wherein, this The title of a little units or module does not constitute the restriction to the unit or module itself under certain conditions.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from the application design, appointed by above-mentioned technical characteristic or its equivalent feature Other technical solutions of meaning combination and formation.Such as features described above and (but being not limited to) disclosed herein have similar functions Technical characteristic replaced mutually and the technical solution that is formed.

Claims (10)

1. a kind of transaction record storage method characterized by comprising obtain transaction address, exchange in trading in block Block height, the index traded within a block, transaction record content is stored in the local data base of block chain node.
2. the method according to claim 1, wherein the transaction address includes that transaction transmission address and transaction connect Receive address.
3. the method according to claim 1, wherein according to the sequence parsing transaction traded in block, from block Obtain transaction address in middle transaction, exchange block height, the index traded within a block, transaction record content, storage In the local data base of block chain node.
4. a kind of transaction record querying method characterized by comprising inquire the local number of block chain link point according to transaction address Sky is returned if do not inquired according to transaction record content corresponding with transaction address in library;If inquired, return The corresponding transaction record of the transaction address and its content;
Wherein, the transaction address obtained in trading in block is stored in the local data base of block chain node, exchange exists Block height, the index traded within a block, transaction record content.
5. according to the method described in claim 4, it is characterized in that, receiving the transaction record for the transaction address that wallet module is sent Inquiry request, query result return to wallet module.
6. a kind of transaction record storage and inquiry system characterized by comprising
Transaction record parsing module, for obtaining transaction address in trading in block, exchange block height, transaction exists Index in block, transaction record content;
Transaction record memory module, for the transaction address that store transaction record parsing module obtains, exchange block it is high Degree, the index traded within a block, transaction record content;
Transaction record enquiry module is inquired transaction corresponding with transaction address in transaction record memory module according to transaction address and is remembered Content is recorded, and query result is returned into wallet module.
7. system according to claim 6, which is characterized in that the transaction address includes that transaction transmission address and transaction connect Receive address.
8. according to the method described in claim 6, it is characterized in that, transaction record memory module is located at the local of block chain node In database.
9. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors Execute method according to any one of claims 1 to 5.
10. a kind of storage medium for being stored with computer program, which is characterized in that realize when the program is executed by processor as weighed Benefit requires method described in any one of 1-5.
CN201910633154.7A 2019-07-15 2019-07-15 A kind of storage of transaction record, querying method and system, equipment and storage medium Pending CN110489413A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910633154.7A CN110489413A (en) 2019-07-15 2019-07-15 A kind of storage of transaction record, querying method and system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910633154.7A CN110489413A (en) 2019-07-15 2019-07-15 A kind of storage of transaction record, querying method and system, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110489413A true CN110489413A (en) 2019-11-22

Family

ID=68546071

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910633154.7A Pending CN110489413A (en) 2019-07-15 2019-07-15 A kind of storage of transaction record, querying method and system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110489413A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159300A (en) * 2019-12-31 2020-05-15 中国银行股份有限公司 Data processing method and device based on block chain
CN111797168A (en) * 2020-07-09 2020-10-20 杭州复杂美科技有限公司 Block parallel processing method, equipment and storage medium
CN111813788A (en) * 2020-05-20 2020-10-23 北京金山云网络技术有限公司 Information query method and device and information synchronization method and device
CN112291358A (en) * 2020-11-02 2021-01-29 暗链科技(深圳)有限公司 Data association method and system of segmented block chain
CN112732720A (en) * 2021-01-11 2021-04-30 杭州复杂美科技有限公司 Data storage method, data query method, computer device and storage medium
CN113079135A (en) * 2021-03-19 2021-07-06 中山大学 Block chain phishing fraud address detection method, device, terminal and medium
CN113379542A (en) * 2021-05-28 2021-09-10 中邮信息科技(北京)有限公司 Query method, device, medium and electronic equipment for block chain transaction

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108304475A (en) * 2017-12-28 2018-07-20 北京比特大陆科技有限公司 Data query method, apparatus and electronic equipment
CN108596609A (en) * 2018-04-28 2018-09-28 比飞力(深圳)科技有限公司 A kind of method and device of digital wallet transaction
US20190026829A1 (en) * 2017-07-24 2019-01-24 Denso Corporation Trading system, provider terminal, user terminal, and node
CN109710627A (en) * 2018-12-29 2019-05-03 中国银联股份有限公司 A kind of Transaction Inquiries method and device based on block chain network
CN109741060A (en) * 2018-12-29 2019-05-10 北京金山安全软件有限公司 Information inquiry system, method, device, electronic equipment and storage medium
CN109919691A (en) * 2019-02-27 2019-06-21 腾讯科技(深圳)有限公司 A kind of system of data processing, method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190026829A1 (en) * 2017-07-24 2019-01-24 Denso Corporation Trading system, provider terminal, user terminal, and node
CN108304475A (en) * 2017-12-28 2018-07-20 北京比特大陆科技有限公司 Data query method, apparatus and electronic equipment
CN108596609A (en) * 2018-04-28 2018-09-28 比飞力(深圳)科技有限公司 A kind of method and device of digital wallet transaction
CN109710627A (en) * 2018-12-29 2019-05-03 中国银联股份有限公司 A kind of Transaction Inquiries method and device based on block chain network
CN109741060A (en) * 2018-12-29 2019-05-10 北京金山安全软件有限公司 Information inquiry system, method, device, electronic equipment and storage medium
CN109919691A (en) * 2019-02-27 2019-06-21 腾讯科技(深圳)有限公司 A kind of system of data processing, method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159300A (en) * 2019-12-31 2020-05-15 中国银行股份有限公司 Data processing method and device based on block chain
CN111813788A (en) * 2020-05-20 2020-10-23 北京金山云网络技术有限公司 Information query method and device and information synchronization method and device
CN111797168A (en) * 2020-07-09 2020-10-20 杭州复杂美科技有限公司 Block parallel processing method, equipment and storage medium
CN112291358A (en) * 2020-11-02 2021-01-29 暗链科技(深圳)有限公司 Data association method and system of segmented block chain
CN112732720A (en) * 2021-01-11 2021-04-30 杭州复杂美科技有限公司 Data storage method, data query method, computer device and storage medium
CN112732720B (en) * 2021-01-11 2022-05-24 杭州复杂美科技有限公司 Data storage method, data query method, computer device and storage medium
CN113079135A (en) * 2021-03-19 2021-07-06 中山大学 Block chain phishing fraud address detection method, device, terminal and medium
CN113079135B (en) * 2021-03-19 2022-03-01 中山大学 Block chain phishing fraud address detection method, device, terminal and medium
CN113379542A (en) * 2021-05-28 2021-09-10 中邮信息科技(北京)有限公司 Query method, device, medium and electronic equipment for block chain transaction
CN113379542B (en) * 2021-05-28 2024-01-09 中邮信息科技(北京)有限公司 Block chain transaction query method, device, medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN110489413A (en) A kind of storage of transaction record, querying method and system, equipment and storage medium
CN109359222A (en) Date storage method and system, equipment and storage medium
CN109086325A (en) Data processing method and device based on block chain
CN109933592A (en) Date storage method, data rewind method, equipment and storage medium
CN109977274A (en) A kind of data query and verification method, system, equipment and storage medium
US20070174160A1 (en) Hierarchical transaction filtering
US20120054182A1 (en) Systems and methods for massive structured data management over cloud aware distributed file system
US20150363465A1 (en) Method and system for processing queries over datasets stored using hierarchical data structures
US7853503B2 (en) Transaction allocation
CN109587271A (en) Main chain parallel chain architecture system and block synchronous method, equipment and storage medium
CN109947668A (en) The method and apparatus of storing data
CN110019287B (en) Method and device for executing Structured Query Language (SQL) instruction
CN110113408A (en) A kind of block synchronous method, equipment and storage medium
CN109145188A (en) For searching for the method, equipment and computer readable storage medium of block chain data
CN109558421A (en) Data processing method, system, device and storage medium based on caching
CN109033113A (en) The management method and device of data warehouse and Data Mart
CN113196231A (en) Techniques for decoupling access to infrastructure models
CN109684369A (en) Information updating method and device
CN110287196A (en) Block storage method, parallel chain transaction acquisition methods, equipment and storage medium
CN107392684A (en) A kind of method and related system for obtaining electronic invoice new line information
CN110442580A (en) A kind of block chain state date storage method, equipment and storage medium
CN110019310A (en) Data processing method and system, computer system, computer readable storage medium
CN110221829A (en) Information processing method and its system, computer system and computer-readable medium
CN109918429A (en) Spark data processing method and system based on Redis
CN110175176A (en) A kind of KV configuration method for database, querying method, equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191122

RJ01 Rejection of invention patent application after publication