CN110334136A - A kind of method of display block chain data, block chain browser and user node - Google Patents

A kind of method of display block chain data, block chain browser and user node Download PDF

Info

Publication number
CN110334136A
CN110334136A CN201910614732.2A CN201910614732A CN110334136A CN 110334136 A CN110334136 A CN 110334136A CN 201910614732 A CN201910614732 A CN 201910614732A CN 110334136 A CN110334136 A CN 110334136A
Authority
CN
China
Prior art keywords
data
transaction
block chain
address
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
CN201910614732.2A
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.)
Shenzhen Bingde Block Chain Technology Co Ltd
Original Assignee
Shenzhen Bingde Block Chain 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 Shenzhen Bingde Block Chain Technology Co Ltd filed Critical Shenzhen Bingde Block Chain Technology Co Ltd
Priority to CN201910614732.2A priority Critical patent/CN110334136A/en
Publication of CN110334136A publication Critical patent/CN110334136A/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/24Querying
    • G06F16/245Query processing
    • 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

Abstract

The invention discloses a kind of method of display block chain data, block chain browser and user node, method includes: to receive the block chain request of data of user, obtains the type of the block chain request of data of user;If by transaction hash query, then transaction data table is inquired, obtains Transaction Information and carry out illegal contents filtering, show filtered Transaction Information;If by address lookup, then call address inquires API, inquiry database obtains the address and corresponds to All Activity Hash, further according to transaction hash query transaction data table, it obtains address information and the corresponding transaction List Table information in address and carries out illegal contents filtering, show filtered address information and the corresponding transaction List Table information of address information.The embodiment of the present invention may be implemented to support Multiple Currencies, various dimensions inquiry, facilitate the Transaction Information recorded on common user query block and block information, inquires Transaction Information and block information carries out invalid data filtering, improve the safety of block chain supervision aspect.

Description

