Data processing method based on block chain and related equipment

Through blockchain technology, the decentralized management of resource application services is solved, and the trust, security and transparency problems caused by centralized institutions are solved, and the security, transparency and reliability of resource application services are achieved.

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

Patent Information

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

Smart Images

  • Figure CN120021186A_ABST
    Figure CN120021186A_ABST
Patent Text Reader

Abstract

The invention provides a block chain-based data processing method and related equipment, and the method comprises the steps: obtaining a resource application form of a target object, and publishing the resource application form to a block chain; the resource application form comprises a pledge resource category, a pledge quantity, a transfer resource category and a transfer quantity, and the pledge resource category and the transfer resource category are different; if the target object is a resource transfer-in object, transferring a pledge number of pledge resources under the first block chain address into an intelligent contract address; acquiring a first resource undertaking request initiated by the resource transfer-out object for the resource application form; if the first resource undertaking request indicates that a resource undertaking rule corresponding to the resource application form is agreed, transferring a transfer quantity of transfer resources under the second block chain address into an intelligent contract address in response to the first resource undertaking request; and transferring the transfer resources of the transfer quantity under the intelligent contract address into the first block chain address. According to the invention, safe, transparent and reliable resource application service can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technologies, and in particular, to the field of blockchain technologies. Specifically, it relates to a data processing method and related devices based on blockchain. Background Art

[0002] Currently, mainstream resource application services are mainly provided by centralized institutions such as banks and financial companies. For example, in the lending scenario, an applicant can submit a loan application by filling out a loan application form or through an online platform. The centralized institution accepts the loan application, reviews the applicant, and then decides whether to provide the corresponding loan to the applicant based on the review result. It can be seen that such resource application services completely rely on centralized institutions. However, due to their centralized management, it is difficult to achieve information sharing, trace operation records, and there is also a possibility that the data can be tampered with. As a result, there are problems such as trust issues, security issues, and insufficient transparency in resource application services. Summary of the Invention

[0003] Embodiments of this application provide a data processing method and related devices based on blockchain, which can realize a secure, transparent, and reliable resource application service based on the characteristics of blockchain, such as decentralization, high security, public transparency, and immutability.

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

[0005] Obtain a resource application form of a target object and publish the resource application form to the blockchain; the resource application form includes pledged resource information and transferred resource information. The pledged resource information includes the pledged resource category and the pledged quantity, and the transferred resource information includes the transferred resource category and the transferred quantity. The pledged resource category and the transferred resource category are different;

[0006] If the target object is a resource receiving object, transfer the pledged resources with the pledged quantity under the first blockchain address to the smart contract address; the first blockchain address is the blockchain address of the resource receiving object, and the resource category of the pledged resources is the pledged resource category;

[0007] Obtain a first resource acceptance request initiated by a resource transferring object for the resource application form;

[0008] If the first resource acceptance request indicates agreement with the resource acceptance rule corresponding to the resource application form, in response to the first resource acceptance request, transfer the transferred resources with the transferred quantity under the second blockchain address to the smart contract address; the second blockchain address is the blockchain address of the resource transferring object, and the resource category of the transferred resources is the transferred resource category;

[0009] Transfer the transfer resources of the transfer quantity under the smart contract address to the first blockchain address.

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

[0011] An acquisition unit, configured to acquire a resource application form of a target object and publish the resource application form to the blockchain; the resource application form includes pledged resource information and transfer resource information, the pledged resource information includes a pledged resource category and a pledged quantity, the transfer resource information includes a transfer resource category and a transfer quantity, and the pledged resource category is different from the transfer resource category;

[0012] A processing unit, configured to transfer the pledged resources of the pledged quantity under the first blockchain address to the smart contract address if the target object is a resource transfer object; the first blockchain address is the blockchain address of the resource transfer object, and the resource category of the pledged resources is the pledged resource category;

[0013] The acquisition unit is further configured to acquire a first resource acceptance request initiated by a resource transfer object for the resource application form;

[0014] The processing unit is further configured to, if the first resource acceptance request indicates consent to the resource acceptance rule corresponding to the resource application form, in response to the first resource acceptance request, transfer the transfer resources of the transfer quantity under the second blockchain address to the smart contract address; the second blockchain address is the blockchain address of the resource transfer object, and the resource category of the transfer resources is the transfer resource category;

[0015] The processing unit is further configured to transfer the transfer resources of the transfer quantity under the smart contract address to the first blockchain address.

[0016] In one implementation, the resource application form further includes growth resource information and a resource return block height, and the growth resource information includes a growth resource category and a growth quantity; the first resource acceptance request indicates disagreement with the resource acceptance rule corresponding to the resource application form, and the first resource acceptance request includes N replacement resource acceptance rules, and each replacement resource acceptance rule includes one or more of the following: a replacement transfer resource category of the transfer resource category, a replacement transfer quantity of the transfer quantity, a replacement growth resource category of the growth resource category, a replacement growth quantity of the growth quantity, a replacement resource return block height of the resource return block height, and N is a positive integer; the processing unit is further configured to perform the following steps:

[0017] In response to the first resource acceptance request, send an application form acceptance prompt message including the N replacement resource acceptance rules to the resource transfer object, and acquire a target replacement resource acceptance rule selected by the resource transfer object for the N replacement resource acceptance rules;

[0018] Determine the target replacement transfer resource category and the target replacement transfer quantity based on the target replacement resource acceptance rule;

[0019] Transfer the target replacement transfer quantity of the target replacement transfer resource under the second blockchain address to the smart contract address, and the resource category of the target replacement transfer resource is the target replacement transfer resource category;

[0020] Transfer the target replacement transfer quantity of the target replacement transfer resource under the smart contract address to the first blockchain address.

[0021] In one implementation, the processing unit is further configured to perform the following steps:

[0022] If the target object is a resource transfer-out object, transfer the transfer quantity of the transfer resource under the second blockchain address to the smart contract address;

[0023] Obtain a second resource acceptance request initiated by the resource transfer-in object for the resource application form;

[0024] If the second resource acceptance request indicates using the pledged resource as a pledge guarantee, in response to the second resource acceptance request, transfer the pledged quantity of the pledged resource under the first blockchain address to the smart contract address;

[0025] Transfer the transfer quantity of the transfer resource under the smart contract address to the first blockchain address.

[0026] In one implementation, the processing unit is further configured to perform the following steps:

[0027] If the second resource acceptance request indicates using the target quantity of the replacement resource as a pledge guarantee, determine the first resource evaluation data of the pledged quantity of the pledged resource, and determine the second resource evaluation data of the target quantity of the replacement resource; the resource category of the replacement resource is different from the pledged resource category;

[0028] If it is determined based on the first resource evaluation data and the second resource evaluation data that the target quantity of the replacement resource meets the replacement condition, in response to the second resource acceptance request, transfer the target quantity of the replacement resource under the first blockchain address to the smart contract address;

[0029] Transfer the transfer quantity of the transfer resource under the smart contract address to the first blockchain address.

[0030] In one implementation, the resource application form further includes growth resource information and a resource return block height, and the growth resource information includes a growth resource category and a growth quantity; the processing unit is further configured to perform the following steps:

[0031] If the current block height is less than or equal to the resource refund block height, and a resource settlement request initiated by the resource transfer object for the resource application form is received, then based on the transferred resource information and the increased resource information, verify the settlement resource information included in the resource settlement request. The settlement resource information includes the settlement resource category and the settlement quantity;

[0032] If the verification passes, then in response to the resource settlement request, transfer the settlement quantity of the settlement resources under the first blockchain address to the smart contract address, and transfer the settlement quantity of the settlement resources under the smart contract address to the second blockchain address. The resource category of the settlement resources is the settlement resource category;

[0033] Transfer the pledged quantity of the pledged resources under the smart contract address to the first blockchain address;

[0034] Add marker information to the resource application form, and store the resource application form with the added marker information in the blockchain. The marker information is used to indicate that the resource application form has been completed.

[0035] In one implementation, when the processing unit verifies the settlement resource information included in the resource settlement request based on the transferred resource information and the increased resource information, it is specifically used to perform the following steps:

[0036] Determine whether the settlement resource category includes the transferred resource category in the transferred resource information and the increased resource category in the increased resource information;

[0037] If it includes, then detect whether the resource quantity corresponding to the transferred resource category in the settlement quantity matches the transferred quantity in the transferred resource information, and whether the resource quantity corresponding to the increased resource category in the settlement quantity matches the increased quantity in the increased resource information;

[0038] If both match, then determine that the verification passes.

[0039] In one implementation, the resource application form further includes increased resource information and the resource refund block height. The increased resource information includes the increased resource category and the increased quantity. The processing unit is further used to perform the following steps:

[0040] If before the reference block height, a resource settlement request initiated by the resource transfer object for the resource application form is not received, and when the current block height is greater than the resource refund block height, a resource liquidation request initiated by the resource transfer-out object for the resource application form is received, then in response to the resource liquidation request, transfer the pledged quantity of the pledged resources under the smart contract address to the second blockchain address. The reference block height is determined based on the resource refund block height;

[0041] Add marking information to the resource application form and store the resource application form with the added marking information in the blockchain. The marking information is used to indicate that the resource application form has been completed.

[0042] Correspondingly, an embodiment of the present application provides a computer device, which includes:

[0043] A processor, adapted to implement a computer program;

[0044] A computer-readable storage medium stores a computer program, and the computer program is adapted to be loaded and executed by the processor to perform the above-mentioned blockchain-based data processing method.

[0045] Correspondingly, an embodiment of the present application provides a computer-readable storage medium that stores a computer program. When the computer program is read and executed by the processor of the computer device, the computer device is caused to perform the above-mentioned blockchain-based data processing method.

[0046] Correspondingly, an embodiment of the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium. The processor of the computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, causing the computer device to perform the above-mentioned blockchain-based data processing method.

[0047] In the embodiment of the present application, a resource application form of a target object (including a resource transfer object) can be obtained and published to the blockchain. The resource application form includes pledged resource information and transferred resource information. The pledged resource information includes the pledged resource category and the pledged quantity, and the transferred resource information includes the transferred resource category and the transferred quantity. The pledged resource category and the transferred resource category are different. The pledged resource category refers to the resource category of the pledged resources, and the transferred resource category refers to the category of the transferred resources. The pledged resources are the pledged guarantees (i.e., the collateral) made by the resource transfer object for borrowing the transferred resources. Then, the pledged resources with the pledged quantity under the first blockchain address are transferred into the smart contract address to transfer the right of possession of the pledged resources with the pledged quantity (i.e., the right to control the pledged resources with the pledged quantity). The first blockchain address is the blockchain address of the resource transfer object. Then, a first resource acceptance request initiated by the resource transfer-out object for the resource application form is obtained. If the first resource acceptance request indicates agreement with the resource acceptance rule corresponding to the resource application form, in response to the first resource acceptance request, the transferred resources with the transferred quantity under the second blockchain address are transferred into the smart contract address, and the transferred resources with the transferred quantity under the smart contract address are transferred into the first blockchain address. The second blockchain address is the blockchain address of the resource transfer-out object, so that the resource transfer-out object can lend the transferred resources with the transferred quantity to the resource transfer-in object.

[0048] Due to the characteristics of blockchain such as decentralization, high security, openness and transparency, and immutability, the embodiments of the present application can ensure that each business processing process of the resource application service (for example, the release process of the resource application form, the transfer process of the pledged resources to the smart contract address, the transfer process of the transferred resources to the smart contract address, the transfer process of the first blockchain address, etc.) will be recorded on the blockchain for evidence preservation. Moreover, the data recorded on the blockchain is immutable and traceable, which can solve the trust problems, security problems, and lack of transparency existing in centralized institutions, and realize a secure, transparent, and reliable resource application service. At the same time, the resource transfer-in object and the resource transfer-out object can directly implement the resource application service through the blockchain, making each business processing process of the resource application service simpler and more convenient, and saving a large amount of human and material costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] 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 the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0050] Figure 1a is a schematic diagram of the architecture of a blockchain network provided by an embodiment of the present application;

[0051] Figure 1b is a schematic diagram of the structure of a blockchain provided by an embodiment of the present application;

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

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

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

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

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

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

[0058] Figure 8 It is an interaction schematic diagram of a data processing method based on blockchain provided by an embodiment of the present application;

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

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

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

[0062] Based on the characteristics of decentralization, high security, openness and transparency, and immutability of blockchain, the embodiments of the present application provide a data processing solution based on blockchain. This solution can realize a secure, transparent, and reliable resource application service. The process of this solution is roughly as follows:

[0063] 1. When the resource transfer object has a need to borrow resources (which can be digital assets), it can send a resource application form to the blockchain node, so that the blockchain node publishes the resource application form in the blockchain. Among them, the resource application form includes pledged resource information and transferred resource information. The pledged resource information includes the pledged resource category and the pledged quantity, and the transferred resource information includes the transferred resource category and the transferred quantity. The pledged resource category refers to the resource category of the pledged resources, and the transferred resource category refers to the category of the transferred resources. The pledged resources are the pledged guarantees (i.e., collateral) made by the resource transfer object for borrowing the transferred resources. The pledged resource category and the transferred resource category are different. For example, if the resource transfer object has digital assets of the first category, but the digital assets of the first category have a slower liquidation speed compared to the digital assets of the second category, the resource transfer object can determine the digital assets of the first category as the pledged resources and the digital assets of the second category as the transferred resources.

