Data processing method and device based on block chain and readable storage medium

Through blockchain technology, the real-time transaction data formats of different data sources platforms are uniformly processed, which solves the problem of inefficient business processing caused by different data formats and achieves more efficient data processing.

CN120020753APending Publication Date: 2025-05-20TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311552937.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-20
Publication Date
2025-05-20

AI Technical Summary

Technical Problem

Due to the different data formats of different data source platforms, the business processing efficiency of the data service layer is inefficient.

Method used

Through blockchain technology, multiple interfaces of different transaction data sources are called to obtain real-time transaction data, and format adjustment is performed to make their format unified and then sent to the data service layer for processing.

Benefits of technology

The data service layer has improved the processing efficiency of multiple real-time transaction data, realized unified processing of different data formats, and improved business processing capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120020753A_ABST
    Figure CN120020753A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a data processing method and device based on a block chain and a readable storage medium, and the method comprises the steps: calling A different transaction data acquisition interfaces in a data adaptation layer according to a transaction data acquisition request for digital resources; acquiring A pieces of real-time transaction data of the digital resource through the A pieces of transaction data acquisition interfaces; the data formats corresponding to at least two pieces of real-time transaction data in the A pieces of real-time transaction data are different from each other; performing format adjustment processing on the A pieces of real-time transaction data to obtain A pieces of regular real-time transaction data with the same data format; and sending the A pieces of regular real-time transaction data to a data service layer through a transaction data service interface, and carrying out service processing on the A pieces of regular real-time transaction data in the data service layer. According to the invention, the business processing efficiency can be improved. The embodiment of the invention can be applied to various scenes such as cloud technology, artificial intelligence, intelligent traffic, auxiliary driving and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet technologies, and in particular, to a data processing method, device, and readable storage medium based on blockchain. Background Art

[0002] With the rapid development of Internet technologies and blockchain technologies, the transactions of various digital resources have increased day by day, and a large number of digital resource platforms that can provide real-time data of digital resources for people have emerged.

[0003] In order to provide comprehensive real-time data of digital resources, a digital resource platform needs to obtain real-time transaction data from multiple data source platforms. However, the data acquisition interface methods corresponding to different data source platforms are different, and the data formats of the provided real-time transaction data are also different. Therefore, multiple real-time transaction data with different data formats are transmitted to the data service layer. Since the data service layer develops services for multiple real-time transaction data with different data formats, the service processing efficiency is low. Summary of the Invention

[0004] Embodiments of this application provide a data processing method, device, and readable storage medium based on blockchain, which can improve the service processing efficiency.

[0005] Embodiments of this application provide a data processing method based on blockchain in one aspect. The method includes:

[0006] In a data adaptation layer, according to a transaction data acquisition request for digital resources, call the transaction data acquisition interfaces respectively corresponding to A mutually different transaction data source platforms; A is a positive integer greater than 1;

[0007] Through the A transaction data acquisition interfaces, obtain A real-time transaction data of digital resources; wherein, one transaction data acquisition interface is used to obtain real-time transaction data in one transaction data source platform; at least two of the A real-time transaction data have mutually different corresponding data formats;

[0008] Perform format adjustment processing on the A real-time transaction data respectively to obtain A regular real-time transaction data with the same data format; wherein, one regular real-time transaction data is obtained by performing format adjustment on one real-time transaction data;

[0009] Send the A regular real-time transaction data to a data service layer through a transaction data service interface, and in the data service layer, perform service processing on the A regular real-time transaction data.

[0010] Embodiments of this application provide a data processing device based on blockchain in one aspect. The device includes:

[0011] The first call module is used to call the transaction data acquisition interfaces respectively corresponding to A different transaction data source platforms in the data adaptation layer according to the transaction data acquisition request for digital resources; A is a positive integer greater than 1;

[0012] The first acquisition module is used to acquire A real-time transaction data of digital resources through A transaction data acquisition interfaces; among them, one transaction data acquisition interface is used to acquire the real-time transaction data in one transaction data source platform; at least two of the A real-time transaction data have different corresponding data formats;

[0013] The first processing module is used to perform format adjustment processing on the A real-time transaction data respectively to obtain A regular real-time transaction data with the same data format; among them, one regular real-time transaction data is obtained by performing format adjustment on one real-time transaction data;

[0014] The second processing module is used to send the A regular real-time transaction data to the data service layer through the transaction data service interface, and perform service processing on the A regular real-time transaction data in the data service layer.

[0015] Among them, the A real-time transaction data includes real-time transaction data B c , c is a positive integer, and c is less than or equal to A; the A regular real-time transaction data includes the regular real-time transaction data D corresponding to real-time transaction data B c ; c ;

[0016] The first processing module includes:

[0017] The first acquisition unit is used to determine the resource type of the digital resource and acquire a data format template matching the resource type; the data format template includes E sequentially set field types; E is a positive integer greater than 1;

[0018] The first determination unit is used to determine the data fields respectively corresponding to the E field types according to the real-time transaction data B c ;

[0019] The first processing unit is used to perform combination processing on the E data fields according to the setting order respectively corresponding to the E field types to obtain the regular real-time transaction data D c .

[0020] Among them, the E field types include the sequentially set identification type, platform type, transaction resource value type, change range type, and time type;

[0021] The first determination unit includes:

[0022] The first acquisition subunit is used to acquire a resource identifier corresponding to an identifier type in the real-time transaction data B c ; the resource identifier is used to represent digital resources;

[0023] The second acquisition subunit is used to acquire a platform identifier corresponding to a platform type; the platform identifier is used to represent the transaction data source platform F that provides the real-time transaction data B among A transaction data source platforms c ; c ;

[0024] The third acquisition subunit is used to acquire a real-time transaction resource value corresponding to a transaction resource value type; the real-time transaction resource value is used to represent the real-time general resource value when the digital resource is traded in the transaction data source platform F c ; the resource type of the real-time general resource value is different from the resource type of the digital resource;

[0025] The fourth acquisition subunit is used to acquire a real-time change amplitude corresponding to a change amplitude type; the real-time change amplitude is used to indicate the change amplitude of the general resource value of the digital resource in the transaction data source platform F c ;

[0026] The fifth acquisition subunit is used to acquire a real-time transaction data timestamp corresponding to a time type;

[0027] Then, the first processing unit is specifically used to perform combined processing on the resource identifier, the platform identifier, the real-time transaction resource value, the real-time change amplitude, and the real-time transaction data timestamp according to the sequentially set identifier type, platform type, transaction resource value type, change amplitude type, and time type, so as to obtain the regular real-time transaction data D c .

[0028] Among them, the fourth acquisition subunit includes:

[0029] The first determination subunit is used to determine that the real-time change amplitude corresponding to the digital resource is the real-time change amplitude corresponding to the change amplitude type if there is a real-time change amplitude of the digital resource in the real-time transaction data B c ;

[0030] The historical detection subunit is used to detect the historical transaction data returned by the transaction data source platform F for the digital resource if there is no real-time change amplitude of the digital resource in the real-time transaction data B c ; c ;

[0031] The second determination subunit is used to determine the real-time change amplitude corresponding to the change amplitude type according to the historical transaction resource value and the real-time transaction resource value if the historical transaction data includes a historical transaction resource value

[0032] Among them, the blockchain-based data processing device further includes:

[0033] A second calling module, configured to call the information data acquisition interfaces corresponding to G information data source platforms in the data adaptation layer according to the information data acquisition request for digital resources; G is a positive integer;

[0034] A second acquisition module, configured to acquire G real-time information data of digital resources through G information data acquisition interfaces; among them, one information data acquisition interface is used to acquire the real-time information data of one information data source platform;

[0035] A first sending module, configured to send the G real-time information data to the data service layer through the information data service interface;

[0036] The second processing module is specifically configured to perform associated service processing on A regular real-time transaction data and G real-time information data.

[0037] Among them, the first sending module includes:

[0038] A second acquisition unit, configured to acquire a data detection model and input both A regular real-time transaction data and G real-time information data into the data detection model;

[0039] A second processing unit, configured to perform content detection processing on each of the G real-time information data through the A regular real-time transaction data in the data detection model to obtain G information detection results; among them, one information detection result is obtained by performing content detection processing on one real-time information data through the A regular real-time transaction data;

[0040] A second determination unit, configured to determine correct real-time information data from the G real-time information data according to the G information detection results; among them, one information detection result is used to determine the correctness of one real-time information data;

[0041] A data sending unit, configured to send the correct real-time information data to the data service layer through the information data service interface;

[0042] The second processing module is specifically configured to perform associated service processing on A regular real-time transaction data and the correct real-time information data.

[0043] Among them, the G real-time information data includes real-time information data H i , where i is a positive integer and i is less than or equal to G; the G information detection results include the information detection result J i corresponding to the real-time information data H i ;

[0044] The second determination unit includes:

[0045] An attribute determination subunit, configured to, if the information detection result is J i indicates that A regular real-time transaction data and real-time information data H i match, then determine that the real-time information data H i has the correct attribute;

[0046] A data determination subunit, configured to determine, among G real-time information data, the real-time information data with the correct attribute as the correct real-time information data.

[0047] Wherein, the second processing module includes:

[0048] A third acquisition unit, configured to acquire a resource recommendation request sent by a resource client, and acquire regular historical transaction data of digital resources according to the resource recommendation request;

[0049] A third determination unit, configured to input the regular historical transaction data and A regular real-time transaction data into a data trend model, and determine resource trend information of digital resources according to the data trend model;

[0050] A fourth determination unit, configured to input A regular real-time transaction data into a heat resource model, and determine resource heat information of digital resources according to the heat resource model;

[0051] A fifth determination unit, configured to acquire historical participation information of a resource client, input the historical participation information into an object feature model, and determine object participation information corresponding to the resource client according to the object feature model;

[0052] A sixth determination unit, configured to determine a digital resource recommendation list returned to the resource client according to the resource trend information, the resource heat information, and the object participation information.

[0053] Wherein, the sixth determination unit includes:

[0054] A first processing subunit, configured to perform fusion processing on the resource trend information, the resource heat information, and the object participation information to obtain a first candidate resource recommendation value;

[0055] A second processing subunit, configured to perform comparison processing on the first candidate resource recommendation value and a second candidate resource recommendation value; the second candidate resource recommendation value is the resource recommendation value of an additional digital resource different from the digital resource;

[0056] A priority determination subunit, configured to, if the first candidate resource recommendation value is greater than the second candidate resource recommendation value, determine that the first recommendation priority of the digital resource is greater than the second recommendation priority of the additional digital resource;

[0057] A list generation subunit, configured to generate a digital resource recommendation list carrying digital resources with a first recommendation priority and additional digital resources with a second recommendation priority;

[0058] A list return subunit, configured to return the digital resource recommendation list to a resource client.

[0059] Among them, the first call module includes:

[0060] A third processing unit, configured to perform resource detection processing on a transaction data source platform belonging to the blockchain type according to a transaction data acquisition request for digital resources, and obtain a first resource detection result;

[0061] A fourth processing unit, configured to perform resource detection processing on a transaction data source platform belonging to the centralized type according to the transaction data acquisition request, and obtain a second resource detection result;

[0062] A seventh determination unit, configured to determine, according to the first resource detection result, a transaction data source platform including digital resources in the transaction data source platforms belonging to the blockchain type as a first transaction data source platform;