A kind of method of display block chain data, block chain browser and user node
Technical field
The present invention relates to block chain technical field more particularly to a kind of methods of display block chain data, block chain browsing Device and user node.
Background technique
Block chain is the novel of the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm Application model is a kind of a kind of chained record knot for being sequentially in time combined into data block in such a way that sequence is connected Structure, and what is guaranteed in a manner of cryptography can not distort and can not forge, and there is decentralization, opening, information can not distort Feature can be widely applied to several scenes.
Existing block chain technology it is professional too strong, user can not get information about block chain node, area when in use Situations such as block number evidence and state change, to limit the further genralrlization application of block chain technology.
Therefore, the existing technology needs to be improved and developed.
Summary of the invention
In view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of method of display block chain data, Block chain browser and user node, it is intended to solve the professional too strong of block chain technology in the prior art, user is when in use Situations such as block chain node, block data and state change can not be got information about, thus limit block chain technology into one The problem of step promotes and applies.
Technical scheme is as follows:
A kind of method of display block chain data, which comprises
The block chain request of data for receiving user, obtains the type of the block chain request of data of user;
If the type of the block chain request of data of user is to be inquired transaction data table by transaction hash query, obtained and handed over Easy information carries out illegal contents filtering to Transaction Information, shows filtered Transaction Information;
If the type of the block chain request of data of user is by address lookup, call address inquires API, inquires database It obtains the address and corresponds to All Activity Hash, further according to transaction hash query transaction data table, obtain address information and address pair The transaction List Table information answered carries out illegal contents filtering, display to address information and the corresponding transaction List Table information of address information Filtered address information and the corresponding transaction List Table information of address information.
Optionally, the block chain request of data for receiving user, after the type of block chain request of data for obtaining user, Further include:
If the block chain request of data type of user is to support currency type inquiry, calls inquiry to support currency type interface, call It enumerates class and obtains the currency type supported, show the currency type of support.
Optionally, the block chain request of data for receiving user, before the type of block chain request of data for obtaining user, Further include:
In advance from publicly-owned chain network node real-time synchronization block data, and by after synchronous data structured, it is stored in number According to library.
Optionally, the currency type type is BTC series currency type,
It is described in advance from publicly-owned chain network node real-time synchronization block data, and by after synchronous data structured, storage In database, comprising:
The RPC interface for calling the publicly-owned chain node of BTC series currency type in advance, obtains the high block data of block, block counts According to the All Activity data including the block relative superiority or inferiority;
Parse the All Activity data that a block includes, the transaction data includes that block is high, be packaged the time, trading volume, Transmission address, reception address, miner are taken, size of trading;
According to sending address and receiving address, account balance is calculated according to the trading volume of every transaction;
The block data of structuring is obtained, transaction data, address is sent and receives address, is stored in using thread pool batch Database.
Optionally, the currency type type is ETH series currency type,
It is described in advance from publicly-owned chain network node real-time synchronization block data, and by after synchronous data structured, storage In database, comprising:
The RPC interface for calling the publicly-owned chain node of ETH series currency type, obtains the high block data of block, block data packet Include the All Activity data of the block relative superiority or inferiority;
Parse the All Activity data that a block includes, the transaction data includes that block is high, be packaged the time, trading volume, Transmission address, reception address, miner are taken, the step count information for the actual motion that carries on a deal on the network of ether mill;
According to sending address and receiving address, it is recorded on the network of ether mill and carries on a deal, each step needs to consume ETH quantity;
The block data of structuring is obtained, transaction data, address is sent and receives address, is stored in using thread pool batch Database.
Optionally, described that illegal contents filtering is carried out to Transaction Information, show filtered Transaction Information, comprising:
Transaction Information and user node type are obtained, according to filtering rule corresponding with the user node type, to institute It states Transaction Information to be filtered, filters out illegal contents;
Show filtered Transaction Information.
Optionally, the block chain includes multiple sub-block chains, and each sub-block chain is identified with block chain,
It is described that illegal contents filtering is carried out to Transaction Information, show filtered Transaction Information, comprising:
The sub-block chain mark where Transaction Information and Transaction Information is obtained, is identified according to the sub-block chain corresponding Filtering rule is filtered the Transaction Information, filters out illegal contents;
Show filtered Transaction Information.
Further embodiment of this invention additionally provides a kind of block chain browser, and the block chain browser includes:
Block chain request of data receiving unit obtains the block chain of user for receiving the block chain request of data of user The type of request of data;
First data acquisition and display unit, if the type of the block chain request of data for user is to look by transaction Hash It askes, then inquires transaction data table, obtain Transaction Information, illegal contents filtering is carried out to Transaction Information, shows filtered transaction Information;
Second data acquisition and display unit, if the type of the block chain request of data for user be by address lookup, Then call address inquires API, and inquiry database obtains the address and corresponds to All Activity Hash, further according to transaction hash query transaction Tables of data obtains address information and the corresponding transaction List Table information in address, transaction column corresponding to address information and address information Table information carries out illegal contents filtering, shows filtered address information and the corresponding transaction List Table information of address information.
Another embodiment of the present invention provides a kind of user node, and the user node includes at least one processor; And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one A processor executes, so that the method that at least one described processor is able to carry out above-mentioned display block chain data.
Another embodiment of the present invention additionally provides a kind of non-volatile computer readable storage medium storing program for executing, described non-volatile Computer-readable recording medium storage has computer executable instructions, and the computer executable instructions are by one or more processors When execution, the method that may make one or more of processors to execute above-mentioned display block chain data.
The utility model has the advantages that the invention discloses a kind of method of display block chain data, block chain browser and user node, Compared with the prior art, the embodiment of the present invention may be implemented to support Multiple Currencies, various dimensions inquiry, facilitate common user query block The Transaction Information and block information of upper record, inquire Transaction Information and block information carries out invalid data filtering, improve block The safety of chain supervision aspect.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is a kind of flow chart of the method preferred embodiment of display block chain data of the present invention;
Fig. 2 is a kind of module diagram of the preferred embodiment of block chain browser of the present invention;
Fig. 3 is a kind of hardware structural diagram of the preferred embodiment of user node of the present invention.
Specific embodiment
To make the purpose of the present invention, technical solution and effect clearer, clear and definite, below to the present invention further specifically It is bright.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.Below The embodiment of the present invention is introduced in conjunction with attached drawing.
Block chain technology is also known as distributed account book, is a kind of distributed interconnection database technology.Based on block chain skill The network of art building can be referred to as block chain network, and block chain network includes multiple block chain nodes, and each node is corresponding extremely Lack a block chain, contains at least one block on each block chain.Block chain technology has decentralization, open and clear, no It can distort, the features such as trusted, therefore, block chain technical applications are more and more extensive.
Based on this, the embodiment of the invention provides a kind of methods of display block chain data.Referring to Fig. 1, Fig. 1 is this hair A kind of flow chart of the method preferred embodiment of bright display block chain data.As shown in Figure 1, itself comprising steps of
Step S100, the block chain request of data for receiving user, obtains the type of the block chain request of data of user;
If step S200, the type of the block chain request of data of user is to inquire transaction data by transaction hash query Table obtains Transaction Information, carries out illegal contents filtering to Transaction Information, shows filtered Transaction Information;
If step S300, the type of the block chain request of data of user is by address lookup, call address inquires API, Inquiry database obtains the address and corresponds to All Activity Hash, further according to transaction hash query transaction data table, obtains address letter Transaction List Table information corresponding with address is ceased, illegal contents are carried out to address information and the corresponding transaction List Table information of address information Filtering, shows filtered address information and the corresponding transaction List Table information of address information.
When it is implemented, display block chain data in the embodiment of the present invention is shown based on block chain browser Show.
Query interface is set on block chain browser, and query interface receives the block chain request of data of user, obtains user Block chain request of data type, wherein interface type is generally api interface.
The type of the block chain request of data of user is obtained, if user is by transaction hash query, browser background service Device inquires transaction data table, returns to the Transaction Information in transaction data table, carries out illegal contents filtering to Transaction Information, showed Transaction Information after filter;
If user is by address lookup, call address inquires API, the corresponding database of Query Browser, from database It obtains address and corresponds to All Activity Hash, further according to transaction hash query transaction data table, browser background server returns to ground Location information and the corresponding nearest transaction List Table information of address information.Browser is to address information and the corresponding transaction of address information List information carries out illegal contents filtering, shows filtered address information and the corresponding transaction List Table information of address information.
In further carrying out example, the block chain request of data of user is received, obtains the block chain request of data of user Type after, further includes:
If the block chain request of data type of user is to support currency type inquiry, calls inquiry to support currency type interface, call It enumerates class and obtains the currency type supported, show the currency type of support.
When it is implemented, the currency type of the support of the block chain browser in the embodiment of the present invention includes but is not limited to bit coin BTC, bit coin cash BCH, Lay spy coin LTC, ether mill ETH and ether mill classics ETC currency type.If the block chain data of user are asked Type is sought to support currency type to inquire, then inquiry is called to support currency type interface, calls and enumerates the currency type that class obtains support, display is supported Currency type.
Further, the block chain request of data for receiving user, before the type of block chain request of data for obtaining user, also Include:
In advance from publicly-owned chain network node real-time synchronization block data, and by after synchronous data structured, it is stored in number According to library.
When it is implemented, being previously stored with block data in database.Database is real from publicly-owned chain network node in advance When synchronous block data, obtain after synchronous data carry out structuring processing, storage in the database, is used for user query. Block submodule after structuring includes all transaction data of specific piece relative superiority or inferiority.Transaction data includes but is not limited to block height, beats Time, trading volume are wrapped, address is sent and receives address.
Further, bit coin BTC, bit coin cash BCH, Lay spy's coin LTC can be described as BTC series currency type, currency type type For BTC series currency type,
It is described in advance from publicly-owned chain network node real-time synchronization block data, and by after synchronous data structured, storage In database, comprising:
The RPC interface for calling the publicly-owned chain node of BTC series currency type in advance, obtains the high block data of block, block counts According to the All Activity data including the block relative superiority or inferiority;
Parse the All Activity data that a block includes, the transaction data includes that block is high, be packaged the time, trading volume, Transmission address, reception address, miner are taken, size of trading;
According to sending address and receiving address, account balance is calculated according to the trading volume of every transaction;
The block data of structuring is obtained, transaction data, address is sent and receives address, is stored in using thread pool batch Database.
When it is implemented, calling the RPC interface of the publicly-owned chain of BTC series currency type when currency type type is BTC series currency type, obtaining The block data for taking a block high, block data include the All Activity data of the block relative superiority or inferiority;Parse the institute that a block includes There is transaction data, transaction data includes but is not limited to block height, is packaged the time, and trading volume, transmission address, reception address, miner are taken, And the transaction size of BTC series, according to the transmission address parsed in Transaction Information and address is received, according to every transaction Trading volume calculate account balance, by the block data, Transaction Information, address information of above structure, utilize thread pool batch It is stored in database.
Further, ether mill ETH and ether mill classics ETC can be denoted as ETH series currency type, when currency type type is ETH system Column currency type,
It is described in advance from publicly-owned chain network node real-time synchronization block data, and by after synchronous data structured, storage In database, comprising:
The RPC interface for calling the publicly-owned chain node of ETH series currency type, obtains the high block data of block, block data packet Include the All Activity data of the block relative superiority or inferiority;
Parse the All Activity data that a block includes, the transaction data includes that block is high, be packaged the time, trading volume, Transmission address, reception address, miner are taken, the step count information for the actual motion that carries on a deal on the network of ether mill;
According to sending address and receiving address, it is recorded on the network of ether mill and carries on a deal, each step needs to consume ETH quantity;
The block data of structuring is obtained, transaction data, address is sent and receives address, is stored in using thread pool batch Database.
When it is implemented, calling the RPC interface of the publicly-owned chain of ETH series currency type when currency type type is ETH series currency type, obtaining The block data for taking a port high, block data include the All Activity data of the block relative superiority or inferiority;Parse the institute that a block includes There is transaction data, transaction data includes but is not limited to block height, is packaged the time, and trading volume, transmission address, reception address, miner are taken, And ETH series currency type carries on a deal the step count information of actual motion on the network of ether mill, according in Transaction Information The transmission address and reception address parsed, is recorded on the network of ether mill and carries on a deal, each step needs the ETH consumed The block data, Transaction Information, address information of above structure are utilized thread pool batch deposit database by quantity.
Further, illegal contents filtering is carried out to Transaction Information, shows filtered Transaction Information, comprising:
Transaction Information and user node type are obtained, according to filtering rule corresponding with the user node type, to institute It states Transaction Information to be filtered, filters out illegal contents;
Show filtered Transaction Information.
When it is implemented, characteristic can not be distorted due to block chain, it, will if someone propagates illegal contents by block chain It will affect the supervision of block chain.Therefore the content shown to block browser, needs to be filtered in advance.Filtering is based on certain Filtering rule.For example, obtaining user node type, corresponding filtering rule is selected according to user node type, according to filtering Rule carries out illegal contents filtering to Transaction Information, and shows filtered Transaction Information.
Wherein filtering rule includes illegal word list, and the illegal contents packet in the Transaction Information is filtered out according to filtering rule It includes: each Transaction Information in the Transaction Information is segmented;One by one by word illegal in each word separated and illegal word list It compares, as long as consistent with one in illegal word list illegal word, filters out the illegal contents comprising the word separated.
In some other embodiments, filtering rule includes illegal word list, filters out the transaction according to filtering rule Illegal contents in information specifically:
By each Transaction Information participle in the Transaction Information;Synonym table is searched, determines each word separated Synonym;Whether for each word separated, determining has at least one synonym and illegal word list in the synonym of the word In an illegal word it is consistent, if so, then filtering out the illegal contents comprising the word separated.
It includes any one of following for filtering out the illegal contents comprising the word separated: the illegal word;Where the illegal word Sentence;Section where the illegal word;Transaction Information where the illegal word;The illegal word list further includes and illegal word pair That answers filters out grade;The illegal contents comprising the illegal word filter out grade based on described in and determine.
Further, block chain includes multiple sub-block chains, and each sub-block chain is identified with block chain,
It is described that illegal contents filtering is carried out to Transaction Information, show filtered Transaction Information, comprising:
The sub-block chain mark where Transaction Information and Transaction Information is obtained, is identified according to the sub-block chain corresponding Filtering rule is filtered the Transaction Information, filters out illegal contents;
Show filtered Transaction Information.
When it is implemented, can also pass through Transaction Information and sub-block chain since each block chain includes multiple sub-block chains Mark identifies corresponding filtering rule according to sub-block chain, is filtered according to filtering rule to Transaction Information, filtered out in illegal Hold, Transaction Information after display filtering.
Specifically, when the block chain request of data type of user is by address lookup, to address information and address information pair It, can also be by obtaining filtering rule based on sub-block chain mark or passing through user when the transaction List Table answered carries out illegal contents filtering Node identification obtains corresponding filtering rule carries out illegal contents and filters out, and filter method and above-mentioned is filtered to Transaction Information Method is consistent, and details are not described herein again.
It should be noted that not necessarily there is centainly successive between above steps in above-mentioned each embodiment Sequentially, those of ordinary skill in the art, according to an embodiment of the present invention to describe to be appreciated that in different embodiments, above-mentioned each step Suddenly there can be the different sequences that executes, also i.e., it is possible to execute parallel, change can exchange execution etc..
Another embodiment of the present invention provides a kind of block chain browsers, as shown in Fig. 2, block chain browser includes:
Block chain request of data receiving unit 110 obtains the block of user for receiving the block chain request of data of user The type of chain request of data;
First data acquisition and display unit 120, if the type of the block chain request of data for user is to breathe out by transaction Uncommon inquiry, then inquire transaction data table, obtains Transaction Information, carries out illegal contents filtering to Transaction Information, shows filtered Transaction Information;
Second data acquisition and display unit 130, if the type of the block chain request of data for user is to look by address It askes, then call address inquires API, and inquiry database obtains the address and corresponds to All Activity Hash, further according to transaction hash query Transaction data table obtains address information and the corresponding transaction List Table information in address, to address information and the corresponding friendship of address information Easy list information carries out illegal contents filtering, shows filtered address information and the corresponding transaction List Table information of address information.
When it is implemented, display block chain data in the embodiment of the present invention is shown based on block chain browser Show.
Query interface is set on block chain browser, and query interface receives the block chain request of data of user, obtains user Block chain request of data type, wherein interface type is generally api interface.
The type of the block chain request of data of user is obtained, if user is by transaction hash query, browser background service Device inquires transaction data table, returns to the Transaction Information in transaction data table, carries out illegal contents filtering to Transaction Information, showed Transaction Information after filter;
If user is by address lookup, call address inquires API, the corresponding database of Query Browser, from database It obtains address and corresponds to All Activity Hash, further according to transaction hash query transaction data table, browser background server returns to ground Location information and the corresponding nearest transaction List Table information of address information.Browser is to address information and the corresponding transaction of address information List information carries out illegal contents filtering, shows filtered address information and the corresponding transaction List Table information of address information.
In some embodiments, block chain browser further includes third data acquisition and display unit, third data acquisition If being also used to the block chain request of data type of user with display unit to support currency type inquiry, call inquiry that currency type is supported to connect Mouthful, it calls and enumerates the currency type that class obtains support, show the currency type of support.
In some embodiments, block chain browser further includes pre- memory cell, for real from publicly-owned chain network node in advance When synchronous block data be stored in database and by after synchronous data structured.
It further carries out in example, currency type type is BTC series currency type, and pre- memory cell is also used to call BTC serial in advance The RPC interface of the publicly-owned chain node of currency type, obtains the high block data of block, and block data includes the All Activity of the block relative superiority or inferiority Data;
Parse the All Activity data that a block includes, the transaction data includes that block is high, be packaged the time, trading volume, Transmission address, reception address, miner are taken, size of trading;
According to sending address and receiving address, account balance is calculated according to the trading volume of every transaction;
The block data of structuring is obtained, transaction data, address is sent and receives address, is stored in using thread pool batch Database.
In some other embodiments, currency type type is ETH series currency type, and pre- memory cell is also used to call ETH serial The RPC interface of the publicly-owned chain node of currency type, obtains the high block data of block, and block data includes the All Activity of the block relative superiority or inferiority Data;
Parse the All Activity data that a block includes, the transaction data includes that block is high, be packaged the time, trading volume, Transmission address, reception address, miner are taken, the step count information for the actual motion that carries on a deal on the network of ether mill;
According to sending address and receiving address, it is recorded on the network of ether mill and carries on a deal, each step needs to consume ETH quantity;
The block data of structuring is obtained, transaction data, address is sent and receives address, is stored in using thread pool batch Database.
Further, the first data acquisition is specifically used for display unit 120:
Transaction Information and user node type are obtained, according to filtering rule corresponding with the user node type, to institute It states Transaction Information to be filtered, filters out illegal contents;
Show filtered Transaction Information.
In other examples, block chain includes multiple sub-block chains, and each sub-block chain is identified with block chain, the One data acquisition is also used to display unit 120:
The sub-block chain mark where Transaction Information and Transaction Information is obtained, is identified according to the sub-block chain corresponding Filtering rule is filtered the Transaction Information, filters out illegal contents;
Show filtered Transaction Information.
Another embodiment of the present invention provides a kind of user node, user node is showed in the form of general calculating equipment. As shown in figure 3, user node 20 includes:
One or more processors 210 and memory 220 are introduced in Fig. 3 by taking a processor 210 as an example, are located Reason device 210 can be connected with memory 220 by bus or other modes, in Fig. 3 for being connected by bus.
Processor 210 is for completing, the various control logics of user node 20, can be general processor, number letter Number processor (DSP), specific integrated circuit (ASIC), field programmable gate array (FPGA), single-chip microcontroller, ARM (Acorn RISC ) or other programmable logic device, discrete gate or transistor logic, discrete hardware component or these components Machine Any combination.In addition, processor 210 can also be any conventional processors, microprocessor or state machine.Processor 210 can also To be implemented as calculating the combination of equipment, for example, the combination of DSP and microprocessor, multi-microprocessor, one or more micro- places Manage device combination DSP core or any other this configuration.
Memory 220 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey Sequence, non-volatile computer executable program and module, such as the method pair of the display block chain data in the embodiment of the present invention The program instruction answered.Non-volatile software program, instruction and the list that processor 210 is stored in memory 220 by operation Member, thereby executing the various function application and data processing of user node 20, i.e. display in realization above method embodiment The method of block chain data.
Memory 220 may include storing program area and storage data area, wherein storing program area can store operation user Application program required for node, at least one function;Storage data area can store to be used according to user node 20 and be created Data etc..In addition, memory 220 may include high-speed random access memory, it can also include nonvolatile memory, such as At least one disk memory, flush memory device or other non-volatile solid state memory parts.In some embodiments, it stores Optional device 220 includes the memory remotely located relative to processor 210, these remote memories can be by being connected to the network extremely User node 20.The example of above-mentioned network include but is not limited to internet, intranet, local area network, mobile radio communication and its Combination.
One or more unit is stored in memory 220, when being executed by one or more processor 210, is held The method of display block chain data in the above-mentioned any means embodiment of row, for example, executing the method step in Fig. 1 described above Rapid S100 to step S300.
The embodiment of the invention provides a kind of non-volatile computer readable storage medium storing program for executing, computer readable storage medium is deposited Computer executable instructions are contained, which is executed by one or more processors, for example, executing above retouch Method and step S100 to step S300 in the Fig. 1 stated.
As an example, non-volatile memory medium can include that read-only memory (ROM), programming ROM (PROM), electricity can Programming ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory can include as external high speed The random access memory (RAM) of buffer memory.By illustrate it is beautiful unrestricted, RAM can with such as synchronous random access memory (SRAM), Dynamic ram, (DRAM), synchronous dram (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), many shapes of Synchl ink DRAM (SLDRAM) and directly Rambus (Lan Basi) RAM (DRRAM) etc Formula obtains.The disclosed memory assembly or memory of operating environment described herein is intended to include these and/or appoints What he is suitble to one or more of the memory of type.
Another embodiment of the invention provides a kind of computer program product, and computer program product includes being stored in Computer program on non-volatile computer readable storage medium storing program for executing, computer program include program instruction, when program instruction quilt When processor executes, make the method for the display block chain data of the processor execution above method embodiment.For example, execute with Method and step S100 to step S300 in Fig. 1 of upper description.
Embodiments described above is only schematical, wherein as illustrated by the separation member unit can be or It may not be and be physically separated, component shown as a unit may or may not be physical unit, it can It is in one place, or may be distributed over multiple network units.Can select according to actual needs part therein or Person's whole module achieves the purpose of the solution of this embodiment.
By the description of above embodiment, those skilled in the art can be understood that each embodiment can be by Software adds the mode of general hardware platform to realize, naturally it is also possible to pass through hardware realization.Based on this understanding, above-mentioned technology Scheme substantially in other words can be embodied in the form of software products the part that the relevant technologies contribute, the computer Software product can reside in computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions to So that a computer electronic equipment (can be personal computer, server or network electronic devices etc.) executes each reality The method for applying certain parts of example or embodiment.
Among other things, such as " can ', " energy ", " possibility " or " can be with " etc conditional statement unless in addition specific Ground is stated or is otherwise understood in context as used, is otherwise generally intended to convey particular implementation energy Including (however other embodiments do not include) special characteristic, element and/or operation.Therefore, such conditional statement is generally It is not intended to imply that feature, element and/or operation are all needed one or more embodiments or one anyway Or multiple embodiments must include for determining these features, element in the case where being with or without student's input or prompt And/or the logic whether operation is included or will be performed in any particular implementation.
The content described in the present description and drawings herein includes being capable of providing display block chain data The example of method, block chain browser and user node.Certainly, can not come for the purpose of the various features of the description disclosure Each of element and/or method are described it is envisioned that combination, it can be appreciated that, disclosed feature it is many other Combination and displacement are possible., it will thus be apparent that without departing from the scope or spirit of the present disclosure can be right The disclosure makes various modifications.In addition, or in alternative solution, the other embodiments of the disclosure are to the specification and drawings It may be obvious in consideration and the practice of the disclosure as presented herein.It is intended that the specification and drawings Proposed in example be in all respects considered illustrative and not restrictive.Although using specific art herein Language, but they are used and are not used in the purpose of limitation in general and descriptive sense.