[0064] 2. The blockchain node can determine the pledged resource category and the pledged quantity based on the pledged resource information in the resource application form, and then transfer the pledged resources of the pledged quantity under the first blockchain address (determined by the pledged resource category) to the smart contract address. The first blockchain address is the blockchain address of the resource transfer object (unique), which can be used to store the digital assets of the resource transfer object. The smart contract address can be used to store digital assets, specifically, it can refer to the contract address of the target smart contract (a type of blockchain address); the target smart contract can be deployed in the blockchain node to process transactions related to the resource application service. By transferring the pledged resources of the pledged quantity under the first blockchain address to the smart contract address, the right of possession of the pledged resources of the pledged quantity (i.e., the right to control the pledged resources) can be transferred from the resource transfer object to the blockchain node.

[0065] 3. The resource transfer object can initiate a first resource acceptance request for the resource application form. In response to the first resource acceptance request, the blockchain node transfers the transferred resources of the transferred quantity under the second blockchain address to the smart contract address. The second blockchain address is the blockchain address of the resource transfer object, which can be used to store the digital assets of the resource transfer object. Further, the transferred resources of the transferred quantity under the smart contract address are transferred to the first blockchain address. In this way, the resource transfer object lends the transferred resources of the transferred quantity it owns to the resource transfer object.

[0066] 4. The resource application form also includes growth resource information and the resource return block height. The growth resource information includes the growth resource category and the growth quantity. Among them, the growth resource category is the resource category of the growth resources, and the growth resources refer to the resources that the resource transfer object obtains additionally (provided by the resource transfer object) because it lends the transferred resources to the resource transfer object. The resource return block height is used to indicate the due return period of the growth resources of the growth quantity and the transferred resources of the transferred quantity.

[0067] In one implementation, if the resource transfer object fails to return the transferred resources of the transferred quantity and the growth resources of the growth quantity to the resource transfer object on time, the resource transfer object can initiate a resource liquidation request for the resource application form. Further, in response to the resource liquidation request, the blockchain node transfers the pledged resources of the pledged quantity under the smart contract address to the second blockchain address as a solution measure for the resource transfer object's failure to return resources on time. Further, a mark information is added to the resource application form, and the resource application form with the mark information added is stored in the blockchain. The mark information is used to describe that the resource application form has been completed.

[0068] In one embodiment, a blockchain node may send a resource return prompt message to a resource transfer-in object. The resource return prompt message includes the due return period (i.e., the resource return block height) of the increased resources with the increased quantity and the transferred resources with the transferred quantity, so as to prompt the resource transfer-in object to return the increased resources with the increased quantity and the transferred resources with the transferred quantity to the resource transfer-out object before the reference block height (i.e., the resource return block height + 1).

[0069] In another implementation, the resource transfer-in object may return the transferred resources with the transferred quantity and the increased resources with the increased quantity to the resource transfer-out object on time. Specifically, the resource transfer-in object may send a resource settlement request for the resource application form to the blockchain node. The resource settlement request includes settlement resource information, which is used to describe the settlement resource category and the settlement quantity, and the settlement resource category is the resource category of the settlement resources. The blockchain node may verify the settlement resource information. After the verification passes, in response to the resource settlement request, it transfers the settlement resources with the settlement quantity under the first blockchain address to the smart contract address, and transfers the settlement resources with the settlement quantity under the smart contract address to the second blockchain address; further, it transfers the pledged resources with the pledged quantity under the smart contract address to the first blockchain address. Finally, it adds a mark information to the resource application form and stores the resource application form with the mark information in the blockchain. The mark information is used to describe that the resource application form has been completed.

[0070] In the embodiments of the present application, the resource transfer-in object may publish a resource application form on the blockchain and pledge the pledged resources with the pledged quantity in the smart contract address at the same time. The resource transfer-out object may lend the transferred resources with the transferred quantity of the resource transfer-out object to the resource transfer-in object by undertaking the resource application form. Furthermore, the resource transfer-in object may return the transferred resources with the transferred quantity and the increased resources with the increased quantity to the resource transfer-out object on time. If the resource transfer-in object fails to return on time, the resource transfer-out object may also initiate a resource liquidation request to obtain the pledged resources with the pledged quantity of the resource transfer-in object. Since the blockchain has the characteristics of decentralization, high security, openness, transparency and immutability, the embodiments of the present application can ensure that all business processing processes of the resource application service are stored on the chain as evidence, and the data stored on the chain is immutable and traceable, which can solve the trust problems, security problems and lack of transparency existing in centralized institutions, and realize a safe, transparent and reliable resource application service; at the same time, the resource transfer-in object and the resource transfer-out object can directly implement the resource application service through the blockchain, making all business processing processes of the resource application service simpler and more convenient, and saving a large amount of human and material costs.

[0071] In order to be able to more clearly understand the technical solutions provided by the embodiments of the present application, the key terms involved in the embodiments of the present application are introduced here:

[0072] I. Blockchain technology:

[0073] A blockchain is essentially a decentralized database, which is a series of data blocks associated by cryptographic methods. Each data block contains relevant information for verifying the validity of the information (anti-counterfeiting) and generating the next block. Specifically, this application will introduce in detail relevant terms such as blockchain networks, blockchain nodes, and the structure of the blockchain.

[0074] (1) Blockchain network:

[0075] Please refer to Figure 1a , Figure 1a which is a schematic structural diagram of a blockchain network provided by an embodiment of this application. As Figure 1a shown, the blockchain network can be a data sharing system. A data sharing system refers to a system used for data sharing between node devices. The data sharing system 10 may include multiple blockchain nodes 101. The multiple blockchain nodes 101 may refer to various computer devices in the data sharing system. The computer device may be, for example, a terminal device or a server. Among them, the device types of different blockchain nodes 101 may be the same or different. For example, a certain blockchain node 101 may be a terminal device, and another blockchain node 101 may be a server.

[0076] Among them, each blockchain node 101 can receive input information during normal operation and maintain the shared data in the data sharing system based on the received input information. For example, when any blockchain node 101 in the blockchain network receives input information (such as receiving a transaction request, which may specifically be a request for issuing an application form containing a resource application form, a first resource acceptance request, a second resource acceptance request, a resource settlement request, a resource liquidation request in the embodiments of this application), the blockchain node 101 can parse the transaction request to obtain transaction data, and then send the transaction data to other blockchain nodes in the blockchain, enabling each blockchain node to perform blockchain consensus on the transaction data. If the consensus is passed, the smart contract can also be called to execute the transaction (such as issuing a resource application form, transferring digital assets, etc.) according to the contract identifier of the smart contract carried in the transaction data (which may specifically be the contract identifier of the target smart contract in the embodiments of this application), and write the transaction execution result of the transaction into the blockchain, so that each blockchain node on the blockchain jointly maintains the transaction execution result of the transaction.

[0077] (2) Blockchain node:

[0078] ① Node function:

[0079] a. Application function, which is used to be deployed in the blockchain to implement specific services according to actual business requirements, record the data related to the implementation of the service function to form record data (such as the transaction data carried in the transaction request, for example, the transaction data includes the contract identifier of the smart contract to be invoked). The transaction request can be used to request the implementation of the service function on the blockchain. For example, the service function can include: resource application service function, resource transfer service function, game service function, data storage service function, digital collectible service function, voting service function, etc. In one implementation, a digital signature (i.e., the digital signature of the request object (such as the resource transfer object)) can be carried in the transaction request to indicate the source of the transaction data, and the transaction data can be sent to other nodes in the blockchain network. When other nodes verify the source and integrity of the transaction data successfully, the transaction data can be added to the temporary block, and thus the process of uploading the transaction data to the blockchain can be completed.

[0080] b. Contract function, any blockchain node in the blockchain network has the function of invoking and executing the corresponding smart contract. A so-called smart contract (which can be abbreviated as a contract): A smart contract has three elements: commitment, agreement, and digital form, so it can extend the application scope of the blockchain to all aspects of financial industry transactions, payments, settlements, and clearances. A smart contract means that when a pre-compiled condition is triggered, the smart contract will immediately execute the corresponding contract terms, and its working principle is similar to the if-then statement of a computer program. Among them, a smart contract virtual machine (a virtual machine that can execute smart contracts) runs in the blockchain node, and the smart contract virtual machine can understand and execute this code to implement the function of the smart contract. In the embodiments of the present application, various types of smart contracts (such as target smart contracts) can be deployed in the blockchain node based on the contract function, so that the corresponding smart contract can be invoked in the blockchain to execute the corresponding contract transaction (such as issuing a resource application form, transferring digital assets, etc.).

[0081] ② Node identifier:

[0082] For each node in the blockchain network, it has a corresponding node identifier, and each node in the blockchain network can store the node identifiers of other nodes in the blockchain network, so that the generated block can be broadcast to other nodes in the blockchain network according to the node identifiers of other nodes in the future. A node identifier list as shown in the following table can be maintained in each node, and the node name and the node identifier are stored in the node identifier list correspondingly.

[0083] Among them, the node identifier can be an IP (Internet Protocol) address and any other information that can be used to identify the node. Only the IP address is taken as an example for illustration in Table 1.

[0084] Table 1. Node Identification List

[0085] Node Name Node Identifier Node 1 000.000.000.000 Node 2 111.111.111.111 … … Node N xxx.xxx.xxx.xxx

[0086] In the embodiment of the present application, the transaction request carries transaction data. For example, the transaction data includes: the contract identifier of the smart contract to be invoked, the blockchain address for receiving digital assets, the blockchain address for transferring digital assets, etc. Each blockchain node can perform blockchain consensus on the transaction data carried in the transaction request, and data interaction between blockchain nodes is involved in the blockchain consensus process. During the data interaction process, any blockchain node can carry its own node identifier, so that other nodes can perform node verification processing based on the corresponding node identifier before performing consensus processing, thereby improving the security of the blockchain consensus process.

[0087] (3) Structure of the block:

[0088] See Figure 1b , Figure 1b which is a schematic structural diagram of a blockchain provided by the embodiment of the present application. As Figure 1b shown, the blockchain is composed of multiple blocks, and each blockchain contains a genesis block. As the name implies, the so-called genesis block is the first block, the initial block. The genesis block includes a block header and a block body. The block header stores the input information feature value, version number, timestamp, and difficulty value, and the block body stores the input information; the next block of the genesis block uses the genesis block as the parent block, and the next block also includes a block header and a block body. The block header stores the input information feature value of the current block, the block header feature value of the parent block, version number, timestamp, and difficulty value, and so on, so that the transaction data stored in each block in the blockchain is associated with the transaction data stored in the parent block, ensuring the security of the transaction data in the block. In the embodiment of the present application, the blockchain constituted according to the block structure shown in Figure 1b can ensure the security of the relevant transaction data involved in the process of executing the resource application service, thereby improving the reliability and security of executing transactions on the chain.

[0089] II. Cloud technology:

[0090] In the data processing solution based on blockchain proposed in this application, there are a large number of data computing services and data storage services involved, so a large amount of computer operation costs are required. Then, this application can perform corresponding business processing operations based on the cloud storage technology in cloud technology, specifically including: storing the resource application form based on the data storage service; verifying the settlement resource information based on the data computing service. Among them, cloud technology (Cloud technology) is the general term for network technology, information technology, integration technology, management platform technology, application technology, etc. applied based on the cloud computing business model, which can form a resource pool, be used on demand, and be flexible and convenient. Among them, cloud technology can include cloud storage technology. Cloud storage (cloud storage) is a new concept extended and developed from the concept of cloud computing. A distributed cloud storage system (hereinafter referred to as the storage system) refers to a storage system that combines a large number of different types of storage devices (storage devices are also called storage nodes) in the network through functions such as cluster applications, grid technology, and distributed file systems, and works together through application software or application interfaces to jointly provide data storage and business access functions to the outside world.

[0091] The following will introduce the blockchain-based data processing system provided by the embodiments of this application with reference to the accompanying drawings. This data processing system is applicable to implementing the blockchain-based data processing method provided by the embodiments of this application. As Figure 2 shown, this data processing system may include a resource transfer-in object 201, a resource transfer-out object 202, and at least one blockchain node 203. Among them, the at least one blockchain node 203 constitutes a blockchain network. It should be noted that the number of nodes in this blockchain network is only for illustration and does not specifically limit the number of nodes in this application. Any blockchain node 203 in the blockchain network can be directly or indirectly connected to the resource transfer-in object 201 and the resource transfer-out object 202 through wired or wireless communication methods.

[0092] Among them, any computer device (resource transfer object 201, resource transfer-out object 202, and blockchain node 203) in the above-mentioned data processing system includes, but is not limited to, a terminal device or a server. Among them, the terminal device can be an electronic device, including but not limited to a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a vehicle-mounted device, an Augmented Reality / Virtual Reality (AR / VR) device, a head-mounted display, a smart TV, a wearable device, a smart speaker, a digital camera, a camera, and other mobile internet devices (MIDs) with network access capabilities, or terminal devices in scenarios such as trains, ships, and flights. Among them, the server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing 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, vehicle-road collaboration, Content Delivery Network (CDN), and big data and artificial intelligence platforms.

[0093] It can be understood that the types of the respective computer devices in the above-mentioned data processing system can be the same or different. For example, the resource transfer object 201, the resource transfer-out object 202, and the blockchain node 203 can all be servers; for another example, the resource transfer object 201 and the resource transfer-out object 202 can both be servers, and the blockchain node 203 can be a terminal device. This application does not limit the types of the respective computer devices in the data processing system; at the same time, it does not limit the number of the respective computer devices in the data processing system, that is, both the resource transfer object 201 and the resource transfer-out object 202 can be multiple.