[0063] An eighth determination unit, configured to determine, according to the second resource detection result, a transaction data source platform including digital resources in the transaction data source platforms belonging to the centralized type as a second transaction data source platform;

[0064] A ninth determination unit, configured to determine the first transaction data source platform and the second transaction data source platform as A mutually different transaction data source platforms;

[0065] An interface call unit, configured to call the transaction data acquisition interfaces respectively corresponding to the A transaction data source platforms.

[0066] Among them, the blockchain-based data processing device further includes:

[0067] A third acquisition module, configured to acquire a digital resource setting list initiated by a business object identifier; the digital resource setting list includes digital resources;

[0068] A request generation module, configured to generate a transaction data acquisition request according to the digital resources in the digital resource setting list;

[0069] Then the second processing module is specifically configured to return the A regular real-time transaction data to the business object identifier, so that a resource client bound with the business object identifier displays the A regular real-time transaction data.

[0070] Among them, the blockchain-based data processing device further includes:

[0071] The plug-in packaging module is used to package the data adaptation layer and the trading data service interface into the trading data regularization plug-in;

[0072] The second sending module is used to send the trading data regularization plug-in to the resource client, so that the resource client installs the trading data regularization plug-in; the trading data regularization plug-in installed on the resource client is used to perform format adjustment processing on each of the A real-time trading data obtained through the data adaptation layer to obtain A regularized real-time trading data, and send the A regularized real-time trading data to the data service layer in the resource client through the trading data service interface.

[0073] On the one hand, this application provides a computer device, including: a processor, a memory, and a network interface;

[0074] The above-mentioned processor is connected to the above-mentioned memory and the above-mentioned network interface. Among them, the above-mentioned network interface is used to provide data communication functions, the above-mentioned memory is used to store computer programs, and the above-mentioned processor is used to call the above-mentioned computer programs so that the computer device executes the methods in the embodiments of this application.

[0075] On the one hand, the embodiment of this application provides a computer-readable storage medium, in which a computer program is stored, and the computer program is suitable for being loaded and executed by a processor to execute the methods in the embodiments of this application.

[0076] On the one hand, the embodiment of this application provides a computer program product, which includes a computer program stored in a computer-readable storage medium; a processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the methods in the embodiments of this application.

[0077] In the embodiment of the present application, in the data adaptation layer, according to the transaction data acquisition request for digital resources, the service device can call the transaction data acquisition interfaces respectively corresponding to A mutually different transaction data source platforms; through the A transaction data acquisition interfaces, A real-time transaction data of digital resources can be acquired; wherein, one transaction data acquisition interface is used to acquire the real-time transaction data in one transaction data source platform; at least two of the A real-time transaction data have mutually different corresponding data formats; further, the service device performs format adjustment processing on the A real-time transaction data respectively, and A regular real-time transaction data with the same data format can be obtained; wherein, one regular real-time transaction data is obtained by performing format adjustment on one real-time transaction data; through the transaction data service interface, the A regular real-time transaction data can be sent to the data service layer, and in the data service layer, the A regular real-time transaction data are processed. As can be seen from the above, the embodiment of the present application can perform format adjustment processing on at least two real-time transaction data with different data formats respectively to obtain at least two regular real-time transaction data with the same data format. Since the data service layer processes multiple regular real-time transaction data, the service processing efficiency can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0079] Figure 1 is a schematic diagram of a system architecture provided by an embodiment of the present application;

[0080] Figure 2 is a flowchart of a data processing method based on a blockchain provided by an embodiment of the present application Figure 1 ;

[0081] Figure 3 is a schematic diagram of a data processing scenario based on a blockchain provided by an embodiment of the present application Figure 1 ;

[0082] Figure 4 is a schematic diagram of a data processing scenario based on a blockchain provided by an embodiment of the present application Figure 2 ;

[0083] Figure 5 is a schematic diagram of an overall architecture provided by an embodiment of the present application;

[0084] Figure 6It is a schematic diagram of an interface for rendering and displaying real-time transaction data provided by an embodiment of the present application Figure 1 ;

[0085] Figure 7 It is a schematic diagram of an interface for rendering and displaying real-time transaction data provided by an embodiment of the present application

[0086] Figure 8 It is a schematic flowchart of a data processing method based on blockchain provided by an embodiment of the present application Figure 2 ;

[0087] Figure 9 It is a schematic structural diagram of a data processing device based on blockchain provided by an embodiment of the present application;

[0088] Figure 10 It is a schematic structural diagram of a computer device provided by an embodiment of the present application. Detailed implementation manners

[0089] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.

[0090] For ease of understanding, some terms are briefly explained as follows:

[0091] 1. Blockchain: Narrowly, a blockchain is a chain-like data structure with blocks as basic units. In a block, a digital digest is used to verify the previous transaction history. It is suitable for the requirements of anti-tampering and scalability in a distributed ledger scenario; Broadly, a blockchain also refers to the distributed ledger technology implemented by the blockchain structure, including distributed consensus, privacy and security protection, peer-to-peer communication technology, network protocols, smart contracts, etc.

[0092] The goal of a blockchain is to implement a distributed data record ledger that only allows addition and does not allow deletion. The basic structure at the bottom of the ledger is a linear linked list. The linked list is composed of "blocks" connected in series. The successor block records the hash value of the predecessor block. Whether each block (and the transactions in the block) is legal can be quickly verified by calculating the hash value. If a node in the network proposes to add a new block, it must pass through a consensus mechanism to reach a consensus confirmation on the block.

[0093] 2. Blockchain Nodes: In a blockchain network, nodes are classified into consensus nodes (also known as core nodes) and synchronization nodes (which can include data nodes and light nodes). Among them, consensus nodes are responsible for the consensus operations across the entire blockchain network; synchronization nodes are responsible for synchronizing the ledger information of consensus nodes, that is, synchronizing the latest block data. Whether it is a consensus node or a synchronization node, its internal structure includes network communication components because the blockchain network is essentially a peer-to-peer network and needs to communicate with other nodes in the blockchain network through peer-to-peer components. Resources and services in the blockchain network are distributed across various nodes, and the transmission of information and the realization of services are directly carried out between nodes without the intervention of intermediate links or centralized servers (third parties).

[0094] 3. Centralized Exchange: Operated by a central institution, it is responsible for maintaining all transaction processing of digital resources and providing customer support. In the embodiments of this application, the centralized exchange is referred to as a data source platform belonging to the centralized type, including a transaction data source platform belonging to the centralized type.

[0095] 4. Decentralized Exchange: Operated by a decentralized institution, it is a platform for trading digital resources on the blockchain through smart contracts. In the embodiments of this application, the decentralized exchange is referred to as a data source platform belonging to the blockchain type, including a transaction data source platform belonging to the blockchain type.

[0096] 5. Digital Resources: Can be any type of electronic resources, including digital resources issued and traded on the blockchain, as well as digital resources issued and traded on centralized platforms, such as digital collectibles, electronic securities, and so on.

[0097] 6. Artificial Intelligence (AI): It is the theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science. It attempts to understand the essence of intelligence and produce a new intelligent machine that can react in a way similar to human intelligence. Artificial intelligence also studies the design principles and implementation methods of various intelligent machines to enable machines to have the functions of perception, reasoning, and decision-making.

[0098] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, and mechatronics. The software technologies of artificial intelligence mainly include several major directions such as computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning, autonomous driving, and intelligent transportation.

[0099] 7. Natural Language Processing (NLP): It is an important direction in the field of computer science and artificial intelligence. It studies various theories and methods that can enable effective communication between humans and computers in natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, the research in this field will involve natural language, that is, the language people use in daily life, so it has a close connection with the research of linguistics.

[0100] Natural language processing technology usually includes technologies such as text processing, semantic understanding, machine translation, robot question answering, and knowledge graphs. In the embodiments of this application, natural language processing can be used to detect the content of real-time information data to determine the accuracy of the real-time information data, and to identify rule historical transaction data, rule real-time transaction data, and the historical participation information of business objects to determine recommended digital resources.

[0101] 8. Machine Learning (ML): It is an interdisciplinary subject that involves multiple disciplines such as probability theory, statistics, approximation theory, convex analysis, and algorithm complexity theory. It specifically studies how computers simulate or implement human learning behaviors to acquire new knowledge or skills and reorganize the existing knowledge structure to continuously improve their own performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent, and its applications cover all fields of artificial intelligence.

[0102] Machine learning and deep learning usually include technologies such as artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and rote learning. In the embodiments of this application, the data detection model, data trend model, popularity resource model, and object feature model can all be AI models based on machine learning.

[0103] Please refer to Figure 1 , Figure 1 which is a schematic diagram of a system architecture provided by the embodiments of this application. As Figure 1 shown, the system architecture can include a business device cluster and a platform node cluster.

[0104] Among them, the platform node cluster may include multiple platform nodes, and the embodiments of the present application do not limit the number of platform nodes in the platform node cluster. For example Figure 1 As shown, the platform node cluster includes platform node 10a, platform node 10b, platform node 10c, and platform node 10d.

[0105] Each platform node in the platform node cluster represents a node corresponding to a data source platform (which can also be understood as a platform device). Among them, the multiple data source platforms are different from each other, and the multiple data source platforms all refer to platforms that can provide real-time data of digital resources for the service device cluster. For example, platform node 10a is the node corresponding to data source platform 1, platform node 10b is the node corresponding to data source platform 2, platform node 10c is the node corresponding to data source platform 3, and platform node 10d is the node corresponding to data source platform 4.

[0106] The data source platforms in the embodiments of the present application include data source platforms belonging to the blockchain type (hereinafter simply referred to as transaction data blockchain platforms) and data source platforms belonging to the centralized type (hereinafter referred to as transaction data centralized platforms). For example Figure 1 As shown, platform node 10a may be the centralized node corresponding to transaction data centralized platform 1, that is, the above-mentioned data source platform 1 belongs to the centralized type; platform node 10d may be the centralized node corresponding to transaction data centralized platform 4, that is, the above-mentioned data source platform 4 belongs to the centralized type; platform node 10b may be the blockchain node corresponding to transaction data blockchain platform 2, that is, the above-mentioned data source platform 2 belongs to the blockchain type, and platform node 10b stores blockchain 101b; platform node 10c may be the blockchain node corresponding to transaction data blockchain platform 3, that is, the above-mentioned data source platform 3 belongs to the blockchain type, and platform node 10c stores blockchain 101c.

[0107] It can be understood that each blockchain node (for example Figure 1 platform node 10b and platform node 10c in) can receive off-chain data (such as service device 11a or platform node 10a in the embodiments of the present application) sent by off-chain devices during normal operation, such as A regular real-time transaction data in the embodiments of the present application, and generate a block based on the received off-chain data to be chained, and then perform the chaining process on the block.

[0108] In the specific implementation manner of the present application, data related to user information (such as business object identifiers and digital resource setting lists) etc. When the embodiments of the present application are applied to specific products or technologies, user permission or consent needs to be obtained, and the collection, use, and processing of relevant data need to comply with relevant laws, regulations, and standards of relevant countries and regions.

[0109] To ensure data interoperability between blockchain nodes in a blockchain network, there can be data connections between each blockchain node. For example, blockchain 101b is located in the first blockchain network, which includes platform node 10a (also referred to as blockchain node 10a), blockchain nodes 100a, …, blockchain nodes 100b. There is a data connection between blockchain node 100a and blockchain node 100b, a data connection between blockchain node 10a and blockchain node 100a, a data connection between blockchain node 10a and blockchain node 100b, and so on. It can be understood that data or blocks can be transmitted between blockchain nodes through the above data connections.