Claims (10)

1. a kind of method of display block chain data, it is characterised in that, the described method includes:
The block chain request of data for receiving user, obtains the type of the block chain request of data of user;
If the type of the block chain request of data of user is to inquire transaction data table by transaction hash query, transaction letter is obtained Breath carries out illegal contents filtering to Transaction Information, shows filtered Transaction Information;
If the type of the block chain request of data of user is by address lookup, call address inquires API, and inquiry database obtains The address corresponds to All Activity Hash, further according to transaction hash query transaction data table, obtains address information and address is corresponding Transaction List Table information carries out illegal contents filtering, display filtering to address information and the corresponding transaction List Table information of address information The corresponding transaction List Table information of address information and address information afterwards.
2. the method for display block chain data according to claim 1, which is characterized in that the block chain for receiving user Request of data, after the type of block chain request of data for obtaining user, further includes:
If the block chain request of data type of user is to support currency type inquiry, inquiry is called to support currency type interface, calling is enumerated Class obtains the currency type supported, shows the currency type of support.
3. the method for display block chain data according to claim 1, which is characterized in that the block chain number for receiving user According to request, before the type of block chain request of data for obtaining user, further includes:
In advance from publicly-owned chain network node real-time synchronization block data, and by after synchronous data structured, it is stored in database.
4. the method for display block chain data according to claim 3, which is characterized in that the currency type type is BTC system Column currency type,
It is described in advance from publicly-owned chain network node real-time synchronization block data, and by after synchronous data structured, be stored in number According to library, comprising:
The RPC interface for calling the publicly-owned chain node of BTC series currency type in advance, obtains the high block data of block, block data packet Include the All Activity data of the block relative superiority or inferiority;
The All Activity data that a block includes are parsed, the transaction data includes that block is high, is packaged time, trading volume, transmission Address, reception address, miner are taken, size of trading;
According to sending address and receiving address, account balance is calculated according to the trading volume of every transaction;
The block data of structuring is obtained, transaction data, address is sent and receives address, is stored in data using thread pool batch Library.
5. the method for display block chain data according to claim 3, which is characterized in that the currency type type is ETH system Column currency type,
It is described in advance from publicly-owned chain network node real-time synchronization block data, and by after synchronous data structured, be stored in number According to library, comprising:
The RPC interface for calling the publicly-owned chain node of ETH series currency type obtains the high block data of block, and block data includes should The All Activity data of block relative superiority or inferiority;
The All Activity data that a block includes are parsed, the transaction data includes that block is high, is packaged time, trading volume, transmission Address, reception address, miner are taken, the step count information for the actual motion that carries on a deal on the network of ether mill;
According to sending address and receiving address, it is recorded on the network of ether mill and carries on a deal, each step needs the ETH consumed Quantity;
The block data of structuring is obtained, transaction data, address is sent and receives address, is stored in data using thread pool batch Library.
6. the method for display block chain data according to claim 1, which is characterized in that described non-to Transaction Information progress Method information filtering shows filtered Transaction Information, comprising:
Transaction Information and user node type are obtained, according to filtering rule corresponding with the user node type, to the friendship Easy information is filtered, and filters out illegal contents;
Show filtered Transaction Information.
7. the method for display block chain data according to claim 1, which is characterized in that the block chain includes multiple sons Block chain, each sub-block chain are identified with block chain,
It is described that illegal contents filtering is carried out to Transaction Information, show filtered Transaction Information, comprising:
The sub-block chain mark where Transaction Information and Transaction Information is obtained, corresponding filtering is identified according to the sub-block chain Rule is filtered the Transaction Information, filters out illegal contents;
Show filtered Transaction Information.
8. a kind of block chain browser characterized by comprising
Block chain request of data receiving unit obtains the block chain data of user for receiving the block chain request of data of user The type of request;
First data acquisition and display unit, if the type of the block chain request of data for user be by transaction hash query, Transaction data table is then inquired, Transaction Information is obtained, illegal contents filtering is carried out to Transaction Information, shows filtered transaction letter Breath;
Second data acquisition and display unit, if the type of the block chain request of data for user is to adjust by address lookup With address lookup API, inquiry database obtains the address and corresponds to All Activity Hash, further according to transaction hash query transaction data Table obtains address information and the corresponding transaction List Table information in address, believes address information and the corresponding transaction List Table of address information Breath carries out illegal contents filtering, shows filtered address information and the corresponding transaction List Table information of address information.
9. a kind of user node, which is characterized in that the user node includes at least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one It manages device to execute, so that at least one described processor is able to carry out the described in any item display block chain data of claim 1-7 Method.
10. a kind of non-volatile computer readable storage medium storing program for executing, which is characterized in that the non-volatile computer readable storage medium Matter is stored with computer executable instructions, when which is executed by one or more processors, may make institute State the method that one or more processors perform claim requires the described in any item display block chain data of 1-7.
CN201910614732.2A 2019-07-09 2019-07-09 A kind of method of display block chain data, block chain browser and user node Pending CN110334136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910614732.2A CN110334136A (en) 2019-07-09 2019-07-09 A kind of method of display block chain data, block chain browser and user node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910614732.2A CN110334136A (en) 2019-07-09 2019-07-09 A kind of method of display block chain data, block chain browser and user node