[0094] Next, in combination with Figure 2 A brief description is given to each computer device among the resource transfer object 201, the resource transfer-out object 202, and the blockchain node 203 in the above-mentioned data processing system:

[0095] (1) Resource Transfer-in Object 201: The resource transfer-in object 201 refers to an object that pledges pledged resources to the blockchain node 203 and expects to borrow the transferred resources of the resource transfer-out object 202. When the resource transfer-in object 201 wants to borrow resources, it can send a request for publishing an application form (i.e., the resource application form of the resource transfer-in object 201) containing the resource application form to the blockchain node 203. In response to the request for publishing the application form, the blockchain node 203 publishes the resource application form of the resource transfer-in object 201 to the blockchain and transfers the pledged resources of the resource transfer-in object 201 to the smart contract address. Further, the transferred resources of the resource transfer-out object 202 that undertakes the resource application form of the resource transfer-in object 201 are transferred to the resource transfer-in object 201.

[0096] (2) Resource Transfer-out Object 202: The resource transfer-out object 202 refers to an object that is willing to lend the transferred resources to the resource transfer-in object 201 and additionally obtain the growth resources of the resource transfer-in object 201. When the resource transfer-out object 202 wants to lend resources, it can send a request for publishing an application form (i.e., the resource application form of the resource transfer-out object 202) containing the resource application form to the blockchain node 203. In response to the request for publishing the application form, the blockchain node 203 publishes the resource application form of the resource transfer-out object 202 to the blockchain. Further, the pledged resources of the resource transfer-in object 201 that undertakes the resource application form of the resource transfer-out object 202 are transferred to the smart contract address, and the transferred resources of the resource transfer-out object 202 are transferred to the resource transfer-in object 201.

[0097] (3) Blockchain Node 203: The blockchain node 203 is responsible for receiving transaction requests and invoking corresponding smart contracts on the blockchain to execute transactions. In one implementation, a target smart contract can be deployed in the blockchain node 203, and the blockchain node 203 can invoke the target smart contract to execute transactions related to the resource application service. The above smart contract address refers to the contract address of the target smart contract. At this time, the transaction request can include a request for publishing an application form, a first resource acceptance request initiated by the resource transfer-out object 202 for the resource application form of the resource transfer-in object 201, a second resource acceptance request initiated by the resource transfer-in object 201 for the resource application form of the resource transfer-out object 202, a resource settlement request initiated by the resource transfer-in object 201, a resource liquidation request initiated by the resource transfer-out object 202, etc.

[0098] In the embodiment of the present application, whether it is the resource transfer-in object 201 or the resource transfer-out object 202, it can publish and undertake resource application forms in the blockchain, thereby ensuring the richness of the service types of the resource application service. At the same time, based on the characteristics of the blockchain, such as decentralization, high security, openness, transparency, and immutability, a secure, transparent, and reliable resource application service can be ensured.

[0099] Further, taking the resource transfer-out object 202 issuing a resource application form as an example and combining with Figure 2 , the data interaction process among the resource transfer-in object 201, the resource transfer-out object 202, and the blockchain node 203 in the data processing system mentioned above will be introduced in detail:

[0100] (1) The resource transfer-out object 202 sends an application form release request containing the resource application form to the blockchain node 203. The resource application form includes pledged resource information and transferred resource information. The pledged resource information includes the pledged resource category and the pledged quantity, and the transferred resource information includes the transferred resource category and the transferred quantity. The pledged resource category is different from the transferred resource category. In addition, the resource application form also includes growth resource information and the resource return block height. The growth resource information includes the growth resource category and the growth quantity.

[0101] (2) In response to the application form release request, the blockchain node 203 obtains the resource application form of the resource transfer-out object 202, publishes the resource application form to the blockchain, and transfers the transferred resources with the transferred quantity under the second blockchain address to the smart contract address.

[0102] (3) The resource transfer-in object 201 can accept the resource application form of the resource transfer-out object 202 and send a second resource acceptance request to the blockchain node 203.

[0103] (4) If the second resource acceptance request indicates using the pledged resources as collateral, the blockchain node 203, in response to the second resource acceptance request, transfers the pledged resources with the pledged quantity under the first blockchain address to the smart contract address. Further, it transfers the transferred resources with the transferred quantity under the smart contract address to the first blockchain address.

[0104] (5) If the resource transfer-in object 201 fails to return the transferred resources with the transferred quantity and the growth resources with the growth quantity to the resource transfer-out object 202 on time, the resource transfer-out object 202 can initiate a resource liquidation request for the resource application form. Further, the blockchain node 203, in response to the resource liquidation request, transfers the pledged resources with the pledged quantity under the smart contract address to the second blockchain address as a solution for the resource transfer-in object 201's failure to return resources on time. Further, it adds marking information to the resource application form and stores the resource application form with the marking information in the blockchain. The marking information is used to describe that the resource application form has been completed.

[0105] (6) The resource transfer target 201 can return the transferred resources of the transferred quantity and the increased resources of the increased quantity to the resource transfer-out target 202 on time. Specifically, the resource transfer target 201 can send a resource settlement request for the resource application form to the blockchain node 203. Among them, the resource settlement request includes settlement resource information, which is used to describe the settlement resource category and the settlement quantity. The settlement resource category is the resource category of the settlement resources. The blockchain node 203 can verify the settlement resource information. After passing the verification, in response to the resource settlement request, it transfers the settlement resources of the settlement quantity under the first blockchain address to the smart contract address, and transfers the settlement resources of the settlement quantity under the smart contract address to the second blockchain address; further, it transfers the pledged resources of the pledged quantity under the smart contract address to the first blockchain address. Finally, it adds marking information to the resource application form and stores the resource application form with the added marking information in the blockchain. The marking information is used to describe that the resource application form has been completed.

[0106] In the embodiment of the present application, the resource transfer-out target can publish a resource application form on the blockchain and store the transferred resources of the transferred quantity in the smart contract address at the same time. The resource transfer target can undertake the resource application form, lend the transferred resources of the transferred quantity of the resource transfer-out target to the resource transfer target, and store the pledged resources of the pledged quantity of the resource transfer target in the smart contract address. Furthermore, the resource transfer target can return the transferred resources of the transferred quantity and the increased resources of the increased quantity to the resource transfer-out target on time. If the resource transfer target fails to return on time, the resource transfer-out target can also initiate a resource liquidation request to obtain the pledged resources of the pledged quantity of the resource transfer target. Since the blockchain has the characteristics of decentralization, high security, openness, transparency, and immutability, the embodiment of the present application can ensure that all business processing processes of the resource application service are stored on the chain as evidence, and the data stored on the chain is immutable and traceable, which can solve the trust problems, security problems, and lack of transparency existing in centralized institutions, and realize a safe, transparent, and reliable resource application service; at the same time, the resource transfer target and the resource transfer-out target can directly implement the resource application service through the blockchain, making all business processing processes of the resource application service simpler and more convenient, saving a large amount of human and material costs.

[0107] It can be understood that Figure 2 The blockchain-based data processing system in the illustrated embodiment is for more clearly explaining the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided by the embodiment of the present application. Those skilled in the art know that with the evolution of the system architecture and the emergence of new business scenarios, the technical solution provided by the embodiment of the present application is also applicable to similar technical problems.

[0108] It should be specifically noted that in the data processing process involved in this application, relevant data, such as: transferred resources, growing resources, pledged resources, transferred resource categories, growing resource categories, pledged resource categories, etc. When the above embodiments of this application are applied to specific products or technologies, user permission or consent needs to be obtained, and the relevant data collection, use, and processing processes need to comply with the relevant laws, regulations, and standards of the region, conform to the principles of legality, legitimacy, and necessity, and do not involve obtaining data types prohibited or restricted by laws and regulations. In some optional embodiments, the relevant data involved in the embodiments of this application is obtained after separate authorization from the object. In addition, when obtaining separate authorization from the object, the purpose of the relevant data involved is stated to the object.

[0109] The following describes specific embodiments related to the data processing solution based on blockchain with reference to the accompanying drawings.

[0110] Please refer to Figure 3 , Figure 3 which is a schematic flowchart of a data processing method based on blockchain provided by an embodiment of this application. This data processing method mainly introduces that the target object is the resource transfer object, and the resource application form is issued by the resource transfer object and the subsequent processing process. This data processing method can be executed by Figure 2 the target smart contract deployed in the blockchain node 203 of the data processing system based on blockchain shown in

[0111] S301. Obtain the resource application form of the target object and publish the resource application form to the blockchain; the resource application form includes pledged resource information and transferred resource information, the pledged resource information includes the pledged resource category and the pledged quantity, the transferred resource information includes the transferred resource category and the transferred quantity, and the pledged resource category and the transferred resource category are different.

[0112] The target object can obtain the resource application form filled in by the user and send an application form publishing request containing the resource application form to the blockchain node. The blockchain node responds to the application form publishing request and publishes the resource application form to the blockchain. In one embodiment, a target smart contract is deployed in the blockchain node, and this target smart contract is used to process transactions related to the resource application business. At this time, the application form publishing request also includes the contract identifier of the target smart contract, and the blockchain node can call the target smart contract based on this contract identifier to publish the resource application form to the blockchain.

[0113] Among them, the resource application form includes pledged resource information and transferred resource information. The pledged resource information includes the pledged resource category and the pledged quantity. The pledged resource category refers to the resource category of the pledged resources, and the pledged resources refer to the resources pledged by the resource transfer recipient for borrowing the transferred resources (which can be digital assets). The transferred resource information includes the transferred resource category and the transferred quantity. The transferred resource category refers to the resource category of the transferred resources, and the transferred resources refer to the resources lent by the resource transferor to the resource transfer recipient (which can be digital assets). The pledged resource category and the transferred resource category are different. For example, if the resource transfer recipient has digital assets of the first category, but the liquidity of the digital assets of the first category is slower than that of the digital assets of the second category, the resource transfer recipient can determine the digital assets of the first category as the pledged resources and the digital assets of the second category as the transferred resources. It should be noted that usually, the resource value of the pledged resources with the pledged quantity needs to be higher (at least equal) than that of the transferred resources with the transferred quantity for the resource transferor to be willing to lend the transferred resources to the resource transfer recipient. For example, the pledged resources with the pledged quantity can be converted into digital assets of the target category to obtain the first asset quantity, and similarly, the transferred resources with the transferred quantity can be converted into digital assets of the target category to obtain the second asset quantity. If the first asset quantity is greater than or equal to the second asset quantity, the resource transferor will be willing to lend the transferred resources to the resource transfer recipient. In addition, some resource transferors believe that the appreciation probability of the pledged resources is high. Even if the resource value of the pledged resources with the pledged quantity is lower than that of the transferred resources with the transferred quantity, they may still be willing to lend the transferred resources to the resource transfer recipient. Of course, whether to be willing to lend the transferred resources to the resource transfer recipient is determined by the subjective will of the resource transferor, and this application does not limit it. For example, even if the second resource quantity is less than the first resource quantity, but its growth resources are large, the resource transferor may still be willing to take risks and lend the transferred resources to the resource transfer recipient.

[0114] Optionally, the pledged resource can also be a digital collectible. When the pledged resource is a digital collectible, the resource value of the pledged digital collectibles can be evaluated according to the digital assets of the target category (referred to as digital asset A for short), based on one or more of the pledged quantity (usually the pledged quantity of one type of digital collectible is 1), scarcity degree, trading frequency, and trading price of the digital collectible, to obtain the first asset quantity. Among them, if the pledged quantity of the digital collectible is larger, and / or the scarcity degree of the digital collectible is higher, and / or the trading frequency of the digital collectible is larger, and / or the trading price of the digital collectible is higher, then the first asset quantity is larger. For example, if the scarcity degree of the digital collectible belongs to the high-level scarcity, the first asset quantity can be 5 digital asset As; if the scarcity degree of the digital collectible belongs to the low-level scarcity, the first asset quantity can be 1 digital asset A. Another example is that if the trading price of the digital collectible is 5 digital asset As, then the first asset quantity should at least be equal to 5 digital asset As (for example, if the trading frequency is high and the scarcity degree is high, the first asset quantity should exceed 5 digital asset As to be reasonable).

[0115] In one embodiment, the resource application form further includes growth resource information and the resource return block height. The growth resource information includes the growth resource category and the growth quantity. The growth resource category refers to the resource category of the growth resource, and the growth resource refers to the resource (which can be digital assets) that the resource transfer object obtains additionally due to lending and transferring resources. The resource return block height is used to indicate the due return period of the transferred resources and the growth resources. For example, if the resource return block height is 100, the resource receiving object should return the transferred quantity of the transferred resources and the growth quantity of the growth resources to the resource transferring object before the current block height reaches 101.

[0116] S302. If the target object is the resource receiving object, transfer the pledged resources with the pledged quantity under the first blockchain address to the smart contract address; the first blockchain address is the blockchain address of the resource receiving object, and the resource category of the pledged resources is the pledged resource category.

[0117] If the target object is the resource receiving object, it means that the resource receiving object issued the resource application form. At this time, based on the pledged resource information in the resource application form, the pledged resource category and the pledged quantity can be determined. Through the pledged resource category, the pledged resources to be transferred in the first blockchain address can be determined, and then the pledged resources with the pledged quantity under the first blockchain address can be transferred to the smart contract address. For example, if the pledged resource category is the first category, it can be determined that the digital assets to be transferred in the first blockchain address are the first category of digital assets (referred to as digital asset B for short), and then the pledged quantity of digital asset B in the first blockchain address can be transferred to the smart contract address. The first blockchain address is the blockchain address of the resource receiving object, which is used to uniquely identify the resource receiving object. In this way, the right of possession of the pledged resources with the pledged quantity can be transferred to the blockchain node.