[0110] The data connections between the above blockchain nodes can be based on node identifiers. For each blockchain node in the first blockchain network, it has a corresponding node identifier, and each of the above blockchain nodes can store the node identifiers of other blockchain nodes that are connected to itself, so as to broadcast the obtained data or generated blocks to other blockchain nodes according to the node identifiers of other blockchain nodes in the future. For example, blockchain node 10a can maintain a node identifier list, which stores the node names and node identifiers of other blockchain nodes, as shown in Table 1.

[0111] Table 1

[0112] Node Name Node Identifier Blockchain Node 100a AAAAA … … Blockchain Node 100b CCCCC

[0113] Among them, the node identifier can be an Internet Protocol (IP) address for network interconnection, and any other information that can be used to identify nodes in the blockchain network. Table 1 only uses the IP address as an example for illustration.

[0114] Suppose the node identifier of blockchain node 10a is FFFFF. Then blockchain node 10a can send transaction data to blockchain node 100b through the node identifier CCCCC, and blockchain node 100b can determine that the transaction data is sent by blockchain node 10a through the node identifier FFFFF. Similarly, blockchain node 100b can send a block to be consensus to blockchain node 100a through the node identifier AAAAA, and blockchain node 100a can determine that the block to be consensus is sent by blockchain node 100b through the node identifier CCCCC. The data transmission between other nodes is also the same, so it will not be elaborated one by one.

[0115] It can be understood that the above data connection is not limited to the connection method and can be directly or indirectly connected through a wired communication method, or can be directly or indirectly connected through a wireless communication method, or can also be connected through other connection methods, which are not limited in this application.

[0116] It can be understood that there can be a one-to-one correspondence between the blockchain nodes 10a, 100a, 100b, etc. in the first blockchain network in the above example and the corresponding roles (i.e., entity objects in the corresponding business scenarios) that need to access the first blockchain network. The business scenarios here can specifically include resource issuance scenarios, resource transfer scenarios, resource consumption scenarios, etc. At this time, the business data information in the corresponding business scenarios can specifically include resource issuance information in the resource issuance scenario, resource transfer information in the resource transfer scenario, resource consumption information in the resource consumption scenario, etc. The specific content of the business data information in the corresponding business scenarios will not be listed one by one here.

[0117] It can be understood that the business device cluster can include one or more business devices, and the number of business devices in the business device cluster is not limited in the embodiments of this application. For example Figure 1 As shown, the business device cluster can include business devices 11a, 11b,..., 11c. Among them, the business devices in the business device cluster can be terminal devices or business servers. For example, business device 11a is a business server, and business devices 11b and 11c are both terminal devices.

[0118] Among them, there can be a network connection between business device clusters. For example, there is a network connection between business device 11a and business device 11b. At the same time, any business device in the business device cluster can have a network connection with any platform node in the platform node cluster. For example, there is a network connection between business device 11b and platform node 10c, and there is a network connection between business device 11a and platform node 10a. Among them, the above network connection is not limited to the connection method and can be directly or indirectly connected through a wired network method, or can be directly or indirectly connected through a wireless network method, or can also be connected through other methods, which are not limited in this application.

[0119] It should be understood that when the business device in the business device cluster shown in Figure 1 is a terminal device, for example, business device 11b is a terminal device, and it can be installed with an application client. When the application client runs on the terminal device, it can perform data interaction with a business server (such as Figure 1 the business device 11a shown in the example), that is, the above network connection; it can also communicate with the above Figure 1Data interaction is performed among the platform nodes in the shown platform node cluster. Among them, the application client can be an application client with the function of real-time data viewing of digital resources, such as a video application, a digital resource application, an office software application, a navigation application, a shopping application, a financial management application, a business application, a browser, etc. Among them, the application client can be an independent client or an embedded sub-client integrated in a certain client (such as an education client and a multimedia client, etc.), which is not limited here.

[0120] Taking the digital resource application as an example, when the service device 11a is a service server, it can be a collection of multiple servers including the background server corresponding to the digital resource application, a data processing server, etc. Therefore, each terminal device (such as the service device 11b and the service device 11c) can transmit data with the service server through the application client corresponding to the digital resource application. For example, each terminal device can upload a request related to digital resources (such as a resource recommendation request) to the service server through the application client of the digital resource application. Then, the service server can determine a digital resource recommendation list according to the resource recommendation request and return the digital resource recommendation list to the terminal device.

[0121] For the convenience of subsequent understanding and description, an embodiment of the present application can select a service device in the Figure 1 shown service device cluster for description, such as the service device 11a. In the data adaptation layer, the service device 11a can call the transaction data acquisition interfaces respectively corresponding to A different transaction data source platforms according to the transaction data acquisition request for digital resources; the data adaptation layer is a new layer proposed in the embodiment of the present application, and its specific function is to perform format adjustment processing on the obtained multiple real-time transaction data to obtain multiple regular real-time transaction data with a unified data format. The embodiment of the present application does not limit the resource type of digital resources, which can be digital resources on the chain or digital resources off the chain, such as stocks, convertible bonds, etc. The transaction data acquisition request refers to a request for acquiring real-time transaction data of digital resources.

[0122] According to the provided data types, the data source platforms can be divided into a transaction data source platform that provides transaction data and an information data source platform that provides information data. Among them, the transaction data source platform and the information data source platform can be the same source platform. For example, Figure 1 the data source platform 1 corresponding to the platform node 10a shown in the example can provide both real-time transaction data of digital resources and real-time information data of digital resources; the transaction data source platform and the information data source platform can be different source platforms. For example, Figure 1The data source platform 2 corresponding to the illustrated platform node 10b can provide real-time transaction data of digital resources, and the data source platform 4 corresponding to the platform node 10d can provide real-time information data of digital resources.

[0123] Among them, one transaction data source platform corresponds to one transaction data acquisition interface. In practical applications, the transaction data acquisition interfaces corresponding to different transaction data source platforms may be different. In addition, the data formats corresponding to different real-time transaction data returned by the same transaction data acquisition interface may also be different.

[0124] Through A transaction data acquisition interfaces, the service device 11a acquires A real-time transaction data of digital resources. Among them, one transaction data acquisition interface is used to acquire real-time transaction data in one transaction data source platform. The real-time transaction data in the embodiments of the present application refers to the transaction data acquired in response to the current transaction data acquisition request. For example, when A is equal to 3, through the transaction data acquisition interface 1, the service device 11a can acquire the real-time transaction data 1 of digital resources in the transaction data source platform 1; through the transaction data acquisition interface 2, it can acquire the real-time transaction data 2 of digital resources in the transaction data source platform 2; through the transaction data acquisition interface 3, the service device 11a can acquire the real-time transaction data 3 of digital resources in the transaction data source platform 3. Among the above 3 real-time transaction data, at least two of the real-time transaction data have different corresponding data formats. For example, the data formats corresponding to the real-time transaction data 1, the real-time transaction data 2, and the real-time transaction data 3 are all different.

[0125] Furthermore, the service device 11a can respectively perform format adjustment processing on the A real-time transaction data to obtain A regular real-time transaction data with the same data format; among them, one regular real-time transaction data is obtained by performing format adjustment on one real-time transaction data. Through the transaction data service interface, the service device 11a can send the A regular real-time transaction data to the data service layer. In the data service layer, the service device 11a can perform service processing on the A regular real-time transaction data. The generation process of the A regular real-time transaction data and the service processing process of the A regular real-time transaction data will not be elaborated here. Please refer to the descriptions in the corresponding embodiments below. Figures 2 - 8 The descriptions in the corresponding embodiments.

[0126] As can be seen from the above, the embodiments of the present application can respectively perform format adjustment processing on at least two real-time transaction data with different data formats to obtain at least two regular real-time transaction data with the same data format. Since the data service layer performs service processing on multiple regular real-time transaction data, the service processing efficiency can be improved.

[0127] The method provided in the embodiment of the present application can be executed by a computer device, which includes but is not limited to a terminal device or a business server. The business server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud database, cloud service, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, and big data and artificial intelligence platform. Terminal devices include but are not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle terminals, aircraft, etc.

[0128] For further information, see Figure 2 , Figure 2 This is a flowchart of a data processing method based on blockchain provided in an embodiment of the present application Figure 1 . The implementation process of the data processing method can be carried out in a business device, and the business device can be the above-mentioned Figure 1 Any business device in the business device cluster in the system architecture described above, the business device in the example of the embodiment of this application is a business server. The embodiment of this application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, etc. Figure 2 As shown in , the data processing method may at least include the following steps S101-S104.

[0129] Step S101, in the data adaptation layer, according to the transaction data acquisition request for digital resources, call the transaction data acquisition interface corresponding to A different transaction data source platforms; A is a positive integer greater than 1.

[0130] Specifically, according to the transaction data acquisition request for digital resources, a resource detection process is performed on the transaction data source platform of the blockchain type to obtain a first resource detection result; according to the transaction data acquisition request, a resource detection process is performed on the transaction data source platform of the centralized type to obtain a second resource detection result; according to the first resource detection result, the transaction data source platform that includes digital resources in the transaction data source platform of the blockchain type is determined as the first transaction data source platform; according to the second resource detection result, the transaction data source platform that includes digital resources in the transaction data source platform of the centralized type is determined as the second transaction data source platform; the first transaction data source platform and the second transaction data source platform are determined to be A different transaction data source platforms; and the transaction data acquisition interfaces corresponding to the A transaction data source platforms are called.

[0131] ​The embodiments of the present application do not limit the resource type of digital resources, which can be any electronic resource with tradable attributes, including on-chain digital resources and off-chain digital resources. The trading data source platform refers to a platform that issues digital resources and can transfer and consume digital resources; the business device can be a business platform that provides real-time data of digital resources, and business objects can also conduct trading processes on digital resources on this business platform, such as purchasing and selling; the business platform corresponding to the business device is independent of the trading data source platform, and it can be understood that the business platform is a third-party platform of the trading data source platform.

[0132] The embodiments of the present application do not limit the quantity of digital resources, which can be one or more. It can be understood that the processing process of each digital resource by the business device is the same. Therefore, the embodiments of the present application describe with an example of one digital resource.

[0133] The embodiments of the present application do not limit the generation conditions of the trading data acquisition request, which can be set according to the actual application scenario. For example, if the business device is set with a data acquisition period of 5 minutes, the business device can generate a trading data acquisition request for digital resources every 5 minutes. It can be understood that the processing process corresponding to each trading data acquisition request by the business device is the same. Therefore, the embodiments of the present application describe with an example of one trading data acquisition request. Optionally, when the terminal device (such as Figure 1 the exemplified business device 11b) responds to the data acquisition trigger operation for digital resources, the terminal device can generate a trading data acquisition request for digital resources and send the trading data acquisition request to the business device.

[0134] According to the platform type, the trading data source platforms in the embodiments of the present application can be divided into trading data source platforms belonging to the blockchain type (hereinafter referred to as trading data blockchain platforms for short), and trading data source platforms belonging to the centralized type (hereinafter referred to as trading data centralized platforms for short). According to the trading data acquisition request for digital resources, the business device can perform resource detection processing on the trading data blockchain platform to obtain a first resource detection result; the embodiments of the present application do not limit the quantity of trading data blockchain platforms, which should be determined according to the actual application scenario. For the convenience of narration and understanding, the embodiments of the present application exemplify that the total quantity of trading data blockchain platforms is 3, namely trading data blockchain platform 1, trading data blockchain platform 2, and trading data blockchain platform 3.

