Block chain-based data processing method and related device

By predicting the fluctuation information in the reference data of the resource transfer platform, the optimal resource transfer time is determined, and the problem of poor virtual resource transfer processing time in the prior art is solved, and the effect of reducing virtual resource losses is achieved.

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

Patent Information

Application Number
CN202311761550.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-19
Publication Date
2025-06-20

AI Technical Summary

Technical Problem

When performing resource transfer processing of virtual resources, the prior art cannot determine the optimal resource transfer time, resulting in loss of virtual resources.

Method used

By obtaining reference resource transfer data of the resource transfer platform, the fluctuation information of the resource redemption information in the second transfer time is predicted, and the target transfer time period is determined based on the information to realize resource transfer processing.

Benefits of technology

It effectively reduces the loss of virtual resources and improves the flexibility and accuracy of resource transfer processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120181992A_ABST
    Figure CN120181992A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method based on a block chain and a related device, and the method comprises the steps: obtaining first resource exchange information of each first transfer time period in the first transfer time of a resource transfer platform, the first resource exchange information comprises exchange information between the first virtual resource and the second virtual resource in the corresponding first transfer time period; predicting fluctuation information of second resource exchange information of each second transfer time period in second transfer time according to the first resource exchange information of each first transfer time period, wherein the second transfer time is later than the first transfer time; and determining a target transfer time period associated with execution of resource transfer processing from the plurality of second transfer time periods according to the fluctuation information of the second resource exchange information. Through the method provided by the embodiment of the invention, the optimal resource transfer time can be determined according to the predicted fluctuation information, resource transfer processing can be realized in the optimal resource transfer time, and the loss of virtual resources can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] A decentralized resource transfer platform is a platform for virtual resource transfer on a blockchain through smart contracts. It allows resource transfer objects to directly complete resource transfer operations on the blockchain without going through intermediaries or custodians, which can effectively ensure the security of virtual resources. The decentralized resource transfer platform can implement resource transfer operations of exchanging one virtual resource for another, and the exchange ratio between the two virtual resources may change over time.

[0003] When performing resource transfer processing of virtual resources, usually after receiving a resource transfer request, the resource transfer processing corresponding to the resource transfer request is immediately executed. This method results in the execution time of the resource transfer processing being determined only based on the resource transfer request, and this execution time may not be the optimal resource transfer time, which may further lead to losses of virtual resources. Summary of the Invention

[0004] Embodiments of this application provide a data processing method and related devices based on blockchain, which can determine the optimal resource transfer time according to predicted fluctuation information, and can implement resource transfer processing at the optimal resource transfer time, which is beneficial to reducing losses of virtual resources.

[0005] On the one hand, embodiments of this application provide a data processing method based on blockchain, and the method includes:

[0006] Obtain reference resource transfer data of a resource transfer platform, where the reference resource transfer data includes first resource exchange information for each first transfer time period in a first transfer time, and the first resource exchange information includes exchange information between a first virtual resource and a second virtual resource within the corresponding first transfer time period, and the resource transfer platform is constructed based on a blockchain network;

[0007] According to the first resource exchange information for each first transfer time period, predict fluctuation information of second resource exchange information for each second transfer time period in a second transfer time; the second transfer time is later than the first transfer time;

[0008] According to the fluctuation information of the second resource exchange information for each second transfer time period, determine a target transfer time period from multiple second transfer time periods included in the second transfer time;

[0009] Among them, the transfer execution time for the resource transfer platform to execute resource transfer processing for a resource transfer request is within the target transfer time period, the transfer request time of the resource transfer request is within the second transfer time period with the earliest time among the second transfer time periods, and the resource transfer request is used to request to exchange the first virtual resource under the blockchain address for the second virtual resource.

[0010] On the one hand, an embodiment of the present application provides a blockchain-based data processing device, and the device includes:

[0011] An acquisition unit, configured to acquire reference resource transfer data of a resource transfer platform, where the reference resource transfer data includes first resource exchange information of each first transfer time period in a first transfer time, and the first resource exchange information includes exchange information between a first virtual resource and a second virtual resource within the corresponding first transfer time period, and the resource transfer platform is constructed based on a blockchain network;

[0012] A prediction unit, configured to predict fluctuation information of second resource exchange information of each second transfer time period in a second transfer time according to the first resource exchange information of each first transfer time period; the second transfer time is later than the first transfer time;

[0013] A determination unit, configured to determine a target transfer time period from multiple second transfer time periods included in the second transfer time according to the fluctuation information of the second resource exchange information of each second transfer time period;

[0014] Among them, the transfer execution time for the resource transfer platform to execute resource transfer processing for a resource transfer request is within the target transfer time period, the transfer request time of the resource transfer request is within the second transfer time period with the earliest time among the second transfer time periods, and the resource transfer request is used to request to exchange the first virtual resource under the blockchain address for the second virtual resource.

[0015] The determination unit is further configured to: receive a resource transfer request sent by a client, where the resource transfer request is used to request to exchange a first quantity of the first virtual resource under the blockchain address for the second virtual resource; determine a transfer execution time according to the target transfer time period, and generate a transfer execution request according to the resource transfer request, where the transfer execution request includes the transfer execution time; and send the transfer execution request to the resource transfer platform in response to a resource transfer trigger message, so that the resource transfer platform receives the first quantity of the first virtual resource under the blockchain address at the transfer execution time, and transfers a second quantity of the second virtual resource to the blockchain address, and the first quantity of the first virtual resource matches the second quantity of the second virtual resource.

[0016] The determining unit is further configured to: obtain resource transfer configuration information, where the resource transfer configuration information is used to indicate a manner of generating the resource transfer trigger information; if the resource transfer configuration information indicates that the resource transfer trigger information is generated according to time, determine a request sending time according to the target transfer time period and the transfer execution time, where the request sending time is included in the target transfer time period and the request sending time is earlier than the transfer execution time; and generate the resource transfer trigger information at the request sending time.

[0017] The determining unit is further configured to: if the resource transfer configuration information indicates that the resource transfer trigger information is generated according to the information sent by the client, generate transfer time prompt information according to the target transfer time period and the transfer execution time, where the transfer time prompt information is used to prompt whether to perform the resource transfer process corresponding to the resource transfer request at the transfer execution time; send the transfer time prompt information to the client; and if an execution confirmation instruction sent by the client is obtained, generate the resource transfer trigger information according to the execution confirmation instruction.

[0018] When predicting the fluctuation information of the second resource exchange information in each second transfer time period according to the first resource exchange information in each first transfer time period, the prediction unit is specifically configured to: determine the first exchange quantity in each first transfer time period according to the first resource exchange information in each first transfer time period, where the first exchange quantity is used to indicate the quantity of the second virtual resource exchanged for a unit quantity of the first virtual resource in the corresponding first transfer time period; determine the fluctuation information of the first resource exchange information in each first transfer time period according to the first exchange quantity in each first transfer time period; and perform prediction processing by using the fluctuation information of the first resource exchange information in each first transfer time period to obtain the fluctuation information of the second resource exchange information in each second transfer time period in the second transfer time.

[0019] When determining the fluctuation information of the first resource exchange information in each first transfer time period according to the first exchange quantity in each first transfer time period, the prediction unit is specifically configured to: determine the target weight value in each first transfer time period; perform weighted calculation by using the first exchange quantity in each first transfer time period and the target weight value in the corresponding first transfer time period to determine the weighted exchange quantity in each first transfer time period; perform mean calculation by using the weighted exchange quantity in each first transfer time period to obtain the average exchange quantity in the first transfer time; and determine the fluctuation information in each first transfer time period according to the difference between the first exchange quantity in each first transfer time period and the average exchange quantity.

[0020] When determining the target weight values of the respective first transfer time periods, the prediction unit is specifically configured to: sort the respective first transfer time periods in the first transfer time in chronological order to obtain a sorted transfer time period sequence; determine the initial weight values of the respective first transfer time periods according to the arrangement positions of the respective first transfer time periods in the sorted transfer time period sequence, where the initial weight value of the first transfer time period in the sorted transfer time period sequence increases as the arrangement position increases; determine the intermediate weight values of the respective first transfer time periods according to the exception information of the respective first transfer time periods, where the exception information of the first transfer time period includes information on abnormal resource transfer processing occurring within the first transfer time period; calculate the initial weight values and the intermediate weight values of the respective first transfer time periods to obtain the target weight values of the respective first transfer time periods.

[0021] On the one hand, an embodiment of the present application provides a computer device, including: a processor, a communication interface, and a memory, where the processor, the communication interface, and the memory are interconnected. Among them, the memory stores executable program code, and the processor is configured to call the executable program code to implement the blockchain-based data processing method provided by the embodiment of the present application.

[0022] Correspondingly, an embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a computer, the computer is enabled to implement the blockchain-based data processing method provided by the embodiment of the present application.

[0023] Correspondingly, an embodiment of the present application further provides a computer program product, where the computer program product includes a computer program or computer instructions, and the computer program or computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, so that the computer device implements the blockchain-based data processing method provided by the embodiment of the present application.

[0024] Through the data processing method based on blockchain provided by the embodiments of the present application, the first resource exchange information for each first transfer time period in the first transfer time can be determined according to the reference resource transfer data of the resource transfer platform, so as to analyze the reference data of the resource transfer platform and determine the resource exchange situation within the first transfer time, which is beneficial to improving the accuracy of prediction processing; the fluctuation information at the second transfer time can be predicted based on the first exchange information, that is, the resource exchange situation at the second transfer time can be accurately predicted according to the existing data; the target transfer time period (i.e., the optimal resource transfer time) can be determined according to the predicted fluctuation information at the second transfer time, so that the transfer execution time of the resource transfer process is more flexible and can meet different application requirements; the resource transfer process can be implemented within the optimal resource transfer time, which is beneficial to reducing the loss of virtual resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] 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, other drawings can be obtained based on these drawings without creative efforts.

[0026] Figure 1 is a schematic structural diagram of a blockchain system provided by an embodiment of the present application;

[0027] Figure 2 is a schematic diagram of a block structure provided by an embodiment of the present application;

[0028] Figure 3 is a schematic system architecture diagram of a data processing system based on blockchain provided by an embodiment of the present application;

[0029] Figure 4 is a schematic flowchart of a data processing method based on blockchain provided by an embodiment of the present application;

[0030] Figure 5 is a schematic diagram of fluctuation information provided by an embodiment of the present application;

[0031] Figure 6 is a schematic flowchart of another data processing method based on blockchain provided by an embodiment of the present application;

[0032] Figure 7 is a schematic diagram of a data processing method based on blockchain provided by an embodiment of the present application;

[0033] Figure 8 is a schematic block diagram of a data processing device based on blockchain provided by an embodiment of the present application;

[0034] Figure 9 It is a structural block diagram of a computer device provided by an embodiment of the present application. Specific embodiments

[0035] 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 of the present application without creative efforts shall fall within the protection scope of the present application.

[0036] It should be noted that the descriptions such as "first" and "second" involved in the embodiments of the present application are only for descriptive purposes, and cannot be understood as indicating or implying their relative importance or implicitly indicating the quantity of the indicated technical features. Therefore, the technical features defined with "first" and "second" may explicitly or implicitly include at least one of such features.

[0037] For the convenience of understanding, the following is a simple explanation of some terms first:

[0038] Decentralized Exchange (DEX): Also known as a decentralized resource transfer platform, it is a platform for virtual resource transfer on a blockchain through smart contracts. DEX allows two resource transfer objects to directly perform resource transfer processing on the blockchain without handing over the control of virtual resources to an intermediary or custodian. This means that on a decentralized resource transfer platform, the resource transfer objects have private keys and always hold the corresponding virtual resources, thus improving the security and confidentiality of resource transfer processing.