[0118] S303. Obtain a first resource acceptance request initiated by a resource transfer object for a resource application form.

[0119] In the blockchain, M resource application forms of S resource transfer objects can be published. S and M are positive integers. One resource transfer object can correspond to one or more resource application forms. The resource transfer object can select from them and initiate a first resource acceptance request for the selected resource application form. For example, the resource transfer object can select a resource application form with more growing resources and send a first resource acceptance request to it. Among them, the first resource acceptance request refers to a resource acceptance request initiated by the resource transfer object, which is used to indicate that the resource transfer object applies to accept the resource application form. In a feasible embodiment, a front-end interface corresponding to the resource application service can be provided. The front-end interface can be used to display each resource application form published in the blockchain. Each object can participate in the resource application service through this front-end interface. For example, the resource transfer object can select the resource application form of the resource transfer object from the front-end interface and generate a first resource acceptance request for the selected resource application form through this front-end interface, and send the first resource acceptance request to the blockchain node.

[0120] S304. If the first resource acceptance request indicates agreement with the resource acceptance rule corresponding to the resource application form, in response to the first resource acceptance request, transfer the transfer resources of the transfer quantity under the second blockchain address to the smart contract address; the second blockchain address is the blockchain address of the resource transfer object, and the resource category of the transfer resources is the transfer resource category.

[0121] S305. Transfer the transfer resources of the transfer quantity under the smart contract address to the first blockchain address.

[0122] The resource application form corresponds to a resource acceptance rule, and the resource acceptance rule is a rule determined based on one or more of the pledged resource information, transfer resource information, growing resource information, and resource return block height included in the resource application form. Optionally, the resource acceptance rule is the pledged resource information, transfer resource information, growing resource information, and resource return block height in the resource application form.

[0123] In steps S304 - S305, if the first resource acceptance request indicates agreement with the resource acceptance rule corresponding to the resource application form, the blockchain node can, in response to the first resource acceptance request, transfer the transfer resources of the transfer quantity under the second blockchain address to the smart contract address, and transfer the transfer resources of the transfer quantity under the smart contract address to the first blockchain address. The second blockchain address is the blockchain address of the resource transfer object, which is used to uniquely identify the resource transfer object. The smart contract address can be used to store digital assets (including the pledged resources of the pledged quantity). In this way, the transfer resources of the resource transfer object are lent to the resource transfer object.

[0124] In one embodiment, the resource transfer object may send a resource settlement request for a resource application form to a blockchain node (for requesting settlement of the resource application form based on the included settlement resource information), and if the blockchain node determines that the current block height is less than or equal to the resource return block height, in response to the resource settlement request, based on the transferred resource information and the increased resource information, it verifies the settlement resource information included in the resource settlement request, and the settlement resource information includes a settlement resource category and a settlement quantity.

[0125] In one implementation manner, verifying the settlement resource information included in the resource settlement request based on the transferred resource information and the increased resource information includes: determining whether the settlement resource category includes the transferred resource category in the transferred resource information and the increased resource category in the increased resource information. For example, if the transferred resource category is the second category, the increased resource category is the first category, and the settlement resource category includes the first category and the second category, it is determined that the settlement resource category includes the transferred resource category in the transferred resource information and the increased resource category in the increased resource information. Another example is that if the transferred resource category is the second category, the increased resource category is the first category, but the settlement resource category includes the first category and does not include the second category, it is determined that the settlement resource category does not include the transferred resource category in the transferred resource information and the increased resource category in the increased resource information. It should be noted that if the settlement resource category does not include the transferred resource category in the transferred resource information, and / or the settlement resource category does not include the increased resource category in the increased resource information, it is determined that the verification fails.

[0126] Further, if the settlement resource category includes the transferred resource category in the transferred resource information and the increased resource category in the increased resource information, it is detected whether the resource quantity corresponding to the transferred resource category in the settlement quantity matches the transferred quantity in the transferred resource information (i.e., they match if they are the same, and do not match if they are different), and whether the resource quantity corresponding to the increased resource category in the settlement quantity matches the increased quantity in the increased resource information (i.e., they match if they are the same, and do not match if they are different); if both match, it is determined that the verification passes. It should be noted that if the resource quantity corresponding to the transferred resource category in the settlement quantity does not match the transferred quantity in the transferred resource information, and / or the resource quantity corresponding to the increased resource category in the settlement quantity does not match the increased quantity in the increased resource information, the verification fails. For example, if the settlement quantity includes 5 digital assets C (digital assets of the second category) and 1 digital asset B, the transferred resource of the transferred quantity is 5 digital assets C, and the increased resource of the increased quantity is 2 digital assets B, then since the resource quantity (1) corresponding to the increased resource category in the settlement quantity does not match the increased quantity (2), it is determined that the verification fails.

[0127] In another implementation, based on the transferred resource information and the increased resource information, the settlement resource information included in the resource settlement request is verified, including: converting the settlement resources of the settlement quantity into digital assets of the target category to obtain a third asset quantity, converting the increased resources of the increased quantity into digital assets of the target category to obtain a fourth asset quantity, converting the transferred resources of the transferred quantity into digital assets of the target category to obtain a second asset quantity. If the sum of the second asset quantity and the fourth asset quantity is equal to the third asset quantity, it is determined that the verification passes; if the sum of the second asset quantity and the fourth asset quantity is not equal to the third asset quantity, it is determined that the verification fails.

[0128] If the verification passes, in response to the resource settlement request, the blockchain node transfers the settlement resources of the settlement quantity under the first blockchain address (the resource category of the settlement resources is the settlement resource category) to the smart contract address, transfers the settlement resources of the settlement quantity under the smart contract address to the second blockchain address, and transfers the pledged resources of the pledged quantity under the smart contract address to the first blockchain address. Finally, marking information can be added to the resource application form, and the resource application form with the added marking information is stored in the blockchain. The marking information is used to indicate that the resource application form has been completed.

[0129] In one embodiment, the reference block height is determined based on the resource return block height, that is, the reference block height is equal to the resource return block height + 1. If before the reference block height, the blockchain node does not receive a resource settlement request initiated by the resource transfer object for the resource application form, it means that the resource transfer object has not returned the resources on time. Then when the current block height is greater than the resource return block height, the resource transfer object can send a resource liquidation request for the resource application form and send the resource liquidation request to the blockchain node. In response to the resource liquidation request, the blockchain node transfers the pledged resources of the pledged quantity under the smart contract address to the second blockchain address as a solution measure for the resource transfer object not returning the resources on time. Finally, marking information is added to the resource application form, and the resource application form with the added marking information is stored in the blockchain. The marking information is used to indicate that the resource application form has been completed.

[0130] In one embodiment, when an object (including the resource transfer object and the resource transfer-out object) wants to view the resource application form on the blockchain, the resource application forms without the added marking information can be returned to the object. These resource application forms without the added marking information represent the resource application forms to be undertaken.

[0131] S306. If the first resource acceptance request indicates disagreement with the resource acceptance rule corresponding to the resource application form, then in response to the first resource acceptance request, obtain the target replacement resource acceptance rule selected by the resource transfer object from N replacement resource acceptance rules, and determine the target replacement transferred resource category and the target replacement transferred quantity based on the target replacement resource acceptance rule, where N is a positive integer.

[0132] In one embodiment, when the resource transfer-out object does not agree with the resource acceptance rules corresponding to the resource application form (specifically, it may not agree with one or more of the transferred resource information, increased resource information, and resource return block height included in the resource application form), N (N is a positive integer) replacement resource acceptance rules may be set. Each replacement resource acceptance rule includes one or more of the following: a replacement transferred resource category for the transferred resource category (which can be used to replace the transferred resource category in the resource application form), a replacement transferred quantity for the transferred quantity (which can be used to replace the transferred quantity in the resource application form), a replacement increased resource category for the increased resource category (which can be used to replace the increased resource category in the resource application form), a replacement increased quantity for the increased quantity (which can be used to replace the increased quantity in the resource application form), and a replacement resource return block height for the resource return block height (which can be used to replace the resource return block height in the resource application form). For example, if the increased quantity in the resource application form is 5 digital assets C and the resource return block height is 100, the resource transfer-out object can set the replacement increased quantity in the replacement resource acceptance rule to 7 digital assets C and the replacement resource return block height to 110. The resource transfer-out object may send a first resource acceptance request indicating disagreement with the resource acceptance rules corresponding to the resource application form to the blockchain node. The first resource acceptance request includes N replacement resource acceptance rules. In response to the first resource acceptance request, the blockchain node sends an application form acceptance prompt message including N replacement resource acceptance rules to the resource transfer-in object. The application form acceptance prompt message prompts the resource transfer-in object to select one replacement resource acceptance rule from the N replacement resource acceptance rules. The resource transfer-in object can evaluate the N replacement resource acceptance rules and select a suitable replacement resource acceptance rule. For example, the resource transfer-in object can select a resource acceptance rule with a larger replacement resource return block height, or can select a resource acceptance rule with a smaller replacement increased quantity, or can also select a resource acceptance rule with a smaller replacement transferred quantity. This application does not limit this. If the resource transfer-in object deems that all N replacement resource acceptance rules are inappropriate, the blockchain node can send a prompt message indicating that the application form acceptance has failed to the resource transfer-out object. If the resource transfer-in object selects a target replacement resource acceptance rule from the N replacement resource acceptance rules, the blockchain node obtains the target replacement resource acceptance rule selected by the resource transfer-in object for the N replacement resource acceptance rules, and determines a target replacement transferred resource category and a target replacement transferred quantity based on the target replacement resource acceptance rule. Optionally, determining a target replacement transferred resource category and a target replacement transferred quantity based on the target replacement resource acceptance rule includes: when the target replacement resource acceptance rule includes a replacement transferred resource category, determining the replacement transferred resource category in the target replacement resource acceptance rule as the target replacement transferred resource category; when the target replacement resource acceptance rule does not include a replacement transferred resource category, determining the transferred resource category as the target replacement transferred resource category.When the target replacement resource acceptance rule includes a replacement transfer quantity, the replacement transfer quantity in the target replacement resource acceptance rule is determined as the target replacement transfer quantity; when the target replacement resource acceptance rule does not include a replacement transfer quantity, the transfer quantity is determined as the target replacement transfer quantity.

[0133] It should be noted that it is also necessary to determine the target replacement growth resource category based on the target replacement resource acceptance rule, including: if the target replacement resource acceptance rule includes a replacement growth resource category, the replacement growth resource category in the target replacement resource acceptance rule is determined as the target replacement growth resource category; otherwise, the growth resource category is determined as the target replacement growth resource category. Determining the target replacement growth quantity based on the target replacement resource acceptance rule includes: if the target replacement resource acceptance rule includes a replacement growth quantity, the replacement growth quantity in the target replacement resource acceptance rule is determined as the target replacement growth quantity; otherwise, the growth quantity is determined as the target replacement growth quantity. Determining the target replacement resource return block height based on the target replacement resource acceptance rule includes: if the target replacement resource acceptance rule includes a replacement resource return block height, the replacement resource return block height in the target replacement resource acceptance rule is determined as the target replacement resource return block height; otherwise, the resource return block height is determined as the target replacement resource return block height.

[0134] Optionally, the resource application form of the resource transfer-in object may at least include pledged resource information (for example, only include pledged resource information, not include transferred resource information, growth resource information, and resource return block height). The resource transfer-out object may initiate a first resource acceptance request for the resource application form. The first resource acceptance request includes N replacement resource acceptance rules. The blockchain node can respond to the first resource acceptance request, obtain the target replacement resource acceptance rule selected by the resource transfer-in object from the N replacement resource acceptance rules, determine the target replacement transferred resource category, target replacement transfer quantity, target replacement growth resource category, target replacement growth quantity, and target replacement resource return block height based on the target replacement resource acceptance rule, and continue to execute the subsequent steps S307 - S308.

[0135] S307. Transfer the target replacement transferred resource with the target replacement transfer quantity under the second blockchain address to the smart contract address. The resource category of the target replacement transferred resource is the target replacement transferred resource category.

[0136] S308. Transfer the target replacement transferred resource with the target replacement transfer quantity under the smart contract address to the first blockchain address.

[0137] In steps S307 - S308, the blockchain node may transfer the target replacement transfer resources of the target replacement transfer quantity under the second blockchain address to the smart contract address, and then transfer the target replacement transfer resources of the target replacement transfer quantity under the smart contract address to the first blockchain address.

[0138] In one embodiment, the resource transfer object may send a resource settlement request for the resource application form to the blockchain node (for requesting to settle the resource application form based on the included settlement resource information). If the blockchain node determines that the current block height is less than or equal to the target replacement resource return block height, in response to the resource settlement request, it verifies the settlement resource information included in the resource settlement request based on the target replacement transfer resource category, the target replacement transfer quantity, the target replacement growth resource category, and the target replacement growth quantity. The settlement resource information includes the settlement resource category and the settlement quantity.