[0135] The embodiments of the present application do not limit the manner of resource detection and processing of the transaction data blockchain platform, and can be set according to the actual application scenario. For the convenience of understanding and description, in the following, the resource data requested by the service device is used as an example of resource data a for description. The above transaction data blockchain platform 1 can provide a digital resource list 1 to the service device, and the digital resource list 1 includes all the digital resources issued and in circulation by the transaction data blockchain platform 1. The service device compares the digital resource a with the digital resources in the digital resource list 1. If the digital resource a exists in the digital resource list 1, it can be determined that the first resource detection result for the transaction data blockchain platform 1 is that the transaction data blockchain platform 1 includes the digital resource a. Further, the transaction data blockchain platform 1 is determined as the above-mentioned first transaction data source platform. It can be understood that the digital resource list 1 can be updated regularly by the transaction data blockchain platform 1, and the updated digital resource list 1 is synchronized to the service device.

[0136] The above transaction data blockchain platform 2 can provide a digital resource list 2 to the service device, and the digital resource list 2 includes all the digital resources issued and in circulation by the transaction data blockchain platform 2. The service device compares the digital resource a with the digital resources in the digital resource list 2. If the digital resource a does not exist in the digital resource list 2, it can be determined that the first resource detection result for the transaction data blockchain platform 2 is that the transaction data blockchain platform 2 does not include the digital resource a. It can be understood that the digital resource list 2 can be updated regularly by the transaction data blockchain platform 2, and the updated digital resource list 2 is synchronized to the service device.

[0137] Similar to the resource detection and processing process of the service device for the transaction data blockchain platform 1 and the transaction data blockchain platform 2, the service device can perform resource detection and processing on the above transaction data blockchain platform 3, so it will not be elaborated here.

[0138] In addition to being traded on the blockchain, a digital resource can also be traded off-chain (such as in a centralized exchange). Therefore, according to the transaction data acquisition request, the service device can perform resource detection and processing on the transaction data centralized platform to obtain a second resource detection result. The embodiments of the present application do not limit the number of transaction data centralized platforms, and should be determined according to the actual application scenario. For the convenience of description and understanding, the embodiments of the present application exemplify that the total number of transaction data centralized platforms is 4, namely transaction data centralized platform 1, transaction data centralized platform 2, transaction data centralized platform 3, and transaction data centralized platform 4.

[0139] The embodiments of the present application do not limit the method of resource detection and processing for the transaction data centralized platform, and can be set according to the actual application scenario. For the convenience of understanding and description, in the following, the resource data requested by the service device is used as an example of resource data a for description. The above-mentioned transaction data centralized platform 1 can provide a digital resource list 11 to the service device, and the digital resource list 11 includes all the digital resources issued and in circulation by the transaction data centralized platform 1. The service device compares the digital resource a with the digital resources in the digital resource list 11. If the digital resource a exists in the digital resource list 11, it can be determined that the second resource detection result for the transaction data centralized platform 1 is that the transaction data centralized platform 1 includes the digital resource a. Further, the transaction data centralized platform 1 is determined as the above-mentioned second transaction data source platform. It can be understood that the digital resource list 11 can be updated regularly by the transaction data centralized platform 1, and the updated digital resource list 1 is synchronized to the service device.

[0140] The above-mentioned transaction data centralized platform 2 can provide a digital resource list 12 to the service device, and the digital resource list 12 includes all the digital resources issued and in circulation by the transaction data centralized platform 2. The service device compares the digital resource a with the digital resources in the digital resource list 12. If the digital resource a does not exist in the digital resource list 12, it can be determined that the second resource detection result for the transaction data centralized platform 2 is that the transaction data centralized platform 2 does not include the digital resource a. It can be understood that the digital resource list 12 can be updated regularly by the transaction data centralized platform 2, and the updated digital resource list 2 is synchronized to the service device.

[0141] Similar to the resource detection and processing process of the service device for the transaction data blockchain platform 1 and the transaction data blockchain platform 2, the service device can perform resource detection and processing on the above-mentioned transaction data blockchain platform 3 and the above-mentioned transaction data centralized platform 4 respectively, so it will not be elaborated here.

[0142] By performing resource detection and processing on the transaction data source platform, the service device can determine the first transaction data source platform and the second transaction data source platform, and determine the first transaction data source platform and the second transaction data source platform as A mutually different transaction data source platforms.

[0143] In actual application, a data resource may only exist in one transaction data source platform. At this time, the A transaction data source platforms can be understood as the transaction data source platforms corresponding to multiple data resources respectively, and the A real-time transaction data can be understood as the real-time transaction data corresponding to multiple data resources respectively. For example, transaction data source platform 1 includes digital resource 1 and digital resource 2, transaction data source platform 2 includes digital resource 2 and digital resource 3, and transaction data source platform 3 includes digital resource 4 and digital resource 5. That is, transaction data source platform 1 can provide the real-time transaction data of digital resource 1, transaction data source platforms 1 and 2 can respectively provide the real-time transaction data of digital resource 2, transaction data source platform 2 can provide the real-time transaction data of digital resource 3, and transaction data source platform 3 can provide the real-time transaction data corresponding to digital resources 4 and 5 respectively.

[0144] Step S102, obtain A real-time transaction data of digital resources through A transaction data acquisition interfaces; wherein, one transaction data acquisition interface is used to obtain the real-time transaction data in one transaction data source platform; at least two of the A real-time transaction data have different corresponding data formats.

[0145] Specifically, please refer to Figure 3 , Figure 3 which is a schematic diagram of a scenario of data processing based on blockchain provided by an embodiment of the present application. Figure 1 . Figure 3 It is exemplified that A is equal to 3, and the 3 transaction data source platforms include transaction data source platform 1 corresponding to platform node 10a, transaction data source platform 2 corresponding to platform node 10b, and transaction data source platform 3 corresponding to platform node 10c. Among them, transaction data source platform 1 belongs to the centralized type of transaction data source platform, and both transaction data source platforms 2 and 3 belong to the blockchain type of transaction data source platforms. Moreover, platform node 10b (being a blockchain node) stores blockchain 101b, and platform node 10c (being a blockchain node) stores blockchain 101c. It can be understood that transaction data source platforms 1, 2, and 3 are independent platforms.

[0146] Such as Figure 3 shown, the 3 transaction data acquisition interfaces include transaction data acquisition interface 201e, transaction data acquisition interface 202e, and transaction data acquisition interface 203e. Through transaction data acquisition interface 201e, the service device can obtain the real-time transaction data 201a of digital resources ( Figure 3 identified by SSSNNN for digital resources), Figure 3The example real-time transaction data 201a includes (Platform 1, SSSNNN, 100, 2023.10.1 12:00), where Platform 1 is used to indicate that the real-time transaction data 201a is provided by the transaction data source platform 1, SSSNNN can represent the resource identifier 20b of the digital resource, 100 is used to indicate the real-time transaction resource value of the digital resource in the transaction data source platform 1, that is, the general resource value when the digital resource is traded, and 2023.10.1 12:00 can be used to indicate the request timestamp of the real-time transaction data 201a.

[0147] Through the transaction data acquisition interface 202e, the business device can acquire the real-time transaction data 202a of the digital resource ( Figure 3 identified by SSSNNN). Figure 3 The example real-time transaction data 202a includes (SSSNNN, Platform 2, 106, +2.6, 2023.10.1 12:00), where SSSNNN can represent the resource identifier 20b of the digital resource, Platform 2 is used to indicate that the real-time transaction data 202a is provided by the transaction data source platform 2, 106 is used to indicate the real-time transaction resource value of the digital resource in the transaction data source platform 2, +2.6 can represent the change range of the transaction value of the digital resource in the transaction data source platform 2. Specifically, the symbol + indicates that the real-time transaction resource value 106 has increased by 2.6% compared to the previous transaction resource value, and 2023.10.1 12:00 can be used to indicate the request timestamp of the real-time transaction data 202a.

[0148] Through the transaction data acquisition interface 203e, the business device can acquire the real-time transaction data 203a of the digital resource ( Figure 3 identified by SSSNNN). Figure 3 The example real-time transaction data 203a includes (12:00 2023.10.1, Platform 3, SSSNNN, 96, -0.3%), where 12:00 2023.10.1 can be used to indicate the request timestamp of the real-time transaction data 203a, Platform 3 is used to indicate that the real-time transaction data 203a is provided by the transaction data source platform 3, SSSNNN can represent the resource identifier 20b of the digital resource, 96 is used to indicate the real-time transaction resource value of the digital resource in the transaction data source platform 3, and -0.3% can represent the change range of the transaction value of the digital resource in the transaction data source platform 3. Specifically, the symbol - indicates that the real-time transaction resource value 96 has decreased by 0.3% compared to the previous transaction resource value.

[0149] Comparison Figure 3From the exemplified real-time transaction data 201a, real-time transaction data 202a, and real-time transaction data 203a, it can be seen that the data formats corresponding to the three real-time transaction data are different from each other. For example, the first field type of the real-time transaction data 201a is the platform type, the first field type of the real-time transaction data 202a is the identification type, and the first field type of the real-time transaction data 203a is the time type.

[0150] Step S103: Perform format adjustment processing on A real-time transaction data respectively to obtain A regular real-time transaction data with the same data format; where, a regular real-time transaction data is obtained by performing format adjustment on a real-time transaction data.

[0151] Specifically, the A real-time transaction data include real-time transaction data B c , c is a positive integer and c is less than or equal to A; the A regular real-time transaction data include the regular real-time transaction data D c corresponding to real-time transaction data B c ; Determine the resource type of the digital resource, and obtain a data format template that matches the resource type; the data format template includes E field types set in sequence; E is a positive integer greater than 1; According to real-time transaction data B c , determine the data fields corresponding to the E field types respectively; According to the setting order corresponding to the E field types respectively, perform combination processing on the E data fields to obtain the regular real-time transaction data D c .

[0152] Among them, the E field types include the identification type, platform type, transaction resource value type, change amplitude type, and time type set in sequence; According to real-time transaction data B c , the specific process of determining the data fields corresponding to the E field types respectively may include: In real-time transaction data B c , obtain the resource identifier corresponding to the identification type; the resource identifier is used to represent the digital resource; obtain the platform identifier corresponding to the platform type; the platform identifier is used to represent the transaction data source platform F c that provides real-time transaction data B among the A transaction data source platforms c ; Obtain the real-time transaction resource value corresponding to the transaction resource value type; the real-time transaction resource value is used to represent the real-time general resource value when the digital resource is traded in the transaction data source platform F c ; the resource type of the real-time general resource value is different from the resource type of the digital resource; obtain the real-time change amplitude corresponding to the change amplitude type; the real-time change amplitude is used to indicate the digital resource in the transaction data source platform F cThe variation range of the general resource value; obtain the real-time transaction data timestamp corresponding to the time type; then, according to the setting order corresponding to the E field types, perform combined processing on the E data fields to obtain the regular real-time transaction data D c The specific process may include: according to the sequentially set identification type, platform type, transaction resource value type, variation range type, and time type, perform combined processing on the resource identification, platform identification, real-time transaction resource value, real-time variation range, and real-time transaction data timestamp to obtain the regular real-time transaction data D c .