Publications (1)

Publication Number Publication Date
CN110334136A true CN110334136A (en) 2019-10-15

Family

ID=68144393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910614732.2A Pending CN110334136A (en) 2019-07-09 2019-07-09 A kind of method of display block chain data, block chain browser and user node

Country Status (1)

Country Link
CN (1) CN110334136A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416981A (en) * 2020-12-03 2021-02-26 联动数科(北京)科技有限公司 Data processing method and device based on block chain, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180268162A1 (en) * 2015-12-16 2018-09-20 International Business Machines Corporation Personal ledger blockchain
CN109325039A (en) * 2018-06-07 2019-02-12 海南新软软件有限公司 A kind of block chain browser and block chain information browsing method
CN109697367A (en) * 2019-01-09 2019-04-30 腾讯科技(深圳)有限公司 Method, block chain browser, user node and the medium of display block chain data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180268162A1 (en) * 2015-12-16 2018-09-20 International Business Machines Corporation Personal ledger blockchain
CN109325039A (en) * 2018-06-07 2019-02-12 海南新软软件有限公司 A kind of block chain browser and block chain information browsing method
CN109697367A (en) * 2019-01-09 2019-04-30 腾讯科技(深圳)有限公司 Method, block chain browser, user node and the medium of display block chain data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416981A (en) * 2020-12-03 2021-02-26 联动数科(北京)科技有限公司 Data processing method and device based on block chain, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106484383B (en) Page rendering method, device and equipment
US8515988B2 (en) Data paging with a stateless service
CN103502983B (en) Memoizing Web-browsing computation with DOM-based isomorphism
CN104978383A (en) Data interworking method and data interworking equipment
CN109325039A (en) A kind of block chain browser and block chain information browsing method
CN106886570A (en) page processing method and device
CN109829726A (en) A kind of drug information management method and system based on block chain
CN108038687A (en) Method of commerce, server and computer-readable recording medium based on speech recognition
JP2012247927A (en) Screen generation system, screen generation method, and screen generation program
WO2012019097A2 (en) System and method for dynamic, real-time data management and processing to facilitate business decisions
CN103827778B (en) Enterprise tools strengthen
CN110189220A (en) A kind of risk analysis decision-making technique, device, system and storage medium
CN104679824B (en) The webpage generating method and system of the network platform
CN107195301A (en) The method and device of intelligent robot semantic processes
CN110334136A (en) A kind of method of display block chain data, block chain browser and user node
CN107203470A (en) Page adjustment method and device
CN109903163A (en) A kind of block bonusing method, device and the electronic equipment out of block chain
CN109922131A (en) Date storage method, device, equipment and storage medium based on block chain
CN109343983A (en) Information interacting method, device, equipment and storage medium between functional module
CN104468635B (en) The user right step-up authentication method and system of the network platform
CN110198300A (en) A kind of honey jar operation system fingerprint concealment method and device
Garcia et al. Dynamic platform competition with malicious users
CN106658224B (en) A method of the TCP mode transfer audio and video data streams based on DSS time-sharing system
CN109446417A (en) A kind of intellectualized retrieval method and apparatus
US10979572B1 (en) Directed customer support

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

Application publication date: 20191015