[0139] In one implementation manner, verifying the settlement resource information included in the resource settlement request based on the target replacement transfer resource category, the target replacement transfer quantity, the target replacement growth resource category, and the target replacement growth quantity includes: determining whether the settlement resource category includes the target replacement transfer resource category and the target replacement growth resource category. For example, if the target replacement transfer resource category is the second category, the target replacement growth resource category is the first category, and the settlement resource category includes the first category and the second category, it is determined that the settlement resource category includes the target replacement transfer resource category and the target replacement growth resource category. Another example is that the target replacement transfer resource category is the second category, the target replacement growth resource category is the first category, but the settlement resource category includes the first category and does not include the second category, then it is determined that the settlement resource category does not include the target replacement transfer resource category and the target replacement growth resource category. It should be noted that if the settlement resource category does not include the target replacement transfer resource category, and / or the settlement resource category does not include the target replacement growth resource category, it is determined that the verification fails.

[0140] Further, if the settlement resource category includes the target replacement transfer resource category and the target replacement growth resource category, it is necessary to detect whether the resource quantity corresponding to the target replacement transfer resource category in the settlement quantity matches the target replacement transfer quantity (i.e., they match if they are the same, and do not match if they are different), and whether the resource quantity corresponding to the target replacement growth resource category in the settlement quantity matches the target replacement growth quantity (i.e., they match if they are the same, and do not match if they are different); if both match, it is determined that the verification passes. It should be noted that if the resource quantity corresponding to the target replacement transfer resource category in the settlement quantity does not match the target replacement transfer quantity, and / or the resource quantity corresponding to the target replacement growth resource category in the settlement quantity does not match the target replacement growth quantity in the growth resource information, the verification fails. For example, if the settlement quantity includes 5 digital assets C and 1 digital asset B, the transfer resource of the target replacement transfer quantity is 5 digital assets C, and the growth resource of the target replacement growth quantity is 2 digital assets B, then since the resource quantity (1) corresponding to the target replacement growth resource category in the settlement quantity does not match the target replacement growth quantity (2), it is determined that the verification fails.

[0141] In another implementation, based on the target replacement transfer resource category, the target replacement transfer quantity, the target replacement growth resource category, and the target replacement growth quantity, verify the settlement resource information included in the resource settlement request, including: the settlement resources of the settlement quantity can be converted into digital assets of the target category to obtain the third asset quantity, the growth resources of the target replacement growth quantity can be converted into digital assets of the target category to obtain the fifth asset quantity, and the transfer resources of the target replacement transfer quantity can be converted into digital assets of the target category to obtain the sixth asset quantity. If the sum of the fifth asset quantity and the sixth asset quantity is equal to the third asset quantity, it is determined that the verification passes; if the sum of the fifth asset quantity and the sixth asset quantity is not equal to the third asset quantity, it is determined that the verification fails.

[0142] If the verification passes, in response to the resource settlement request, the blockchain node transfers the settlement resources of the settlement quantity under the first blockchain address to the smart contract address, transfers the settlement resources of the settlement quantity under the smart contract address to the second blockchain address, and transfers the pledged resources of the pledged quantity under the smart contract address to the first blockchain address. Finally, a mark information can be added to the resource application form, and the resource application form with the mark information added is stored in the blockchain. The mark information is used to indicate that the resource application form has been completed.

[0143] In one embodiment, the target reference block height is determined based on the target replacement resource return block height, that is, the target reference block height is equal to the target replacement resource return block height + 1. If before the target reference block height, the blockchain node has not received a resource settlement request initiated by the resource transfer object for the resource application form, it indicates that the resource transfer object has not returned the resources on time. Then when the current block height is greater than the target replacement resource return block height, the resource transfer-out object can send a resource liquidation request for the resource application form and send the resource liquidation request to the blockchain node. In response to the resource liquidation request, the blockchain node transfers the pledged resources of the pledged quantity under the smart contract address to the second blockchain address as a solution measure for the resource transfer object not returning the resources on time. Finally, mark information is added to the resource application form, and the resource application form with the added mark information is stored in the blockchain. The mark information is used to indicate that the resource application form has been completed.

[0144] In the embodiment of the present application, the resource transfer object can issue a resource application form in the blockchain, and the resource transfer-out object can undertake the resource application form of the resource transfer object, thereby participating in the resource application service, ensuring the richness of the service types of the resource application service; furthermore, the resource transfer object can return the transferred resources of the transferred quantity (or the target replacement transferred resources of the target replacement transferred quantity) and the increased resources of the increased quantity (or the target replacement increased resources of the target replacement increased quantity) to the resource transfer-out object on time. If the resource transfer object fails to return on time, the resource transfer-out object can also obtain the pledged resources of the pledged quantity of the resource transfer object by initiating a resource liquidation request. At the same time, based on the characteristics of the blockchain, such as decentralization, high security, public transparency, and immutability, it can ensure that all service processing processes of the resource application service are stored on the chain for evidence, and the data on the chain is immutable and traceable, solving problems such as trust issues, security issues, and lack of transparency existing in centralized institutions, and realizing a safe, transparent, and reliable resource application service; moreover, the resource transfer object and the resource transfer-out object can directly conduct the resource application service through the blockchain, making all service processing processes of the resource application service simpler and more convenient, saving a large amount of human and material costs.

[0145] Please refer to Figure 4 , Figure 4 is a schematic flowchart of a data processing method based on a blockchain provided by an embodiment of the present application. This data processing method mainly introduces that the target object is the resource transfer-out object, the resource transfer-out object issues a resource application form and subsequent processing processes. This data processing method can be executed by Figure 2 the blockchain node 203 (the target smart contract deployed therein) in the blockchain-based data processing system shown. Among them, this blockchain-based data processing method mainly includes but is not limited to the following steps S401 to S408:

[0146] S401, obtain the resource application form of the target object, and publish the resource application form to the blockchain; the resource application form includes pledged resource information and transferred resource information, the pledged resource information includes the pledged resource category and pledged quantity, and the transferred resource information includes the transferred resource category and transferred quantity, and the pledged resource category and the transferred resource category are different.

[0147] The detailed implementation process of S401 can be found in the above Figure 3 S301 in the corresponding embodiment will not be described in detail here.

[0148] S402, if the target object is a resource transfer-out object, transfer the transfer resources of the transfer quantity under the second blockchain address to the smart contract address.

[0149] If the target object is a resource transfer-out object, it means that it is a resource application form issued by the resource transfer-out object. At this time, the transfer resource category and transfer quantity can be determined based on the transfer resource information in the resource application form. The transfer resource category can be used to determine the transfer resource to be transferred in the first blockchain address, and then the transfer resource of the transfer quantity under the second blockchain address can be transferred to the smart contract address. For example, if the transfer resource category is the second category, it can be determined that the digital assets of the second category will be transferred in the second blockchain, and then the transfer quantity of the second category of digital assets in the second blockchain address can be transferred to the smart contract address. In this way, the possession of the transfer quantity of the transfer resource can be transferred to the blockchain node.

[0150] S403, obtaining the second resource acceptance request initiated by the resource transfer object in response to the resource application form.

[0151] R resource application forms with O resource transfer-out objects can be published in the blockchain, where O and R are positive integers, and one resource transfer-out object can correspond to one or more resource application forms. The resource transfer-in object can select from them and initiate a second resource acceptance request for the selected resource application form. For example, the resource transfer-in object can select a resource application form with less incremental resources and issue a second resource acceptance request to it. Among them, the second resource acceptance request refers to a resource acceptance request initiated by the resource transfer-in object, which is used to indicate that the resource transfer-in object applies to accept the resource application form. In a feasible embodiment, a front-end interface corresponding to the resource application business can be provided, and the front-end interface can be used to display each resource application form published in the blockchain. Each object can participate in the resource application business through the front-end interface. For example, the resource transfer-in object can select the resource application form of the resource transfer-out object from the front-end interface, and generate a second resource acceptance request initiated for the selected resource application form through the front-end interface, and send the second resource acceptance request to the blockchain node.

[0152] S404. If the second resource acceptance request indicates using the pledged resources as collateral, then in response to the second resource acceptance request, transfer the pledged resources with the pledged quantity under the first blockchain address to the smart contract address.

[0153] S405. Transfer the transferred resources with the transfer quantity under the smart contract address to the first blockchain address.

[0154] In steps S401 - S405, if the resource recipient agrees to the pledged resource information in the resource application form, then a second resource acceptance request can be sent to the blockchain node. This second resource acceptance request indicates using the pledged resources as collateral. Then, in response to the second resource acceptance request, the blockchain node transfers the pledged resources with the pledged quantity under the first blockchain address to the smart contract address. By doing so, the transferred resources of the resource transferor are lent to the resource recipient, and at the same time, the right of possession of the pledged resources with the pledged quantity is transferred to the blockchain node.

[0155] In one embodiment, if the current block height is less than or equal to the resource return block height, and the blockchain node receives a resource settlement request initiated by the resource recipient for the resource application form, then based on the transferred resource information and the increased resource information, verify the settlement resource information included in the resource settlement request. The settlement resource information includes the settlement resource category and the settlement quantity. If the verification passes, then in response to the resource settlement request, transfer the settlement resources with the settlement quantity under the first blockchain address to the smart contract address, transfer the settlement resources with the settlement quantity under the smart contract address to the second blockchain address, and the resource category of the settlement resources is the settlement resource category. Transfer the pledged resources with the pledged quantity under the smart contract address to the first blockchain address. Add a mark information to the resource application form and store the resource application form with the added mark information in the blockchain. The mark information is used to indicate that the resource application form has been completed. The detailed implementation process can refer to the aforementioned step S305 and will not be elaborated here.

[0156] In one embodiment, if before the reference block height, the blockchain node does not receive a resource settlement request initiated by the resource recipient for the resource application form, and when the current block height is greater than the resource return block height, it receives a resource liquidation request initiated by the resource transferor for the resource application form, then in response to the resource liquidation request, transfer the pledged resources with the pledged quantity under the smart contract address to the second blockchain address. The reference block height is determined based on the resource return block height. Add a mark information to the resource application form and store the resource application form with the added mark information in the blockchain. The mark information is used to indicate that the resource application form has been completed. The detailed implementation process can refer to the aforementioned step S305 and will not be elaborated here.

[0157] S406. If the second resource acceptance request indicates that the target quantity of replacement resources is used as collateral, determine the first resource evaluation data of the collateral resources with the collateral quantity, and determine the second resource evaluation data of the target quantity of replacement resources; the resource category of the replacement resources is different from the collateral resource category.

[0158] S407. If it is determined that the target quantity of replacement resources meets the replacement conditions based on the first resource evaluation data and the second resource evaluation data, then in response to the second resource acceptance request, transfer the target quantity of replacement resources under the first blockchain address to the smart contract address.

[0159] S408. Transfer the transfer resources with the transfer quantity under the smart contract address to the first blockchain address.

[0160] In steps S406 - S408, if the resource transfer object does not agree with the collateral resource information in the resource application form, it can send a second resource acceptance request to the blockchain node. This second resource acceptance request indicates that the target quantity of replacement resources (for example, 5 digital assets of the fourth category) is used as collateral. The blockchain node responds to the second resource acceptance request, determines the first resource evaluation data (used to indicate the resource value) of the collateral resources with the collateral quantity, and determines the second resource evaluation data (used to indicate the resource value) of the target quantity of replacement resources. Specifically, the collateral resources with the collateral quantity can be converted into digital assets of the target category to obtain the first resource evaluation data, and the target quantity of replacement resources can be converted into digital assets of the target category to obtain the second resource evaluation data. If the second resource evaluation data is greater than or equal to the first resource evaluation data, it is determined that the target quantity of replacement resources meets the replacement conditions; if the second resource evaluation data is less than the first resource evaluation data, it is determined that the target quantity of replacement resources does not meet the replacement conditions. If it is determined that the target quantity of replacement resources does not meet the replacement conditions, the blockchain node sends a prompt message indicating the failure of the application form acceptance to the resource transfer object. If it is determined that the target quantity of replacement resources meets the replacement conditions, the blockchain node responds to the second resource acceptance request and transfers the target quantity of replacement resources under the first blockchain address to the smart contract address, thereby pledging the target quantity of replacement resources in the smart contract address. That is to say, in this application, the collateral resources with the collateral quantity are used as the resource value threshold, requiring that the resource value of the target quantity of replacement resources be greater than the resource value threshold, so that the resource transfer object can pledge its digital assets and ensure that the pledged resource value meets the standard of the resource transfer object. Further, transfer the transfer resources with the transfer quantity under the smart contract address to the first blockchain address, thereby lending the transfer resources of the resource transfer object to the resource transfer object.

[0161] Optionally, the resource application form may not include the pledged resource information, but instead include first resource evaluation data (for indicating the resource value threshold). Further, if it is determined based on the first resource evaluation data and the second resource evaluation data that the target quantity of replacement resources meets the replacement conditions, then in response to the second resource acceptance request, transfer the target quantity of replacement resources under the first blockchain address to the smart contract address, and continue to execute the subsequent steps.

[0162] In one embodiment, the resource transfer object may send a resource settlement request for the resource application form to the blockchain node (for requesting to settle the resource application form based on the included settlement resource information). The blockchain node determines that the current block height is less than or equal to the resource return block height, then in response to the resource settlement request, based on the transferred resource information and the increased resource information, verify the settlement resource information included in the resource settlement request. The settlement resource information includes the settlement resource category and the settlement quantity. The detailed implementation process can refer to the foregoing step S305 and will not be elaborated here.