[0153] Among them, the specific process of obtaining the real-time variation range corresponding to the variation range type may include: if there is a real-time variation range of digital resources in the real-time transaction data B c then determine the real-time variation range corresponding to the digital resources as the real-time variation range corresponding to the variation range type; if there is no real-time variation range of digital resources in the real-time transaction data B c then detect the historical transaction data returned by the transaction data source platform F c for the digital resources; if the historical transaction data includes historical transaction resource values, then determine the real-time variation range corresponding to the variation range type according to the historical transaction resource values and the real-time transaction resource values.

[0154] Please refer to Figure 3 again. In the data adaptation layer of the service device, an index relationship table 20d may be stored. The index relationship table 20d uses the resource type as the index key and the data format template ( Figure 3 abbreviated as template) as the index value. Specifically, the index relationship table 20d includes the index relationship between the convertible bond type and template 1, the index relationship between the stock type and template 2, and the index relationship between the on-chain resources and template 3.

[0155] The service device determines the resource type 20c of the digital resources in the data adaptation layer Figure 3 and identifies the digital resources with the resource identification 20b (i.e., SSSNNN). The example resource type 20c is on-chain resources. Therefore, the service device can obtain the data format template matching the resource type 20c in the index relationship table 20d, that is, template 3. It can be understood that the field types included in different data format templates may be different, or the field order may be different, and should be set according to the actual application scenario here.