[0039] Liquidity of virtual resources: That is, the real-time exchange ratio between two different virtual resources determined by the current quantities of the two virtual resources in the virtual resource liquidity pool. In the virtual resource liquidity pool, the product of the quantities of the two virtual resources should be a fixed value. The rules of the virtual resource liquidity pool are fixed. For example: The rule of a certain virtual resource liquidity pool is the constant product rule, that is, the quantity of virtual resource A (x) * the quantity of virtual resource B (y) = a constant (i.e., x * y = k); assuming that the quantity of virtual resource A * 100 and the quantity of virtual resource B is 100,000 = 1,000,000, then the resource transfer processing occurring in this virtual resource pool does not affect the product of the quantity of virtual resource A and the quantity of virtual resource B in this virtual resource pool: when the quantity of virtual resource A becomes more, then the quantity of virtual resource B will become less; and the less the quantity of virtual resource B, the more virtual resource A needs to be paid when exchanging virtual resource B.

[0040] When performing virtual resource transfer, usually after receiving a resource transfer request sent by a resource transfer object, the resource transfer process corresponding to the resource transfer request is immediately executed. Then, the determination method of the execution time of the resource transfer process is fixed and is only determined according to the sending time of the resource transfer request. This method may cause the execution time of the resource transfer process not to be the optimal execution time, and the resource exchange ratio corresponding to the execution time of the resource transfer process may be less than the resource exchange ratio corresponding to the optimal execution time, resulting in the loss of virtual resources.

[0041] Based on this, the embodiments of the present application provide a blockchain-based data processing method, which can obtain reference resource transfer data of a resource transfer platform. The reference resource transfer data includes first resource exchange information for each first transfer time period in the first transfer time. The first resource exchange information includes the exchange information between the first virtual resource and the second virtual resource within the corresponding first transfer time period. The resource transfer platform is built based on a blockchain network; according to the first resource exchange information for each first transfer time period, predict the fluctuation information of the second resource exchange information for each second transfer time period in the second transfer time; the second transfer time is later than the first transfer time; according to the fluctuation information of the second resource exchange information for each second transfer time period, determine the target transfer time period from the multiple second transfer time periods included in the second transfer time; wherein, the transfer execution time for the resource transfer platform to execute the resource transfer process for the resource transfer request is within the target transfer time period, the transfer request time of the resource transfer request is within the earliest second transfer time period in the second transfer time, and the resource transfer request is used to request to exchange the first virtual resource under the blockchain address for the second virtual resource. Through the blockchain-based data processing method provided by the embodiments of the present application, the optimal resource transfer time can be determined according to the predicted fluctuation information, and the resource transfer process can be realized at the optimal resource transfer time, which is beneficial to reducing the loss of virtual resources.

[0042] The data processing method based on blockchain provided by the embodiments of this application can also be applied to the field of cloud computing. Cloud computing is a computing model that distributes computing tasks across a resource pool composed of a large number of computing devices, enabling various application systems to obtain computing power, storage space, and information services as needed. The cloud computing resource pool mainly includes: computing devices (virtualized machines containing operating systems), storage devices, and network devices. The method provided by this application can be implemented using cloud computing technology: cloud computing devices can be used to obtain reference resource transfer data of the resource transfer platform, which is built based on a blockchain network. The reference resource transfer data can include first resource exchange information for each first transfer time period within the first transfer time; based on the first resource exchange information for each first conversion time period, cloud computing technology can be used to predict the fluctuation information of the second resource exchange information for each second transfer time period within the second transfer time, and the target transfer time period can be determined based on the fluctuation information of the second resource exchange information for each second transfer time period. Through the method provided by the embodiments of this application, the optimal resource transfer time can be determined based on the predicted fluctuation information, and resource transfer processing can be achieved at the optimal resource transfer time, which is beneficial to reducing the loss of virtual resources.

[0043] The resource transfer platform involved in the resource processing method based on blockchain provided by this application can be a blockchain system formed by connecting multiple nodes through network communication. See Figure 1 , which is a schematic structural diagram of a blockchain system provided by the embodiments of this application. The blockchain network 101 consists of multiple nodes 102 (any form of computing device connected to the network, such as a server or a user terminal) and a client 103; a peer-to-peer network is formed between the nodes, and the peer-to-peer protocol is an application layer protocol running on top of the Transmission Control Protocol (TCP). In a blockchain system, any machine such as a server or a terminal can join and become a node, and a node includes a hardware layer, a middle layer, an operating system layer, and an application layer.

[0044] See Figure 1 The functions of each node in the shown blockchain system involve the following functions:

[0045] 1. Routing, which is a basic function of a node and is used to support communication between nodes.

[0046] In addition to the routing function, a node can also have the following functions:

[0047] 2. Application, which is used to be deployed in a blockchain, implements specific services according to actual business requirements, records data related to the implemented functions to form recorded data, carries a digital signature in the recorded data to indicate the source of the task data, and sends the recorded data to other nodes in the blockchain system. When other nodes verify the source and integrity of the recorded data successfully, the recorded data is added to a temporary block.

[0048] For example, the services implemented by the application include:

[0049] 2.1 Resource storage address, which is used to provide a resource transfer function for electronic resources, including initiating a resource transfer process (i.e., sending the resource transfer record of the current resource transfer process to other nodes in the blockchain system. After other nodes verify successfully, as a response to acknowledging the effectiveness of the resource transfer process, the recorded data of the resource transfer process is stored in the temporary block of the blockchain. Of course, the resource storage address also supports querying the remaining electronic resources in the electronic resource address;

[0050] 2.2 Shared ledger, which is used to provide functions such as storage, query, and modification of account data, sends the recorded data of operations on the account data to other nodes in the blockchain system. After other nodes verify its effectiveness, as a response to acknowledging the effectiveness of the account data, the recorded data is stored in the temporary block, and can also send a confirmation to the node that initiated the operation.

[0051] 2.3 Smart contract, a computerized protocol that can execute the terms of a certain contract, is implemented by code deployed on the shared ledger and executed when certain conditions are met. According to actual business requirements, the code is used to complete automated resource transfer processes, such as querying the logistics status of goods purchased by a buyer and transferring the buyer's electronic resources to the merchant's address after the buyer signs for the goods. Of course, smart contracts are not limited to executing contracts for resource transfer processes, but can also execute contracts for processing received information.

[0052] 3. Blockchain, including a series of blocks (Block) that are sequentially connected in the order of generation. Once a new block is added to the blockchain, it will not be removed again. The block records the recorded data submitted by nodes in the blockchain system.

[0053] Please refer to Figure 2 , which is a schematic diagram of a block structure provided by an embodiment of the present application. Figure 2 It includes three blocks, Block 1, Block 2, and Block 3. Each block includes data, the hash value of the resource transfer record stored in this block (the hash value of this block), and the hash value of the previous block. Each block is connected through the hash value to form a blockchain. In addition, the block may also include information such as the timestamp when the block is generated.

[0054] Next, the architecture of the blockchain-based data processing system provided in the embodiments of the present application will be introduced in conjunction with the accompanying drawings.

[0055] Please refer to Figure 3 , which is a schematic diagram of the system architecture of a blockchain-based data processing system provided in the embodiments of the present application. The blockchain-based data processing system includes a terminal device 301, a resource transfer platform 302, and a database 303. The resource transfer platform is constructed based on the blockchain network as described above Figure 1 shown. The resource transfer platform 302 includes multiple blockchain nodes (such as Figure 3 node 1, node 2... node N in, where N is an integer greater than 2). The blockchain nodes can receive requests sent by the terminal device 301 and implement corresponding functions. Among them:

[0056] The terminal device 301 can perform data interaction with the blockchain nodes in the resource transfer platform and can also generate a resource transfer request. The terminal device 301 can be a handheld device with information generation and communication functions (such as a smart phone, a tablet computer), a computing device (such as a personal computer (Personal Computer, PC), a vehicle-mounted terminal, a smart voice interaction device, a wearable device, or other intelligent devices, but not limited thereto.

[0057] The resource transfer platform 302 can be constructed based on the blockchain network as described above Figure 1 shown. The resource transfer platform 302 can include multiple nodes; these nodes can implement resource transfer processing of virtual resources and can also respond to resource transfer requests sent by the terminal device 301. The resource transfer platform 302 can construct a virtual resource flow pool, which includes various different types of virtual resources, and the virtual resource flow pool operates according to fixed rules to ensure the stability of the virtual resource transfer platform. The resource transfer platform 302 can be a server cluster or a distributed system composed of multiple physical servers, and can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery network (Content Delivery Network, CDN), and big data and artificial intelligence platforms.

[0058] The database 303 is used to store relevant data in the resource transfer platform 302, such as reference resource transfer data, etc. All blockchain nodes in the resource transfer platform 302 can access the database 303 and obtain data. The database 303 can be a cloud database associated with the resource transfer platform 302 (i.e., a database deployed in the cloud), and can be specifically deployed based on any one of private cloud, public cloud, hybrid cloud, edge cloud, etc., so that the functions emphasized by the cloud database are different. For example, for a database deployed in a private cloud, the basic cloud hardware is the user's personal device, which is more focused on serving a small number of users. While for a database deployed in a public cloud, it is deployed based on a cloud platform provided by a third party, which can enable data sharing of the data stored in the database, and any user's data can be stored in this database, and any user can also use the data in the database.

[0059] The working principle of the blockchain-based data processing system as Figure 3 shown will be elaborated in detail below:

[0060] Node 2 in the resource transfer platform 302 can obtain the reference resource transfer data of the resource transfer platform 302 from the database 303. The reference resource transfer data may include first resource exchange information for each first transfer time period in the first transfer time. The first resource exchange information includes the exchange information between the first virtual resource and the second virtual resource within the corresponding first transfer time period. A virtual resource flow pool for the first virtual resource and the second virtual resource may be included in the resource transfer platform 302; Node 2 can predict the fluctuation information of the second resource exchange information for each second transfer time period in the second transfer time according to the first resource exchange information for each first transfer time period; and the second transfer time is later than the first transfer time. Node 2 can determine the target transfer time period from the multiple second transfer time periods included in the second transfer time according to the fluctuation information of the second resource exchange information for each second transfer time period.

[0061] Assume that Node 2 receives a resource transfer request sent by the terminal device 301. The resource transfer request is used to request to exchange the first virtual resource under the blockchain address for the second virtual resource, and the transfer request time of this resource transfer request is within the earliest second transfer time period among the above-mentioned second transfer times. Then it can be determined that the best execution time of this resource transfer request is within the target transfer time period. Then the resource transfer platform 302 can perform resource transfer processing for the above resource transfer request, and the time for performing the resource transfer processing is within the target transfer time period. Through the blockchain-based data processing method provided by the embodiments of the present application, the best resource transfer time can be determined according to the predicted fluctuation information, and resource transfer processing can be achieved at the best resource transfer time, which is beneficial to reducing the loss of virtual resources.

[0062] It should be understood that the schematic architecture diagram of the blockchain-based data processing system described in the embodiments of the present application is for more clearly explaining the blockchain-based data processing method of the embodiments of the present application, and does not constitute a limitation on the blockchain-based data processing method provided by the embodiments of the present application. For example, the blockchain-based data processing method provided by the embodiments of the present application can be executed not only by the nodes in the resource transfer platform 302, but also by other devices different from the resource transfer platform 302 and capable of communicating with the terminal device 301. As is known to those of ordinary skill in the art, Figure 3 the numbers of the terminal device 301, the nodes in the resource transfer platform 302, and the database 303 are merely illustrative. According to the needs of business implementation, devices and nodes with any number can be configured. Moreover, with the evolution of the system architecture and the emergence of new business scenarios, the blockchain-based data processing method provided by the embodiments of the present application is equally applicable to similar technical problems.

[0063] It should be noted that the collection and processing of relevant data in the present application (for example: the reference resource transfer data of the resource transfer platform) should strictly comply with the requirements of relevant laws and regulations during actual application, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing behaviors within the scope authorized by laws and regulations and the personal information subject.

[0064] Please refer to Figure 4 , Figure 4 which is a schematic flowchart of a blockchain-based data processing method provided by an embodiment of the present application. This blockchain-based data processing method can be implemented by the above-mentioned resource transfer platform 302 or by other devices. The process of the blockchain-based data processing method provided by the embodiments of the present application includes but is not limited to:

[0065] S401. Obtain the reference resource transfer data of the resource transfer platform, where the reference resource transfer data includes the first resource exchange information for each first transfer time period in the first transfer time, and the first resource exchange information includes the exchange information between the first virtual resource and the second virtual resource within the corresponding first transfer time period, and the resource transfer platform is constructed based on a blockchain network.

[0066] In the embodiments of the present application, a resource transfer platform may receive a resource transfer request sent by a client to implement resource transfer processing of virtual resources or exchange between different types of virtual resources. The resource transfer platform may construct a virtual resource flow pool, and all resource transfer processing executed in the resource transfer platform is associated with the virtual resource flow pool. The virtual resource flow pool includes various types of virtual resources, and the virtual resource flow pool generally operates according to fixed rules. For example: The virtual resource flow pool in the resource transfer platform includes a first virtual resource and a second virtual resource, and the fixed rule of the virtual resource flow pool is the constant product rule. Then, the product of the quantity of the first virtual resource and the quantity of the second virtual resource in the virtual resource flow pool is a constant, and this product remains unchanged after the resource transfer processing between the resource transfer platform and the client. As can be seen from the above, after the resource transfer processing, the quantity of the first virtual resource and the quantity of the second virtual resource in the virtual resource flow pool will change, and the exchange ratio between the first virtual resource and the second virtual resource will also change. To avoid losses of virtual resources, the resource transfer processing should be performed at an appropriate time, and the method provided in the present application can be used to determine the target transfer time period.

[0067] The resource transfer platform may be constructed based on a blockchain network, and the resource transfer platform may include multiple nodes. The nodes in the resource transfer platform may obtain reference resource transfer data, and the reference resource transfer data may include first resource exchange information for each first transfer time period in a first transfer time. The first transfer time may be the time between the current moment and a certain moment in the past. For example: The first transfer time may be from the current moment to a month ago (i.e., the time length of the first transfer time is one month), and the first transfer time may also be from the current moment to a week ago (i.e., the time length of the first transfer time is one week). The first transfer time may include multiple first transfer time periods, and the time lengths of each first transfer time period are the same and the times corresponding to different first transfer time periods are different. For example: If the first transfer time is one month, then the first transfer time period may be each day in that month. At this time, the first transfer time may include 30 first transfer time periods. Another example: If the first transfer time is one week, then the time length of the first transfer time period may be 12 hours. At this time, the first transfer time may include 14 first transfer time periods. The first transfer time and the first transfer time periods may be determined according to actual application requirements.

[0068] The first resource exchange information of the first transfer time period may include the exchange information between the first virtual resource and the second virtual resource within the first transfer time period. The exchange information may be the relevant information of the resource transfer process between the first virtual resource and the second virtual resource executed within the first transfer time period (such as the exchange quantity, exchange time, exchange ratio, etc.). For example, if the first transfer time period is November 20th, and the resource transfer platform executed 30 resource transfer processes for the first virtual resource and the second virtual resource on November 20th, then the first resource exchange information of the first transfer time period may include all the relevant information of the 30 resource transfer processes executed by the resource transfer platform for the first virtual resource and the second virtual resource on November 20th. In some cases, the exchange information may also be the average exchange ratio between the first virtual resource and the second virtual resource within the first transfer time period. For example, if the first transfer time period is November 20th, and the resource transfer platform executed 30 resource transfer processes for the first virtual resource and the second virtual resource on November 20th, and through arithmetic operations based on these 30 resource transfer processes, the average exchange ratio between the first virtual resource and the second virtual resource is determined to be S1; then the first resource exchange information of the first transfer time period may include the average exchange ratio S1 between the first virtual resource and the second virtual resource on November 20th by the resource transfer platform. Through the method provided by the embodiments of the present application, the reference resource transfer data of the resource transfer platform can be obtained, which is beneficial to the data analysis and prediction of the reference resource transfer data, so as to predict the fluctuation information of the second transfer time, and further determine the accurate target transfer time period.

[0069] S402. Predict the fluctuation information of the second resource exchange information of each second transfer time period in the second transfer time according to the first resource exchange information of each first transfer time period; the second transfer time is later than the first transfer time.

[0070] In the embodiments of the present application, the resource transfer platform may predict the fluctuation information of the second resource exchange information in each second transfer time period according to the first resource exchange information in each first transfer time period. Since the first resource exchange information in each first transfer time period can to a certain extent reflect the fluctuation of the exchange ratio between the first virtual resource and the second virtual resource, prediction processing may be performed according to the first resource exchange information in each first transfer time period to obtain the fluctuation information of the second resource exchange information in each second transfer time period in the second transfer time. The second transfer time is later than the first transfer time, and the time length of the second transfer time may be different from the time length of the first transfer time. The time length of the second transfer time period is the same as the time length of the above-mentioned first transfer time period. For example, if the time length of the first transfer time is one month and the time length of the first transfer time period is one day, then the first resource exchange information for each day in the previous month can be determined, and the fluctuation information of the second resource exchange information for each day in the second transfer time can be predicted.

[0071] The fluctuation information of the second resource exchange information in the second transfer time period can to a certain extent reflect the volatility of the first virtual resource and the second virtual resource in the second transfer time period. This volatility can reflect whether there is an abnormality in the exchange process between the first virtual resource and the second virtual resource, and can also indirectly reflect the exchange ratio between the first virtual resource and the second virtual resource in each second time period. When the fluctuation information indicates that the resource exchange ratio between the first virtual resource and the second virtual resource is large within a period of time, it means that resource transfer processing during this period is likely to cause losses of virtual resources. For example, at a certain moment, 1 first virtual resource can be exchanged for 1 second virtual resource, and a resource transfer object can exchange 10 first virtual resources to obtain 10 second virtual resources. However, due to the large fluctuation of the resource exchange ratio between the first virtual resource and the second virtual resource, at another moment, 1 first virtual resource can be exchanged for 2 second virtual resources. At this time, using 10 first virtual resources can obtain 20 second virtual resources. Therefore, for the resource transfer object, this virtual resource object has lost some virtual resources. Therefore, in some cases, the second transfer time period with a smaller volatility and a larger exchange ratio can be determined as the target transfer time period according to the fluctuation information of the second resource exchange information in each second transfer time period. Through the method provided by the embodiments of the present application, the fluctuation information of the second resource exchange information in each second transfer time period can be accurately and effectively determined, which is beneficial to accurately determining the target transfer time period, thereby helping to reduce losses of virtual resources.

[0072] S403. Determine a target transfer time period from the multiple second transfer time periods included in the second transfer time according to the fluctuation information of the second resource exchange information in each second transfer time period.

[0073] In the embodiments of the present application, the fluctuation information of the second resource exchange information in each second transfer time period can reflect the fluctuation of the resource exchange rate between the first virtual resource and the second virtual resource within the second transfer time. Then, the resource transfer platform can determine a target transfer time period from multiple second transfer time periods included in the second transfer time according to the fluctuation information of the second resource exchange information in each second transfer time period and the actual application requirements. For example, if the actual application requirement is that the resource exchange ratio is relatively stable, the resource transfer platform can select a second transfer time period with relatively stable fluctuation information from the second transfer time as the target transfer time period. Another example: if the actual application requirement is that the resource exchange ratio is relatively high, the resource transfer platform can select a second transfer time period with relatively large fluctuation information and a relatively high resource exchange ratio corresponding to the fluctuation information from the second transfer time as the target transfer time period.

[0074] A node in the resource transfer platform receives a resource transfer request sent by a client. The resource transfer request is used to exchange the first virtual resource under the blockchain address for the second virtual resource, and the blockchain address is the address corresponding to the client for storing virtual resources. If the transfer request time of the resource transfer request (the transfer request time can be the time when the client sends the resource transfer request or the time when the resource transfer platform receives the resource transfer request) is within the second transfer time period with the earliest time in the second transfer time, then the transfer execution time for the resource transfer platform to perform resource transfer processing for this resource transfer request can be within the target transfer time period, that is, the resource transfer platform can perform the resource transfer processing corresponding to this resource transfer request within the target transfer time period. For example, the second transfer time is from 0:00 on November 1st to 24:00 on November 3rd, and the time length of the second transfer time period is one day, then the second transfer time includes 3 second transfer time periods; the target transfer time period determined by using the method provided in the present application is from 0:00 on November 2nd to 24:00 on November 2nd; assuming that the resource transfer platform receives a resource transfer request sent by the client at 9:00 on November 1st, and the resource transfer request is used to request to exchange the first virtual resource under the blockchain address for the second virtual resource, then the resource transfer platform can execute this resource transfer request within the target transfer time period (that is, from 0:00 on November 2nd to 24:00 on November 2nd), and exchange the first virtual resource for the second virtual resource. By using the method provided in the embodiments of the present application, the best resource transfer time can be determined according to the predicted fluctuation information, and the resource transfer processing can be realized at the best resource transfer time, which is beneficial to reducing the loss of virtual resources.

[0075] In one embodiment, the resource transfer platform may periodically determine the target transfer time period by using the method provided in this application. For example, the resource transfer platform may regularly determine the target transfer time period at zero o'clock every day, and all resource transfer requests that meet the requirements received on the same day can be executed within the target transfer time period. The resource transfer platform may also, after receiving a resource transfer request, specifically use the method provided in this application to determine the target transfer time period. For example, when the resource transfer platform receives a specific resource transfer request sent by a client, and this specific resource transfer request is used to request the exchange of a third virtual resource under a blockchain address for a fourth virtual resource, the method provided in this application can be used to obtain the target resource transfer data of the resource transfer platform. The target resource transfer data may include the third resource exchange information for each third transfer time period in the third transfer time. The third resource exchange information includes the exchange information between the third virtual resource and the fourth virtual resource within the corresponding third transfer time period. And the target transfer time period is determined according to the target resource transfer data. The resource transfer platform implements the resource transfer process corresponding to the specific resource transfer request within the target transfer time period. By using the method provided in the embodiments of this application, the target transfer time period (i.e., the optimal resource transfer time) can be determined by multiple methods, which can effectively meet the application requirements, improve the usage experience, and is also beneficial to reducing the loss of virtual resources.

[0076] Please refer to Figure 5 , which is a schematic diagram of a kind of fluctuation information provided by the embodiments of this application. Nodes in the resource transfer platform can obtain the reference resource transfer data of the resource transfer platform. The reference resource transfer data includes the first resource exchange information for each first transfer time period in the first transfer time. The first transfer time can be one week, and the first transfer time period can be one day. Then the first transfer time includes 7 first transfer time periods (as Figure 5 shown, the ordinate represents the resource exchange volatility, the abscissa represents the transfer time period, and the identifiers corresponding to the 7 first transfer time periods are t1 - t7); the first resource exchange information includes the exchange information between the first virtual resource and the second virtual resource within the corresponding first transfer time period. The nodes can determine the resource exchange volatility of each first transfer time period according to the first resource exchange information. For example, the points corresponding to each first transfer time period in Figure 5 are the resource exchange volatility of that first transfer time period. The fluctuation information (i.e., the resource exchange volatility) of the second virtual resource exchange information for each second transfer time period (the time length of the second transfer time period is 1 day, as Figure 5 shown, the identifiers corresponding to the 3 second transfer time periods are t8 - t10) in the second transfer time (the time length of the second transfer time is 3 days) can be predicted according to the resource exchange volatility of each first transfer time period. As Figure 5As shown by the points connected by the dotted line in the figure. Then, the resource transfer platform can determine the target transfer time period from multiple second transfer time periods included in the second transfer time according to the fluctuation information of the second resource exchange information in each second transfer time period. Through the method provided by the embodiments of the present application, the fluctuation information of the second transfer time can be predicted using the existing data, and the best resource transfer time can be accurately determined according to the fluctuation information, effectively improving the usage experience and also helping to reduce the loss of virtual resources.

[0077] Through the blockchain-based data processing method provided by the embodiments of the present application, the reference resource transfer data of the resource transfer platform can be obtained, so that the fluctuation of the resource exchange ratio within the first transfer time can be determined according to the reference resource transfer data, facilitating the subsequent determination of the best transfer time; the fluctuation information corresponding to the second transfer time can be predicted according to the first resource exchange information, effectively improving the accuracy of the predicted fluctuation information; the target transfer time period can be determined from multiple second transfer time periods according to the application requirements, so that the execution time of the resource transfer process can be controlled, making the execution time of the resource transfer process more reasonable, better meeting the application requirements, helping to reduce the loss of virtual resources, and improving the processing effect of the resource transfer process.

[0078] Please refer to Figure 6 , Figure 6 which is a schematic flowchart of another blockchain-based data processing method provided by the embodiments of the present application. This blockchain-based data processing method can be implemented by the above-mentioned resource transfer platform 302 or by other devices. The process of the blockchain-based data processing method provided by the embodiments of the present application includes but is not limited to:

[0079] S601. Obtain the reference resource transfer data of the resource transfer platform, where the reference resource transfer data includes the first resource exchange information of each first transfer time period in the first transfer time, and the first resource exchange information includes the exchange information between the first virtual resource and the second virtual resource within the corresponding first transfer time period, and the resource transfer platform is constructed based on a blockchain network.

[0080] In the embodiments of the present application, a resource transfer platform can receive a resource transfer request sent by a client to implement resource transfer processing of virtual resources or exchange between different types of virtual resources. The resource transfer platform can construct a virtual resource flow pool, and all resource transfer processing executed in the resource transfer platform is associated with the virtual resource flow pool. The virtual resource flow pool includes various types of virtual resources, and the virtual resource flow pool generally operates according to fixed rules. For example: The virtual resource flow pool in the resource transfer platform contains a first virtual resource and a second virtual resource, and the fixed rule of this virtual resource flow pool is the constant product rule. Then, the product of the quantity of the first virtual resource and the quantity of the second virtual resource in the virtual resource flow pool is a constant. And after the resource transfer processing between the resource transfer platform and the client, this product remains unchanged. Suppose the virtual resource flow pool includes a first virtual resource and a second virtual resource, and in this virtual resource flow pool, the quantity of the first virtual resource * the quantity of the second virtual resource = a constant (100 * 10,000 = 1,000,000). Now, a certain resource transfer object holds the second virtual resource as its resource type, and the quantity of the first virtual resource in the current virtual resource flow pool is 100. This resource transfer object wants to exchange for 10 first virtual resources. After exchanging for 10 first virtual resources, the remaining quantity of the first virtual resource in the flow pool is 90. Then, according to the product invariance rule, the quantity of the second virtual resource needs to rise to 11,111.111 to keep the product of the quantities of the two virtual resources unchanged. That is, this resource transfer object needs to transfer 1,111.111 second virtual resources into the virtual resource flow pool to achieve the resource exchange processing. At this time, the exchange ratio of the first virtual resource to the second virtual resource is 1:11,111.111.

[0081] The resource transfer platform can be constructed based on a blockchain network, and multiple nodes can be included in the resource transfer platform. The nodes in the resource transfer platform can obtain reference resource transfer data, and the reference resource transfer data can include first resource exchange information for each first transfer time period within a first transfer time. The first transfer time can be the time between the current moment and a certain moment in the past. For example: The first transfer time can be the time from the current moment to one month ago (i.e., the time length of the first transfer time is one month), and the first transfer time can also be the time from the current moment to one week ago (i.e., the time length of the first transfer time is one week). The first transfer time can include multiple first transfer time periods, and the time lengths of each first transfer time period are the same and the times corresponding to different first transfer time periods are different.

[0082] The first resource exchange information of the first transfer time period may include the exchange information between the first virtual resource and the second virtual resource within the first transfer time period. The exchange information may be the relevant information of the resource transfer process between the first virtual resource and the second virtual resource executed within the first transfer time period (such as the exchange quantity, exchange time, exchange ratio, etc.). In some cases, the exchange information may also be the average exchange ratio between the first virtual resource and the second virtual resource within the first transfer time period. Through the method provided by the embodiments of the present application, the reference resource transfer data of the resource transfer platform can be obtained, which is beneficial to the data analysis and prediction of the reference resource transfer data, so as to obtain an accurate target transfer time period.

[0083] S602. Predict the fluctuation information of the second resource exchange information of each second transfer time period according to the first resource exchange information of each first transfer time period; the second transfer time is later than the first transfer time.

[0084] In the embodiments of the present application, the resource transfer platform may predict the fluctuation information of the second resource exchange information of each second transfer time period according to the first resource exchange information of each first transfer time period. Since the first resource exchange information of each first transfer time period can to a certain extent reflect the fluctuation of the exchange ratio between the first virtual resource and the second virtual resource, prediction processing can be performed according to the first resource exchange information of each first transfer time period to obtain the fluctuation information of the second resource exchange information of each second transfer time period. The second transfer time is later than the first transfer time, and the time length of the second transfer time may be different from the time length of the first transfer time. The time length of the second transfer time period is the same as the time length of the above-mentioned first transfer time period. For example, the time length of the first transfer time is one month, and the time length of the first transfer time period is one day, that is, the first resource exchange information of each day in the previous month can be determined, and the fluctuation information of the second resource exchange information of each day in the second transfer time can be predicted.

[0085] The fluctuation information of the second resource exchange information in the second transfer time period can, to a certain extent, reflect the volatility of the first virtual resource and the second virtual resource in the second transfer time period. This volatility can reflect whether there are abnormalities in the exchange process between the first virtual resource and the second virtual resource, and can also indirectly reflect the exchange ratio between the first virtual resource and the second virtual resource in each second time period. In some cases, the second transfer time period with a smaller volatility and a larger exchange ratio can be determined as the target transfer time period based on the fluctuation information of the second resource exchange information in each second transfer time period. Through the method provided in the embodiments of this application, the fluctuation information of the second resource exchange information in each second transfer time period can be accurately and effectively determined, which is conducive to accurately determining the target transfer time period, thereby reducing the loss of virtual resources.

[0086] In one embodiment, the implementation method for predicting the fluctuation information of the second resource exchange information in each second transfer time period according to the first resource exchange information in each first transfer time period can be as follows: According to the first resource exchange information in each first transfer time period, determine the first exchange quantity in each first transfer time period. The first exchange quantity is used to indicate the quantity of the second virtual resource exchanged for a unit quantity of the first virtual resource in the corresponding first transfer time period; According to the first exchange quantity in each first transfer time period, determine the fluctuation information of the first resource exchange information in each first transfer time period; Use the fluctuation information of the first resource exchange information in each first transfer time period for prediction processing to obtain the fluctuation information of the second resource exchange information in each second transfer time period in the second transfer time. When predicting the fluctuation information of the second transfer time using the first resource exchange information, the first exchange quantity in each first transfer time period can be determined according to the first resource exchange information in each first transfer time period. This exchange quantity is used to indicate the quantity of the second virtual resource that can be exchanged for a unit quantity of the first virtual resource in the corresponding first transfer time period. The first resource exchange information can be all the resource transfer information between the first virtual resource and the second virtual resource in the corresponding first transfer time period, or the average exchange ratio between the first virtual resource and the second virtual resource in the first transfer time period: When the first resource exchange information is all the resource transfer information between the first virtual resource and the second virtual resource in the corresponding first transfer time period, the first exchange quantity of this first transfer time period can be determined by performing a mean calculation according to the first resource exchange information; When it is the average exchange ratio between the first virtual resource and the second virtual resource in the first transfer time period, the average exchange ratio can be converted into a unit average exchange ratio, and this unit average exchange ratio can be determined as the first exchange ratio.

[0087] The resource transfer platform can determine the fluctuation information of the first resource exchange information for each first transfer time period according to the first exchange quantity for each first transfer time period. The fluctuation information of the first resource exchange information for the first transfer time period can reflect the fluctuation of the exchange ratio between the first virtual resource and the second virtual resource during the first transfer time. The fluctuation information of the first resource exchange information for each first transfer time period can be used for prediction processing to obtain the fluctuation information of the second resource exchange information for each second transfer time period during the second transfer time. Through the method provided in the embodiments of the present application, the fluctuation information of the second resource exchange information for each second transfer time period can be predicted, which is beneficial to accurately determining the target transfer time period and reducing the loss of virtual resources.

[0088] In one embodiment, the resource transfer platform can perform curve fitting processing using the fluctuation information of the first resource exchange information for each first transfer time period to obtain an intuitive fluctuation curve, and make predictions based on this fluctuation curve to determine the fluctuation information of the second resource exchange information for each second transfer time period. Through the method provided in the present application, visualization processing of the fluctuation of the virtual resource exchange ratio can be realized, and the potential benefits or losses in the virtual resource transfer process can be intuitively reflected through the fluctuation curve. Thus, the accuracy of determining the target transfer time period can be improved, and it can well assist the resource transfer object in resource transfer processing, thereby reducing the loss of virtual resources.

[0089] It should be noted that when performing curve fitting processing using the fluctuation information of the first resource exchange information for each first transfer time period, it can be achieved using a drawing tool or other methods.

[0090] In one embodiment, the implementation manner of determining the fluctuation information of the first resource exchange information according to the first exchange quantity of each first transfer time period may be as follows: determining the target weight value of each first transfer time period; using the first exchange quantity of each first transfer time period and the target weight value of the corresponding first transfer time period for weighted calculation to determine the weighted exchange quantity of each first transfer time period; using the weighted exchange quantities of each first transfer time period for mean calculation to obtain the average exchange quantity of the first transfer time; determining the fluctuation information of each first transfer time period according to the difference between the first exchange quantity and the average exchange quantity of each first transfer time period. When determining the fluctuation information of the first resource exchange information, the resource transfer platform may determine the target weight value of each first transfer time period, and the target weight values of different first transfer time periods may be different; the first exchange quantity of each first transfer time period and the target weight value of this first transfer time period may be used for weighted calculation to obtain the weighted exchange quantity of each first transfer time period; the weighted exchange quantities of each first transfer time period may be used for summation and mean calculation to obtain the average exchange quantity of the first transfer time, and this average exchange quantity may indicate the average resource exchange ratio of the first virtual resource exchanged for the second virtual resource within the first transfer time.

[0091] The resource transfer platform may determine the fluctuation information of each first transfer time period according to the difference between the first exchange quantity and the average exchange quantity of each first transfer time period. For example: the resource transfer platform may determine the difference between the first exchange quantity and the average exchange quantity of each first transfer time period, that is, obtain the exchange offset of each first transfer time period, and the absolute values of the exchange offsets of each first transfer time period may be added and summed to obtain the total offset, and then the total offset may be used to normalize the exchange offsets of each first transfer time period to obtain the fluctuation information of each first transfer time period. Through the method provided by the embodiments of the present application, the fluctuation information of the first transfer time period can be effectively determined, which is convenient for subsequent prediction processing using the fluctuation information of each first transfer time period to obtain the accurate fluctuation information of the second transfer time period, ensuring the accuracy of the method.

[0092] In one embodiment, the implementation method for determining the target weight values of each first transfer time period may be as follows: sort each first transfer time period in the first transfer time in chronological order to obtain a sorted sequence of transfer time periods; determine the initial weight values of each first transfer time period according to the arrangement positions of each first transfer time period in the sorted sequence of transfer time periods. The initial weight value of the first transfer time period in the sorted sequence of transfer time periods increases as the arrangement position increases; determine the intermediate weight values of each first transfer time period according to the exception information of each first transfer time period. The exception information of the first transfer time period includes information on abnormal resource transfer processing that occurs during the first transfer time period; calculate the initial weight values and the intermediate weight values of each first transfer time period to obtain the target weight values of each first transfer time period. When determining the target weight value of the first transfer time period, first sort each first transfer time period in the first transfer time in chronological order to obtain a sorted sequence of transfer time periods; the resource transfer platform may determine the initial weight values of each first transfer time period according to the arrangement positions of each first transfer time period in the sorted sequence of transfer time periods, and the initial weight value of the first transfer time period in the sorted sequence of transfer time periods increases as the arrangement position increases, that is, based on the current time, the closer the first transfer time period is to the current time, the larger its initial weight value, and the farther the first transfer time period is from the current time, the smaller its initial weight value, because the first exchange quantity of the first transfer time closer to the current time is more referenceable, so its initial weight value is larger.

[0093] The resource transfer platform can also determine the intermediate weight values for each first transfer time period based on the exception information for each first transfer time period. The exception information for the first transfer time period can include information on the abnormal resource transfer processing that occurred during the first transfer time period. If the exception information for a certain first transfer time period indicates that abnormal resource transfer processing occurred during the first transfer time period, it means that the first exchange quantity for the first transfer time period may not be of reference value, and its weight should be reduced. The intermediate weight value for the first transfer time period can be less than 1. The intermediate weight value for the first transfer time period can also be determined based on information such as the exception level, exception category, and abnormal transfer quantity of the abnormal resource transfer processing that occurred during the first transfer time period. If the exception information for a certain first transfer time period indicates that no abnormal resource transfer processing occurred during the first transfer time period, it means that the first exchange quantity for the first transfer time period is of reference value, and its weight should be increased. The intermediate weight value for the first transfer time period can be greater than or equal to 1. The resource transfer platform can calculate the initial weight value and the intermediate weight value for each first transfer time period to obtain the target weight value for each first transfer time period. For example: The resource transfer platform can perform a multiplication calculation on the initial weight value of the first transfer time period and the intermediate weight value of the first transfer time period to obtain the target weight value of the first transfer time period. Through the method provided in the embodiments of the present application, various influencing factors can be comprehensively considered to determine the target weight value of the first transfer time period, thereby ensuring the accuracy and reasonableness of the prediction result, and further facilitating the reduction of losses of virtual resources.

[0094] S603. Determine a target transfer time period from the multiple second transfer time periods included in the second transfer time according to the fluctuation information of the second resource exchange information for each of the second transfer time periods.

[0095] In the embodiments of the present application, the fluctuation information of the second resource exchange information for each of the second transfer time periods can reflect the fluctuation of the resource exchange rate between the first virtual resource and the second virtual resource during the second transfer time. Then, the resource transfer platform can determine the target transfer time period from the multiple second transfer time periods included in the second transfer time according to the fluctuation information of the second resource exchange information for each of the second transfer time periods and the actual application requirements. For example: If the actual application requirement is that the resource exchange ratio is relatively stable, the resource transfer platform can select a second transfer time period with relatively stable fluctuation information from the second transfer time as the target transfer time period; Another example: If the actual application requirement is that the resource exchange ratio is relatively high, the resource transfer platform can select a second transfer time period with relatively large fluctuation information and a relatively high resource exchange ratio corresponding to the fluctuation information from the second transfer time as the target transfer time period.

[0096] A node in the resource transfer platform receives a resource transfer request sent by a client. The resource transfer request is used to exchange a first virtual resource under a blockchain address for a second virtual resource, and the blockchain address is the address corresponding to the client for storing virtual resources. If the transfer request time of the resource transfer request (the transfer request time can be the time when the client sends the resource transfer request or the time when the resource transfer platform receives the resource transfer request) is within the second transfer time period with the earliest time among the second transfer time periods, the transfer execution time for the resource transfer platform to perform resource transfer processing for the resource transfer request can be within the target transfer time period, that is, the resource transfer platform can perform the resource transfer processing corresponding to the resource transfer request within the target transfer time period. Through the method provided in the embodiments of the present application, the target transfer time period can be determined according to application requirements, making the execution time of resource transfer processing more reasonable and also helping to reduce the loss of virtual resources.

[0097] In one embodiment, the resource transfer platform can periodically use the method provided in the present application to determine the target transfer time period. For example, the resource transfer platform can regularly determine the target transfer time period at zero o'clock every day, and all eligible resource transfer requests received on the same day can be executed within the target transfer time period. The resource transfer platform can also, after receiving a resource transfer request, specifically use the method provided in the present application to determine the target transfer time period. For example, when the resource transfer platform receives a specific resource transfer request sent by a client, and the specific resource transfer request is used to request exchanging a third virtual resource under a blockchain address for a fourth virtual resource, the method provided in the present application can be used to obtain the target resource transfer data of the resource transfer platform. The target resource transfer data can include the third resource exchange information of each third transfer time period in the third transfer time, and the third resource exchange information includes the exchange information between the third virtual resource and the fourth virtual resource within the corresponding third transfer time period. Then, the target transfer time period is determined according to the target resource transfer data. The resource transfer platform realizes the resource transfer processing corresponding to the specific resource transfer request within the target transfer time period. Through the method provided in the embodiments of the present application, the target transfer time period can be determined in multiple ways, effectively meeting application requirements, enhancing the usage experience, helping to reduce the loss of virtual resources, and ensuring the processing effect of resource transfer processing.

[0098] S604. Receive a resource transfer request sent by a client. The resource transfer request is used to request exchanging a first quantity of the first virtual resource under a blockchain address for the second virtual resource.

[0099] In the embodiments of the present application, a node in the resource transfer platform can receive a resource transfer request sent by a client, and the client can correspond to the above Figure 3The terminal device 301 in []. The resource transfer request sent by the client can be used to request to exchange a first quantity of first virtual resources under a blockchain address for second virtual resources. The blockchain address is the address used by the client to store virtual resources. If the transfer request time of the resource transfer request is within the second transfer time period with the earliest time among the second transfer time periods, the determined target transfer time period can be determined as the optimal execution time period corresponding to the resource transfer request. For example: The second transfer time is three days, and the second transfer time period is one day (the three second transfer time periods can be respectively represented as T1, T2, and T3). Through the method provided by this application, it can be determined that T3 is the target transfer time period, and this target transfer time period is the time period that meets the requirements and is most suitable for exchanging the first virtual resources for the second virtual resources; the resource transfer platform receives the resource transfer request sent by the client within T1 (i.e., the second transfer time period with the earliest time among the second transfer time periods), and this resource transfer request is used to request to exchange the first virtual resources for the second virtual resources, then the target transfer time period T3 can be determined as the optimal execution time of this resource transfer request. Through the method provided by the embodiments of this application, the resource transfer platform can respond to the resource transfer request, improve the usage experience, can quickly determine the optimal execution time of the resource transfer request, ensure the processing effect of virtual resource transfer processing, and is beneficial to reducing the loss of virtual resources.

[0100] S605. Determine the transfer execution time according to the target transfer time period, and generate a transfer execution request according to the resource transfer request. The transfer execution request includes the transfer execution time.

[0101] In the embodiments of this application, the resource transfer platform can determine the transfer execution time according to the target transfer time period. If the time length of the target transfer time period is relatively long (for example: the time length of the target transfer time is one day), then the time length spent on performing the resource transfer process corresponding to the resource transfer request is usually relatively short (for example: the time spent is one second), then the specific transfer execution time can be determined according to the target transfer time period. The resource transfer platform can generate a transfer execution request according to the resource transfer request. The transfer execution request can include the transfer execution time, and this transfer execution request can be used to request to exchange a first quantity of first virtual resources for second virtual resources at the transfer execution time. Through the method provided by the embodiments of this application, the execution time of the resource transfer process corresponding to the resource transfer request can be accurately determined, ensuring the controllability of the execution time of the resource transfer process, and at the same time, it is also beneficial to reducing the loss of virtual resources.

[0102] In one embodiment, the implementation manner of determining the transfer execution time according to the target transfer time period may be as follows: obtaining the first resource exchange information of the first transfer time period with the latest time in the first transfer time; performing a subdivision process on the first resource exchange information of this first transfer time period to obtain the third resource exchange information of multiple third transfer time periods; predicting the fluctuation information of the fourth resource exchange information of each fourth transfer time period in the target transfer time period according to the third resource exchange information of each third transfer time period; and determining the transfer execution time according to the fluctuation information of the fourth resource exchange information of each fourth transfer time period. The first resource exchange information of the first transfer time period with the latest time in the first transfer time can be used for subdivision to determine the resource fluctuation information within this first transfer time period, and based on this, the fluctuation information within the target transfer time period can be predicted, so that the transfer execution time can be further determined. For example: the first transfer time period with the latest time in the first transfer time is M1, and the time length of M1 is one day, then the third resource exchange information of multiple third transfer time periods included in M1 can be determined, and the time length of the third transfer time period can be 1 minute; the fluctuation information within the target transfer time period can be predicted according to the third resource exchange information of each third transfer time period, and the transfer execution time can be determined. Through the method provided by the embodiments of the present application, more refined prediction can be performed using existing data, so as to accurately determine the transfer execution time, effectively ensure the processing effect of resource transfer processing, and help reduce the loss of virtual resources.

[0103] S606. In response to the resource transfer trigger information, send the transfer execution request to the resource transfer platform, so that the resource transfer platform receives the first quantity of the first virtual resources under the blockchain address at the transfer execution time, and transfers the second quantity of the second virtual resources to the blockchain address, and the first quantity of the first virtual resources matches the second quantity of the second virtual resources.

[0104] In the embodiments of the present application, a node in the resource transfer platform may, in response to resource transfer trigger information, send a transfer execution request to the resource transfer platform. After receiving the transfer execution request, the resource transfer platform may receive a first quantity of first virtual resources under the blockchain address at the transfer execution time, and transfer a second quantity of second virtual resources to the blockchain address, where the first quantity of first virtual resources and the second quantity of second virtual resources match, and the second quantity may be determined according to the quantities of the first virtual resources and the second virtual resources in the virtual resource flow pool at the transfer execution time. For example: The method provided in the present application may be used to determine that the second transfer time period with a higher resource exchange ratio and a relatively stable volatility is the target transfer time period, and the transfer execution time may be determined from the target transfer time period, and the resource exchange ratio corresponding to the transfer execution time is relatively high (that is, a unit quantity of the first virtual resources can be exchanged for more second virtual resources); the client sends a resource transfer request, and the node of the resource transfer platform may generate a transfer execution request according to the resource transfer request, and send the transfer execution request to the resource transfer platform in response to the resource transfer trigger information. The resource transfer platform may implement the resource transfer processing of the virtual resources at the transfer execution time, so that more second virtual resources can be obtained by exchanging the first quantity of first virtual resources, thereby reducing the loss of the resource transfer object. Through the method provided in the embodiments of the present application, the timed execution of the resource transfer processing can be realized, the use experience is effectively improved, and the processing effect of the virtual resource transfer processing can be further ensured, which is beneficial to reducing the loss of virtual resources.

[0105] In one embodiment, before sending the transfer execution request to the resource transfer platform in response to the resource transfer trigger information, the following may also be done: obtain resource transfer configuration information, where the resource transfer configuration information is used to indicate the manner of generating the resource transfer trigger information; if the resource transfer configuration information indicates that the resource transfer trigger information is generated according to time, then determine the request sending time according to the target transfer time period and the transfer execution time, the request sending time is included in the target transfer time period, and the request sending time is earlier than the transfer execution time; generate the resource transfer trigger information at the request sending time. Before the corresponding resource transfer trigger information, the node in the resource transfer platform obtains the resource transfer configuration information, and the resource transfer configuration information may be used to indicate the manner of generating the resource transfer trigger information. For example: At a certain time, the node in the resource transfer platform may automatically generate the resource transfer trigger information, so that the node responds to the resource transfer trigger information and sends the transfer execution request to the resource transfer platform, thereby automatically realizing the resource transfer processing. The resource transfer configuration information may be adjusted according to different application requirements. If the resource transfer configuration information indicates that the resource transfer trigger information is generated according to time, it means that after a certain time, the node may automatically generate the resource transfer trigger information, that is, the node may automatically execute the operation of generating the resource transfer trigger information.

[0106] The nodes of the resource transfer platform can determine the request sending time according to the target transfer time period and the transfer execution time. The request sending time is included in the target transfer time period and is earlier than the transfer execution time. For example, if the target transfer time period is from 10:00 to 12:00 on November 2nd and the transfer execution time is 11:00 on November 2nd, the request sending time can be 10:59 on November 2nd. The request sending time can be slightly earlier than the transfer execution time to ensure that the resource transfer platform can complete the resource transfer processing at the transfer execution time. After determining the request sending time, the nodes in the resource transfer platform can generate resource transfer trigger information at the request sending time, so that the nodes can send the transfer execution request to the resource transfer platform in response to the resource transfer trigger information. After the client sends a resource transfer request, the resource transfer platform can automatically perform subsequent resource transfer processing according to the target transfer time period, ensuring that the best resource transfer time is not missed. Through the method provided by the embodiments of this application, an automated resource transfer processing flow can be realized, avoiding the situation that the resource transfer object misses the best resource transfer time due to external factors, further ensuring the processing effect of the resource transfer processing, and being beneficial to reducing the loss of virtual resources.

[0107] It should be noted that the resource transfer platform can achieve automated resource transfer processing through smart contracts: the smart contract in the resource transfer platform can be adjusted according to actual application requirements. For example, the smart contract can be configured so that the resource transfer platform automatically determines the target transfer time period and performs corresponding resource transfer processing, or the smart contract can be configured so that the resource transfer platform transfers only 10 virtual resources each time when performing resource transfer processing, etc. In some cases, the resource transfer platform can also perform abnormal profit and loss attribution analysis processing based on reference resource transfer data, obtain an abnormal analysis result, and perform abnormal processing according to the abnormal analysis result. For example, the resource transfer platform can also perform abnormal profit and loss attribution analysis processing based on reference resource transfer data, obtain an abnormal analysis result, and if the abnormal analysis result indicates that the resource transfer requests of a certain resource transfer object are too frequent during a certain first transfer time period, the resource transfer requests of this resource transfer object can be appropriately postponed, and the associated resource transfer data of this resource transfer object can be obtained for further abnormal analysis of this resource transfer object. Through the method provided by the embodiments of this application, the resource transfer platform can meet different application requirements, and at the same time, the full record of resource transfer processing and the traceability of the resource transfer process can be realized, thereby improving the security and reliability of resource transfer processing.

[0108] In one embodiment, the method provided by this application further includes: if the resource transfer configuration information indicates that the resource transfer trigger information is generated according to the information sent by the client, then generate transfer time prompt information according to the target transfer time period and the transfer execution time. The transfer time prompt information is used to prompt whether to perform the resource transfer process corresponding to the resource transfer request at the transfer execution time; send the transfer time prompt information to the client; if an execution confirmation instruction sent by the client is obtained, then generate resource transfer trigger information according to the execution confirmation instruction. After the node in the resource transfer platform obtains the resource transfer configuration information, if the resource transfer configuration information indicates that the resource transfer trigger information is generated according to the information sent by the client, it means that the resource transfer platform needs to obtain the permission of the resource transfer object before implementing the resource transfer process. That is, the node in the resource transfer platform can generate transfer time prompt information according to the target transfer time period and the transfer execution time, and the transfer time prompt information can be used to prompt whether to perform the resource transfer process corresponding to the resource transfer request at the transfer execution time.

[0109] For example: the resource transfer configuration information indicates that the resource transfer trigger information is generated according to the information sent by the client. The node in the resource transfer platform determines that the target transfer time period is from 7:00 to 10:00 on November 5th; the transfer execution time is 9:00 on November 5th; then the node in the resource transfer platform can generate transfer time prompt information according to the target transfer time period and the transfer execution time, and the transfer time prompt information can be "whether to perform the resource transfer process corresponding to the resource transfer request at 9:00 on November 5th during the target transfer time period (from 7:00 to 10:00 on November 5th)". The node in the resource transfer platform can send the generated transfer time prompt information to the client so that the client can display the transfer time prompt information. If the node in the resource transfer platform receives the execution confirmation instruction sent by the client, it can generate resource transfer trigger information according to the execution confirmation instruction, so that the node in the resource transfer platform can send the transfer execution request to the resource transfer platform in response to the resource transfer trigger information. Through the method provided by the embodiment of this application, the security of virtual resource transfer processing can be further ensured, and at the same time, it is beneficial to reduce the loss of virtual resources.

[0110] Please refer to Figure 7 , which is a schematic diagram of a data processing method based on blockchain provided by the embodiment of this application. The resource transfer platform is constructed based on the blockchain network. The resource transfer platform may include multiple nodes, which may include processing nodes and execution nodes (the resource transfer platform may include one or more processing nodes, and the resource transfer platform may also include one or more execution nodes. Figure 7Taking a processing node and an execution node as examples for illustration, the processing node can respond to requests from clients and perform prediction processing on the resource transfer time. The execution node can respond to resource transfer requests and perform resource transfer operations on virtual resources. The processing node in the resource transfer platform can obtain reference resource transfer data of the resource transfer platform. The reference resource transfer data includes first resource exchange information for each first transfer time period in the first transfer time. The first resource exchange information can include exchange information between the first virtual resource and the second virtual resource within the corresponding first transfer time period. The processing node can predict the fluctuation information of the second resource exchange information for each second transfer time period in the second transfer time based on the first resource exchange information for each first transfer time period, and the second transfer time is later than the first transfer time. The processing node can determine the target transfer time period from multiple second transfer time periods included in the second transfer time based on the fluctuation information of the second resource exchange information for each second transfer time period. The client can send a resource transfer request to the processing node, and the transfer request time of the resource transfer request is within the second transfer time period with the earliest time in the second transfer time. The resource transfer request is used to request the exchange of the first virtual resource under the blockchain address for the second virtual resource, indicating that the target transfer time period is the best execution time period for the resource transfer request. The processing node can determine the transfer execution time based on the target transfer time period and determine the transfer time prompt information based on the target transfer time period and the transfer execution time (at this time, the resource transfer configuration information indicates generating a resource transfer trigger information based on the information sent by the client). The processing node sends the transfer time prompt information to the client. The client can send a confirmation execution instruction to the processing node, and the processing node generates a resource transfer trigger information based on the confirmation instruction.

[0111] In some cases, if the resource transfer configuration information indicates generating a resource transfer trigger information based on time, the processing node can determine the request sending time based on the target transfer time period and the transfer execution time. The request sending time is included in the target transfer time period and is earlier than the transfer execution time. The processing node can automatically generate a resource transfer trigger information at the request sending time.

[0112] The processing node determines a transfer execution request based on the resource transfer request and the transfer execution time, and sends the transfer execution request generated according to the resource transfer request to the execution node of the resource transfer platform in response to the resource transfer trigger information. The execution node can obtain the resource exchange ratio between the first virtual resource and the second virtual resource at the transfer execution time and determine the second quantity; the execution node performs resource transfer processing, receives the first quantity of the first virtual resource stored under the blockchain address (the blockchain address is the address of the client for storing the virtual resource), and transfers the second quantity of the second virtual resource to this blockchain address. Through the method provided by the embodiments of the present application, the optimal execution time for resource transfer processing can be accurately and effectively determined, and resource transfer processing can be automated, reducing the loss of virtual resources caused by missing the target transfer time period, improving the usage experience, and ensuring the processing effect of resource transfer processing, which is beneficial to reducing the loss of virtual resources.

[0113] In one embodiment, there may be multiple resource transfer platforms. There is a corresponding virtual resource flow pool in each resource transfer platform, and each resource transfer platform can implement resource transfer processing. Then, the nodes in each resource transfer platform can use the method provided by the present application to determine the target transfer time period associated with the first virtual resource and the second virtual resource. The node can send the determined target transfer time period and related predicted resource exchange information to the client. The client can determine the resource transfer platform for executing the resource transfer request from multiple resource transfer platforms according to the target transfer time periods and related predicted resource exchange information determined by each resource transfer platform, and send the resource transfer request to this resource transfer platform.

[0114] For example, there are three resource transfer platforms, and each of these resource transfer platforms can implement resource exchange processing between a first virtual resource and a second virtual resource; the resource exchange ratios between the first virtual resource and the second virtual resource in the three resource transfer platforms are different and may change over time; the nodes in the three resource transfer platforms can obtain the reference resource transfer data of their own platforms, and the reference resource transfer data includes the first resource exchange information for each first transfer time period in the first transfer time, and the first resource exchange information includes the exchange information between the first virtual resource and the second virtual resource within the corresponding first transfer time period; the nodes can use the reference resource transfer data of their own platforms to predict the fluctuation information of the second resource exchange information for each second transfer time period in the second transfer time, and determine the target transfer time period and the resource exchange ratio within the target transfer time period; assume that the target transfer time period determined by the first resource transfer platform is from 10:00 to 12:00 on November 1st, and the resource exchange ratio is 20; the target transfer time period determined by the second resource transfer platform is from 8:00 to 9:00 on November 2nd, and the resource exchange ratio is 22; the target transfer time period determined by the third resource transfer platform is from 3:00 to 5:00 on November 1st, and the resource exchange ratio is 25; then the nodes of each resource transfer platform can send the determined target transfer time period and the resource exchange ratio within the target transfer time period to the client, and the client selects the third resource transfer platform from the three resource transfer platforms according to the received information, and sends a resource transfer request to the third resource transfer platform, so that the third resource transfer platform can implement resource exchange processing between the first virtual resource and the second virtual resource from 3:00 to 5:00 on November 1st.

[0115] Through the method provided by the embodiments of the present application, the predicted target transfer time periods of multiple resource transfer platforms can be obtained, data aggregation is achieved, which is beneficial to determining the resource transfer platform that meets the application requirements from multiple resource transfer platforms, thereby further improving the processing effect of resource transfer processing and reducing the loss of virtual resources.

[0116] It should be noted that in some cases, the client can connect to multiple different resource transfer platforms through an application programming interface and obtain the reference resource transfer data of each resource transfer platform; the client can perform data analysis and prediction processing based on the obtained reference resource transfer data to obtain the target transfer time period and resource exchange information corresponding to each resource transfer platform; the client can aggregate these target transfer time periods and resource exchange information, and determine the target resource transfer platform from multiple resource transfer platforms, and send a resource transfer request to the target resource transfer platform.

[0117] In one embodiment, when the time interval between the transfer execution time determined according to the target transfer time period and the transfer request time of the resource transfer request is relatively large, after a period of time, the transfer execution time corresponding to the resource transfer request can be updated, so that prediction can be made based on the latest reference resource transfer data, ensuring the accuracy and effectiveness of the target transfer time period, and further ensuring the processing effect of the resource transfer process. For example: A node in the resource transfer platform can obtain the reference resource transfer data of the resource transfer platform. The reference resource transfer data includes the first resource exchange information for each first transfer time period in the first transfer time, and the first transfer time is from 0:00 on November 1st to 24:00 on November 5th; the node can determine the fluctuation information of the second resource exchange information for each second transfer time period in the second transfer time according to the reference resource transfer data, and the second transfer time is from 0:00 on November 6th to 24:00 on November 8th; the node determines that the target transfer time period is from 0:00 on November 8th to 24:00 on November 8th; the node receives a resource transfer request sent by the client at 8:00 on November 6th, and this resource transfer request is used to request the exchange of the first virtual resource for the second virtual resource, then the transfer execution time corresponding to this resource transfer request can be determined as 9:00 on November 8th according to the target transfer time period.

[0118] At this time, when the time interval between the transfer execution time (9:00 on November 8th) determined according to the target transfer time period and the transfer request time (8:00 on November 6th) of the resource transfer request is relatively large, after a period of time, the transfer execution time corresponding to the resource transfer request can be updated: The node can re-obtain the new reference resource transfer data of the resource transfer platform at 0:00 on November 8th. The new reference resource transfer data includes the new first resource exchange information for each first transfer time period in the new first transfer time, and the new first transfer time is from 0:00 on November 1st to 24:00 on November 7th; the node can determine the fluctuation information of the second resource exchange information for each second transfer time period in the new second transfer time according to the new reference resource transfer data, and the new second transfer time is from 0:00 on November 8th to 24:00 on November 10th; the node determines that the new target transfer time period is from 0:00 on November 9th to 24:00 on November 9th; then at this time, the transfer execution time corresponding to this resource transfer request can be determined as 9:00 on November 9th according to the new target transfer time period, and the resource transfer platform can execute the resource transfer process corresponding to this resource transfer request at 9:00 on November 9th. Through the method provided by the embodiments of the present application, the update of the target transfer time period can be realized, effectively ensuring the effectiveness of the target transfer time period, and also ensuring the processing effect of the resource transfer process, which is beneficial to reducing the loss of virtual resources.

[0119] In one embodiment, the method provided by this application may further include: A node in the resource transfer platform receives a resource transfer request sent by a client. The resource transfer request includes resource category information and resource quantity information, and can be used to request to exchange a third quantity of first virtual resources for a fourth quantity of second virtual resources; The node of the resource transfer platform may determine the fluctuation information of the second resource exchange information in each second transfer time period according to the reference resource transfer data of the resource transfer platform, and may determine the resource exchange ratio between the first virtual resource and the second virtual resource according to the fluctuation information; Determine a target transfer time period according to the resource exchange ratio. The resource exchange ratio corresponding to the target transfer time period enables the quantity of second virtual resources that can be exchanged for a third quantity of first virtual resources to be greater than or equal to the fourth quantity; The resource transfer platform can directly and automatically implement the resource transfer process corresponding to the resource transfer request within the target transfer time period without notifying the client. Through the method provided by the embodiments of this application, resource transfer processing can be performed in a timely manner at the optimal transfer time, reducing the situation of missing the optimal transfer time due to failure to obtain resource transfer prompt information in a timely manner, ensuring the processing effect of resource transfer processing, and being beneficial to reducing the loss of virtual resources.

[0120] Through the data processing method based on blockchain provided by the embodiments of this application, the reference resource transfer data of the resource transfer platform can be obtained, so that the fluctuation situation of the resource exchange ratio within the first transfer time can be determined according to the reference resource transfer data, facilitating the subsequent determination of the optimal transfer time; The fluctuation information corresponding to the second transfer time can be predicted according to the first resource exchange information, effectively improving the accuracy of the predicted fluctuation information; The target transfer time period can be determined according to the application requirements from multiple second transfer time periods, so that the execution time of the resource transfer process can be controlled, making the execution time of the resource transfer process more reasonable and better meeting the application requirements; The resource transfer process can be automatically implemented within the target transfer time period, avoiding the situation of virtual resource loss caused by missing the target transfer time period due to external reasons, and improving the usage experience; The data of multiple resource transfer platforms can be aggregated and comprehensively considered, further improving the processing effect of resource transfer processing and being beneficial to reducing the loss of virtual resources; The resource transfer process of virtual resources can be implemented based on blockchain technology, ensuring the security and reliability of resource transfer processing.

[0121] Please refer to Figure 8 , Figure 8 which is a structural block diagram of a data processing device based on blockchain provided by the embodiments of this application. The device includes:

[0122] An acquisition unit 801, configured to acquire reference resource transfer data of a resource transfer platform, where the reference resource transfer data includes first resource exchange information for each first transfer time period in a first transfer time, the first resource exchange information includes exchange information between a first virtual resource and a second virtual resource within a corresponding first transfer time period, and the resource transfer platform is built based on a blockchain network;

[0123] A prediction unit 802, configured to predict fluctuation information of second resource exchange information for each second transfer time period in a second transfer time according to the first resource exchange information for each first transfer time period; the second transfer time is later than the first transfer time;

[0124] A determination unit 803, configured to determine a target transfer time period from multiple second transfer time periods included in the second transfer time according to the fluctuation information of the second resource exchange information for each second transfer time period;

[0125] Wherein, a transfer execution time for the resource transfer platform to perform resource transfer processing for a resource transfer request is within the target transfer time period, a transfer request time of the resource transfer request is within the second transfer time period with the earliest time in the second transfer time, and the resource transfer request is used to request to exchange the first virtual resource under a blockchain address for the second virtual resource.

[0126] In an embodiment, the determination unit 803 is further configured to: receive a resource transfer request sent by a client, where the resource transfer request is used to request to exchange a first quantity of the first virtual resource under a blockchain address for the second virtual resource; determine a transfer execution time according to the target transfer time period, and generate a transfer execution request according to the resource transfer request, where the transfer execution request includes the transfer execution time; and send the transfer execution request to the resource transfer platform in response to a resource transfer trigger message, so that the resource transfer platform receives the first quantity of the first virtual resource under the blockchain address at the transfer execution time, and transfers a second quantity of the second virtual resource to the blockchain address, and the first quantity of the first virtual resource matches the second quantity of the second virtual resource.

[0127] In an embodiment, the determination unit 803 is further configured to: acquire resource transfer configuration information, where the resource transfer configuration information is used to indicate a manner of generating the resource transfer trigger message; if the resource transfer configuration information indicates that the resource transfer trigger message is generated according to time, determine a request sending time according to the target transfer time period and the transfer execution time, the request sending time is included in the target transfer time period, and the request sending time is earlier than the transfer execution time; and generate the resource transfer trigger message at the request sending time.

[0128] In one embodiment, the determining unit 803 is further configured to: if the resource transfer configuration information indicates that the resource transfer trigger information is generated according to the information sent by the client, generate transfer time prompt information according to the target transfer time period and the transfer execution time, where the transfer time prompt information is used to prompt whether to perform the resource transfer process corresponding to the resource transfer request at the transfer execution time; send the transfer time prompt information to the client; and if an instruction to confirm execution sent by the client is obtained, generate the resource transfer trigger information according to the instruction to confirm execution.

[0129] In one embodiment, when the prediction unit 802 predicts the fluctuation information of the second resource exchange information in each second transfer time period according to the first resource exchange information in each first transfer time period, the prediction unit 802 is specifically configured to: determine the first exchange quantity in each first transfer time period according to the first resource exchange information in each first transfer time period, where the first exchange quantity is used to indicate the quantity of the second virtual resource exchanged for a unit quantity of the first virtual resource in the corresponding first transfer time period; determine the fluctuation information of the first resource exchange information in each first transfer time period according to the first exchange quantity in each first transfer time period; and perform a prediction process by using the fluctuation information of the first resource exchange information in each first transfer time period to obtain the fluctuation information of the second resource exchange information in each second transfer time period in the second transfer time.

[0130] In one embodiment, when the prediction unit 802 determines the fluctuation information of the first resource exchange information in each first transfer time period according to the first exchange quantity in each first transfer time period, the prediction unit 802 is specifically configured to: determine the target weight value in each first transfer time period; perform a weighted calculation by using the first exchange quantity in each first transfer time period and the target weight value in the corresponding first transfer time period to determine the weighted exchange quantity in each first transfer time period; perform an average calculation by using the weighted exchange quantity in each first transfer time period to obtain the average exchange quantity in the first transfer time; and determine the fluctuation information in each first transfer time period according to the difference between the first exchange quantity in each first transfer time period and the average exchange quantity.

[0131] In one embodiment, when determining the target weight values of the respective first transfer time periods, the prediction unit 802 is specifically configured to: sort the respective first transfer time periods in the first transfer times in chronological order to obtain a sorted transfer time period sequence; determine the initial weight values of the respective first transfer time periods according to the arrangement positions of the respective first transfer time periods in the sorted transfer time period sequence, where the initial weight value of a first transfer time period in the sorted transfer time period sequence increases as the arrangement position increases; determine the intermediate weight values of the respective first transfer time periods according to the exception information of the respective first transfer time periods, where the exception information of a first transfer time period includes information on abnormal resource transfer processing occurring within the first transfer time period; and calculate the target weight values of the respective first transfer time periods based on the initial weight values and the intermediate weight values of the respective first transfer time periods.

[0132] It can be understood that the functions of the respective functional units of the blockchain-based data processing device according to the embodiments of the present application can be specifically implemented according to the blockchain-based data processing method in the foregoing method embodiments, and the specific implementation process can refer to the relevant descriptions in the foregoing blockchain-based data processing method embodiments and will not be elaborated herein. In the embodiments of the present application, the term "module" or "unit" refers to a computer program with a predetermined function or a part of a computer program, which works together with other relevant parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as a processing circuit or a memory), or a combination thereof. Similarly, one processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be a part of an overall module or unit including the function of the module or unit.

[0133] Through the data processing method based on blockchain provided by the embodiments of the present application, reference resource transfer data of a resource transfer platform can be obtained, so that the fluctuation of the resource exchange ratio within the first transfer time can be determined according to the reference resource transfer data, facilitating the subsequent determination of the optimal transfer time; the fluctuation information corresponding to the second transfer time can be predicted according to the first resource exchange information, effectively improving the accuracy of the predicted fluctuation information; the target transfer time period can be determined according to application requirements from multiple second transfer time periods, so that the execution time of the resource transfer process can be controlled, making the execution time of the resource transfer process more reasonable and better meeting the application requirements; the resource transfer process can be automatically implemented within the target transfer time period, avoiding the loss of virtual resources caused by missing the target transfer time period due to external reasons and enhancing the user experience; the data of multiple resource transfer platforms can be aggregated and comprehensively considered, further enhancing the processing effect of the resource transfer process and being conducive to reducing the loss of virtual resources; the resource transfer process of virtual resources can be implemented based on blockchain technology, ensuring the security and reliability of the resource transfer process.

[0134] Please refer to Figure 9 , Figure 9 which is a structural block diagram of a computer device provided by the embodiments of the present application. The computer device described in the embodiments of the present application includes: a processor 901, a communication interface 902, and a memory 903. Among them, the processor 901, the communication interface 902, and the memory 903 can be connected through a bus or other means. In the embodiments of the present application, the connection through a bus is taken as an example.

[0135] Among them, the processor 901 (or CPU (Central Processing Unit, central processor)) is the computing core and control core of the computer device, which can parse various instructions in the computer device and process various data of the computer device. For example: the CPU can be used to parse the power-on and power-off instructions sent by the user to the computer device and control the computer device to perform power-on and power-off operations; for another example: the CPU can transmit various interaction data between the internal structures of the computer device, and so on. The communication interface 902 can optionally include a standard wired interface, a wireless interface (such as Wi-Fi, a mobile communication interface, etc.), and is controlled by the processor 901 for sending and receiving data. The memory 903 (Memory) is the memory device in the computer device, used to store programs and data. It can be understood that the memory 903 here can include both the built-in memory of the computer device and, of course, the extended memory supported by the computer device. The memory 903 provides a storage space, and this storage space stores the operating system of the computer device, which can include but is not limited to: Android system, iOS system, Windows Phone system, etc. The present application does not make any limitations in this regard.

[0136] In an embodiment of the present application, the processor 901 performs the following operations by running the executable program code in the memory 903:

[0137] Obtain reference resource transfer data of the resource transfer platform, where the reference resource transfer data includes first resource exchange information for each first transfer time period in the first transfer time, and the first resource exchange information includes exchange information between a first virtual resource and a second virtual resource within the corresponding first transfer time period, and the resource transfer platform is constructed based on a blockchain network;

[0138] Predict the fluctuation information of the second resource exchange information for each second transfer time period in the second transfer time according to the first resource exchange information for each first transfer time period; the second transfer time is later than the first transfer time;

[0139] Determine a target transfer time period from the multiple second transfer time periods included in the second transfer time according to the fluctuation information of the second resource exchange information for each second transfer time period;

[0140] Wherein, the transfer execution time for the resource transfer platform to perform resource transfer processing for a resource transfer request is within the target transfer time period, the transfer request time of the resource transfer request is within the earliest second transfer time period in the second transfer time, and the resource transfer request is used to request to exchange the first virtual resource under the blockchain address for the second virtual resource.

[0141] In one embodiment, the processor 901 is further configured to: receive a resource transfer request sent by a client, where the resource transfer request is used to request to exchange a first quantity of the first virtual resource under the blockchain address for the second virtual resource; determine a transfer execution time according to the target transfer time period, and generate a transfer execution request according to the resource transfer request, where the transfer execution request includes the transfer execution time; and send the transfer execution request to the resource transfer platform in response to a resource transfer trigger message, so that the resource transfer platform receives the first quantity of the first virtual resource under the blockchain address at the transfer execution time, and transfers a second quantity of the second virtual resource to the blockchain address, and the first quantity of the first virtual resource matches the second quantity of the second virtual resource.

[0142] In one embodiment, the processor 901 is further configured to: obtain resource transfer configuration information, where the resource transfer configuration information is used to indicate a manner of generating the resource transfer trigger information; if the resource transfer configuration information indicates that the resource transfer trigger information is generated according to time, determine a request sending time according to the target transfer time period and the transfer execution time, where the request sending time is included in the target transfer time period and the request sending time is earlier than the transfer execution time; and generate the resource transfer trigger information at the request sending time.

[0143] In one embodiment, the processor 901 is further configured to: if the resource transfer configuration information indicates that the resource transfer trigger information is generated according to information sent by the client, generate transfer time prompt information according to the target transfer time period and the transfer execution time, where the transfer time prompt information is used to prompt whether to perform resource transfer processing corresponding to the resource transfer request at the transfer execution time; send the transfer time prompt information to the client; and if a confirmation execution instruction sent by the client is obtained, generate the resource transfer trigger information according to the confirmation execution instruction.

[0144] In one embodiment, when the processor 901 predicts the fluctuation information of the second resource exchange information in each second transfer time period according to the first resource exchange information in each first transfer time period, the specific operations are as follows: according to the first resource exchange information in each first transfer time period, determine the first exchange quantity in each first transfer time period, where the first exchange quantity is used to indicate the quantity of the second virtual resource exchanged for a unit quantity of the first virtual resource in the corresponding first transfer time period; according to the first exchange quantity in each first transfer time period, determine the fluctuation information of the first resource exchange information in each first transfer time period; and use the fluctuation information of the first resource exchange information in each first transfer time period to perform prediction processing to obtain the fluctuation information of the second resource exchange information in each second transfer time period.

[0145] In one embodiment, when determining the fluctuation information of the first resource exchange information for each of the first transfer time periods according to the first exchange quantity of each of the first transfer time periods, the processor 901 is specifically configured to: determine the target weight value for each of the first transfer time periods; perform weighted calculation using the first exchange quantity of each of the first transfer time periods and the target weight value of the corresponding first transfer time period to determine the weighted exchange quantity for each of the first transfer time periods; perform mean calculation using the weighted exchange quantities of each of the first transfer time periods to obtain the average exchange quantity for the first transfer time; and determine the fluctuation information for each of the first transfer time periods according to the difference between the first exchange quantity of each of the first transfer time periods and the average exchange quantity.

[0146] In one embodiment, when determining the target weight value for each of the first transfer time periods, the processor 901 is specifically configured to: sort the first transfer time periods in the first transfer time in chronological order to obtain a sorted transfer time period sequence; determine the initial weight value for each of the first transfer time periods according to the arrangement position of each of the first transfer time periods in the sorted transfer time period sequence, where the initial weight value of the first transfer time period in the sorted transfer time period sequence increases as the arrangement position increases; determine the intermediate weight value for each of the first transfer time periods according to the exception information of each of the first transfer time periods, where the exception information of the first transfer time period includes information on abnormal resource transfer processing that occurs during the first transfer time period; and calculate the target weight value for each of the first transfer time periods by calculating the initial weight value and the intermediate weight value of each of the first transfer time periods.

[0147] In specific implementation, the processor 901, communication interface 902, and memory 903 described in the embodiments of the present application may execute the implementation manners of the nodes in the resource transfer platform described in a blockchain-based data processing method provided in the embodiments of the present application, or may also execute the implementation manners described in a blockchain-based data processing device provided in the embodiments of the present application, which will not be elaborated herein.

[0148] Through the data processing method based on blockchain provided by the embodiments of the present application, reference resource transfer data of a resource transfer platform can be obtained, so that the fluctuation of the resource exchange ratio within the first transfer time can be determined according to the reference resource transfer data, which is convenient for determining the optimal transfer time subsequently; the fluctuation information corresponding to the second transfer time can be predicted according to the first resource exchange information, effectively improving the accuracy of the predicted fluctuation information; the target transfer time period can be determined according to application requirements from multiple second transfer time periods, so that the execution time of the resource transfer process can be controlled, making the execution time of the resource transfer process more reasonable and better meeting the application requirements; the resource transfer process can be automatically implemented within the target transfer time period, avoiding the situation of virtual resource loss caused by missing the target transfer time period due to external reasons, and improving the usage experience; data of multiple resource transfer platforms can be aggregated and comprehensively considered, further improving the processing effect of the resource transfer process and being conducive to reducing the loss of virtual resources; the resource transfer process of virtual resources can be implemented based on blockchain technology, ensuring the security and reliability of the resource transfer process.

[0149] The embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored. When it runs on a computer, the computer is made to execute the data processing method based on blockchain as described in the embodiments of the present application. Its specific implementation manner can refer to the foregoing description and will not be elaborated here.

[0150] The embodiments of the present application also provide a computer program product, which includes a computer program or computer instructions, and the computer program or computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, making the computer device execute the data processing method based on blockchain as described in the embodiments of the present application. Its specific implementation manner can refer to the foregoing description and will not be elaborated here.

[0151] It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present application is not limited by the described action sequence, because according to the present application, some steps can be in other sequences or performed simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the present application.

[0152] In the above embodiments, the descriptions of the respective embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference may be made to the relevant descriptions of other embodiments. Essentially, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a computer, a server, or a network device, etc., specifically, the processor in the computer device) to execute all or part of the steps of the above methods in the respective embodiments of the present application. Among them, the aforementioned storage medium may include: various media that can store program codes such as USB flash drives, mobile hard disks, magnetic disks, optical disks, read-only memory (English: Read-Only Memory, abbreviation: ROM), or random access memory (English: Random Access Memory, abbreviation: RAM).

[0153] As described above, the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood that the technical solutions recorded in the foregoing embodiments can still be modified, or some of the technical features can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the respective embodiments of the present application.

Claims

1. A data processing method based on blockchain, characterized in that, The method includes: Obtaining reference resource transfer data of a resource transfer platform, where the reference resource transfer data includes first resource exchange information for each first transfer time period in a first transfer time, the first resource exchange information includes exchange information between a first virtual resource and a second virtual resource within a corresponding first transfer time period, and the resource transfer platform is constructed based on a blockchain network; Predicting fluctuation information of second resource exchange information for each second transfer time period in a second transfer time according to the first resource exchange information for each first transfer time period; the second transfer time is later than the first transfer time; Determining a target transfer time period from multiple second transfer time periods included in the second transfer time according to the fluctuation information of the second resource exchange information for each second transfer time period; Wherein, the transfer execution time for the resource transfer platform to perform resource transfer processing for a resource transfer request is within the target transfer time period, the transfer request time of the resource transfer request is within the second transfer time period with the earliest time in the second transfer time, and the resource transfer request is used to request to exchange the first virtual resource under a blockchain address for the second virtual resource.

2. The method according to claim 1, characterized in that, The method further includes: Receiving a resource transfer request sent by a client, where the resource transfer request is used to request to exchange a first quantity of the first virtual resource under a blockchain address for the second virtual resource; Determining a transfer execution time according to the target transfer time period and generating a transfer execution request according to the resource transfer request, where the transfer execution request includes the transfer execution time; Sending the transfer execution request to the resource transfer platform in response to a resource transfer trigger information, so that the resource transfer platform receives a first quantity of the first virtual resource under the blockchain address at the transfer execution time and transfers a second quantity of the second virtual resource to the blockchain address, and the first quantity of the first virtual resource matches the second quantity of the second virtual resource.

3. The method according to claim 2, characterized in that, The method further includes: Obtaining resource transfer configuration information, where the resource transfer configuration information is used to indicate a manner of generating the resource transfer trigger information; If the resource transfer configuration information indicates generating the resource transfer trigger information according to time, determining a request sending time according to the target transfer time period and the transfer execution time, the request sending time is included in the target transfer time period and the request sending time is earlier than the transfer execution time; Generating the resource transfer trigger information at the request sending time.

4. The method according to claim 3, characterized in that, The method further includes: If the resource transfer configuration information indicates generating the resource transfer trigger information according to information sent by the client, generating a transfer time prompt information according to the target transfer time period and the transfer execution time, where the transfer time prompt information is used to prompt whether to perform resource transfer processing corresponding to the resource transfer request at the transfer execution time; Sending the transfer time prompt information to the client; If an execution confirmation instruction sent by the client is obtained, generating the resource transfer trigger information according to the execution confirmation instruction.

5. The method according to any one of claims 1-4, characterized in that, Predicting the fluctuation information of the second resource exchange information in each second transfer time period according to the first resource exchange information in each first transfer time period includes: Determining the first exchange quantity in each first transfer time period according to the first resource exchange information in each first transfer time period, where the first exchange quantity is used to indicate the quantity of the second virtual resource exchanged for a unit quantity of the first virtual resource in the corresponding first transfer time period; Determining the fluctuation information of the first resource exchange information in each first transfer time period according to the first exchange quantity in each first transfer time period; Performing prediction processing using the fluctuation information of the first resource exchange information in each first transfer time period to obtain the fluctuation information of the second resource exchange information in each second transfer time period in the second transfer time.

6. The method according to claim 5, characterized in that, Determining the fluctuation information of the first resource exchange information in each first transfer time period according to the first exchange quantity in each first transfer time period includes: Determining the target weight value in each first transfer time period; Performing weighted calculation using the first exchange quantity in each first transfer time period and the target weight value in the corresponding first transfer time period to determine the weighted exchange quantity in each first transfer time period; Performing mean calculation using the weighted exchange quantities in each first transfer time period to obtain the average exchange quantity in the first transfer time; Determining the fluctuation information in each first transfer time period according to the difference between the first exchange quantity and the average exchange quantity in each first transfer time period.

7. The method according to claim 6, characterized in that, Determining the target weight value in each first transfer time period includes: Performing sorting processing on each first transfer time period in the first transfer time in chronological order to obtain a sorted transfer time period sequence; Determining the initial weight value in each first transfer time period according to the arrangement position of each first transfer time period in the sorted transfer time period sequence, where the initial weight value of the first transfer time period in the sorted transfer time period sequence increases as the arrangement position increases; Determining the intermediate weight value in each first transfer time period according to the abnormal information in each first transfer time period, where the abnormal information in the first transfer time period includes information on abnormal resource transfer processing occurring in the first transfer time period; Calculating the initial weight value and the intermediate weight value in each first transfer time period to obtain the target weight value in each first transfer time period.

8. A data processing device based on blockchain, characterized in that, The apparatus includes: An acquisition unit for acquiring reference resource transfer data of a resource transfer platform, where the reference resource transfer data includes the first resource exchange information in each first transfer time period in the first transfer time, and the first resource exchange information includes the exchange information between the first virtual resource and the second virtual resource in the corresponding first transfer time period, and the resource transfer platform is constructed based on a blockchain network; A prediction unit, configured to predict the fluctuation information of the second resource exchange information of each second transfer time period in a second transfer time according to the first resource exchange information of each first transfer time period; the second transfer time is later than the first transfer time; A determination unit, configured to determine a target transfer time period from the multiple second transfer time periods included in the second transfer time according to the fluctuation information of the second resource exchange information of each second transfer time period; Wherein, the transfer execution time for the resource transfer platform to perform resource transfer processing for a resource transfer request is within the target transfer time period, the transfer request time of the resource transfer request is within the second transfer time period with the earliest time in the second transfer time, and the resource transfer request is used to request to exchange the first virtual resource under the blockchain address for the second virtual resource.

9. A computer device, characterized in that, Comprising: A processor, a communication interface, and a memory, the processor, the communication interface, and the memory are interconnected, wherein the memory stores executable program code, and the processor is configured to call the executable program code to implement the blockchain-based data processing method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, Computer instructions are stored in the computer-readable storage medium, and when it runs on a computer, it causes the computer to implement the blockchain-based data processing method according to any one of claims 1-7.

11. A computer program product, characterized in that, The computer program product includes a computer program or computer instructions, and when the computer program or computer instructions are executed by a processor, the blockchain-based data processing method according to any one of claims 1-7 is implemented.