[0163] If the verification passes, then the blockchain node, in response to the resource settlement request, transfers the settlement quantity of settlement resources (the resource category of the settlement resources is the settlement resource category) under the first blockchain address to the smart contract address, transfers the settlement quantity of settlement resources under the smart contract address to the second blockchain address. And transfers the target quantity of replacement resources under the smart contract address to the first blockchain address. Finally, add marker information to the resource application form, and store the resource application form with the added marker information in the blockchain. The marker information is used to indicate that the resource application form has been completed.

[0164] In one embodiment, the reference block height is determined based on the resource return block height, that is, the reference block height is equal to the resource return block height + 1. If before the reference block height, the blockchain node does not receive a resource settlement request initiated by the resource transfer object for the resource application form, it means that the resource transfer object fails to return the resources on time. Then when the current block height is greater than the resource return block height, the resource transfer object can send a resource liquidation request for the resource application form and send the resource liquidation request to the blockchain node. The blockchain node, in response to the resource liquidation request, transfers the target quantity of replacement resources under the smart contract address to the second blockchain address as a solution measure for the resource transfer object's failure to return the resources on time. Finally, add marker information to the resource application form, and store the resource application form with the added marker information in the blockchain. The marker information is used to indicate that the resource application form has been completed.

[0165] In the embodiments of the present application, a resource transfer object can issue a resource application form in the blockchain, and a resource receiving object can undertake the resource application form of the resource transfer object, thereby participating in the resource application service, ensuring the richness of the service types of the resource application service; furthermore, the resource receiving object can return the transferred resources in the transferred quantity and the increased resources in the increased quantity to the resource transfer object on time. If the resource receiving object fails to return on time, the resource transfer object can also initiate a resource liquidation request to obtain the pledged resources in the pledged quantity of the resource receiving object (or replacement resources in the target quantity). At the same time, based on the characteristics of the blockchain, such as decentralization, high security, openness, transparency, and immutability, it can ensure that all business processing processes of the resource application service are stored on the chain as evidence, and the data on the chain is immutable and traceable, solving problems such as trust issues, security issues, and insufficient transparency existing in centralized institutions, and realizing a safe, transparent, and reliable resource application service; moreover, the resource receiving object and the resource transfer object can directly conduct the resource application service through the blockchain, making all business processing processes of the resource application service simpler and more convenient, saving a large amount of human and material costs.

[0166] Please refer to Figure 5 , Figure 5 which is an interaction flowchart of a data processing method based on the blockchain provided by the embodiments of the present application. As Figure 5 shown, the interaction process of this data processing method can be jointly executed by: a resource receiving object, a resource transfer object, and a blockchain node. Specifically, the interaction process of this data processing method specifically includes: the resource receiving object issues a resource application form, and the resource receiving object and the resource transfer object conduct the resource application service according to the resource application form published in the blockchain. Among them, the above process mainly includes:

[0167] 1. The resource receiving object sends a resource application form to the blockchain node. The resource application form includes pledged resource information, transferred resource information, increased resource information, and the resource return block height. Exemplarily, the pledged resource information includes: "Pledged digital asset A: 10", the transferred resource information includes: "Transferred digital asset B: 100", the increased resource information includes: "Increased digital asset A: 1", and the resource return block height includes: "Resource return block height: 100 blocks".

[0168] 2. The blockchain node publishes the resource application form to the blockchain (the resource application form can be sent to the target smart contract, and the target smart contract publishes it to the blockchain), and transfers the pledged resources in the pledged quantity under the first blockchain address to the smart contract address (of the target smart contract). For example, transfer 10 digital asset A under the first blockchain address to the smart contract address.

[0169] 3. The resource transfer object applies to the blockchain node to undertake the resource application form.

[0170] 4. The blockchain node transfers the transfer resources with the transfer quantity under the second blockchain address to the smart contract address, and transfers the transfer resources with the transfer quantity under the smart contract address to the first blockchain address.

[0171] Correspondingly, referring to Figure 6 , Figure 6 is an interaction flowchart of a data processing method based on blockchain provided by an embodiment of the present application. The interaction process of the data processing method specifically includes: the resource transfer-out object publishes a resource application form, and the resource transfer-in object and the resource transfer-out object perform the resource application service according to the resource application form published in the blockchain. Among them, the above process mainly includes:

[0172] 1. The resource transfer-out object sends a resource application form to the blockchain node. The resource application form includes pledged resource information, transfer resource information, growth resource information, and resource return block height. For example, the pledged resource information includes: "Pledged digital asset A: 10", the transfer resource information includes: "Transferred digital asset B: 100", the growth resource information includes: "Increased digital asset A: 1", and the resource return block height includes: "Resource return block height: 100 blocks".

[0173] 2. The blockchain node publishes the resource application form to the blockchain (the resource application form can be sent to the target smart contract, and the target smart contract publishes it to the blockchain), and transfers the transfer resources with the transfer quantity under the second blockchain address into the smart contract address (of the target smart contract). For example, transfer 100 digital assets B under the second blockchain address into the smart contract address.

[0174] 3. The resource transfer-in object applies to the blockchain node to undertake the resource application form.

[0175] 4. The blockchain node transfers the transfer resources with the transfer quantity under the smart contract address to the first blockchain address, and transfers the pledged resources with the pledged quantity under the first blockchain address into the smart contract address (of the target smart contract).

[0176] In one embodiment, if the current block height is less than or equal to the resource return block height (e.g., 100), and a resource settlement request initiated by a resource transfer object for a resource application form is received, the blockchain node verifies the settlement resource information included in the resource settlement request based on the transferred resource information and the increased resource information. The settlement resource information includes the settlement resource category and the settlement quantity. If the verification passes, in response to the resource settlement request, the settlement quantity of the settlement resources under the first blockchain address is transferred to the smart contract address, and the settlement quantity of the settlement resources under the smart contract address is transferred to the second blockchain address. The resource category of the settlement resources is the settlement resource category. The pledged resources (e.g., 10 digital assets A) with the pledged quantity under the smart contract address are transferred to the first blockchain address. A mark information is added to the resource application form, and the resource application form with the added mark information is stored in the blockchain. The mark information is used to indicate that the resource application form has been completed. For the detailed implementation process, reference can be made to the foregoing step S305, which will not be elaborated here.

[0177] In one embodiment, if before the reference block height, the blockchain node does not receive a resource settlement request initiated by a resource transfer object for a resource application form, and when the current block height is greater than the resource return block height, a resource liquidation request initiated by a resource transfer-out object for the resource application form is received, then in response to the resource liquidation request, the pledged resources (e.g., 10 digital assets A) with the pledged quantity under the smart contract address are transferred to the second blockchain address. The reference block height is determined based on the resource return block height. A mark information is added to the resource application form, and the resource application form with the added mark information is stored in the blockchain. The mark information is used to indicate that the resource application form has been completed. For the detailed implementation process, reference can be made to the foregoing step S305, which will not be elaborated here.

[0178] It can be seen that both the resource transfer object and the resource transfer-out object can publish and undertake resource application forms in the blockchain, which can ensure the richness of the business types of the resource application service. Furthermore, the resource transfer object can return the transferred resources with the transferred quantity and the increased resources with the increased quantity to the resource transfer-out object on time. If the resource transfer object fails to return on time, the resource transfer-out object can also initiate a resource liquidation request to obtain the pledged resources with the pledged quantity of the resource transfer object. At the same time, based on the characteristics of the blockchain, such as decentralization, high security, openness, transparency, and immutability, a secure, transparent, and reliable resource application service can be ensured.

[0179] Please refer to Figure 7 , Figure 7 which is the interaction flowchart of a data processing method based on blockchain provided by an embodiment of the present application. As Figure 7As shown, the interaction process of the data processing method can be jointly executed by a resource transfer-in object, a resource transfer-out object, and a blockchain node. Specifically, the interaction process of the data processing method specifically includes: the resource transfer-in object publishes a resource application form, and the resource transfer-in object and the resource transfer-out object negotiate the resource application form for the resource application service. Among them, the above process mainly includes:

[0180] 1. The resource transfer-in object sends a resource application form to the blockchain node. The resource application form includes pledged resource information, transferred resource information, increased resource information, and the resource return block height. By way of example, "Pledge digital asset A: 10", the transferred resource information includes: "Transfer digital asset B: 100", the increased resource information includes: "Increase digital asset A: 1", and the resource return block height includes: "Resource return block height: 100 blocks".

[0181] 2. The blockchain node publishes the resource application form to the blockchain (the resource application form can be sent to the target smart contract, and the target smart contract publishes it to the blockchain), and transfers the pledged resources with the pledged quantity under the first blockchain address to the smart contract address (of the target smart contract). For example, transfer 10 digital resources A under the first blockchain address to the smart contract address.

[0182] 3. The resource transfer-out object applies to the blockchain node to undertake the resource application form and proposes N replacement resource undertaking rules.

[0183] 4. The blockchain node sends the N replacement resource undertaking rules to the resource transfer-in object and updates the resource application form according to the target replacement resource undertaking rule selected by the resource transfer-in object.

[0184] 5. The blockchain node determines the target replacement transferred resource category and the target replacement transferred quantity by using the updated resource application form, transfers the target replacement transferred resources with the target replacement transferred quantity under the second blockchain address (the resource category of the target replacement transferred resources is the target replacement transferred resource category) to the smart contract address, and transfers the target replacement transferred resources with the target replacement transferred quantity under the smart contract address to the first blockchain address. For example, the original resource application form indicates to transfer 100 digital assets B of the resource transfer-out object to the resource transfer-in object, and after the update, it indicates to transfer 90 digital assets B under the second blockchain address to the resource transfer-in object. For the detailed implementation process, refer to the foregoing steps S307 - S308, which will not be elaborated here.

[0185] In one embodiment, the blockchain node also determines a target replacement growth resource category, a target replacement growth quantity, and a target replacement resource return block height by using the updated resource application form. The resource transfer object may send a resource settlement request for the resource application form to the blockchain node. If the blockchain node determines that the current block height is less than or equal to the target replacement resource return block height, in response to the resource settlement request, it verifies the settlement resource information included in the resource settlement request based on the target replacement transfer resource category, the target replacement transfer quantity, the target replacement growth resource category, and the target replacement growth quantity. The settlement resource information includes a settlement resource category and a settlement quantity. If the verification passes, then in response to the resource settlement request, the blockchain node transfers the settlement quantity of the settlement resources under the first blockchain address to the smart contract address, transfers the settlement quantity of the settlement resources under the smart contract address to the second blockchain address, and transfers the pledged quantity of the pledged resources under the smart contract address to the first blockchain address. Finally, marking information may be added to the resource application form, and the resource application form with the added marking information is stored in the blockchain. The marking information is used to indicate that the resource application form has been completed. For the detailed implementation process, refer to the foregoing steps S307 - S308, which will not be elaborated here.

[0186] In one embodiment, the target reference block height is determined based on the target replacement resource return block height, that is, the target reference block height is equal to the target replacement resource return block height + 1. If the blockchain node does not receive a resource settlement request initiated by the resource transfer object for the resource application form before the target reference block height, it means that the resource transfer object has not returned the resources on time. Then when the current block height is greater than the target replacement resource return block height, the resource transfer object can send a resource liquidation request for the resource application form and send the resource liquidation request to the blockchain node. In response to the resource liquidation request, the blockchain node transfers the pledged quantity of the pledged resources under the smart contract address to the second blockchain address as a solution measure for the resource transfer object not returning the resources on time. Finally, marking information is added to the resource application form, and the resource application form with the added marking information is stored in the blockchain. The marking information is used to indicate that the resource application form has been completed.

[0187] In the embodiments of the present application, the resource transfer-in object can issue a resource application form in the blockchain, and the resource transfer-out object can undertake the resource application form of the resource transfer-in object, thereby participating in the resource application service and ensuring the richness of the service types of the resource application service; furthermore, the resource transfer-in object can return the target replacement transfer resources with the target replacement transfer quantity and the target replacement growth resources with the target replacement growth quantity to the resource transfer-out object on time. If the resource transfer-in object fails to return on time, the resource transfer-out object can also initiate a resource liquidation request to obtain the pledged resources with the pledged quantity of the resource transfer-in object. At the same time, based on the characteristics of the blockchain, such as decentralization, high security, openness, transparency, and immutability, it can ensure that all service processing processes of the resource application service are stored on the chain as evidence, and the data on the chain is immutable and traceable, solving problems such as trust issues, security issues, and insufficient transparency existing in centralized institutions, and realizing a safe, transparent, and reliable resource application service; moreover, the resource transfer-in object and the resource transfer-out object can directly conduct the resource application service through the blockchain, making all service processing processes of the resource application service simpler and more convenient, saving a large amount of human and material costs.

[0188] Correspondingly, referring to Figure 8 , Figure 8 is an interaction flowchart of a data processing method based on the blockchain provided by the embodiments of the present application. As Figure 8 shown, the interaction process of this data processing method can be jointly executed by: the resource transfer-in object, the resource transfer-out object, and the blockchain node. Specifically, the interaction process of this data processing method specifically includes: the resource transfer-out object issues a resource application form, and the resource transfer-in object and the resource transfer-out object negotiate the process of conducting the resource application service with the resource application form. Among them, the above process mainly includes:

[0189] 1. The resource transfer-out object sends the resource application form to the blockchain node. The resource application form includes pledged resource information, transferred resource information, increased resource information, and the resource return block height. Exemplarily, the pledged resource information includes: "Pledged digital asset A: 10", the transferred resource information includes: "Transferred digital asset B: 100", the increased resource information includes: "Increased digital asset A: 1", and the resource return block height includes: "Resource return block height: 100 blocks".