[0156] For example Figure 3 as shown, the data format template matching the resource type 20c (i.e., Figure 3 template 3 in) includes 5 sequentially set field types, namely the identification type, platform type, transaction resource value type ( Figure 3(abbreviated as transaction value), change amplitude type, and time type. According to Template 3, the service device performs format adjustment processing on the real-time transaction data 201a to obtain regular real-time transaction data 201f. Among them, there is no real-time change amplitude in the real-time transaction data 201a. At this time, the service device can determine the real-time change amplitude based on the transaction resource value obtained last time and the real-time transaction resource value in the real-time transaction data 201a (such as Figure 3 100 in the example), to determine the real-time change amplitude. Figure 3 Taking 0 as an example, the real-time change amplitude 0 can indicate that in the transaction data source platform 1, the digital resource represented by the resource identifier 20b has not changed in the transaction resource value, that is, the transaction resource value obtained last time is also 100. For the meanings of each field in the regular real-time transaction data 201f, reference can be made to the description of the meanings of each field in the above-mentioned real-time transaction data 201a, which will not be elaborated here.

[0157] According to Template 3, the service device performs format adjustment processing on the real-time transaction data 202a to obtain regular real-time transaction data 202f. For the meanings of each field in the regular real-time transaction data 202f, reference can be made to the description of the meanings of each field in the above-mentioned real-time transaction data 201a, which will not be elaborated here.

[0158] According to Template 3, the service device performs format adjustment processing on the real-time transaction data 203a to obtain regular real-time transaction data 203f. For the meanings of each field in the regular real-time transaction data 203f, reference can be made to the description of the meanings of each field in the above-mentioned real-time transaction data 203a, which will not be elaborated here.

[0159] Figure 3 It is described that for a digital resource, the real-time transaction data respectively corresponding to different transaction data source platforms have mutually different data formats. In actual application, for different digital resources on the same transaction data source platform, the different real-time transaction data returned may also have different data formats; in actual application, for the same digital resource on the same transaction data source platform, the real-time transaction data respectively returned in different periods may also have different data formats. For the scenarios described above, through the method provided in this step, regular real-time transaction data can be generated.

[0160] Step S104, through the transaction data service interface, send A regular real-time transaction data to the data service layer, and in the data service layer, perform service processing on the A regular real-time transaction data.

[0161] Specifically, obtain the resource recommendation request sent by the resource client, and according to the resource recommendation request, obtain the regular historical transaction data of digital resources; input the regular historical transaction data and A regular real-time transaction data into the data trend model, and according to the data trend model, determine the resource trend information of digital resources; input the A regular real-time transaction data into the popularity resource model, and according to the popularity resource model, determine the resource popularity information of digital resources; obtain the historical participation information of the resource client, input the historical participation information into the object feature model, and according to the object feature model, determine the object participation information corresponding to the resource client; according to the resource trend information, resource popularity information, and object participation information, determine the digital resource recommendation list returned to the resource client.

[0162] Among them, the specific process of determining the digital resource recommendation list returned to the resource client according to the resource trend information, resource popularity information, and object participation information may include: performing fusion processing on the resource trend information, resource popularity information, and object participation information to obtain a first candidate resource recommendation value; comparing the first candidate resource recommendation value with a second candidate resource recommendation value; the second candidate resource recommendation value is the resource recommendation value of an additional digital resource different from the digital resource; if the first candidate resource recommendation value is greater than the second candidate resource recommendation value, then determine that the first recommendation priority of the digital resource is greater than the second recommendation priority of the additional digital resource; generate a digital resource recommendation list carrying the first recommendation priority of the digital resource and the second recommendation priority of the additional digital resource; return the digital resource recommendation list to the resource client.

[0163] The embodiments of the present application do not limit the content of the service processing performed by the service device on the A regular real-time transaction data in the data service layer, which can be set according to the actual application scenario. Please refer to Figure 4 , Figure 4 is a scenario schematic diagram of data processing based on blockchain provided by the embodiments of the present application Figure 2 . Such as Figure 4 shown, the service object 201z has a binding relationship with the service device 20z. The service device 20z can be understood as a terminal device installed with a digital resource application, and the service device 11a can be understood as the background server corresponding to the digital resource application, that is, the service server.

[0164] The service device 20z can display the market control 40a for the service object 201z in the digital resource application. If the service object 201z triggers the market control 40a, then the night vision version 11a responds to the trigger operation for the market control 40a and generates a resource recommendation request. It can be understood that by responding to the trigger operation of the market control 40a, the service device 20z can display the digital resource recommendation list. The generation process of the digital resource recommendation list is described in detail below.

[0165] The service device 20z sends a resource recommendation request to the service device 11a through a resource client ( Figure 4 described as a digital resource application). As Figure 4 shown, the database 20g corresponding to the service device 11a includes multiple digital resources, Figure 4 taking 4 digital resources as examples, namely Resource 1, Resource 2, Resource 3, and Resource 4. It can be understood that the processing processes corresponding to each digital resource by the service device 11a are the same, so Figure 4 a detailed description is given taking Resource 1 as an example.

[0166] Please refer to Figure 4 again. The service device 11a obtains the regular historical transaction data of Resource 1, inputs the regular historical transaction data and A regular real-time transaction data of Resource 1 into the data trend model 201h. According to the data trend model 201h, the service device 11a can determine the resource trend information 1 of Resource 1; the service device 11a inputs the A regular real-time transaction data into the hot resource model 202h. According to the hot resource model 202h, the resource hot information 1 of Resource 1 can be determined.

[0167] The service device 11a obtains the historical participation information of the resource client (i.e., the digital resource application bound to the service device 20a). The historical participation information may include the resource types of the digital resources already purchased by the service object 201z, the resource industries of the digital resources already purchased (such as the healthcare industry, the automotive industry, the home appliance industry), and may also include the resource types of the digital resources concerned by the service object 201z, the resource industries of the digital resources concerned, and the holding time of the digital resources held by the service object 201z, etc.; the content of the historical participation information is not limited in the embodiments of the present application and can be set according to the actual application scenario. It should be emphasized that in the specific implementation manner of the present application, for data related to user information (such as the above historical participation information), when the embodiments of the present application are applied to specific products or technologies, user permission or consent needs to be obtained, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions.

[0168] As Figure 4As shown, the service device 11a inputs historical participation information into the object feature model 203h. Based on the object feature model 203h, the object participation information 1 corresponding to the resource client can be determined. Further, the service device 11a performs a fusion process on the resource trend information 1, the resource popularity information 1, and the object participation information 1 to obtain the first candidate resource recommendation value 201i. The specific process of the fusion process can be that the service device performs a scoring process on the resource trend information 1, the resource popularity information 1, and the object participation information 1 respectively to obtain 3 values, and then performs a weighted summation process on the 3 values to obtain the recommendation value corresponding to Resource 1, that is, the first candidate resource recommendation value 201i. Figure 4 The example is 0.98.

[0169] As shown in the processing process of Resource 1 in the figure, the service device 11a performs the above processing on Resource 2, and the recommendation value 202i corresponding to Resource 2 can be obtained. Figure 4 The example is 0.97. Performing the above processing on Resource 3 can obtain the recommendation value 203i corresponding to Resource 3. Figure 4 The example is 0.8. Performing the above processing on Resource 4 can obtain the recommendation value 204i corresponding to Resource 4. Figure 4 The example is 0.86. Among them, Resource 2, Resource 3, and Resource 4 can be understood as the above-mentioned additional digital resources, and the recommendation value 202i, the recommendation value 203i, and the recommendation value 204i can be understood as the above-mentioned second candidate resource recommendation values.

[0170] Further, the service device 11a compares the first candidate resource recommendation value with the second candidate resource recommendation value. As Figure 4 shown, comparing the 4 recommendation values, the recommendation priorities corresponding to the 4 resources are obtained, that is, the recommendation priority of Resource 1 is greater than the recommendation priority of Resource 2, and the recommendation priority of Resource 2 is greater than the recommendation priority of Resource 4, and the recommendation priority of Resource 4 is greater than the recommendation priority of Resource 3. Therefore, when the service device 11a generates a digital resource recommendation list, it can sequentially recommend Resource 1, Resource 2, Resource 4, and Resource 3.

[0171] Figure 4 Taking 4 resources as an example, in actual application, the service device 11a can recommend and sort a large number of digital resources. Therefore, the digital resources with relatively low recommendation values may not be included in the generated digital resource recommendation list.

[0172] Please refer to Figure 5 , Figure 5 which is an overall architecture schematic diagram provided by an embodiment of the present application. As Figure 5As shown, the data adaptation layer can be used to synchronize off-chain real-time transaction data of digital resources from a centralized exchange (such as a centralized network), and can also be used to synchronize on-chain real-time transaction data of digital resources from a decentralized exchange according to a blockchain configuration contract (such as the above-mentioned configuration contract).

[0173] The information data synchronization service can be included in the data service layer, that is Figure 5 the transaction data synchronization service in, or can be an independent service, used to synchronize information related to digital resources from an external platform (such as other information platforms for digital resources), and can also put the information into the database of digital resources. The update frequency of the information data can be the same as that of the transaction data, for example, both can be updated once per minute.

[0174] Subsequently, the resource client can request to access the corresponding service, such as accessing the transaction data service or the information data service. Before the resource client requests to access the corresponding service, it is necessary to log in to the account in the resource client, and after the authentication of the login status and the access permission to the corresponding service is successful, the corresponding service can be successfully accessed in the resource client.

[0175] Among them, through the accessed transaction data service, the terminal device can synchronize the real-time transaction data of digital resources in the business server, and then, the real-time transaction data synchronized for the digital resources can be rendered and displayed in the resource client. Through the accessed information data service, the terminal device can synchronize the real-time information data of digital resources in the business server, and then, the real-time information data synchronized for the digital resources can be rendered and displayed in the resource client.

[0176] Please also refer to Figure 6 and Figure 7 , Figure 6 is a schematic diagram of an interface for rendering and displaying real-time transaction data of resources provided by an embodiment of the present application Figure 1 , Figure 7 is a schematic diagram of an interface for rendering and displaying real-time transaction data of resources provided by an embodiment of the present application Figure 2 . As Figure 6 shown, the real-time transaction data can be rendered as a time-sharing chart of digital resources. As Figure 7 shown, the real-time transaction data can be a K-line chart of digital resources. In the client interface of the resource client, the K-line chart of digital resources can be rendered and displayed. Among them, the time-sharing chart can show the price (i.e., the real-time general resource value) of digital resources at each moment (such as every minute can be a moment) in the form of a curve graph, and the K-line chart can show the daily highest price, lowest price, opening price and closing price of digital resources in the form of a curve graph.

[0177] As can be seen from the above, the embodiments of the present application can respectively perform format adjustment processing on real-time transaction data in at least two different data formats to obtain regular real-time transaction data with the same data format. Since the data service layer processes multiple regular real-time transaction data, the service processing efficiency can be improved.

[0178] Further, please refer to Figure 8 , Figure 8 which is a schematic flow chart of a data processing method provided by the embodiments of the present application. Figure 2 . Among them, the implementation process of the data processing method can be carried out in a service device, and the service device can be any service device in the service device cluster in the above Figure 1 system architecture. In the embodiments of the present application, the service device is exemplified as a service server. As Figure 8 shown, the data processing method can at least include the following steps S201 to S208.

[0179] Step S201: In the data adaptation layer, according to the transaction data acquisition request for digital resources, call the transaction data acquisition interfaces respectively corresponding to A mutually different transaction data source platforms; A is a positive integer greater than 1.

[0180] Specifically, obtain the digital resource setting list initiated by the business object identifier; the digital resource setting list includes digital resources; and generate a transaction data acquisition request according to the digital resources in the digital resource setting list.

[0181] It can be understood that the business object can bind the business object identifier in the digital resource application installed on the terminal device. Through the business object identifier, the business object can follow digital resources or perform transaction processing on digital resources in the digital resource application, such as purchase or sale, etc. The digital resource setting list described in the embodiments of the present application can be a digital resource follow-up list, which includes one or more digital resources followed by the business object in the digital resource application; the digital resource setting list can also be a digital resource transaction list, which can include one or more digital resources transacted by the business object in the digital resource application.

[0182] Step S202: Through the A transaction data acquisition interfaces, obtain A real-time transaction data of digital resources; among them, one transaction data acquisition interface is used to obtain the real-time transaction data in one transaction data source platform; at least two of the A real-time transaction data respectively correspond to mutually different data formats.

[0183] Step S203: Respectively perform format adjustment processing on the A real-time transaction data to obtain A regular real-time transaction data with the same data format; among them, one regular real-time transaction data is obtained by performing format adjustment on one real-time transaction data.

[0184] Step S204: Send A regular real-time transaction data to the data service layer through the transaction data service interface.

[0185] For the specific implementation processes of steps S202 - S204, please refer to the descriptions of steps S102 - S104 in the corresponding embodiments above, which will not be elaborated here. Figure 2 For the specific implementation processes of steps S202 - S204, please refer to the descriptions of steps S102 - S104 in the corresponding embodiments above, which will not be elaborated here.

[0186] Step S205: In the data adaptation layer, call the information data acquisition interfaces corresponding to G information data source platforms according to the information data acquisition request for digital resources; G is a positive integer.

[0187] Specifically, according to the information data acquisition request for digital resources, perform resource detection processing on the information data source platforms belonging to the blockchain type to obtain the third resource detection result; according to the information data acquisition request, perform resource detection processing on the information data source platforms belonging to the centralized type to obtain the fourth resource detection result; according to the third resource detection result, determine the information data source platforms including digital resources among the information data source platforms belonging to the blockchain type as the first information data source platforms; according to the fourth resource detection result, determine the information data source platforms including digital resources among the information data source platforms belonging to the centralized type as the second information data source platforms; determine the first information data source platforms and the second information data source platforms as G information data source platforms; call the information data acquisition interfaces corresponding to the G information data source platforms.

[0188] Step S206: Obtain G real-time information data of digital resources through the G information data acquisition interfaces; among them, one information data acquisition interface is used to obtain the real-time information data of one information data source platform.

[0189] For the specific implementation process of step S206, please refer to the description of step S102 in the corresponding embodiment above, which will not be elaborated here. Figure 2 For the specific implementation process of step S206, please refer to the description of step S102 in the corresponding embodiment above, which will not be elaborated here.

[0190] Step S207: Send the G real-time information data to the data service layer through the information data service interface.

[0191] Specifically, obtain a data detection model, and input A regular real-time transaction data and G real-time information data into the data detection model; in the data detection model, perform content detection processing on each of the G real-time information data through the A regular real-time transaction data to obtain G information detection results; where one information detection result is obtained by performing content detection processing on one real-time information data through the A regular real-time transaction data; according to the G information detection results, determine the correct real-time information data from the G real-time information data; where one information detection result is used to determine the correctness of one real-time information data; send the correct real-time information data to the data service layer through the information data service interface.

[0192] Among them, the G real-time information data includes real-time information data H i , where i is a positive integer and i is less than or equal to G; the G information detection results include the information detection result J i corresponding to the real-time information data H i ; The specific process of determining the correct real-time information data from the G real-time information data according to the G information detection results may include: if the information detection result J i indicates that the A regular real-time transaction data matches the real-time information data H i , then determine that the real-time information data H i has the correct attribute; among the G real-time information data, determine the real-time information data with the correct attribute as the correct real-time information data.

[0193] Step S208, in the data service layer, perform associated service processing on the A regular real-time transaction data and the G real-time information data.

[0194] Specifically, perform associated service processing on the A regular real-time transaction data and the correct real-time information data.

[0195] Specifically, return the A regular real-time transaction data to the business object identifier, so that the resource client bound with the business object identifier displays the A regular real-time transaction data.

[0196] This step may also perform the following process: package the data adaptation layer and the transaction data service interface into a transaction data regularization plugin; send the transaction data regularization plugin to the resource client so that the resource client installs the transaction data regularization plugin; the transaction data regularization plugin installed on the resource client is used to perform format adjustment processing on each of the A real-time transaction data obtained through the data adaptation layer to obtain A regular real-time transaction data, and send the A regular real-time transaction data to the data service layer in the resource client through the transaction data service interface.

[0197] As described above, the embodiments of the present application can respectively perform format adjustment processing on real-time transaction data in at least two different data formats to obtain at least two regular real-time transaction data with the same data format. Since the data service layer processes multiple regular real-time transaction data, the service processing efficiency can be improved.

[0198] Further, please refer to Figure 9 , Figure 9 which is a schematic structural diagram of a blockchain-based data processing device provided by an embodiment of the present application. As Figure 9 shown, the blockchain-based data processing device 1 can run on a service device. The above-mentioned blockchain-based data processing device 1 can be a computer program (including program code) running in a computer device. For example, the data processing device is an application software; the data processing device can be used to execute the corresponding steps in the method provided by the embodiments of the present application. As Figure 9 shown, the blockchain-based data processing device 1 can include: a first call module 11, a first acquisition module 12, a first processing module 13, and a second processing module 14.

[0199] The first call module 11 is used to call the transaction data acquisition interfaces respectively corresponding to A mutually different transaction data source platforms according to the transaction data acquisition request for digital resources in the data adaptation layer; A is a positive integer greater than 1;

[0200] The first acquisition module 12 is used to acquire A real-time transaction data of digital resources through A transaction data acquisition interfaces; among them, one transaction data acquisition interface is used to acquire real-time transaction data in one transaction data source platform; at least two of the A real-time transaction data respectively correspond to mutually different data formats;

[0201] The first processing module 13 is used to respectively perform format adjustment processing on the A real-time transaction data to obtain A regular real-time transaction data with the same data format; among them, one regular real-time transaction data is obtained by performing format adjustment on one real-time transaction data;

[0202] The second processing module 14 is used to send the A regular real-time transaction data to the data service layer through the transaction data service interface, and in the data service layer, perform service processing on the A regular real-time transaction data.

[0203] Among them, for the specific function implementation manners of the first call module 11, the first acquisition module 12, the first processing module 13, and the second processing module 14, reference can be made to steps S101 - S104 in the corresponding embodiments above, and details will not be elaborated here. Figure 2

[0204] ​Please refer to again Figure 9 Among them, A real-time transaction data includes real-time transaction data B c , c is a positive integer, and c is less than or equal to A; A regular real-time transaction data includes real-time transaction data B c The corresponding regular real-time transaction data D c ;

[0205] The first processing module 13 may include: a first obtaining unit 131, a first determining unit 132, and a first processing unit 133

[0206] The first obtaining unit 131 is used to determine the resource type of the digital resource and obtain a data format template that matches the resource type; the data format template includes E sequentially set field types; E is a positive integer greater than 1;

[0207] The first determining unit 132 is used to determine the data fields corresponding to the E field types according to the real-time transaction data B c ;

[0208] The first processing unit 133 is used to perform combined processing on the E data fields according to the setting order corresponding to the E field types respectively, so as to obtain the regular real-time transaction data D c .

[0209] Among them, for the specific function implementation methods of the first obtaining unit 131, the first determining unit 132, and the first processing unit 133, reference can be made to step S103 in the corresponding embodiment above, which will not be elaborated here Figure 2 .

[0210] Please refer to again Figure 9 , the E field types include sequentially set identification type, platform type, transaction resource value type, change range type, and time type;

[0211] The first determining unit 132 may include: a first obtaining subunit 1321, a second obtaining subunit 1322, a third obtaining subunit 1323, a fourth obtaining subunit 1324, and a fifth obtaining subunit 1325

[0212] The first obtaining subunit 1321 is used to obtain the resource identifier corresponding to the identification type in the real-time transaction data B c ; the resource identifier is used to represent the digital resource

[0213] The second obtaining subunit 1322 is used to obtain the platform identifier corresponding to the platform type; the platform identifier is used to represent the transaction data source platform F that provides the real-time transaction data B among the A transaction data source platforms c ; c ;

[0214] The third acquisition subunit 1323 is configured to acquire a real-time transaction resource value corresponding to a transaction resource value type; the real-time transaction resource value is used to represent the real-time general resource value when the digital resource is traded on the transaction data source platform F c The real-time general resource value is different from the resource type of the digital resource;

[0215] The fourth acquisition subunit 1324 is configured to acquire a real-time change amplitude corresponding to a change amplitude type; the real-time change amplitude is used to indicate the change amplitude of the general resource value of the digital resource on the transaction data source platform F c ;

[0216] The fifth acquisition subunit 1325 is configured to acquire a real-time transaction data timestamp corresponding to a time type;

[0217] The first processing unit 133 is specifically configured to perform combined processing on the resource identifier, the platform identifier, the real-time transaction resource value, the real-time change amplitude, and the real-time transaction data timestamp according to the sequentially set identifier type, platform type, transaction resource value type, change amplitude type, and time type, so as to obtain the regular real-time transaction data D c .

[0218] Among them, for the specific functional implementation manners of the first acquisition subunit 1321, the second acquisition subunit 1322, the third acquisition subunit 1323, the fourth acquisition subunit 1324, the fifth acquisition subunit 1325, and the first processing unit 133, reference may be made to step S103 in the corresponding embodiment above, which will not be elaborated here Figure 2 .

[0219] Please refer to Figure 9 again. The fourth acquisition subunit 1324 may include: a first determination subunit 13241, a historical detection subunit 13242, and a second determination subunit 13243

[0220] The first determination subunit 13241 is configured to, if there is a real-time change amplitude of the digital resource in the real-time transaction data B c , determine that the real-time change amplitude corresponding to the digital resource is the real-time change amplitude corresponding to the change amplitude type

[0221] The historical detection subunit 13242 is configured to, if there is no real-time change amplitude of the digital resource in the real-time transaction data B c , detect the historical transaction data returned by the transaction data source platform F c for the digital resource

[0222] The second determination subunit 13243 is configured to determine the real-time change range corresponding to the change range type according to the historical transaction resource value and the real-time transaction resource value if the historical transaction data includes the historical transaction resource value.

[0223] Among them, for the specific functional implementation manners of the first determination subunit 13241, the historical detection subunit 13242, and the second determination subunit 13243, reference may be made to step S103 in the corresponding embodiment above, which will not be elaborated here. Figure 2 For the corresponding embodiment, the steps S103 will not be elaborated here.

[0224] Please refer to Figure 9 Based on the blockchain, the data processing device 1 may further include: a second call module 15, a second acquisition module 16, and a first sending module 17.

[0225] The second call module 15 is configured to call the information data acquisition interfaces corresponding to G information data source platforms according to the information data acquisition request for digital resources in the data adaptation layer; G is a positive integer.

[0226] The second acquisition module 16 is configured to acquire G real-time information data of digital resources through the G information data acquisition interfaces; among them, one information data acquisition interface is used to acquire the real-time information data of one information data source platform.

[0227] The first sending module 17 is configured to send the G real-time information data to the data service layer through the information data service interface.

[0228] Then, the second processing module 14 is specifically configured to perform associated service processing on A regular real-time transaction data and G real-time information data.

[0229] Among them, for the specific functional implementation manners of the second call module 15, the second acquisition module 16, the first sending module 17, and the second processing module 14, reference may be made to steps S205 - S208 in the corresponding embodiment above, which will not be elaborated here. Figure 8 For the corresponding embodiment, the steps S205 - S208 will not be elaborated here.

[0230] Please refer to Figure 9 The first sending module 17 may include: a second acquisition unit 171, a second processing unit 172, a second determination unit 173, and a data sending unit 174.

[0231] The second acquisition unit 171 is configured to acquire a data detection model and input both the A regular real-time transaction data and the G real-time information data into the data detection model.

[0232] The second processing unit 172 is used to perform content detection processing on G real-time information data respectively through A regular real-time transaction data in the data detection model to obtain G information detection results; wherein one information detection result is obtained by performing content detection processing on one real-time information data through A regular real-time transaction data;

[0233] The second determining unit 173 is used to determine the correct real-time information data among the G real-time information data according to the G information detection results; wherein one information detection result is used to determine the correctness of one real-time information data;

[0234] Data sending unit 174, used to send correct real-time information data to the data service layer through the information data service interface;

[0235] The second processing module 14 is specifically used to perform associated business processing on the A regular real-time transaction data and the correct real-time information data.

[0236] Among them, the specific functional implementation of the second acquisition unit 171, the second processing unit 172, the second determination unit 173, the data sending unit 174 and the second processing module 14 can refer to the above Figure 8 Steps S207 to S208 in the corresponding embodiment will not be described in detail here.

[0237] See also Figure 9 , G real-time information data includes real-time information data H i , i is a positive integer, and i is less than or equal to G; G information detection results include real-time information data H i Corresponding information detection results J i ;

[0238] The second determination unit 173 may include: an attribute determination subunit 1731 and a data determination subunit 1732.

[0239] Attribute determination subunit 1731 is used to determine if the information detection result J i Indicates A regular real-time transaction data and real-time information data H i If it matches, then the real-time information data H is determined i Has the correct attributes;

[0240] The data determination subunit 1732 is used to determine the real-time information data with correct attributes as the correct real-time information data among the G real-time information data.

[0241] Among them, the specific functional implementation of the attribute determination subunit 1731 and the data determination subunit 1732 can refer to the above Figure 8 ​Corresponding to step S207 in the embodiment, it will not be elaborated here.

[0242] Please refer to Figure 9 , the second processing module 14 may include: a third obtaining unit 141, a third determining unit 142, a fourth determining unit 143, a fifth determining unit 144, and a sixth determining unit 145.

[0243] The third obtaining unit 141 is configured to obtain a resource recommendation request sent by a resource client, and obtain regular historical transaction data of digital resources according to the resource recommendation request;

[0244] The third determining unit 142 is configured to input the regular historical transaction data and A pieces of regular real-time transaction data into a data trend model, and determine resource trend information of digital resources according to the data trend model;

[0245] The fourth determining unit 143 is configured to input A pieces of regular real-time transaction data into a popularity resource model, and determine resource popularity information of digital resources according to the popularity resource model;

[0246] The fifth determining unit 144 is configured to obtain historical participation information of the resource client, input the historical participation information into an object feature model, and determine object participation information corresponding to the resource client according to the object feature model;

[0247] The sixth determining unit 145 is configured to determine a digital resource recommendation list returned to the resource client according to the resource trend information, the resource popularity information, and the object participation information.

[0248] Among them, for the specific function implementation manners of the third obtaining unit 141, the third determining unit 142, the fourth determining unit 143, the fifth determining unit 144, and the sixth determining unit 145, reference can be made to Figure 2 step S104 in the corresponding embodiment, which will not be elaborated here.

[0249] Please refer to Figure 9 , the sixth determining unit 145 may include: a first processing subunit 1451, a second processing subunit 1452, a priority determining subunit 1453, a list generating subunit 1454, and a list returning subunit 1455.

[0250] The first processing subunit 1451 is configured to perform fusion processing on the resource trend information, the resource popularity information, and the object participation information to obtain a first candidate resource recommendation value;

[0251] The second processing subunit 1452 is configured to perform comparison processing on the first candidate resource recommendation value and a second candidate resource recommendation value; the second candidate resource recommendation value is the resource recommendation value of an additional digital resource different from the digital resource;

[0252] The priority determination subunit 1453 is used to determine that if the recommended value of the first candidate resource is greater than the recommended value of the second candidate resource, the first recommended priority of the digital resource is greater than the second recommended priority of the additional digital resource;

[0253] The list generation subunit 1454 is used to generate a digital resource recommendation list carrying the digital resource with the first recommended priority and the additional digital resource with the second recommended priority;

[0254] The list return subunit 1455 is used to return the digital resource recommendation list to the resource client.

[0255] Among them, for the specific functional implementation manners of the first processing subunit 1451, the second processing subunit 1452, the priority determination subunit 1453, the list generation subunit 1454, and the list return subunit 1455, reference can be made to step S104 in the corresponding embodiment above, which will not be elaborated here. Figure 2

[0256] Figure 9

[0257] Furthermore, referring to

[0258] The third processing unit 111 is used to perform resource detection processing on the transaction data source platform belonging to the blockchain type according to the transaction data acquisition request for the digital resource, and obtain the first resource detection result;

[0259] The fourth processing unit 112 is used to perform resource detection processing on the transaction data source platform belonging to the centralized type according to the transaction data acquisition request, and obtain the second resource detection result;

[0260] The seventh determination unit 113 is used to determine, according to the first resource detection result, the transaction data source platform including the digital resource in the transaction data source platform belonging to the blockchain type as the first transaction data source platform;

[0261] The eighth determination unit 114 is used to determine, according to the second resource detection result, the transaction data source platform including the digital resource in the transaction data source platform belonging to the centralized type as the second transaction data source platform;

[0261] The ninth determination unit 115 is used to determine the first transaction data source platform and the second transaction data source platform as A mutually different transaction data source platforms;

[0262] The interface call unit 116 is used to call the transaction data acquisition interfaces corresponding to A transaction data source platforms respectively.

[0263] Among them, for the specific function implementation manners of the third processing unit 111, the fourth processing unit 112, the seventh determination unit 113, the eighth determination unit 114, the ninth determination unit 115, and the interface call unit 116, reference can be made to Figure 2 step S101 in the corresponding embodiment above, which will not be elaborated here.

[0264] Please refer again to Figure 9 , the blockchain-based data processing device 1 may further include: a third acquisition module 18 and a request generation module 19.

[0265] The third acquisition module 18 is used to acquire a digital resource setting list initiated by a business object identifier; the digital resource setting list includes digital resources;

[0266] The request generation module 19 is used to generate a transaction data acquisition request according to the digital resources in the digital resource setting list;

[0267] Then the second processing module 14 is specifically used to return A regular real-time transaction data to the business object identifier, so that the resource client bound with the business object identifier displays the A regular real-time transaction data.

[0268] Among them, for the specific function implementation manners of the third acquisition module 18, the request generation module 19, and the second processing module 14, reference can be made to Figure 8 step S201 and step S208 in the corresponding embodiment above, which will not be elaborated here.

[0269] Please refer again to Figure 9 , the blockchain-based data processing device 1 may further include: a plugin packaging module 20 and a second sending module 21.

[0270] The plugin packaging module 20 is used to package the data adaptation layer and the transaction data service interface into a transaction data regularization plugin;

[0271] The second sending module 21 is used to send the transaction data regularization plugin to the resource client, so that the resource client installs the transaction data regularization plugin; the transaction data regularization plugin installed in the resource client is used to perform format adjustment processing on the A real-time transaction data obtained respectively through the data adaptation layer to obtain A regular real-time transaction data, and send the A regular real-time transaction data to the data service layer in the resource client through the transaction data service interface.

[0272] Among them, for the specific function implementation manners of the plugin packaging module 20 and the second sending module 21, reference can be made toFigure 8 For step S208 in the corresponding embodiment, details are not described herein again.

[0273] As can be seen from the above, the embodiments of the present application can respectively perform format adjustment processing on real-time transaction data of at least two different data formats to obtain at least two regular real-time transaction data with the same data format. Since the data service layer processes multiple regular real-time transaction data, the service processing efficiency can be improved.

[0274] Further, please refer to Figure 10 , Figure 10 which is a schematic structural diagram of a computer device provided by an embodiment of the present application. As Figure 10 shown, the computer device 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, a memory 1005, and at least one communication bus 1002. Among them, the communication bus 1002 is used to implement connection communication between these components. Among them, in some embodiments, the user interface 1003 may include a display screen (Display) and a keyboard (Keyboard), and the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The memory 1005 may optionally also be at least one storage device located far from the aforementioned processor 1001. As Figure 10 shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.

[0275] In Figure 10 the computer device 1000 shown, the network interface 1004 can provide network communication functions; the user interface 1003 is mainly used to provide an input interface for users; and the processor 1001 can be used to call the device control application program stored in the memory 1005 to implement:

[0276] In the data adaptation layer, according to the transaction data acquisition request for digital resources, call the transaction data acquisition interfaces respectively corresponding to A mutually different transaction data source platforms; A is a positive integer greater than 1;

[0277] Through the A transaction data acquisition interfaces, acquire A real-time transaction data of digital resources; wherein, one transaction data acquisition interface is used to acquire real-time transaction data in one transaction data source platform; at least two of the A real-time transaction data have mutually different corresponding data formats;

[0278] Format adjustment processing is performed on A real-time transaction data respectively to obtain A regular real-time transaction data with the same data format; among them, a regular real-time transaction data is obtained by performing format adjustment on a real-time transaction data.

[0279] Through the transaction data service interface, the A regular real-time transaction data are sent to the data service layer, and in the data service layer, business processing is performed on the A regular real-time transaction data.

[0280] It should be understood that the computer device 1000 described in the embodiments of the present application can execute the descriptions of the data processing methods or devices in the foregoing embodiments, which will not be elaborated here. In addition, the descriptions of the beneficial effects of using the same method will not be elaborated either.

[0281] The embodiments of the present application further provide a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the descriptions of the data processing methods or devices in the foregoing embodiments, which will not be elaborated here. In addition, the descriptions of the beneficial effects of using the same method will not be elaborated either.

[0282] The above computer-readable storage medium may be the data processing device provided in any of the foregoing embodiments or the internal storage unit of the above computer device, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device. Further, the computer-readable storage medium may also include both the internal storage unit and the external storage device of the computer device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store the data that has been output or will be output.

[0283] The embodiments of the present application further provide a computer program product, which includes a computer program stored in a computer-readable storage medium. The processor of the computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device can execute the descriptions of the data processing methods or devices in the foregoing embodiments, which will not be elaborated here. In addition, the descriptions of the beneficial effects of using the same method will not be elaborated either.

[0284] In the description, claims, and drawings of the embodiments of the present application, the terms "first", "second", etc. are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or device that includes a series of steps or units is not limited to the listed steps or modules, but may optionally further include steps or modules not listed, or may optionally further include other step units inherent to these processes, methods, apparatuses, products, or devices.

[0285] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been generally described according to their functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0286] The above-disclosed are only the preferred embodiments of the present application, and of course, the scope of the rights of the present application cannot be limited thereby. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A data processing method based on blockchain, characterized in that: include: In the data adaptation layer, according to the transaction data acquisition request for the digital resource, the transaction data acquisition interfaces corresponding to A different transaction data source platforms are called; A is a positive integer greater than 1; Acquire A real-time transaction data of the digital resource through A transaction data acquisition interfaces; wherein one transaction data acquisition interface is used to acquire real-time transaction data from a transaction data source platform; and data formats corresponding to at least two of the A real-time transaction data are different from each other; Performing format adjustment processing on the A real-time transaction data respectively to obtain A regularized real-time transaction data with the same data format; wherein one regularized real-time transaction data is obtained by formatting one real-time transaction data; Through the transaction data service interface, A pieces of regular real-time transaction data are sent to the data service layer, and in the data service layer, business processing is performed on the A pieces of regular real-time transaction data.