[0190] 2. The blockchain node publishes the resource application form to the blockchain (it can send the resource application form to the target smart contract, and the target smart contract publishes it to the blockchain), and transfers the transferred resources with the transferred quantity under the second blockchain address into the smart contract address (of the target smart contract). For example, transfer 100 digital assets B under the second blockchain address into the smart contract address.

[0191] 3. The resource transfer target applies to the blockchain node for a resource transfer application form and proposes a pledge resource replacement rule. For example, the pledge resource information in the updated resource transfer application form is: "Pledged digital asset C: 11".

[0192] 4. The blockchain node transfers the target quantity of replacement resources under the first blockchain address to the smart contract address, and transfers the transfer quantity of transfer resources under the smart contract address to the first blockchain address. The pledge resource replacement rule includes the target quantity and the resource category of the replacement resources. For example, transfer 11 asset Cs under the first blockchain address to the smart contract address.

[0193] In one embodiment, if the current block height is less than or equal to the resource return block height (e.g., 100), and a resource settlement request initiated by the resource transfer target for the resource transfer application form is received, the blockchain node verifies the settlement resource information included in the resource settlement request based on the transfer resource information and the growth resource information. The settlement resource information includes the settlement resource category and the settlement quantity; if the verification passes, in response to the resource settlement request, transfer the settlement quantity of settlement resources under the first blockchain address to the smart contract address, transfer the settlement quantity of settlement resources under the smart contract address to the second blockchain address, and the resource category of the settlement resources is the settlement resource category; transfer the target quantity of replacement resources under the smart contract address to the first blockchain address; add marking information to the resource transfer application form, and store the resource transfer application form with the added marking information in the blockchain. The marking information is used to indicate that the resource transfer application form has been completed. The detailed implementation process can refer to the foregoing steps S406 - S408 and will not be elaborated here.

[0194] In one embodiment, if the blockchain node does not receive a resource settlement request initiated by the resource transfer target for the resource transfer application form before the reference block height, and when the current block height is greater than the resource return block height, a resource liquidation request initiated by the resource transfer target for the resource transfer application form is received, then in response to the resource liquidation request, transfer the target quantity of replacement resources under the smart contract address to the second blockchain address. The reference block height is determined based on the resource return block height; add marking information to the resource transfer application form, and store the resource transfer application form with the added marking information in the blockchain. The marking information is used to indicate that the resource transfer application form has been completed. The detailed implementation process can refer to the foregoing steps S406 - S408 and will not be elaborated here.

[0195] In the embodiments of the present application, a resource transfer-out object can issue a resource application form in the blockchain, and a resource transfer-in object can undertake the resource application form of the resource transfer-out object, thereby participating in the resource application service and ensuring the richness of the service types of the resource application service. Furthermore, the resource transfer-in object can return the transferred resources in the transferred quantity and the increased resources in the increased quantity to the resource transfer-out object on time. If the resource transfer-in object fails to return on time, the resource transfer-out object can also initiate a resource settlement request to obtain the replacement resources in the target quantity of the resource transfer-in object. At the same time, based on the characteristics of the blockchain, such as decentralization, high security, openness, transparency, and immutability, it can ensure that all business processing processes of the resource application service are stored on the chain for evidence, and the data on the chain is immutable and traceable, solving the problems of trust, security, and lack of transparency existing in centralized institutions, and realizing a secure, transparent, and reliable resource application service. Moreover, the resource transfer-in object and the resource transfer-out object can directly conduct the resource application service through the blockchain, making all business processing processes of the resource application service simpler and more convenient, saving a large amount of human and material costs.

[0196] A consortium blockchain, also known as a community blockchain, refers to a blockchain whose consensus process is controlled by preselected nodes. It is a hybrid of a public blockchain and a private blockchain and can achieve "partial decentralization". Each node on the chain usually has a corresponding entity institution or organization; participants join the network through authorization and form an interest-related consortium to jointly maintain the operation of the blockchain. Through the consortium blockchain, new participants can join the existing blockchain and share data without having to build it from scratch. In one embodiment, the blockchain in the embodiments of the present application corresponds to a consortium blockchain. For a resource transfer-out object and a resource transfer-in object to participate in the resource application service, they need to join the consortium blockchain through review before they can participate. For example, review the certification materials submitted by the resource transfer-out object and the resource transfer-in object, and authorize them to join the consortium blockchain after the review is passed. Further, the pledged resources can also be physical assets and off-chain digital assets (such as wealth management products), etc.

[0197] The devices in the embodiments of the present application are provided below. Next, in combination with the blockchain-based data processing method provided in the above embodiments of the present application, the related devices in the embodiments of the present application will be introduced accordingly.

[0198] Please refer to Figure 9 , Figure 9 which is a schematic structural diagram of a blockchain-based data processing device provided in the embodiments of the present application. As Figure 9As shown, the blockchain-based data processing device 900 can be applied to the blockchain node mentioned in the foregoing embodiments. Specifically, the blockchain-based data processing device 900 can be a computer program (including program code) running on a computer device. For example, the data processing device 900 is an application software. The data processing device 900 can be used to execute the corresponding steps in the blockchain-based data processing method provided in the embodiments of the present application. Specifically, when implemented, the blockchain-based data processing device 900 may specifically include:

[0199] An obtaining unit 901, configured to obtain a resource application form of a target object and publish the resource application form to the blockchain. The resource application form includes pledged resource information and transferred resource information. The pledged resource information includes a pledged resource category and a pledged quantity. The transferred resource information includes a transferred resource category and a transferred quantity. The pledged resource category is different from the transferred resource category.

[0200] A processing unit 902, configured to transfer the pledged quantity of pledged resources under a first blockchain address to a smart contract address if the target object is a resource receiving object. The first blockchain address is the blockchain address of the resource receiving object, and the resource category of the pledged resources is the pledged resource category.

[0201] The obtaining unit 901 is further configured to obtain a first resource acceptance request initiated by a resource transferring object for the resource application form.

[0202] The processing unit 902 is further configured to transfer the transferred quantity of transferred resources under a second blockchain address to the smart contract address in response to the first resource acceptance request if the first resource acceptance request indicates consent to the resource acceptance rule corresponding to the resource application form. The second blockchain address is the blockchain address of the resource transferring object, and the resource category of the transferred resources is the transferred resource category.

[0203] The processing unit 902 is further configured to transfer the transferred quantity of transferred resources under the smart contract address to the first blockchain address.

[0204] In one implementation, the resource application form further includes growing resource information and the resource return block height. The growing resource information includes the growing resource category and the growing quantity. The first resource acceptance request indicates disagreement with the resource acceptance rules corresponding to the resource application form, and the first resource acceptance request includes N replacement resource acceptance rules. Each replacement resource acceptance rule includes one or more of the following: the replacement transfer resource category of the transfer resource category, the replacement transfer quantity of the transfer quantity, the replacement growing resource category of the growing resource category, the replacement growing quantity of the growing quantity, the replacement resource return block height of the resource return block height, where N is a positive integer. The processing unit 902 is further configured to perform the following steps:

[0205] In response to the first resource acceptance request, send an application form acceptance prompt message including the N replacement resource acceptance rules to the resource transfer-in object, and obtain the target replacement resource acceptance rule selected by the resource transfer-in object for the N replacement resource acceptance rules;

[0206] Determine the target replacement transfer resource category and the target replacement transfer quantity based on the target replacement resource acceptance rule;

[0207] Transfer the target replacement transfer quantity of the target replacement transfer resource under the second blockchain address to the smart contract address, where the resource category of the target replacement transfer resource is the target replacement transfer resource category;

[0208] Transfer the target replacement transfer quantity of the target replacement transfer resource under the smart contract address to the first blockchain address.

[0209] In one implementation, the processing unit 902 is further configured to perform the following steps:

[0210] If the target object is a resource transfer-out object, transfer the transfer resource of the transfer quantity under the second blockchain address to the smart contract address;

[0211] Obtain a second resource acceptance request initiated by the resource transfer-in object for the resource application form;

[0212] If the second resource acceptance request indicates using the pledged resource as a pledge guarantee, then in response to the second resource acceptance request, transfer the pledged resource of the pledged quantity under the first blockchain address to the smart contract address;

[0213] Transfer the transfer resource of the transfer quantity under the smart contract address to the first blockchain address.

[0214] In one implementation, the processing unit 902 is further configured to perform the following steps:

[0215] If the second resource acceptance request indicates that a target quantity of replacement resources is used as a pledge guarantee, determine the first resource evaluation data of the pledged resources with the pledged quantity, and determine the second resource evaluation data of the replacement resources with the target quantity; the resource category of the replacement resources is different from the category of the pledged resources.

[0216] If it is determined that the target quantity of replacement resources meets the replacement conditions based on the first resource evaluation data and the second resource evaluation data, then in response to the second resource acceptance request, transfer the target quantity of replacement resources under the first blockchain address to the smart contract address.

[0217] Transfer the transfer resources with the transfer quantity under the smart contract address to the first blockchain address.

[0218] In one implementation, the resource application form further includes growth resource information and the resource return block height. The growth resource information includes the growth resource category and the growth quantity; the processing unit 902 is further configured to perform the following steps:

[0219] If the current block height is less than or equal to the resource return block height, and a resource settlement request initiated by the resource transfer object for the resource application form is received, then based on the transfer resource information and the growth resource information, verify the settlement resource information included in the resource settlement request. The settlement resource information includes the settlement resource category and the settlement quantity.

[0220] If the verification passes, then in response to the resource settlement request, transfer the settlement resources with the settlement quantity under the first blockchain address to the smart contract address, transfer the settlement resources with the settlement quantity under the smart contract address to the second blockchain address, and the resource category of the settlement resources is the settlement resource category.

[0221] Transfer the pledged resources with the pledged quantity under the smart contract address to the first blockchain address.

[0222] Add marker information to the resource application form, and store the resource application form with the added marker information in the blockchain. The marker information is used to indicate that the resource application form has been completed.

[0223] In one implementation, when the processing unit 902 verifies the settlement resource information included in the resource settlement request based on the transfer resource information and the growth resource information, it is specifically configured to perform the following steps:

[0224] Determine whether the settlement resource category includes the transfer resource category in the transfer resource information and the growth resource category in the growth resource information.

[0225] If included, detect whether the quantity of resources corresponding to the transferred resource category in the settlement quantity matches the transferred quantity in the transferred resource information, and whether the quantity of resources corresponding to the growth resource category in the settlement quantity matches the growth quantity in the growth resource information;

[0226] If both match, determine that the verification passes.

[0227] In one implementation, the resource application form further includes growth resource information and the resource return block height, and the growth resource information includes the growth resource category and the growth quantity; the processing unit 902 is further configured to perform the following steps:

[0228] If, before the reference block height, a resource settlement request initiated by the resource transfer object for the resource application form is not received, and when the current block height is greater than the resource return block height, a resource liquidation request initiated by the resource transfer-out object for the resource application form is received, then in response to the resource liquidation request, transfer the pledged resources with the pledged quantity under the smart contract address to the second blockchain address, and the reference block height is determined based on the resource return block height;

[0229] Add marking information to the resource application form, and store the resource application form with the marking information added in the blockchain, where the marking information is used to indicate that the resource application form has been completed.

[0230] In the embodiments of the present application, based on the characteristics of the blockchain such as decentralization, high security, openness and transparency, and immutability, it can be ensured that all business processing processes of the resource application service will be recorded on the chain for evidence, and the data on the chain is immutable and traceable, solving problems such as trust issues, security issues, and lack of transparency existing in centralized institutions, and providing a secure, transparent and reliable resource application service; at the same time, the resource transfer object and the resource transfer-out object can directly conduct the resource application service through the blockchain, making all business processing processes of the resource application service simpler and more convenient, saving a large amount of human and material costs.

[0231] Please refer to Figure 10 , Figure 10It is a schematic structural diagram of a computer device provided by an embodiment of the present application. The computer device 1000 is used to execute the steps performed by the blockchain node in the foregoing method embodiment. The computer device 1000 includes: one or more processors 1001; one or more input devices 1002, one or more output devices 1003, and a memory 1004. The above-mentioned processors 1001, input devices 1002, output devices 1003, and memory 1004 are connected through a bus 1005. Among them, the memory 1004 is used to store a computer program, and the computer program includes program instructions. In a feasible embodiment, when the computer device 1000 is an oracle, the processor 1001 is used to call the program instructions stored in the memory 1004 to perform the following operations:

[0232] Obtain a resource application form of a target object and publish the resource application form to the blockchain; the resource application form includes pledged resource information and transferred resource information. The pledged resource information includes a pledged resource category and a pledged quantity, and the transferred resource information includes a transferred resource category and a transferred quantity. The pledged resource category is different from the transferred resource category;

[0233] If the target object is a resource transfer-in object, transfer the pledged quantity of pledged resources under the first blockchain address to the smart contract address; the first blockchain address is the blockchain address of the resource transfer-in object, and the resource category of the pledged resources is the pledged resource category;

[0234] Obtain a first resource acceptance request initiated by a resource transfer-out object for the resource application form;

[0235] If the first resource acceptance request indicates agreement with the resource acceptance rules corresponding to the resource application form, in response to the first resource acceptance request, transfer the transferred quantity of transferred resources under the second blockchain address to the smart contract address; the second blockchain address is the blockchain address of the resource transfer-out object, and the resource category of the transferred resources is the transferred resource category;