2. The method according to claim 1, characterized in that The A real-time transaction data includes real-time transaction data B c , c is a positive integer, and c is less than or equal to A; the A regular real-time transaction data includes the real-time transaction data B c Corresponding regular real-time transaction data D c ; The step of performing format adjustment processing on the A real-time transaction data to obtain A regularized real-time transaction data with the same data format includes: Determine the resource type of the digital resource, and obtain a data format template matching the resource type; the data format template includes E field types arranged in sequence; E is a positive integer greater than 1; According to the real-time transaction data B c , determine the data fields corresponding to the E field types respectively; According to the setting order corresponding to the E field types, the E data fields are combined and processed to obtain the regular real-time transaction data D c .

3. The method according to claim 2, characterized in that The E field types include an identification type, a platform type, a transaction resource value type, a change range type, and a time type that are arranged in sequence; According to the real-time transaction data B c , determine the data fields corresponding to the E field types, including: In the real-time transaction data B c , obtaining a resource identifier corresponding to the identifier type; the resource identifier is used to represent the digital resource; Obtain the platform identifier corresponding to the platform type; the platform identifier is used to identify the transaction data source platform A that provides the real-time transaction data B c The transaction data source platform F c ; Obtain the real-time transaction resource value corresponding to the transaction resource value type; the real-time transaction resource value is used to represent the digital resource in the transaction data source platform F c The real-time universal resource value when being traded in the digital resource; the resource type of the real-time universal resource value is different from the resource type of the digital resource; Obtain the real-time change amplitude corresponding to the change amplitude type; the real-time change amplitude is used to indicate the digital resource in the transaction data source platform F c The magnitude of change in the value of the general resource in; Obtain the real-time transaction data timestamp corresponding to the time type; Then, according to the setting order corresponding to the E field types, the E data fields are combined and processed to obtain the regular real-time transaction data D c ,include: According to the identification type, platform type, transaction resource value type, change range type and time type set in sequence, the resource identification, the platform identification, the real-time transaction resource value, the real-time change range and the real-time transaction data timestamp are combined and processed to obtain the regularized real-time transaction data D c .

4. The method according to claim 3, characterized in that The obtaining of the real-time change amplitude corresponding to the change amplitude type includes: If the real-time transaction data B c If the real-time change amplitude of the digital resource exists in the data, then determining that the real-time change amplitude corresponding to the digital resource is the real-time change amplitude corresponding to the change amplitude type; If the real-time transaction data B c If there is no real-time change range of the digital resource in the transaction data source platform F, the transaction data source platform F is detected. c Historical transaction data returned for the digital resource; If the historical transaction data includes a historical transaction resource value, the real-time change range corresponding to the change range type is determined according to the historical transaction resource value and the real-time transaction resource value.

5. The method according to claim 1, characterized in that The method further comprises: In the data adaptation layer, according to the information data acquisition request for the digital resource, the information data acquisition interface corresponding to the G information data source platforms is called; G is a positive integer; Obtain G real-time information data of the digital resource through the G information data acquisition interfaces; wherein one information data acquisition interface is used to obtain real-time information data of an information data source platform; Sending the G real-time information data to the data service layer through the information data service interface; Then the business processing of the A regularized real-time transaction data includes: Perform associated business processing on the A regular real-time transaction data and the G real-time information data.

6. The method according to claim 5, characterized in that The sending of the G real-time information data to the data service layer through the information data service interface includes: Obtain a data detection model, and input the A regularized real-time transaction data and the G real-time information data into the data detection model; In the data detection model, the G real-time information data are respectively subjected to content detection processing through the A regular real-time transaction data to obtain G information detection results; wherein one information detection result is obtained by performing content detection processing on one real-time information data through the A regular real-time transaction data; According to the G information detection results, determining the correct real-time information data among the G real-time information data; wherein one information detection result is used to determine the correctness of one real-time information data; Sending the correct real-time information data to the data service layer through the information data service interface; Then the associated business processing of the A regularized real-time transaction data and the G real-time information data includes: Perform associated business processing on the A regular real-time transaction data and the correct real-time information data.

7. The method according to claim 6, characterized in that The G real-time information data include real-time information data H i , i is a positive integer, and i is less than or equal to G; The G information detection results include the real-time information data H i Corresponding information detection results J i ; Determining correct real-time information data from the G real-time information data according to the G information detection results includes: If the information detection result J i Indicates the A regular real-time transaction data and the real-time information data H i If the real-time information data H is matched, i have the correct attributes; Among the G real-time information data, the real-time information data having correct attributes is determined as the correct real-time information data.

8. The method according to claim 1, characterized in that The performing business processing on the A regularized real-time transaction data includes: Obtaining a resource recommendation request sent by a resource client, and obtaining regularized historical transaction data of the digital resource according to the resource recommendation request; Inputting the regularized historical transaction data and the A regularized real-time transaction data into a data trend model, and determining resource trend information of the digital resource according to the data trend model; Inputting the A regularized real-time transaction data into a heat resource model, and determining resource heat information of the digital resource according to the heat resource model; Acquire historical participation information of the resource client, input the historical participation information into an object feature model, and determine object participation information corresponding to the resource client according to the object feature model; A digital resource recommendation list returned to the resource client is determined according to the resource trend information, the resource popularity information, and the object participation information.

9. The method according to claim 8, characterized in that The step of determining a digital resource recommendation list returned to the resource client according to the resource trend information, the resource popularity information, and the object participation information includes: fusing the resource trend information, the resource popularity information, and the object participation information to obtain a first candidate resource recommendation value; Comparing the first candidate resource recommendation value with the second candidate resource recommendation value; the second candidate resource recommendation value is a resource recommendation value of an additional digital resource different from the digital resource; If the first candidate resource recommendation value is greater than the second candidate resource recommendation value, determining that the first recommendation priority of the digital resource is greater than the second recommendation priority of the additional digital resource; Generate a digital resource recommendation list of digital resources with a first recommendation priority and additional digital resources with a second recommendation priority; The digital resource recommendation list is returned to the resource client.

10. The method according to claim 1, characterized in that The method of calling transaction data acquisition interfaces corresponding to A different transaction data source platforms according to a transaction data acquisition request for digital resources includes: According to a transaction data acquisition request for digital resources, a resource detection process is performed on a transaction data source platform belonging to a blockchain type to obtain a first resource detection result; According to the transaction data acquisition request, a resource detection process is performed on a centralized transaction data source platform to obtain a second resource detection result; According to the first resource detection result, the transaction data source platform that includes the digital resource among the transaction data source platforms belonging to the blockchain type is determined as the first transaction data source platform; According to the second resource detection result, determining the transaction data source platform including the digital resource among the centralized transaction data source platforms as the second transaction data source platform; determining the first transaction data source platform and the second transaction data source platform as A different transaction data source platforms; Call the transaction data acquisition interfaces corresponding to the A transaction data source platforms.

11. The method according to claim 1, characterized in that: The method further comprises: Acquire a digital resource setting list initiated by the business object identifier; the digital resource setting list includes the digital resource; generating the transaction data acquisition request according to the digital resources in the digital resource setting list; Then the business processing of the A regularized real-time transaction data includes: The A pieces of regular real-time transaction data are returned to the business object identifier, so that the resource client bound to the business object identifier displays the A pieces of regular real-time transaction data.

12. The method according to claim 1, characterized in that The method further comprises: Packing the data adaptation layer and the transaction data service interface into a transaction data regularization plug-in; The transaction data regularization plug-in is sent to the resource client so that the resource client installs the transaction data regularization plug-in; the transaction data regularization plug-in installed on the resource client is used to perform format adjustment processing on the A real-time transaction data obtained through the data adaptation layer to obtain the A regularized real-time transaction data, and send the A regularized real-time transaction data to the data service layer in the resource client through the transaction data service interface.

13. A data processing device based on blockchain, characterized in that: include: A first calling module is used to call transaction data acquisition interfaces corresponding to A different transaction data source platforms in the data adaptation layer according to a transaction data acquisition request for digital resources; A is a positive integer greater than 1; A first acquisition module is used to acquire A real-time transaction data of the digital resource through A transaction data acquisition interfaces; wherein one transaction data acquisition interface is used to acquire real-time transaction data from a transaction data source platform; and at least two of the A real-time transaction data have data formats corresponding to different data; A first processing module is used to perform format adjustment processing on the A real-time transaction data respectively to obtain A regular real-time transaction data with the same data format; wherein one regular real-time transaction data is obtained by formatting one real-time transaction data; The second processing module is used to send A regular real-time transaction data to the data service layer through the transaction data service interface, and perform business processing on the A regular real-time transaction data in the data service layer.

14. A computer device, characterized in that: include: Processor, memory, and network interface; The processor is connected to the memory and the network interface, wherein the network interface is used to provide a data communication function, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method described in any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 12.

16. A computer program product, characterized in that The computer program product comprises a computer program, which is stored in a computer-readable storage medium. The computer program is suitable for being read and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 12.