[0236] Transfer the transferred quantity of transferred resources under the smart contract address to the first blockchain address.

[0237] In one implementation, the resource application form further includes growing resource information and a resource return block height. The growing resource information includes a growing resource category and a growing quantity. The first resource acceptance request indicates disagreement with the resource acceptance rule corresponding to the resource application form, and the first resource acceptance request includes N replacement resource acceptance rules. Each replacement resource acceptance rule includes one or more of the following: a replacement transfer resource category for the transfer resource category, a replacement transfer quantity for the transfer quantity, a replacement growing resource category for the growing resource category, a replacement growing quantity for the growing quantity, and a replacement resource return block height for the resource return block height. N is a positive integer. The processor 1001 is further configured to perform the following steps:

[0238] In response to the first resource acceptance request, send a form acceptance prompt message including the N replacement resource acceptance rules to the resource transfer target, and obtain the target replacement resource acceptance rule selected by the resource transfer target for the N replacement resource acceptance rules;

[0239] Determine a target replacement transfer resource category and a target replacement transfer quantity based on the target replacement resource acceptance rule;

[0240] Transfer the target replacement transfer quantity of the target replacement transfer resource under the second blockchain address to the smart contract address, where the resource category of the target replacement transfer resource is the target replacement transfer resource category;

[0241] Transfer the target replacement transfer quantity of the target replacement transfer resource under the smart contract address to the first blockchain address.

[0242] In one implementation, the processor 1001 is further configured to perform the following steps:

[0243] If the target object is a resource transfer-out object, transfer the transfer quantity of the transfer resource under the second blockchain address to the smart contract address;

[0244] Obtain a second resource acceptance request initiated by the resource transfer target for the resource application form;

[0245] If the second resource acceptance request indicates using the pledged resource as a pledge guarantee, then in response to the second resource acceptance request, transfer the pledged quantity of the pledged resource under the first blockchain address to the smart contract address;

[0246] Transfer the transfer quantity of the transfer resource under the smart contract address to the first blockchain address.

[0247] In one implementation, the processor 1001 is further configured to perform the following steps:

[0248] If the second resource acceptance request indicates that the target quantity of replacement resources is used as collateral, determine the first resource evaluation data of the collateral resources with the collateral quantity, and determine the second resource evaluation data of the target quantity of replacement resources; the resource category of the replacement resources is different from the collateral resource category;

[0249] If it is determined that the target quantity of replacement resources meets the replacement conditions based on the first resource evaluation data and the second resource evaluation data, then in response to the second resource acceptance request, transfer the target quantity of replacement resources under the first blockchain address to the smart contract address;

[0250] Transfer the transfer resources with the transfer quantity under the smart contract address to the first blockchain address.

[0251] In one implementation, the resource application form further includes growth resource information and the resource return block height. The growth resource information includes the growth resource category and the growth quantity; the processor 1001 is further configured to perform the following steps:

[0252] If the current block height is less than or equal to the resource return block height, and a resource settlement request initiated by the resource transfer object for the resource application form is received, then based on the transfer resource information and the growth resource information, verify the settlement resource information included in the resource settlement request. The settlement resource information includes the settlement resource category and the settlement quantity;

[0253] If the verification passes, then in response to the resource settlement request, transfer the settlement resources with the settlement quantity under the first blockchain address to the smart contract address, transfer the settlement resources with the settlement quantity under the smart contract address to the second blockchain address, and the resource category of the settlement resources is the settlement resource category;

[0254] Transfer the collateral resources with the collateral quantity under the smart contract address to the first blockchain address;

[0255] Add marking information to the resource application form, and store the resource application form with the added marking information in the blockchain. The marking information is used to indicate that the resource application form has been completed.

[0256] In one implementation, when the processor 1001 verifies the settlement resource information included in the resource settlement request based on the transfer resource information and the growth resource information, it is specifically configured to perform the following steps:

[0257] Determine whether the settlement resource category includes the transfer resource category in the transfer resource information and the growth resource category in the growth resource information;

[0258] If included, it is detected whether the quantity of resources corresponding to the transferred resource category in the settlement quantity matches the transferred quantity in the transferred resource information, and whether the quantity of resources corresponding to the growth resource category in the settlement quantity matches the growth quantity in the growth resource information;

[0259] If both match, it is determined that the verification passes.

[0260] In one implementation, the resource application form further includes growth resource information and the resource return block height. The growth resource information includes the growth resource category and the growth quantity; the processor 1001 is further configured to perform the following steps:

[0261] If, before the reference block height, no resource settlement request initiated by the resource transfer object for the resource application form is received, and when the current block height is greater than the resource return block height, a resource liquidation request initiated by the resource transfer object for the resource application form is received, then in response to the resource liquidation request, the pledged resources of the pledged quantity under the smart contract address are transferred to the second blockchain address. The reference block height is determined based on the resource return block height;

[0262] Add marking information to the resource application form, and store the resource application form with the added marking information in the blockchain. The marking information is used to indicate that the resource application form has been completed.

[0263] Based on the same inventive concept, the principle of problem-solving and the beneficial effects of the computer device provided in the embodiments of the present application are similar to the principle of problem-solving and the beneficial effects of the blockchain-based data processing method in the method embodiments of the present application. The principle and beneficial effects of the method implementation can be referred to. For the sake of brevity of description, they will not be elaborated here.

[0264] 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 related parts to achieve a predetermined goal, and can be fully or partially implemented 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 the overall module or unit that includes the function of the module or unit.

[0265] In addition, it should be noted here that: The embodiments of the present application also provide a computer storage medium, and a computer program is stored in the computer storage medium. The computer program includes program instructions. When the processor executes the above program instructions, it can execute the methods in the corresponding embodiments described above. Therefore, the description will not be repeated here. For the technical details not disclosed in the embodiments of the computer storage medium related to the present application, please refer to the description of the method embodiments of the present application. As an example, the program instructions can be deployed on a computer device, or executed on multiple computer devices located at one location, or executed on multiple computer devices distributed at multiple locations and interconnected through a communication network.

[0266] According to one aspect of the present application, the embodiments of the present application also provide a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device can execute the methods in the corresponding embodiments described above. Therefore, the description will not be repeated here.

[0267] Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in the present application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0268] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present invention are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted through a computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wired manner (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or a wireless manner (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data processing device such as a server or a data center that includes one or more integrated available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)), etc.

[0269] The foregoing disclosure is only for the preferred embodiments of the present application, and of course, it cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application still fall within the scope covered by the present application.

Claims

1. A data processing method based on blockchain, characterized in that: include: Obtain a resource application form of the target object, and publish the resource application form on the blockchain; the resource application form includes pledged resource information and transferred resource information, the pledged resource information includes the pledged resource category and the pledged quantity, the transferred resource information includes the transferred resource category and the transferred quantity, and the pledged resource category and the transferred resource category are different; If the target object is a resource transfer-in object, the pledged resources of the pledged quantity under the first blockchain address are transferred to the smart contract address; the first blockchain address is the blockchain address of the resource transfer-in object, and the resource category of the pledged resources is the pledged resource category; Obtaining a first resource acceptance request initiated by a resource transfer-out object for the resource application form; If the first resource acceptance request indicates that the resource acceptance rule corresponding to the resource application form is agreed, then in response to the first resource acceptance request, the transfer resources of the transfer quantity under the second blockchain address are transferred to the smart contract address; the second blockchain address is the blockchain address of the resource transfer object, and the resource category of the transfer resources is the transfer resource category; Transfer the transfer amount of transfer resources under the smart contract address to the first blockchain address.

2. The method according to claim 1, characterized in that: The resource application form also includes growth resource information and a resource return block height, and the growth resource information includes a growth resource category and a growth quantity; the first resource acceptance request indicates that the resource acceptance rule corresponding to the resource application form is not agreed to, and the first resource acceptance request includes N replacement resource acceptance rules, each of the replacement resource acceptance rules includes one or more of the following: a replacement transfer resource category for the transfer resource category, a replacement transfer quantity for the transfer quantity, a replacement growth resource category for the growth resource category, a replacement growth quantity for the growth quantity, and a replacement resource return block height for the resource return block height, where N is a positive integer; the method also includes: In response to the first resource acceptance request, sending an application acceptance prompt message including the N replacement resource acceptance rules to the resource transferee, and obtaining a target replacement resource acceptance rule selected by the resource transferee for the N replacement resource acceptance rules; Determine the target replacement transfer resource category and the target replacement transfer quantity based on the target replacement resource acceptance rule; Transferring the target replacement transfer resource of the target replacement transfer quantity under the second blockchain address to the smart contract address, wherein the resource category of the target replacement transfer resource is the target replacement transfer resource category; The target replacement transfer resources of the target replacement transfer quantity under the smart contract address are transferred to the first blockchain address.

3. The method according to claim 1, characterized in that The method further comprises: If the target object is the resource transfer-out object, the transfer resources of the transfer quantity under the second blockchain address are transferred to the smart contract address; Obtaining a second resource acceptance request initiated by the resource transferee in response to the resource application form; If the second resource acceptance request indicates that the pledged resources are used as pledge security, then in response to the second resource acceptance request, the pledged resources of the pledged quantity under the first blockchain address are transferred to the smart contract address; Transfer the transfer amount of transfer resources under the smart contract address to the first blockchain address.

4. The method according to claim 3, characterized in that The method further comprises: If the second resource acceptance request indicates that the target number of replacement resources is used as pledge security, first resource evaluation data of the pledged number of pledged resources is determined, and second resource evaluation data of the target number of replacement resources is determined; the resource category of the replacement resources is different from the category of the pledged resources; If it is determined that the target quantity of replacement resources meets the replacement condition based on the first resource evaluation data and the second resource evaluation data, then in response to the second resource acceptance request, the target quantity of replacement resources under the first blockchain address is transferred to the smart contract address; Transfer the transfer amount of transfer resources under the smart contract address to the first blockchain address.

5. The method according to any one of claims 1 or 3, characterized in that The resource application form also includes growth resource information and resource return block height, and the growth resource information includes growth resource category and growth quantity; the method also includes: If the current block height is less than or equal to the resource return block height, and a resource settlement request initiated by the resource transferee for the resource application form is received, then based on the transferred resource information and the increased resource information, the settlement resource information included in the resource settlement request is verified, and the settlement resource information includes the settlement resource category and the settlement quantity; If the verification passes, in response to the resource settlement request, the settlement resources of the settlement amount under the first blockchain address are transferred to the smart contract address, and the settlement resources of the settlement amount under the smart contract address are transferred to the second blockchain address, and the resource category of the settlement resources is the settlement resource category; Transfer the pledged amount of pledged resources under the smart contract address to the first blockchain address; Adding marking information to the resource application form, and storing the resource application form with the marking information added to the blockchain, wherein the marking information is used to indicate that the resource application form has been completed.

6. The method according to claim 5, characterized in that The verifying the settlement resource information included in the resource settlement request based on the transferred resource information and the increased resource information includes: Determining whether the settlement resource category includes the transfer resource category in the transfer resource information and the growth resource category in the growth resource information; If included, detecting whether the resource quantity corresponding to the transfer resource category in the settlement quantity matches the transfer quantity in the transfer resource information, and whether the resource quantity corresponding to the growth resource category in the settlement quantity matches the growth quantity in the growth resource information; If they all match, then the verification is determined to be successful.

7. The method according to claim 1 or 3, characterized in that: The resource application form also includes growth resource information and resource return block height, and the growth resource information includes growth resource category and growth quantity; the method also includes: If before the reference block height, no resource settlement request initiated by the resource transferee for the resource application form is received, and when the current block height is greater than the resource return block height, a resource liquidation request initiated by the resource transferee for the resource application form is received, then in response to the resource liquidation request, the pledged resources of the pledged quantity under the smart contract address are transferred to the second blockchain address, and the reference block height is determined based on the resource return block height; Adding marking information to the resource application form, and storing the resource application form with the marking information added to the blockchain, wherein the marking information is used to indicate that the resource application form has been completed.

8. A data processing device based on blockchain, characterized in that: include: An acquisition unit is used to acquire a resource application form of a target object and publish the resource application form on a blockchain; the resource application form includes pledged resource information and transferred resource information, the pledged resource information includes a pledged resource category and a pledged quantity, the transferred resource information includes a transferred resource category and a transferred quantity, and the pledged resource category and the transferred resource category are different; A processing unit, configured to transfer the pledged resources of the pledged quantity under the first blockchain address to the smart contract address if the target object is a resource transfer-in object; the first blockchain address is the blockchain address of the resource transfer-in object, and the resource category of the pledged resources is the pledged resource category; The acquisition unit is further used to acquire a first resource acceptance request initiated by the resource transfer-out object for the resource application form; The processing unit is further configured to, if the first resource acceptance request indicates that the resource acceptance rule corresponding to the resource application form is approved, then in response to the first resource acceptance request, transfer the transfer quantity of transfer resources under the second blockchain address to the smart contract address; the second blockchain address is the blockchain address of the resource transfer-out object, and the resource category of the transfer resource is the transfer resource category; The processing unit is further used to transfer the transfer resources of the transfer quantity under the smart contract address to the first blockchain address.

9. A computer device, characterized in that: The computer device comprises: a processor suitable for implementing a computer program; A computer-readable storage medium storing a computer program, wherein the computer program is suitable for being loaded by the processor and executing the blockchain-based data processing method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is suitable for being loaded by a processor and executing the blockchain-based data processing method according to any one of claims 1 to 7.

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