Transaction processing method and device of block chain network, equipment, medium and product

By aggregating and displaying the resource conversion rates and additional resource consumption of multiple decentralized exchanges in the transaction initiation interface, the cumbersome problem of the user's process of selecting exchanges is solved, and more accurate and flexible exchange selection is achieved, improving trading efficiency and user experience.

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

Patent Information

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

AI Technical Summary

Technical Problem

In existing applications, when users choose decentralized exchanges for resource conversion transactions, the process is complicated and not flexible enough, and it is easy to choose inappropriate exchanges.

Method used

By aggregating and displaying the resource conversion rate and additional resource consumption of multiple decentralized exchanges for resource conversion pairs in the transaction initiation interface, users are allowed to select target exchanges from multiple exchanges for resource conversion transactions.

Benefits of technology

Improve the accuracy and flexibility of choices for decentralized exchanges, and improve trading efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120219069A_ABST
    Figure CN120219069A_ABST
Patent Text Reader

Abstract

The invention discloses a transaction processing method and device for a block chain network, equipment, a medium and a product, and relates to the technical field of block chains, and the method comprises the steps: obtaining a resource conversion pair contained in a resource conversion request in response to the resource conversion request; calling N transaction query interfaces to obtain the resource conversion rates of the N decentralized transactions for the resource conversion pairs and the additional resource consumption required for executing the transactions; based on the resource conversion rate and the additional resource consumption of the N decentralized transactions, generating aggregation display content, and outputting the aggregation display content to a transaction initiation interface; and selecting a target decentralized exchange in the transaction initiation interface, and initiating a resource conversion transaction to the target decentralized exchange based on resource conversion. By adopting the method and the device, the resource conversion rates and the additional resource consumption of the plurality of decentralized transactions for the resource conversion pairs can be displayed in an aggregated manner, so that the accuracy and the flexibility of selecting the decentralized transactions are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of blockchain technology, and in particular, to a transaction processing method, apparatus, device, medium, and product for a blockchain network. Background Art

[0002] A resource conversion transaction refers to converting digital resources of one resource type into digital resources of another resource type. In existing applications, users need to log in to the corresponding decentralized exchange to initiate a resource conversion transaction. If there are multiple decentralized exchanges, users need to continuously switch and log in to each decentralized exchange to select the corresponding decentralized exchange to initiate the corresponding resource conversion transaction.

[0003] It can be seen that in existing applications, the process of users selecting a decentralized exchange is very complicated and inflexible. Moreover, the selected decentralized exchange is very likely to be inaccurate. For example, the selected decentralized exchange may not be the best choice for initiating a resource conversion transaction. Therefore, how to flexibly and more accurately select a decentralized exchange to initiate a resource conversion transaction is an urgent problem to be solved. Summary of the Invention

[0004] Embodiments of this application provide a transaction processing method, apparatus, device, medium, and product for a blockchain network, which can aggregately display the resource conversion rates and additional resource consumption amounts of multiple decentralized exchanges for resource conversion pairs, thereby improving the accuracy and flexibility of selecting a decentralized exchange.

[0005] In a first aspect, this application provides a transaction processing method for a blockchain network, including:

[0006] In response to a resource conversion request, obtain the resource conversion pair included in the resource conversion request; the resource conversion pair includes a first resource type and a second resource type, and the resource conversion pair is used to convert digital resources of the first resource type into digital resources of the second resource type;

[0007] Call the transaction query interfaces of N decentralized exchanges to obtain the resource conversion rate of each decentralized exchange for the resource conversion pair and the additional resource consumption amount required to execute the transaction; N is a positive integer;

[0008] Based on the resource conversion rates and additional resource consumption amounts of the N decentralized exchanges for the resource conversion pair, generate aggregately displayed content, and output the aggregately displayed content to a transaction initiation interface;

[0009] In the transaction initiation interface, select a target decentralized exchange from the N decentralized exchanges, and initiate a resource conversion transaction with the target decentralized exchange based on the resource conversion pair, so that the target decentralized exchange executes the resource conversion transaction based on the resource conversion rate and additional resource consumption amount belonging to the aggregated display content; the resource conversion transaction is used to convert digital resources of the first resource type into digital resources of the second resource type.

[0010] In a second aspect, the present application provides a transaction processing device for a blockchain network, including:

[0011] A resource acquisition unit, configured to acquire a resource conversion pair included in the resource conversion request in response to the resource conversion request; the resource conversion pair includes a first resource type and a second resource type, and the resource conversion pair is used to convert digital resources of the first resource type into digital resources of the second resource type;

[0012] An interface call unit, configured to call the transaction query interfaces of N decentralized exchanges to obtain the resource conversion rate of each decentralized exchange for the resource conversion pair and the additional resource consumption amount required to execute the transaction; N is a positive integer;

[0013] An aggregation display unit, configured to generate aggregated display content based on the resource conversion rate and additional resource consumption amount of each of the N decentralized exchanges for the resource conversion pair, and output the aggregated display content to the transaction initiation interface;

[0014] A transaction execution unit, configured to select a target decentralized exchange from the N decentralized exchanges in the transaction initiation interface, and initiate a resource conversion transaction with the target decentralized exchange based on the resource conversion pair, so that the target decentralized exchange executes the resource conversion transaction based on the resource conversion rate and additional resource consumption amount belonging to the aggregated display content; the resource conversion transaction is used to convert digital resources of the first resource type into digital resources of the second resource type.

[0015] Optionally, the aggregation display unit is specifically configured to:

[0016] Determine the transaction priority of each of the decentralized exchanges based on the resource conversion rate and additional resource consumption amount of each of the N decentralized exchanges for the resource conversion pair;

[0017] Generate the display content of each of the decentralized exchanges based on the resource conversion rate and additional resource consumption amount of each of the decentralized exchanges; the display content of any one of the decentralized exchanges includes the resource conversion rate and additional resource consumption amount of the any one of the decentralized exchanges for the resource conversion pair;

[0018] Sort the display content of the N decentralized exchanges based on the trading priority of each decentralized exchange to obtain the sorted display content;

[0019] Perform an aggregation process on the sorted display content to generate the aggregated display content.

[0020] Optionally, the aggregation display unit is specifically configured to:

[0021] Obtain multiple first reference intervals set for the resource conversion rate, multiple second reference intervals set for the additional resource consumption, and multiple priority mapping intervals; each first reference interval has a corresponding first priority index, each second reference interval has a corresponding second priority index, and each priority mapping interval has a mapped trading priority;

[0022] Obtain the first priority index corresponding to the first reference interval to which the resource conversion rate of the resource conversion pair of each decentralized exchange belongs, as the first target priority index corresponding to each decentralized exchange;

[0023] Obtain the second priority index corresponding to the second reference interval to which the additional resource consumption of the resource conversion pair of each decentralized exchange belongs, as the second target priority index corresponding to each decentralized exchange;

[0024] Perform an addition process on the first target priority index and the second target priority index corresponding to each decentralized exchange respectively to obtain the added priority index corresponding to each decentralized exchange;

[0025] Determine the trading priority mapped by the priority mapping interval to which the added priority index corresponding to each decentralized exchange belongs as the trading priority of each decentralized exchange.

[0026] Optionally, the trading execution unit is further configured to:

[0027] Determine the decentralized exchange to which the display content with the top ranking in the sorted display content belongs as the decentralized exchange to be recommended;

[0028] Generate recommendation information for the decentralized exchange to be recommended and display the recommendation information in the transaction initiation interface;

[0029] The trading execution unit is specifically configured to:

[0030] In response to a transaction confirmation operation performed based on the recommendation information, determine the decentralized exchange to be recommended in the recommendation information as the target decentralized exchange.

[0031] Optionally, the resource conversion rate of the N decentralized exchanges for the resource conversion pair is dynamically changed; the transaction execution unit is specifically configured to:

[0032] In the transaction initiation interface, obtain the expected conversion rate set for the resource conversion rate of the resource conversion pair; when the expected conversion rate is set, the resource conversion rates of the N decentralized exchanges for the resource conversion pair are all greater than the expected conversion rate;

[0033] When there is a resource conversion rate less than or equal to the expected conversion rate among the resource conversion rates of the N decentralized exchanges for the resource conversion pair, determine the decentralized exchange to which the resource conversion rate less than or equal to the expected conversion rate belongs as the target decentralized exchange.

[0034] Optionally, the transaction execution unit is specifically configured to:

[0035] In response to a transaction splitting operation, obtain the set transaction splitting quantity M; M is a positive integer;

[0036] Based on the transaction splitting quantity, select M target decentralized exchanges; one target decentralized exchange corresponds to one such resource conversion transaction;

[0037] Generate a resource conversion transaction corresponding to each target decentralized exchange based on the resource conversion pair, and initiate the resource conversion transaction corresponding to each target decentralized exchange to each target decentralized exchange respectively.

[0038] Optionally, the transaction execution unit is specifically configured to:

[0039] Obtain the resource conversion quantity of the digital resources of the first resource type to be converted;

[0040] Based on the transaction splitting quantity, perform an average splitting process on the resource conversion quantity to obtain M split resource conversion quantities;

[0041] Allocate the M split resource conversion quantities to each of the target decentralized exchanges respectively;

[0042] Based on the resource conversion pair and the split resource conversion quantities allocated to each target decentralized exchange, generate a resource conversion transaction corresponding to each target decentralized exchange respectively;

[0043] Among them, the resource conversion transaction corresponding to any target decentralized exchange is used to convert the digital resources of the first resource type and with a resource conversion quantity equal to the split resource conversion quantity allocated to the any target decentralized exchange into digital resources of the second resource type.

[0044] Optionally, the transaction execution unit is configured to:

[0045] Obtain the first digital resource of the first resource type and the second digital resource of the third resource type to be converted from the object account of the target object; the third resource type is the resource type of the general resources in the target decentralized exchange, and the resource conversion amount of the second digital resource is the additional resource consumption required for the target decentralized exchange to execute a transaction.

[0046] Initiate a resource conversion transaction to the target decentralized exchange based on the first digital resource and the second digital resource.

[0047] Wherein, the target decentralized exchange is used to convert the first digital resource into a digital resource of the second resource type according to the belonging resource conversion rate.

[0048] Optionally, the additional resource consumption required for any decentralized exchange to execute a transaction includes at least one of the following:

[0049] The resource consumption amount generated by the relevant operations for any decentralized exchange to execute a transaction, and the resource consumption amount generated by the contract call when any decentralized exchange calls a contract to execute a transaction.

[0050] In a third aspect, the present application provides a computer device, including a processor and a memory. Among them, the processor is connected to the memory, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer program executes the above-mentioned transaction processing method of the blockchain network.

[0051] In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is suitable for being loaded and executed by a processor so that a computer device with the processor executes the above-mentioned transaction processing method of the blockchain network.

[0052] In a fifth aspect, the present application provides a computer program product, which includes a computer program / instructions. When the computer program / instructions are executed by a processor, the above-mentioned transaction processing method of the blockchain network can be implemented.

[0053] In an embodiment of the present application, in response to a resource conversion request, a resource conversion pair included in the resource conversion request is obtained; the resource conversion pair includes a first resource type and a second resource type, and the resource conversion pair is used to convert a digital resource of the first resource type into a digital resource of the second resource type; a transaction query interface of N decentralized exchanges is called to obtain the resource conversion rate of each decentralized exchange for the resource conversion pair and the additional resource consumption required to execute the transaction; based on the resource conversion rate and additional resource consumption of each of the N decentralized exchanges for the resource conversion pair, aggregated display content is generated and the aggregated display content is output to a transaction initiation interface; in the transaction initiation interface, a target decentralized exchange is selected from the N decentralized exchanges, and a resource conversion transaction is initiated to the target decentralized exchange based on the resource conversion pair, so that the target decentralized exchange executes the resource conversion transaction based on the resource conversion rate and additional resource consumption belonging to the aggregated display content; the resource conversion transaction is used to convert a digital resource of the first resource type into a digital resource of the second resource type. By aggregating and displaying the resource conversion rate and additional resource consumption of each of the N decentralized exchanges for the resource conversion pair in the transaction initiation interface, it is convenient to select a target decentralized exchange that needs to execute the transaction from the N decentralized exchanges, without continuously switching to log in to the N decentralized exchanges to compare the resource conversion rate of each decentralized exchange for the resource conversion pair and the additional resource consumption required to execute the transaction, which can improve the accuracy and flexibility of selecting a decentralized exchange. And since the resource conversion transaction can be directly initiated in the transaction initiation interface without logging in to the decentralized exchange to initiate the resource conversion transaction, the transaction efficiency can be improved and the transaction experience can be increased. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0055] Figure 1a It is a schematic diagram of the network architecture of a transaction processing system provided by an embodiment of the present application;

[0056] Figure 1b It is a schematic diagram of a blockchain node system provided by an embodiment of the present application;

[0057] Figure 1c It is a schematic diagram of the composition of a blockchain provided by an embodiment of the present application;

[0058] Figure 2It is a schematic diagram of an application scenario of a transaction processing method for a blockchain network provided by an embodiment of the present application;

[0059] Figure 3 It is a schematic flowchart of a transaction processing method for a blockchain network provided by an embodiment of the present application;

[0060] Figure 4 It is a schematic flowchart of another transaction processing method for a blockchain network provided by an embodiment of the present application;

[0061] Figure 5 It is a schematic diagram of the composition structure of a transaction processing device for a blockchain network provided by an embodiment of the present application;

[0062] Figure 6 It is a schematic diagram of the composition structure of a computer device provided by an embodiment of the present application. Detailed implementation manners

[0063] 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. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

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

[0065] Artificial intelligence technology is an interdisciplinary subject, involving a wide range of fields, including both hardware-level technologies and software-level technologies. Artificial intelligence basic technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, and mechatronics. Artificial intelligence software technologies mainly include several major directions such as computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning. The solution provided by the embodiment of the present application belongs to the big data processing technology under the field of artificial intelligence. For example, the big data processing technology can be used to sort the display content of N decentralized exchanges to obtain the sorted display content, and so on.

[0066] Blockchain is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithms. Blockchain, in essence, is a decentralized database, a series of data blocks generated by using cryptographic methods. Each data block contains information about a batch of network transactions, which is used to verify the validity of the information (anti-counterfeiting) and generate the next block. Blockchain can include the blockchain underlying platform, the platform product service layer, and the application service layer.

[0067] The blockchain underlying platform can include processing modules such as management, basic services, smart contracts, and operation detection. Among them, the management module is responsible for the identity information management of all blockchain participants, including maintaining the generation of public and private keys (account management), key management, and the maintenance of the correspondence between the real identity of users and blockchain addresses (permission management). And under authorization, it supervises and audits the transaction situations of certain real identities, and provides the rule configuration for risk control (risk control audit); the basic service module is deployed on all blockchain node devices, used to verify the validity of business requests, and record them on the storage after consensus on valid requests. For a new business request, the basic service first performs interface adaptation parsing and authentication processing (interface adaptation), then encrypts the business information through the consensus algorithm (consensus management), transmits it to the shared ledger completely and consistently after encryption (network communication), and performs record storage; the smart contract module is responsible for the registration and issuance of contracts, as well as contract triggering and contract execution. Developers can define contract logic through a certain programming language, publish it to the blockchain (contract registration), trigger the execution according to the logic of the contract terms by calling keys or other events, complete the contract logic, and at the same time provide functions for contract upgrade and cancellation; the operation detection module is mainly responsible for the deployment, configuration modification, contract setting, cloud adaptation during the product release process, and the visual output of the real-time state during product operation, such as: alarming, detecting network conditions, detecting the health status of node devices, etc.

[0068] The platform product service layer provides the basic capabilities and implementation frameworks of typical applications. Developers can build on these basic capabilities and overlay the characteristics of the business to complete the blockchain implementation of the business logic. The application service layer provides application services based on the blockchain solution for business participants to use. The solution of this application belongs to blockchain technology. For example, resource conversion transactions can be executed in the blockchain network composed of blockchains, and so on.

[0069] The technical solution of this application can be applied to the scenario of selecting a target decentralized exchange that needs to execute a resource conversion transaction from multiple decentralized exchanges, so as to use the target decentralized exchange to conduct a resource conversion transaction. By aggregating and displaying the trading conditions of multiple decentralized exchanges, such as the resource conversion rate of each decentralized exchange for the resource conversion transaction and the additional resource consumption required to execute the transaction, the object that needs to conduct the transaction can select the decentralized exchange that needs to execute the resource conversion transaction from multiple decentralized exchanges according to the needs, so as to select a more suitable decentralized exchange and improve the trading experience. Optionally, the technical solution of this application can also be applied to various scenarios, such as but not limited to scenarios such as cloud technology, artificial intelligence, intelligent transportation, and assisted driving.

[0070] Please refer to Figure 1a , Figure 1a which is a schematic diagram of the network architecture of a trading processing system provided by an embodiment of this application. As Figure 1a shown, the schematic diagram of the network architecture includes a computer device 10 and a blockchain network 11. Among them, the blockchain network 11 includes multiple blockchain nodes, and one or more blockchain nodes in the blockchain network 11 can form a decentralized exchange. For example, the transaction of a decentralized exchange can be completed by multiple blockchain nodes in the blockchain network 11. For example, the consensus node among multiple blockchain nodes conducts consensus on the transaction, executes the transaction, and the transaction is chained, and so on. The computer device 10 is used to respond to a resource conversion request, obtain the resource conversion pair included in the resource conversion request; call the transaction query interfaces of N decentralized exchanges to obtain the resource conversion rate of each decentralized exchange for the resource conversion pair and the additional resource consumption required to execute the transaction, where N is a positive integer; and generate aggregated display content based on the resource conversion rate and additional resource consumption of each of the N decentralized exchanges for the resource conversion pair; and in the transaction initiation interface, select a target decentralized exchange from the N decentralized exchanges and initiate a resource conversion transaction to the target decentralized exchange based on the resource conversion pair, and so on.

[0071] It is understandable that the computer device mentioned in the embodiments of the present application may include, but is not limited to, a terminal device or a server, and may also be a system composed of a server and a terminal device. Among them, the above-mentioned terminal device may be an electronic device, including but not limited to mobile phones, tablet computers, desktop computers, laptop computers, handheld computers, in-vehicle devices, intelligent voice interaction devices, augmented reality / virtual reality (AR / VR) devices, head-mounted displays, wearable devices, smart speakers, smart home appliances, aircraft, digital cameras, cameras, and other mobile internet devices (MID) with network access capabilities. Among them, the above-mentioned server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud 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.

[0072] It should be particularly noted that when collecting and processing relevant data (such as resource conversion requests, resource conversion rates, additional resource consumption required to execute transactions, and object accounts associated with the objects to be transacted) in the embodiments of the present application during actual application, the informed consent or separate consent of the personal information subject should be obtained in strict accordance with the requirements of relevant regional laws and regulations, and subsequent data use and processing behaviors should be carried out within the scope authorized by laws and regulations and the personal information subject. For example, the object may refer to the user of the terminal device or the computer device.

[0073] In addition, please refer to Figure 1b , Figure 1b which is a schematic diagram of a blockchain node system provided by the embodiments of the present application. The blockchain node system is a system composed of multiple blockchain nodes in a blockchain network, such as Figure 1bThe blockchain node system shown is a system used for transaction processing. Each node in this blockchain node system can receive input information during normal operation and maintain the shared data within the blockchain node system based on the received input information. To ensure information interconnection within the blockchain node system, there can be information connections between each node in the blockchain node system, and nodes can transmit information through the above-mentioned information connections. For example, when any node in the blockchain node system receives input information, other nodes in the blockchain node system obtain the input information according to the consensus algorithm and store the input information as data in the shared data, so that the data stored on all nodes in the blockchain node system is consistent.

[0074] For each node in the blockchain node system, it has a corresponding node identifier, and each node in the blockchain node system can store the node identifiers of other nodes in the blockchain node system, so as to broadcast the generated block to other nodes in the blockchain node system according to the node identifiers of other nodes in the future. Each node can maintain a node identifier list as shown in the following table, and store the node name and node identifier corresponding to each other in the node identifier list.

[0075] Table 1

[0076] Node Name Node Identifier Node 1 117.114.151.174 Node 2 117.116.189.145 … … Node N 119.123.789.258

[0077] 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 used as an example in Table 1 for illustration. Each node in the blockchain node system stores an identical blockchain. The blockchain consists of multiple blocks. Refer to Figure 1c , Figure 1c which is a schematic diagram of the composition of a blockchain provided by an embodiment of the present application. The blockchain consists of multiple blocks. 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. 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 block data stored in each block in the blockchain is associated with the block data stored in the parent block, ensuring the security of the input information in the block.

[0078] The embodiments of the present application utilize smart contracts in blockchain technology and the immutable characteristics of the blockchain to process data, that is, a transaction processing method for a blockchain network is provided. Among them, a smart contract, a protocol defined in digital form, needs to run in a trusted environment, such as a blockchain platform. A smart contract (Smart contract) is a contract that runs on a computer in cyberspace. It is disseminated, verified, or executed in an informatized manner, read and executed by a computer, and has the characteristics of self-service. The decentralization of the blockchain and the anti-tampering of data determine that smart contracts are more suitable to be implemented on the blockchain. Therefore, the development of blockchain technology has given smart contracts a broader development prospect. In fact, a smart contract is a program composed of computer code. Its conclusion process is as follows: First, the two or more parties participating in the conclusion of the contract agree and jointly formulate a smart contract; Second, the smart contract is broadcast and stored to the fulcrums of each blockchain in the world through the blockchain network; Third, the successfully constructed smart contract waits for the conditions to be met and then automatically executes the contract content.

[0079] Further, please refer to Figure 2 , Figure 2 which is a schematic diagram of the application scenario of a transaction processing method for a blockchain network provided by the embodiments of the present application; as Figure 2 shown, the transaction initiating client 20 can respond to the resource conversion request of the target object 21 and obtain the resource conversion pair included in the resource conversion request. For example, the resource conversion pair is used to convert digital resources of the first resource type into digital resources of the second resource type. Further, the transaction initiating client 20 can call the transaction query interfaces of N decentralized exchanges 22 to obtain the transaction rules 23 of each of the N decentralized exchanges 22 for the resource conversion pair. For example, the transaction rules 23 may include the resource conversion rates of each of the N decentralized exchanges 22 for the resource conversion pair and the additional resource consumption required to execute the transaction. Then, based on the resource conversion rates and additional resource consumption of each of the N decentralized exchanges 22 for the resource conversion pair, an aggregated display content 24 is generated and output to the transaction initiation interface 25 of the transaction initiating client 20. Further, in the transaction initiation interface 25, a target decentralized exchange can be selected from the N decentralized exchanges 22. For example, the transaction initiation interface after selecting the decentralized exchange 1 as the target decentralized exchange is as shown in 26. Then, the transaction initiating client 20 can initiate a resource conversion transaction to the target decentralized exchange based on the resource conversion pair. The target decentralized exchange can execute the resource conversion transaction based on the resource conversion rate (such as resource conversion rate a1) and additional resource consumption (such as additional resource consumption b1) of the decentralized exchange 1 in the aggregated display content 24, so as to convert digital resources of the first resource type into digital resources of the second resource type.

[0080] Further, please refer to Figure 3 , Figure 3 which is a schematic flowchart of a transaction processing method for a blockchain network provided by an embodiment of the present application. The execution subject in the embodiment of the present application may be a transaction processing device, and the transaction processing device may be a computer device or a cluster composed of multiple computer devices. The computer device may be a server, a terminal device, or other devices, and the embodiment of the present application does not limit this.

[0081] As Figure 3 shown, the transaction processing method for the blockchain network includes but is not limited to the following steps:

[0082] S101, in response to a resource conversion request, obtain the resource conversion pair included in the resource conversion request.

[0083] In the embodiment of the present application, when a target object that needs to conduct a resource conversion transaction uses a decentralized exchange to conduct a resource conversion transaction, it can log in to the decentralized exchange to conduct the resource conversion transaction. However, currently, there are multiple decentralized exchanges that can conduct resource conversion transactions, but the liquidity and depth of each decentralized exchange are different. Therefore, each decentralized exchange will form different resource conversion rates and additional resource consumption amounts required to execute the transaction. The resource conversion rate may refer to the conversion rate of converting digital resources of one resource type into digital resources of another resource type, and the additional resource consumption amount required to execute the transaction refers to the additional resource consumption amount that the decentralized exchange needs to charge extra for executing the resource conversion transaction. It can be understood that the lower the resource conversion rate of the selected decentralized exchange and the lower the additional resource consumption amount required to execute the transaction, the better the transaction experience of the target object when executing the resource conversion transaction.

[0084] Among them, a decentralized exchange may refer to a platform, institution, network, etc. that automatically completes transaction matching depending on a certain agreed rule. For example, a decentralized exchange may represent a blockchain network, or may represent a smart contract in a blockchain network, and so on. A decentralized exchange may include multiple blockchain nodes, and the transactions of the decentralized exchange may be completed by the multiple blockchain nodes. For example, consensus, execution, and chain - up may be performed through the consensus nodes among the multiple blockchain nodes included in the decentralized exchange. The transactions in the decentralized exchange may be resource conversion transactions, and the resource conversion transaction may refer to a transaction of converting digital resources of one resource type into digital resources of another resource type.

[0085] In the current solution, when a target object needs to conduct a resource conversion transaction, since the resource conversion rates of each decentralized exchange and the additional resource consumption required for executing the transaction are different, and the resource conversion rates of the same decentralized exchange and the additional resource consumption required for executing the transaction may also be different at different times. Therefore, before executing the resource conversion transaction, the target object needs to continuously switch to log in to each decentralized exchange to query the resource conversion rate of each decentralized exchange at the current time and the additional resource consumption required for executing the transaction, and select a decentralized exchange to execute the resource conversion transaction. It can be seen that by the method of the target object constantly logging in to different decentralized exchanges to compare the resource conversion rates of different decentralized exchanges and the additional resource consumption required for executing the transaction, if the comparison time periods are different, or the comparison is incomplete or incorrect, it will result in the final executed resource conversion transaction not being the optimal one among multiple decentralized exchanges.

[0086] In view of this, in the embodiments of the present application, a transaction method for a blockchain network is provided. By aggregating and displaying the resource conversion rates of multiple decentralized exchanges and the additional resource consumption required for executing the transaction before the transaction, the optimal transaction execution path (decentralized exchange) can be selected during the transaction, so as to use the selected decentralized exchange to execute the resource conversion transaction, achieving the best resource conversion rate and the lowest additional resource consumption, thereby improving the transaction experience.

[0087] For example, a transaction initiation client can be deployed on the transaction processing device in the embodiments of the present application. By aggregating and displaying the resource conversion rates of multiple decentralized exchanges and the additional resource consumption required for executing the transaction in the transaction initiation client, the target object that needs to conduct a transaction can log in to the transaction initiation client and view the resource conversion rates of multiple decentralized exchanges and the additional resource consumption required for executing the transaction displayed by the transaction initiation client. The target object can select the decentralized exchange for which the resource conversion transaction needs to be conducted from them, and then the transaction initiation client can initiate a resource conversion transaction to the selected decentralized exchange based on the resource conversion rate of the selected decentralized exchange and the additional resource consumption required for executing the transaction.

[0088] In the embodiments of the present application, the target object can log in to the transaction initiation client, trigger a resource conversion request on the transaction client, and then the transaction client can respond to the resource conversion request and obtain the resource conversion pair included in the resource conversion request. Since any two types of digital resources can be converted in a decentralized exchange, in the embodiments of the present application, the conversion between any two types of digital resources is taken as an example for illustration. These any two types of digital resources can be called a resource conversion pair, and the resource conversion pair can be used to convert digital resources of the first resource type into digital resources of the second resource type. Among them, the resource conversion pair includes the first resource type and the second resource type, and the resource conversion pair is used to convert digital resources of the first resource type into digital resources of the second resource type.

[0089] It can be understood that the digital resources of the first resource type can refer to the digital resources currently held by the target object and need to be converted, and the digital resources of the second resource type can refer to the digital resources that the target object needs to obtain by converting the digital resources of the first resource type. The digital resources of the first resource type can refer to any type of digital resources, and the digital resources of the second resource type can also refer to any type of digital resources, but the first resource type and the second resource type can be two different resource types. For example, the first resource type and the second resource type can be the resource types of general resources in two different regions, or the first resource type and the second resource type can be the resource types of two different virtual resources. The embodiments of the present application do not make any limitations in this regard.

[0090] In the embodiments of the present application, since a decentralized exchange can execute resource conversion transactions associated with multiple resource conversion pairs. For example, it can execute a resource conversion transaction that converts digital resources of the first resource type into digital resources of the second resource type, can also execute a resource conversion transaction that converts digital resources of the first resource type into digital resources of the third resource type, and can also execute a resource conversion transaction that converts digital resources of the second resource type into digital resources of the third resource type, and so on. For each resource conversion pair, the specific transaction situation of each decentralized exchange is different. Therefore, the transaction initiation client can obtain the resource conversion pair input by the target object to determine whether it is necessary to convert digital resources of the first resource type into digital resources of the second resource type. Subsequently, it can obtain the resource conversion rates of multiple decentralized exchanges for this resource conversion pair, as well as the additional resource consumption required to execute the transaction. Furthermore, it can obtain the resource conversion rate for this resource conversion pair and the additional resource consumption required to execute the transaction from multiple decentralized exchanges and display them on the display interface of the transaction initiation client for the target object to select. Since the target object does not need to continuously log in to multiple decentralized exchanges to query the resource conversion rate for this resource conversion pair and the additional resource consumption required to execute the transaction, it can save transaction efficiency and improve the transaction experience.

[0091] S102. Call the transaction query interfaces of N decentralized exchanges to obtain the resource conversion rates of each decentralized exchange for the resource conversion pair and the additional resource consumption required to execute the transaction.

[0092] In the embodiments of the present application, the transaction initiating client can call the transaction query interfaces of N decentralized exchanges through the background server to separately obtain the resource conversion rates of each decentralized exchange for the resource conversion pair and the additional resource consumption required to execute the transaction. Each decentralized exchange may include the resource conversion rates for multiple resource conversion pairs and the additional resource consumption required to execute the transaction. By calling the transaction query interfaces of each decentralized exchange, the resource conversion rates of each decentralized exchange for multiple resource conversion pairs and the additional resource consumption required to execute the transaction can be queried, so that the resource conversion rate of each decentralized exchange for the resource conversion pair (i.e., the resource conversion pair for converting digital resources of the first resource type into digital resources of the second resource type) and the additional resource consumption required to execute the transaction can be selected.

[0093] Optionally, the resource conversion rate of each decentralized exchange for the resource conversion pair and the additional resource consumption required to execute the transaction can be obtained based on the market data scraping capabilities of each decentralized exchange.

[0094] In the embodiments of the present application, the resource conversion rate of each decentralized exchange for the resource conversion pair and the additional resource consumption required to execute the transaction may be public. Each decentralized exchange can provide the corresponding transaction query interface for any terminal device or server, such as the transaction initiating client or the background server of the transaction initiating client, to obtain the resource conversion rate of the corresponding decentralized exchange for the resource conversion pair and the additional resource consumption required to execute the transaction through the transaction query interface, which is convenient for subsequent analysis of each decentralized exchange, and then select the decentralized exchange that needs to execute the resource conversion transaction from multiple decentralized exchanges.

[0095] Among them, the resource conversion rate of each decentralized exchange for a resource conversion pair may refer to the exchange rate at which each decentralized exchange converts digital resources of the first resource type into digital resources of the second resource type. The exchange rate may, for example, refer to an exchange rate. The higher the resource conversion rate of the resource conversion pair, the fewer the number of digital resources of the second resource type obtained by converting the same amount of digital resources of the first resource type, and the less cost-effective the resource conversion transaction is for the target object. The lower the resource conversion rate of the resource conversion pair, the more the number of digital resources of the second resource type obtained by converting the same amount of digital resources of the first resource type, and the more cost-effective the resource conversion transaction is for the target object. The additional resource consumption required for executing a transaction may refer to the handling fee required for executing a resource conversion transaction. Taking a decentralized exchange as an example, the additional resource consumption required for any decentralized exchange to execute a transaction may include at least one of the following: the amount of consumed resources generated by the relevant operations of any decentralized exchange for executing a transaction, and the amount of consumed resources generated by the contract call when any decentralized exchange calls a contract to execute a transaction.

[0096] Among them, the amount of consumed resources generated by the relevant operations of any decentralized exchange for executing a transaction refers to the fee for the corresponding operations initiated by the resource conversion exchange, and the amount of consumed resources generated by the contract call when any decentralized exchange calls a contract to execute a transaction refers to the maintenance fee of the smart contract for executing the resource conversion transaction, that is, the smart contract call fee.

[0097] Optionally, the type of digital resources of the amount of consumed resources generated by the relevant operations of any decentralized exchange for executing a transaction and the amount of consumed resources generated by the contract call when any decentralized exchange calls a contract to execute a transaction may be the first resource type, or may also be the resource type specified by the decentralized exchange executing the transaction. For example, the specified resource type may refer to the first resource type, the second resource type, or other resource types, or the resource type of the general resources in the decentralized exchange executing the transaction, etc. The embodiments of the present application do not make any limitations in this regard.

[0098] In the embodiments of the present application, the lower the resource conversion rate of the decentralized exchange for the resource conversion pair and the lower the additional resource consumption required for executing the transaction, the more digital resources of the second resource type are obtained, which is more beneficial to the target object. By calling the transaction query interfaces of N decentralized exchanges, the resource conversion rate and additional resource consumption of each decentralized exchange for the resource conversion pair can be obtained respectively, which is convenient for subsequently selecting the decentralized exchange with the lowest resource conversion rate and the lowest additional resource consumption for resource conversion transactions.

[0099] Optionally, the back-end server of the transaction initiation client can also directly call the transaction query interfaces of N decentralized exchanges to obtain the resource conversion rates of each decentralized exchange for multiple resource conversion pairs and the additional resource consumption required to execute the transaction. The resource conversion rates of each decentralized exchange for multiple resource conversion pairs and the additional resource consumption required to execute the transaction can be aggregated and displayed on the display interface of the transaction initiation client, so that the target object can select from the resource conversion rates of each decentralized exchange for multiple resource conversion pairs and the additional resource consumption required to execute the transaction the decentralized exchange and resource conversion pair for which the transaction needs to be executed, the resource conversion rate of the decentralized exchange for the selected resource conversion pair, and the additional resource consumption required to execute the transaction, and subsequently, the corresponding resource conversion transaction can be executed.

[0100] S103, generate aggregated display content based on the resource conversion rates and additional resource consumption of each of the N decentralized exchanges for the resource conversion pair, and output the aggregated display content to the transaction initiation interface.

[0101] In the embodiment of the present application, since the resource conversion rates and additional resource consumption of each of the N decentralized exchanges for the resource conversion pair are obtained, aggregated display content can be generated based on the resource conversion rates and additional resource consumption of each of the N decentralized exchanges for the resource conversion pair, and the aggregated display content is output to the transaction initiation interface.

[0102] Among them, the aggregated display content can include the resource conversion rates and additional resource consumption of each of the N decentralized exchanges for the resource conversion pair, that is, N resource conversion rates and N additional resource consumptions, and each decentralized exchange has one resource conversion rate and one additional resource consumption for the resource conversion pair. The transaction initiation interface can refer to the current display interface of the transaction initiation client.

[0103] Optionally, the aggregated display content may further include the identifiers of N decentralized exchanges, the description information of N decentralized exchanges, the resource conversion rate trends of N decentralized exchanges within the target period, and so on. For example, the identifier of a decentralized exchange may refer to the registered trademark pattern of the decentralized exchange, the name of the decentralized exchange, and so on. The description information of the decentralized exchange may include, but is not limited to, the score of the decentralized exchange, the historical transaction volume of the decentralized exchange, the daily transaction volume, the transaction volume per cycle, and the description of the advantages of the decentralized exchange, and so on. The resource conversion rate trends of N decentralized exchanges within the target period may reflect the changes in the resource conversion rate within the target period, and so on. It can be understood that the description information of the decentralized exchange may include the transaction volume and resource conversion rate for all resource types in the decentralized exchange, or may include the transaction volume and resource conversion rate for resource pairs. The embodiments of the present application do not make any limitations on this.

[0104] Optionally, when the client calls the transaction query interfaces of N decentralized exchanges, it can obtain the resource conversion rates of each decentralized exchange for the resource pair and the additional resource consumption required to execute the transaction within a period of time, analyze these data to obtain the resource conversion rate trends of N decentralized exchanges, and then generate and output the aggregated display content based on the resource conversion rate trends of N decentralized exchanges. By analyzing the resource conversion rate trends of N decentralized exchanges within a period of time, it is convenient for the target object to understand the trading slippage of each decentralized exchange, that is, the daily changes in the resource conversion rate during this period, so as to better select the decentralized exchange that needs to execute the resource conversion transaction according to the resource conversion rate.

[0105] In the embodiments of the present application, by generating and outputting the aggregated display content to the transaction initiation interface, the target object logging in to the transaction initiation client can view information such as the resource conversion rates and additional resource consumption of each of the N decentralized exchanges for the resource pair, the identifiers of the N decentralized exchanges, the description information of the N decentralized exchanges, and the resource conversion rate trends of the N decentralized exchanges within the target period. Thus, the target object can select the decentralized exchange that needs to execute the transaction from the N decentralized exchanges according to the requirements. Since the decentralized exchange can be selected according to the requirements, the trading experience can be improved. And by aggregating and displaying the transaction information of N decentralized exchanges, the decentralized exchange that needs to execute the transaction can be quickly selected from them, without continuously logging in to each decentralized exchange to view and then select, which can improve the trading efficiency.

[0106] In one embodiment, the trading priority of each decentralized exchange can be determined separately, and aggregated display content can be generated by combining the trading priorities of each decentralized exchange. Specifically, the trading priority of each decentralized exchange can be determined based on the resource conversion rate and additional resource consumption of each of the N decentralized exchanges for the resource conversion pair; the display content of each decentralized exchange can be generated based on the resource conversion rate and additional resource consumption of each decentralized exchange; the display content of any decentralized exchange includes the resource conversion rate and additional resource consumption of any decentralized exchange for the resource conversion pair; based on the trading priorities of each decentralized exchange, the display content of the N decentralized exchanges is sorted to obtain the sorted display content; and the sorted display content is aggregated to generate the aggregated display content.

[0107] Among them, the higher the trading priority, the better the trading experience of selecting this decentralized exchange to execute the transaction. The lower the trading priority, the worse the trading experience of selecting this decentralized exchange to execute the transaction. For example, the lower the resource conversion rate of the decentralized exchange for the resource conversion pair and the lower the additional resource consumption, the highest trading priority of the corresponding decentralized exchange, for example, the first trading priority. The higher the resource conversion rate of the decentralized exchange for the resource conversion pair and the higher the additional resource consumption, the lowest trading priority of the corresponding decentralized exchange, for example, the fourth trading priority. The lower the resource conversion rate of the decentralized exchange for the resource conversion pair and the higher the additional resource consumption, the higher the trading priority of the corresponding decentralized exchange, for example, the second trading priority. The higher the resource conversion rate of the decentralized exchange for the resource conversion pair and the lower the additional resource consumption, the lower the trading priority of the corresponding decentralized exchange, for example, the third trading priority. The first trading priority is greater than the second trading priority, the second trading priority is greater than the third trading priority, and the third trading priority is greater than the fourth trading priority.

[0108] In the embodiments of the present application, by generating the display content for each decentralized exchange, the display content of each decentralized exchange includes the resource conversion rate and additional resource consumption of each decentralized exchange for the resource conversion pair, so that the display content of each decentralized exchange can be sorted according to the trading priority of each decentralized exchange. For example, the greater the trading priority, the higher the sorting of the corresponding display content. The smaller the trading priority, the lower the sorting of the corresponding display content. Then, the display content of each decentralized exchange can be sorted according to the sorting order, and the sorted display content is aggregated to generate the aggregated display content. Aggregation processing may refer to combining the sorted display content according to the sorting.

[0109] In the embodiments of the present application, since the trading priorities of each decentralized exchange are obtained, the N decentralized exchanges are sorted based on the trading priorities, and the decentralized exchange with the highest ranking can be the optimal decentralized exchange for executing transactions. By sorting the N decentralized exchanges, when selecting the decentralized exchange for executing transactions, the optimal decentralized exchange can be quickly selected for trading, thereby improving trading efficiency.

[0110] In one implementation, the trading priority of each decentralized exchange can be determined in the following manner: Obtain multiple first reference intervals set for the resource conversion rate, multiple second reference intervals set for the additional resource consumption, and multiple priority mapping intervals; each first reference interval has a corresponding first priority index, each second reference interval has a corresponding second priority index, and each priority mapping interval has a mapped trading priority; Obtain the first priority index corresponding to the first reference interval to which the resource conversion rate of the resource conversion pair of each decentralized exchange belongs, as the first target priority index corresponding to each decentralized exchange; Obtain the second priority index corresponding to the second reference interval to which the additional resource consumption of the resource conversion pair of each decentralized exchange belongs, as the second target priority index corresponding to each decentralized exchange; Perform a summation process on the first target priority index and the second target priority index corresponding to each decentralized exchange respectively, to obtain the sum priority index corresponding to each decentralized exchange; Determine the trading priority mapped by the priority mapping interval to which the sum priority index corresponding to each decentralized exchange belongs as the trading priority of each decentralized exchange.

[0111] Among them, the first reference interval can refer to multiple pre-set resource conversion rate intervals. If the first reference interval to which the resource conversion rate belongs is different, the corresponding first priority index is different. The first priority index can be used to reflect the magnitude of the resource conversion rate. The lower the resource conversion rate, the higher the first priority index. The higher the resource conversion rate, the lower the first priority index. The second reference interval can refer to multiple pre-set additional resource consumption intervals. If the second reference interval to which the additional resource consumption belongs is different, the corresponding second priority index is different. The smaller the additional resource consumption, the higher the second priority index. The larger the additional resource consumption, the lower the second priority index. It can be understood that the higher the first priority index corresponding to the resource conversion rate and the higher the second priority index corresponding to the additional resource consumption in the decentralized exchange, the higher the trading priority of the decentralized exchange, and the greater the benefit of the target object when using this decentralized exchange for trading.

[0112] In the embodiments of the present application, since the first target priority index corresponding to each decentralized exchange is obtained, and the second target priority index corresponding to each decentralized exchange is obtained, the two priority indices can be added together. For example, adding the two priority indices to obtain the added priority index corresponding to each decentralized exchange, mapping the added priority index corresponding to each decentralized exchange to a plurality of pre-set priority mapping intervals, and determining the trading priority mapped by the priority mapping interval to which the added priority index of each decentralized exchange belongs as the trading priority of each decentralized exchange, so that the trading priority of each decentralized exchange can be determined. Since the resource conversion rate and the additional resource consumption amount of each decentralized exchange for the resource conversion pair are combined when determining the trading priority, the determined trading priority is more accurate. Therefore, when sorting the display content of each decentralized exchange based on this trading priority, the sorting of the display content is more accurate.

[0113] In an alternative implementation, the first weight corresponding to the resource conversion rate and the second weight corresponding to the additional resource consumption amount can be obtained respectively. The first target priority index corresponding to each decentralized exchange is weighted based on the first weight to obtain a first weighted value; the second target priority index corresponding to each decentralized exchange is weighted based on the second weight to obtain a second weighted value; the first weighted value and the second weighted value are added together to obtain a weighted priority index; the trading priority mapped by the priority mapping interval to which the weighted priority index of each decentralized exchange belongs is determined as the trading priority of each decentralized exchange.

[0114] In the embodiments of the present application, for example, the first weight corresponding to the resource conversion rate and the second weight corresponding to the additional resource consumption amount can be pre-set for specific trading situations. For example, the magnitudes of the first weight and the second weight can be determined respectively according to the attention levels to the resource conversion rate and the additional resource consumption amount. For example, when paying more attention to the resource conversion rate, the first weight can be much larger than the second weight. Or in some cases when the attention levels to the resource conversion rate and the additional resource consumption amount are both relatively high, the first weight can be equal to the second weight, or the first weight is slightly larger than the second weight, and so on. Or in some cases when paying more attention to the additional resource consumption amount, the first weight can be less than the second weight, and so on. By setting the weights corresponding to the resource conversion rate and the additional resource consumption amount respectively in specific application scenarios, the trading priority of each decentralized exchange can be determined by combining the attention levels to the resource conversion rate and the additional resource consumption amount, improving the accuracy of priority determination.

[0115] Since it is possible to perform weighted processing by combining the first weight corresponding to the resource conversion rate and the second weight corresponding to the additional resource consumption, where the first weight can reflect the importance of the resource conversion rate and the second weight can reflect the importance of the additional resource consumption, determining the trading priority of each decentralized exchange by combining the importance of both can improve the accuracy of determining the trading priority, thereby improving the subsequent sorting accuracy.

[0116] S104. In the trading initiation interface, select a target decentralized exchange from N decentralized exchanges, and initiate a resource conversion transaction with the target decentralized exchange based on the resource conversion pair, so that the target decentralized exchange executes the resource conversion transaction based on the resource conversion rate and the additional resource consumption belonging to it in the aggregated display content.

[0117] In the embodiments of the present application, by outputting the aggregated display content to the trading initiation interface, a target decentralized exchange for executing the resource conversion transaction can be selected in the trading initiation interface, and thus a resource conversion transaction can be initiated with the target decentralized exchange based on the resource conversion pair, so that the target decentralized exchange executes the resource conversion transaction based on the resource conversion rate and the additional resource consumption belonging to it in the aggregated display content. The resource conversion transaction is used to convert digital resources of the first resource type into digital resources of the second resource type.

[0118] Since the aggregated display content includes the resource conversion rates and additional resource consumptions of N decentralized exchanges for the resource conversion pair, after selecting the target decentralized exchange from the N decentralized exchanges, the target decentralized exchange can execute the resource conversion transaction based on the resource conversion rate and the additional resource consumption belonging to it in the aggregated display content (i.e., the resource conversion rate and additional resource consumption of the target decentralized exchange).

[0119] Specifically, since the trading initiation interface includes N decentralized exchanges, the target decentralized exchange can be selected from the N decentralized exchanges. For example, the decentralized exchange ranked first can be determined as the target decentralized exchange, or the decentralized exchange with the most trading executions can be determined as the target decentralized exchange, or the target decentralized exchange can also be selected from the N decentralized exchanges according to other methods, which are not limited in the embodiments of the present application.

[0120] In one implementation, the target object can select the target decentralized exchange. For example, if the resource conversion request is initiated by the target object, the method of selecting the target decentralized exchange from the N decentralized exchanges can be: in response to a selection operation on the display content in the aggregated display content, the decentralized exchange to which the selected display content belongs is determined as the target decentralized exchange.

[0121] Among them, since multiple display contents corresponding to decentralized exchanges are output in the transaction initiation interface, each display content corresponding to a decentralized exchange includes the resource conversion rate of each decentralized exchange for the resource conversion pair and the additional resource consumption required to execute the transaction. The target object can view the resource conversion rate of each decentralized exchange for the resource conversion pair and the additional resource consumption required to execute the transaction through the transaction initiation interface, so that a selection operation can be triggered for the display content in the aggregated display content output by the transaction initiation interface, and any display content in the aggregated display content can be selected, so that the decentralized exchange to which any selected display content belongs can be used as the target decentralized exchange. The target object can select the display content corresponding to any decentralized exchange according to factors such as its own needs or habits, so as to determine the decentralized exchange corresponding to the selected display content as the target decentralized exchange.

[0122] Furthermore, the transaction initiation client can initiate a resource conversion transaction to the target decentralized exchange based on the resource conversion pair, and then the target decentralized exchange can execute the resource conversion transaction based on the resource conversion rate and additional resource consumption in any selected display content. The resource conversion rate corresponding to the resource conversion transaction is the resource conversion rate of the target decentralized exchange for the resource conversion pair, and the additional resource consumption corresponding to the resource conversion transaction is the additional resource consumption required for the target decentralized exchange to execute the transaction.

[0123] In one embodiment, the transaction initiation client can recommend a decentralized exchange to the target object. For example, the transaction initiation client can determine the decentralized exchange to which the display content ranked first in the sorted display content belongs as the decentralized exchange to be recommended; generate recommendation information for the decentralized exchange to be recommended, and display the recommendation information in the transaction initiation interface.

[0124] Among them, since when sorting the display contents corresponding to N decentralized exchanges, the sorting is based on the transaction priorities of the N decentralized exchanges, the priority of the decentralized exchange corresponding to the display content ranked first in the sorted display content is higher than the priorities of other decentralized exchanges. Therefore, the decentralized exchange can be determined as the decentralized exchange to be recommended, and then recommendation information for the decentralized exchange to be recommended can be generated, so as to recommend that the target object select the decentralized exchange to be recommended for resource conversion transactions.

[0125] Optionally, the recommendation information can be used to recommend that the target object select the decentralized exchange for resource conversion transactions. For example, the recommendation information can be used to prompt the target object that the decentralized exchange is optimal for the resource conversion rate and additional resource consumption of the resource conversion pair, or prompt the number or rating of trading objects that currently select this decentralized exchange for transactions, and so on.

[0126] Furthermore, the transaction initiation client can, in response to a transaction confirmation operation based on the recommendation information, determine the to-be-recommended decentralized exchange in the recommendation information as the target decentralized exchange. By displaying the recommendation information in the transaction initiation interface, the target object can view the recommendation information, and then can perform a transaction confirmation operation or a transaction cancellation operation on the recommendation information. The transaction confirmation operation can be used to confirm the selection of the to-be-recommended decentralized exchange to perform a resource conversion transaction, and the transaction cancellation operation can be used to cancel the selection of the to-be-recommended decentralized exchange to perform a resource conversion transaction. When it is detected that the target object performs a transaction confirmation operation based on the recommendation information, the transaction initiation client can, in response to this transaction confirmation operation, determine the to-be-recommended decentralized exchange in the recommendation information as the target decentralized exchange, so as to perform a resource conversion transaction based on the target decentralized exchange.

[0127] In the embodiments of the present application, by recommending the relatively optimal decentralized exchange among N decentralized exchanges, the target object can directly select the relatively optimal decentralized exchange based on the recommendation information to perform a resource conversion transaction, without having to perform additional analysis and judgment on the N decentralized exchanges, which can save transaction time, improve transaction efficiency, and enhance the transaction experience.

[0128] In a possible implementation manner, an expected conversion rate can be preset. When the resource conversion rate of a decentralized exchange meets the expected conversion rate, then this decentralized exchange can be determined as the target decentralized exchange. Among them, the resource conversion rates of the N decentralized exchanges for the resource conversion pair are dynamically changing. The method for selecting the target decentralized exchange from the N decentralized exchanges can be as follows:

[0129] In the transaction initiation interface, obtain the expected conversion rate set for the resource conversion rate of the resource conversion pair; when the expected conversion rate is set, the resource conversion rates of the N decentralized exchanges for the resource conversion pair are all greater than the expected conversion rate; when there is a resource conversion rate less than or equal to the expected conversion rate among the resource conversion rates of the N decentralized exchanges for the resource conversion pair, determine the decentralized exchange to which the resource conversion rate less than or equal to the expected conversion rate belongs as the target decentralized exchange.

[0130] Among them, the expected conversion rate may refer to the resource conversion rate that is expected to be achieved. When the resource conversion rate of any decentralized exchange reaches the expected conversion rate, it can indicate the expectation to execute a resource conversion transaction using this decentralized exchange. It can be understood that the expected conversion rate can be set relatively small when it is set. For example, it can be less than the resource conversion rates of the current N decentralized exchanges for the resource conversion pair. Since the trading liquidity and depth of each decentralized exchange are dynamically changing at different times, and the lower the expected conversion rate, the more beneficial it is for the target object. Therefore, by setting a lower expected conversion rate, when the resource conversion rates of the N decentralized exchanges for the resource conversion pair are equal to or less than the expected conversion rate, then this decentralized exchange can be determined as the target decentralized exchange for trading, thereby improving the trading experience.

[0131] Optionally, if there are multiple decentralized exchanges whose resource conversion rates for the resource conversion pair are all less than or equal to the expected conversion rate, the decentralized exchange with the minimum resource conversion rate can be determined as the target decentralized exchange. By selecting the decentralized exchange with the lowest resource conversion rate as the target decentralized exchange, the loss of the target object can be reduced and the trading experience can be improved.

[0132] In a possible implementation manner, if within a preset time period, the resource conversion rates of the N decentralized exchanges for the resource conversion pair are all greater than the expected conversion rate, and market indication information for the trading market is obtained indicating that the resource conversion rate in the trading market is rising information, then the decentralized exchange with the minimum resource conversion rate of the N decentralized exchanges for the resource conversion pair within the preset time period can be determined as the target decentralized exchange.

[0133] In the embodiments of the present application, since within the preset time period, the resource conversion rate of no decentralized exchange for the resource conversion pair has dropped to the expected conversion rate, and it is predicted that the resource conversion rate will rise in the next period of time, then the decentralized exchange to which the current lowest resource conversion rate belongs can be selected for trading to avoid increasing trading losses, thereby improving the trading experience.

[0134] In one embodiment, the method of initiating a resource conversion transaction to the target decentralized exchange based on the resource conversion pair may be as follows: Obtain the first digital resource of the first resource type to be converted and the second digital resource of the third resource type from the object account of the target object; Initiate a resource conversion transaction to the target decentralized exchange based on the first digital resource and the second digital resource. Among them, the third resource type is the resource type of the general resource in the target decentralized exchange, and the resource conversion amount of the second digital resource is the additional resource consumption required for the target decentralized exchange to execute the transaction; The target decentralized exchange is used to convert the first digital resource into a digital resource of the second resource type according to the resource conversion rate to which it belongs.

[0135] Among them, the object account of the target object in the transaction initiation client may refer to the object account number. The first digital resource of the first resource type refers to the digital resource to be converted. The second digital resource of the third resource type refers to the digital resource that needs to be additionally paid for the target decentralized exchange to execute the resource conversion transaction. For example, it may refer to the handling fee required to execute the resource conversion transaction. The third resource type and the first resource type may be the same or different. For example, if the resource type of the general resource in the target decentralized exchange is the first resource type, then the third resource type is the same as the first resource type. If the resource type of the general resource in the target decentralized exchange is not the first resource type, then the third resource type is different from the first resource type. For example, the third resource type may refer to the resource type specified by the target decentralized exchange.

[0136] In an optional implementation, the third digital resource of the first resource type can be obtained from the object account of the target object, and the third digital resource of the first resource type is sent to the target decentralized exchange, so that the target decentralized exchange converts the third digital resource of the first resource type into the second digital resource of the third resource type, and thus the second digital resource of the third resource type is used as the handling fee for the target decentralized exchange to execute the resource conversion transaction.

[0137] In one implementation, the transaction initiation client can take a cut from the resource conversion transaction. For example, the transaction initiation client obtains the first digital resource of the first resource type to be converted and the second digital resource of the third resource type from the object account of the target object; takes a cut from the first digital resource of the first resource type or the second digital resource of the third resource type to obtain the digital resource after the cut, and initiates a resource conversion transaction to the target decentralized exchange based on the digital resource after the cut.

[0138] In the embodiments of the present application, by taking a cut from the digital resources in the resource conversion transaction, the transaction initiation client can maintain its normal operation. By initiating a resource conversion transaction to the target decentralized exchange based on the digital resource after the cut, the target object does not need to log in to the target decentralized exchange to initiate a resource conversion transaction, and can initiate a resource conversion transaction through the transaction initiation client, thereby improving the transaction efficiency and transaction experience.

[0139] In an optional implementation, the resource conversion amount of the digital resource extracted by the cut processing may be fixed, or may be determined according to the resource conversion amount of the first digital resource. Determining the resource conversion amount of the digital resource extracted by the cut processing according to the resource conversion amount of the first digital resource means: extracting a preset percentage of the resource conversion amount of the first digital resource. The embodiments of the present application do not limit the resource conversion amount of the digital resource extracted by the cut processing.

[0140] In the embodiments of the present application, by aggregating and displaying the resource conversion rates of N decentralized exchanges for resource conversion pairs and the additional resource consumption for executing transactions on the transaction initiation interface of the transaction initiation client, the target object that needs to execute a resource conversion transaction can directly view the trading quotes of the N decentralized exchanges, so that the target decentralized exchange for executing the resource conversion transaction can be quickly selected. For example, the optimal resource conversion rate and the slippage of the additional resource consumption can be found in real time, such as the trend of the additional resource consumption corresponding to the resource conversion transaction of this resource conversion pair recently. For example, the additional resource consumption was relatively high the previous day and is relatively low currently, and so on. Thus, the optimal resource conversion rate and the additional resource consumption can be selected to improve the trading experience and reduce the trading costs of the target object.

[0141] In the embodiments of the present application, in response to a resource conversion request, the resource conversion pair included in the resource conversion request is obtained; the resource conversion pair includes a first resource type and a second resource type, and the resource conversion pair is used to convert digital resources of the first resource type into digital resources of the second resource type; the trading query interfaces of N decentralized exchanges are called to obtain the resource conversion rates of each decentralized exchange for the resource conversion pair and the additional resource consumption required for executing the transaction; based on the resource conversion rates and the additional resource consumption of each of the N decentralized exchanges for the resource conversion pair, aggregated display content is generated, and the aggregated display content is output to the transaction initiation interface; in the transaction initiation interface, a target decentralized exchange is selected from the N decentralized exchanges, and a resource conversion transaction is initiated to the target decentralized exchange based on the resource conversion pair, so that the target decentralized exchange executes the resource conversion transaction based on the resource conversion rate and the additional resource consumption belonging to the aggregated display content; the resource conversion transaction is used to convert digital resources of the first resource type into digital resources of the second resource type. By aggregating and displaying the resource conversion rates and the additional resource consumption of each of the N decentralized exchanges for the resource conversion pair on the transaction initiation interface, it is convenient to select the target decentralized exchange that needs to execute the transaction from the N decentralized exchanges, without continuously switching to log in to the N decentralized exchanges to compare the resource conversion rates of each decentralized exchange for the resource conversion pair and the additional resource consumption required for executing the transaction, which can improve the accuracy and flexibility of selecting the decentralized exchange. And since the resource conversion transaction can be directly initiated on the transaction initiation interface without logging in to the decentralized exchange to initiate the resource conversion transaction, the trading efficiency can be improved and the trading experience can be increased.

[0142] Further, please refer to Figure 4 , Figure 4It is a schematic flowchart of another transaction processing method provided by an embodiment of the present application for a blockchain network. This transaction processing method of the blockchain network can be applied to a transaction processing system, which may include a transaction initiation client and N decentralized exchanges. As Figure 4 shown, the transaction processing method of this blockchain network includes but is not limited to the following steps:

[0143] S201, in response to a resource conversion request, the transaction initiation client obtains the resource conversion pair included in the resource conversion request.

[0144] S202, the transaction initiation client calls the transaction query interfaces of the N decentralized exchanges to obtain the resource conversion rate of each decentralized exchange for the resource conversion pair and the additional resource consumption required to execute the transaction.

[0145] In the embodiment of the present application, the resource conversion rates of each decentralized exchange for the resource conversion pair are dynamically changing. The resource conversion rates of each decentralized exchange for the resource conversion pair can be calculated by each decentralized exchange. For example, for any one of the N decentralized exchanges, any one decentralized exchange may have at least one resource pool. One resource pool is used to store the digital resources of a resource type in that decentralized exchange, and each resource pool can store digital resources of different resource types. Any one decentralized exchange may have a conversion formula for calculating the exchange amount between the digital resources of one resource type and the digital resources of another resource type. The conversion formulas for the exchange amount between the digital resources of these two resource types in different decentralized exchanges may be different. Based on the exchange amount of the digital resources of the two resource types in that decentralized exchange and the conversion formula for the exchange amount between the digital resources of these two resource types in that decentralized exchange, the exchange rate, that is, the resource conversion rate, of the digital resources of these two resource types in that decentralized exchange can be calculated. The resource conversion rate can also refer to the transaction quotation of that decentralized exchange for the digital resources of these two resource types.

[0146] In the embodiment of the present application, each decentralized exchange can calculate its own resource conversion rate for the resource conversion pair in real time. Then, the transaction initiation client can call the transaction query interfaces of the N decentralized exchanges to obtain the resource conversion rate of each decentralized exchange for the resource conversion pair and the additional resource consumption required to execute the transaction.

[0147] S203, the transaction initiation client generates aggregated display content based on the resource conversion rates and additional resource consumption of each of the N decentralized exchanges for the resource conversion pair, and outputs the aggregated display content to the transaction initiation interface.

[0148] In the embodiments of the present application, the specific implementation manners in steps S201 to S203 may refer to the implementation manners in the above steps S101 to S103, and will not be elaborated here.

[0149] S204. In the transaction initiation interface, the transaction initiation client responds to the transaction splitting operation and obtains the set transaction splitting quantity M.

[0150] Optionally, in the embodiments of the present application, the more the conversion quantity between any two types of digital resources of resource types, the higher the resource conversion rate between any two types of digital resources of resource types. For example, the more the conversion quantity between any two types of digital resources of resource types, the higher the popularity of the digital resources of the second resource type in these two types of digital resources, and the corresponding transaction offer price is higher. Therefore, when performing a resource conversion transaction, the resource conversion transaction can be split, for example, split into M transactions, where M is a positive integer. Since the conversion quantity in each of the multiple split transactions is less than that in the unsplit resource conversion transaction, the resource conversion rate of each of the multiple split transactions is lower than that in the unsplit resource conversion transaction.

[0151] Optionally, for example, the target object can trigger a transaction splitting operation on the transaction initiation client, and then the transaction client can respond to the transaction splitting operation and obtain the set transaction splitting quantity M. The transaction splitting quantity M may refer to the number of transactions for splitting a resource conversion transaction into multiple transactions. The transaction splitting quantity M may refer to the quantity input by the target object, or may be preset in the transaction client, or may be determined according to the resource conversion quantity of the digital resources of the first resource type in the resource conversion transaction and the resource conversion quantity of the digital resources of the first resource type in the historical resource conversion transaction.

[0152] S205. The transaction initiation client selects M target decentralized exchanges based on the transaction splitting quantity.

[0153] Wherein, one target decentralized exchange corresponds to one resource conversion transaction, that is, one (one) target decentralized exchange is used to execute one resource conversion transaction.

[0154] In the embodiments of the present application, since the resource conversion transaction is split into M resource conversion transactions, different decentralized exchanges can be selected for each resource conversion transaction for trading; or, the same decentralized exchange can be selected to execute M resource conversion transactions at different times; or, one resource conversion transaction can be executed at a corresponding time period for the decentralized exchange with the lowest resource conversion rate at different times, and so on.

[0155] S206. The transaction-initiating client generates a resource conversion transaction corresponding to each target decentralized exchange based on the resource conversion pair, and initiates the resource conversion transaction corresponding to each target decentralized exchange to each target decentralized exchange respectively.

[0156] In the embodiment of the present application, the transaction-initiating client can generate a resource conversion transaction corresponding to each target decentralized exchange based on the resource conversion pair, that is, generate a resource conversion transaction corresponding to each of the M decentralized exchanges, that is, M resource conversion transactions, so as to initiate the resource conversion transaction corresponding to each target decentralized exchange to each target decentralized exchange respectively.

[0157] Among them, all M resource conversion transactions are used to convert digital resources of the first resource type into digital resources of the second resource type. When each target decentralized exchange obtains the resource conversion transaction corresponding to each decentralized exchange, it can execute its own resource conversion transaction respectively based on its own resource conversion rate and additional resource consumption, and the resource conversion transactions between each decentralized exchange do not affect each other.

[0158] In one embodiment, when splitting the resource conversion transaction into M resource conversion transactions, average splitting can be performed, so that the resource conversion amounts of the digital resources of the first resource type in the M split resource conversion transactions are equal. For example, the method of generating a resource conversion transaction corresponding to each target decentralized exchange based on the resource conversion pair can be: obtaining the resource conversion amount of the digital resources of the first resource type to be converted; performing an average splitting process on the resource conversion amount based on the transaction splitting quantity to obtain M split resource conversion amounts; allocating the M split resource conversion amounts to each target decentralized exchange respectively; and generating a resource conversion transaction corresponding to each target decentralized exchange respectively based on the resource conversion pair and the split resource conversion amounts allocated to each target decentralized exchange.

[0159] Among them, the resource conversion transaction corresponding to any target decentralized exchange is used to convert digital resources of the first resource type and with a resource conversion amount of the split resource conversion amount allocated to any target decentralized exchange into digital resources of the second resource type. The average splitting process means that the resource conversion amount of the digital resources of the first resource type to be converted is evenly split into M split resource conversion amounts.

[0160] For example, if the resource conversion volume of the digital resource of the first resource type to be converted is 3,000 and M is equal to 3, after average splitting, 3 split resource conversion volumes are obtained, which are 1,000, 1,000, and 1,000 respectively; the 3 split resource conversion volumes are respectively allocated to 3 target decentralized exchanges, and the 3 target decentralized exchanges can respectively execute their respective resource conversion transactions based on their respective resource conversion rates for the resource conversion pair and the additional resource consumption required for each to execute the transaction.

[0161] In another implementation, when splitting the resource conversion transaction into M resource conversion transactions, arithmetic splitting can be performed, and the resource conversion volumes of the digital resources of the first resource type after splitting may not be equal. For example, the method of generating the respective resource conversion transactions corresponding to each target decentralized exchange based on the resource conversion pair may be: obtaining the resource conversion volume of the digital resource of the first resource type to be converted; performing arithmetic splitting on the resource conversion volume based on the number of transaction splits to obtain M split resource conversion volumes; allocating the M split resource conversion volumes to each target decentralized exchange respectively; and generating the respective resource conversion transactions corresponding to each target decentralized exchange respectively based on the resource conversion pair and the split resource conversion volume allocated to each target decentralized exchange.

[0162] For example, arithmetic splitting means splitting the resource conversion volume of the digital resource of the first resource type to be converted into M split resource conversion volumes according to an arithmetic progression. For example, if the resource conversion volume of the digital resource of the first resource type to be converted is 3,000 and M is equal to 3, after arithmetic splitting, the 3 split resource conversion volumes can be 1,500, 1,000, and 500 respectively. Or the 3 split resource conversion volumes obtained after arithmetic splitting can also be 500, 1,000, and 1,500 respectively.

[0163] In the embodiments of the present application, by performing arithmetic splitting on the resource conversion volume of the digital resource of the first resource type to be converted, M resource conversion transactions can also be obtained. When conducting transactions later, the decentralized exchange with the lowest resource conversion rate can be selected as the target decentralized exchange for the resource conversion transaction with a larger split resource conversion volume among the M resource conversion transactions, and the decentralized exchange with the lowest or relatively low resource conversion rate can be selected as the target decentralized exchange for the resource conversion transaction with a smaller split resource conversion volume among the M resource conversion transactions, and so on.

[0164] In yet another implementation, when splitting the resource conversion transaction into M resource conversion transactions, the target object can specify the split resource conversion amount for each resource conversion transaction. For example, the method of generating the resource conversion transaction corresponding to each target decentralized exchange based on the resource conversion pair can be as follows: in response to the input operation for M split resource conversion amounts, the input M split resource conversion amounts are respectively allocated to each target decentralized exchange; based on the resource conversion pair and the split resource conversion amounts allocated to each target decentralized exchange, the resource conversion transaction corresponding to each target decentralized exchange is respectively generated.

[0165] In the embodiments of the present application, since the target object can specify the split resource conversion amount included in each resource conversion transaction, the resource conversion transaction can be split according to requirements, making the transaction method more flexible, thereby improving the transaction experience.

[0166] It can be understood that after splitting the resource conversion transaction into M resource conversion transactions, the target decentralized exchange corresponding to each resource conversion transaction can be selected to execute the corresponding resource conversion transaction in the same time period, or the corresponding resource conversion transaction can be executed in different time periods. For example, when splitting into 3 resource conversion transactions, the decentralized exchange with the lowest resource conversion rate and the lowest additional resource consumption for the resource conversion pair within each of the 3 different time periods can be selected as the target decentralized exchange for the resource conversion transaction to be executed in each time period. That is, the decentralized exchange with the lowest resource conversion rate and the lowest additional resource consumption for the resource conversion pair can be selected for the resource conversion transaction in each time period. One resource conversion transaction can be initiated in each time period, and the time interval between each time period can be fixed or set according to requirements. The embodiments of the present application do not make any limitations in this regard.

[0167] S207, each target decentralized exchange respectively executes the resource conversion transaction corresponding to each target decentralized exchange.

[0168] In the embodiments of the present application, each decentralized exchange may deploy a trading contract, and each decentralized exchange can call the trading contract to execute the resource conversion transaction based on its own resource conversion rate and additional resource consumption. Each decentralized exchange can have multiple resource pools. Digital resources of one resource type are stored in one resource pool. The essence of the resource conversion transaction is to obtain the digital resources of the first resource type and store them in the resource pool in the decentralized exchange that stores the digital resources of the first resource type, and take out the digital resources from the resource pool in the decentralized exchange that stores the digital resources of the second resource type, and finally transfer the digital resources taken out from the resource pool of the second resource type to the object account of the target object, thereby realizing the resource conversion transaction.

[0169] Optionally, the target object can set the expected conversion rate for the resource conversion pair on the transaction initiation client, and authorize the transaction client to execute the resource conversion transaction when it detects that the resource conversion rate of any decentralized exchange for the resource conversion pair is less than or equal to the expected conversion rate, thereby increasing the income of the target object, reducing transaction losses, and improving transaction efficiency.

[0170] In the embodiments of the present application, before executing the resource conversion transaction, by aggregating and displaying the resource conversion rates and additional resource consumption amounts of multiple decentralized exchanges for the resource conversion pair, the target object can select the optimal transaction execution path from the transaction initiation interface (i.e., select a decentralized exchange with relatively low resource conversion rate and additional resource consumption amount for the resource conversion pair), thereby placing the resource conversion transaction order with the selected decentralized exchange, and ultimately achieving the transaction with the best resource conversion rate and the lowest additional resource consumption amount, which can improve the transaction experience and reduce transaction losses.

[0171] In the embodiments of the present application, by aggregating the liquidity of multiple decentralized exchanges, better trading depth and trading value discovery can be provided. The target object can access multiple decentralized exchanges through a single transaction initiation client, thereby improving transaction efficiency and transaction experience. Further, the decentralized exchange executes the resource conversion transaction in the form of a trading contract, which can ensure the security and reliability of the transaction. The trading contract can automatically execute the resource conversion transaction and store the digital resources corresponding to the resource conversion transaction on the blockchain, thereby ensuring the transparency and immutability of the transaction. In addition, aggregating multiple decentralized exchanges can provide a better transaction experience, such as faster transaction speed, better trading depth, and better trading value discovery, which can enable the target object to conduct transactions more easily, thereby attracting more trading objects and liquidity. Moreover, aggregating multiple decentralized exchanges can reduce transaction costs, including the additional resource consumption amount for executing the transaction and transaction slippage. By aggregating the liquidity of multiple decentralized exchanges and providing better trading depth and trading value discovery, transaction costs can be reduced.

[0172] In an embodiment of the present application, in response to a resource conversion request, a resource conversion pair included in the resource conversion request is obtained; the resource conversion pair includes a first resource type and a second resource type, and the resource conversion pair is used to convert digital resources of the first resource type into digital resources of the second resource type; the transaction query interfaces of N decentralized exchanges are called to obtain the resource conversion rate of each decentralized exchange for the resource conversion pair and the additional resource consumption required to execute the transaction; based on the resource conversion rate and the additional resource consumption of each of the N decentralized exchanges for the resource conversion pair, aggregated display content is generated and the aggregated display content is output to the transaction initiation interface; in the transaction initiation interface, a target decentralized exchange is selected from the N decentralized exchanges, and a resource conversion transaction is initiated to the target decentralized exchange based on the resource conversion pair, so that the target decentralized exchange executes the resource conversion transaction based on the resource conversion rate and the additional resource consumption belonging to the aggregated display content; the resource conversion transaction is used to convert digital resources of the first resource type into digital resources of the second resource type. By aggregating and displaying the resource conversion rate and the additional resource consumption of each of the N decentralized exchanges for the resource conversion pair in the transaction initiation interface, it is convenient to select a target decentralized exchange that needs to execute the transaction from the N decentralized exchanges, and there is no need to continuously switch to log in to the N decentralized exchanges to compare the resource conversion rate of each decentralized exchange for the resource conversion pair and the additional resource consumption required to execute the transaction, which can improve the accuracy and flexibility of selecting a decentralized exchange. And since the resource conversion transaction can be directly initiated in the transaction initiation interface without logging in to the decentralized exchange to initiate the resource conversion transaction, the transaction efficiency can be improved and the transaction experience can be increased.

[0173] The method of the embodiment of the present application is introduced above. Next, the device of the embodiment of the present application is introduced.

[0174] See Figure 5 , Figure 5 FIG. is a schematic structural diagram of the composition of a transaction processing device of a blockchain network provided by an embodiment of the present application. The above-mentioned transaction processing device of the blockchain network can be deployed on a transaction processing device; the transaction processing device of the blockchain network can be used to execute the corresponding steps in the transaction processing method of the blockchain network provided by the embodiment of the present application. The transaction processing device 50 of the blockchain network includes:

[0175] A resource acquisition unit 501, configured to obtain a resource conversion pair included in the resource conversion request in response to the resource conversion request; the resource conversion pair includes a first resource type and a second resource type, and the resource conversion pair is used to convert digital resources of the first resource type into digital resources of the second resource type;

[0176] An interface call unit 502 is configured to call the transaction query interfaces of N decentralized exchanges to obtain the resource conversion rates of each decentralized exchange for the resource conversion pair and the additional resource consumption required for executing the transaction; N is a positive integer;

[0177] An aggregation display unit 503 is configured to generate aggregation display content based on the resource conversion rates and additional resource consumption of each of the N decentralized exchanges for the resource conversion pair, and output the aggregation display content to the transaction initiation interface;

[0178] A transaction execution unit 504 is configured to select a target decentralized exchange from the N decentralized exchanges in the transaction initiation interface, and initiate a resource conversion transaction to the target decentralized exchange based on the resource conversion pair, so that the target decentralized exchange executes the resource conversion transaction based on the resource conversion rate and additional resource consumption belonging to the aggregation display content; the resource conversion transaction is used to convert the digital resources of the first resource type into the digital resources of the second resource type.

[0179] Optionally, the aggregation display unit 503 is specifically configured to:

[0180] Determine the transaction priority of each of the N decentralized exchanges based on the resource conversion rates and additional resource consumption of each of the N decentralized exchanges for the resource conversion pair;

[0181] Generate the display content of each of the decentralized exchanges based on the resource conversion rate and additional resource consumption of each of the decentralized exchanges; the display content of any decentralized exchange includes the resource conversion rate and additional resource consumption of the any decentralized exchange for the resource conversion pair;

[0182] Sort the display content of the N decentralized exchanges based on the transaction priority of each of the decentralized exchanges to obtain the sorted display content;

[0183] Perform an aggregation process on the sorted display content to generate the aggregation display content.

[0184] Optionally, the aggregation display unit 503 is specifically configured to:

[0185] Obtain multiple first reference intervals set for the resource conversion rate, multiple second reference intervals set for the additional resource consumption, and multiple priority mapping intervals; each first reference interval has a corresponding first priority index, each second reference interval has a corresponding second priority index, and each priority mapping interval has a mapped transaction priority;

[0186] Obtain the first priority index corresponding to the first reference interval of the resource conversion rate of each decentralized exchange for the resource conversion pair as the first target priority index corresponding to each decentralized exchange;

[0187] Obtain the second priority index corresponding to the second reference interval of the additional resource consumption of each decentralized exchange for the resource conversion pair as the second target priority index corresponding to each decentralized exchange;

[0188] Perform an addition process on the first target priority index and the second target priority index corresponding to each decentralized exchange respectively to obtain the added priority index corresponding to each decentralized exchange;

[0189] Determine the trading priority mapped by the priority mapping interval of the added priority index corresponding to each decentralized exchange as the trading priority of each decentralized exchange.

[0190] Optionally, the trading execution unit 504 is further configured to:

[0191] Determine the decentralized exchange to which the display content ranked first in the sorted display content belongs as the decentralized exchange to be recommended;

[0192] Generate recommendation information for the decentralized exchange to be recommended and display the recommendation information in the trading initiation interface;

[0193] The trading execution unit 504 is specifically configured to:

[0194] In response to a trading confirmation operation performed based on the recommendation information, determine the decentralized exchange to be recommended in the recommendation information as the target decentralized exchange.

[0195] Optionally, the resource conversion rate of the N decentralized exchanges for the resource conversion pair is dynamically changing; the trading execution unit 504 is specifically configured to:

[0196] In the trading initiation interface, obtain the expected conversion rate set for the resource conversion rate of the resource conversion pair; when the expected conversion rate is set, the resource conversion rates of the N decentralized exchanges for the resource conversion pair are all greater than the expected conversion rate;

[0197] When there is a resource conversion rate less than or equal to the expected conversion rate among the resource conversion rates of the N decentralized exchanges for the resource conversion pair, determine the decentralized exchange to which the resource conversion rate less than or equal to the expected conversion rate belongs as the target decentralized exchange.

[0198] Optionally, the trading execution unit 504 is specifically configured to:

[0199] In response to the transaction splitting operation, obtain the set transaction splitting quantity M; M is a positive integer;

[0200] Based on the transaction splitting quantity, select M of the target decentralized exchanges; one target decentralized exchange corresponds to one of the resource conversion transactions;

[0201] Based on the resource conversion pair, generate the resource conversion transactions respectively corresponding to each target decentralized exchange, and initiate the resource conversion transactions corresponding to each target decentralized exchange to each target decentralized exchange respectively.

[0202] Optionally, the transaction execution unit 504 is specifically configured to:

[0203] Obtain the resource conversion quantity of the digital resources of the first resource type to be converted;

[0204] Based on the transaction splitting quantity, perform an average splitting process on the resource conversion quantity to obtain M split resource conversion quantities;

[0205] Allocate the M split resource conversion quantities to each of the target decentralized exchanges respectively;

[0206] Based on the resource conversion pair and the split resource conversion quantities allocated to each target decentralized exchange, generate the resource conversion transactions respectively corresponding to each target decentralized exchange;

[0207] Among them, the resource conversion transaction corresponding to any target decentralized exchange is used to convert the digital resources of the first resource type and with a resource conversion quantity equal to the split resource conversion quantity allocated to the any target decentralized exchange into digital resources of the second resource type.

[0208] Optionally, the transaction execution unit 504 is specifically configured to:

[0209] Obtain the first digital resources of the first resource type to be converted and the second digital resources of the third resource type from the object account of the target object; the third resource type is the resource type of the general resources in the target decentralized exchange, and the resource conversion quantity of the second digital resources is the additional resource consumption required for the target decentralized exchange to execute the transaction;

[0210] Based on the first digital resources and the second digital resources, initiate the resource conversion transaction to the target decentralized exchange;

[0211] Among them, the target decentralized exchange is used to convert the first digital resources into digital resources of the second resource type according to the belonging resource conversion rate.

[0212] Optionally, the additional resource consumption required for any decentralized exchange to execute a transaction includes at least one of the following:

[0213] The amount of resources consumed by the relevant operations of the decentralized exchange to execute the transaction, and the amount of resources consumed by the contract call when the decentralized exchange calls the contract to execute the transaction.

[0214] It should be noted that Figure 5 For the content not mentioned in the corresponding embodiments, reference can be made to the description of the method embodiments, which will not be elaborated here.

[0215] In the embodiments of the present application, in response to a resource conversion request, a resource conversion pair included in the resource conversion request is obtained; the resource conversion pair includes a first resource type and a second resource type, and the resource conversion pair is used to convert digital resources of the first resource type into digital resources of the second resource type; the transaction query interfaces of N decentralized exchanges are called to obtain the resource conversion rate of each decentralized exchange for the resource conversion pair and the additional resource consumption required to execute the transaction; based on the resource conversion rate and additional resource consumption of each of the N decentralized exchanges for the resource conversion pair, aggregated display content is generated and the aggregated display content is output to the transaction initiation interface; in the transaction initiation interface, a target decentralized exchange is selected from the N decentralized exchanges, and a resource conversion transaction is initiated to the target decentralized exchange based on the resource conversion pair, so that the target decentralized exchange executes the resource conversion transaction based on the resource conversion rate and additional resource consumption belonging to the aggregated display content; the resource conversion transaction is used to convert digital resources of the first resource type into digital resources of the second resource type. By aggregating and displaying the resource conversion rate and additional resource consumption of each of the N decentralized exchanges for the resource conversion pair in the transaction initiation interface, it is convenient to select a target decentralized exchange that needs to execute the transaction from the N decentralized exchanges, without continuously switching to log in to the N decentralized exchanges to compare the resource conversion rate of each decentralized exchange for the resource conversion pair and the additional resource consumption required to execute the transaction, which can improve the accuracy and flexibility of selecting a decentralized exchange. And since the resource conversion transaction can be directly initiated in the transaction initiation interface without logging in to the decentralized exchange to initiate the resource conversion transaction, the transaction efficiency can be improved and the transaction experience can be increased.

[0216] See Figure 6 , Figure 6 is a schematic structural diagram of a computer device provided by an embodiment of the present application. As Figure 6As shown in the figure, the above computer device 60 may include: a processor 601 and a memory 602. Among them, the processor 601 is connected to the memory 602. For example, the processor 601 may be connected to the memory 602 through a bus. Optionally, the above computer device 60 may further include: a network interface 603, where the network interface 603 is connected to the processor 601 and the memory 602. For example, the processor 601 may be connected to the memory 602 and the network interface 603 through a bus. Among them, the computer device may be a terminal device or a server.

[0217] The processor 601 is configured to support the transaction processing device of the blockchain network to execute the corresponding functions in the above-mentioned transaction processing method of the blockchain network. The processor 601 may be a central processing unit (CPU), a network processor (NP), a hardware chip, or any combination thereof. The above hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The above PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0218] The memory 602 is used to store program codes and the like. The memory 602 may include a volatile memory (VM), such as a random access memory (RAM); the memory 602 may also include a non-volatile memory (NVM), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); the memory 602 may further include a combination of the above types of memories.

[0219] The network interface 603 is used to provide network communication functions.

[0220] The processor 601 may call the program code to perform the following operations:

[0221] In response to a resource conversion request, obtain the resource conversion pair included in the resource conversion request; the resource conversion pair includes a first resource type and a second resource type, and the resource conversion pair is used to convert digital resources of the first resource type into digital resources of the second resource type;

[0222] Call the transaction query interfaces of N decentralized exchanges to obtain the resource conversion rates of each decentralized exchange for the resource conversion pair and the additional resource consumption required to execute the transaction; N is a positive integer;

[0223] Based on the resource conversion rates and additional resource consumptions of the N decentralized exchanges for the resource conversion pair, generate aggregated display content and output the aggregated display content to the transaction initiation interface;

[0224] In the transaction initiation interface, select a target decentralized exchange from the N decentralized exchanges and initiate a resource conversion transaction to the target decentralized exchange based on the resource conversion pair, so that the target decentralized exchange executes the resource conversion transaction based on the resource conversion rate and additional resource consumption belonging to the aggregated display content; the resource conversion transaction is used to convert digital resources of the first resource type into digital resources of the second resource type.

[0225] It should be understood that the computer device 60 described in the embodiments of the present application can execute the descriptions of the transaction processing method of the above blockchain network in the corresponding embodiments described previously Figure 3 and Figure 4 and can also execute the descriptions of the transaction processing device of the above blockchain network in the corresponding embodiments described previously Figure 5 and will not be elaborated here. In addition, the description of the beneficial effects of adopting the same method will not be elaborated either.

[0226] In an embodiment of the present application, in response to a resource conversion request, a resource conversion pair included in the resource conversion request is obtained; the resource conversion pair includes a first resource type and a second resource type, and the resource conversion pair is used to convert a digital resource of the first resource type into a digital resource of the second resource type; the transaction query interfaces of N decentralized exchanges are called to obtain the resource conversion rate of each decentralized exchange for the resource conversion pair and the additional resource consumption required to execute the transaction; based on the resource conversion rate and additional resource consumption of each of the N decentralized exchanges for the resource conversion pair, aggregated display content is generated and the aggregated display content is output to the transaction initiation interface; in the transaction initiation interface, a target decentralized exchange is selected from the N decentralized exchanges, and a resource conversion transaction is initiated to the target decentralized exchange based on the resource conversion pair, so that the target decentralized exchange executes the resource conversion transaction based on the resource conversion rate and additional resource consumption belonging to the aggregated display content; the resource conversion transaction is used to convert a digital resource of the first resource type into a digital resource of the second resource type. By aggregating and displaying the resource conversion rate and additional resource consumption of each of the N decentralized exchanges for the resource conversion pair in the transaction initiation interface, it is convenient to select a target decentralized exchange that needs to execute the transaction from the N decentralized exchanges, without having to continuously switch and log in to the N decentralized exchanges to compare the resource conversion rate of each decentralized exchange for the resource conversion pair and the additional resource consumption required to execute the transaction, which can improve the accuracy and flexibility of selecting a decentralized exchange. And since the resource conversion transaction can be directly initiated in the transaction initiation interface without having to log in to the decentralized exchange to initiate the resource conversion transaction, the transaction efficiency can be improved and the transaction experience can be increased.

[0227] Optionally, when the program instruction is executed by the processor, other steps of the method in the above embodiment may also be implemented, which will not be elaborated here.

[0228] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a computer, the computer is caused to execute the method of the foregoing embodiment, and the computer may be a part of the computer device mentioned above. As an example, the program instructions may be deployed to be executed on a computer device, or deployed to be executed on multiple computer devices located at one location, or, executed on multiple computer devices distributed at multiple locations and interconnected by a communication network, and the multiple computer devices distributed at multiple locations and interconnected by a communication network may form a blockchain network.

[0229] The embodiments of the present application also provide a computer program product, which includes computer programs / instructions. When the computer programs / instructions are executed by a processor, some or all of the steps in the above method can be implemented. For example, 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 executes the steps performed in the embodiments of the above various methods.

[0230] 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 an overall module or unit that includes the functions of the module or unit.

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

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

[0233] The method and related devices provided by the embodiments of the present application are described with reference to the method flowcharts and / or structural schematic diagrams provided by the embodiments of the present application. Specifically, each process and / or block of the method flowchart and / or structural schematic diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable transaction processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable transaction processing devices generate a device for realizing the functions specified in one or more processes of the flowchart and / or one or more blocks of the structural schematic diagram. These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable transaction processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device realizes the functions specified in one or more processes of the flowchart and / or one or more blocks of the structural schematic diagram. These computer program instructions can also be loaded onto a computer or other programmable transaction processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for realizing the functions specified in one or more processes of the flowchart and / or one or more blocks of the structural schematic diagram.

[0234] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The above program can be stored in a computer-readable storage medium. When the above program is executed, it can include the processes of the embodiments of the above methods. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM), etc.

[0235] The above-disclosed are only the preferred embodiments of the present application. Of course, the scope of rights of the present application cannot be limited thereby. 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 transaction processing method for a blockchain network, characterized in that, The method includes: In response to a resource conversion request, obtaining a resource conversion pair included in the resource conversion request; the resource conversion pair includes a first resource type and a second resource type, and the resource conversion pair is used to convert a digital resource of the first resource type into a digital resource of the second resource type; Invoking the transaction query interfaces of N decentralized exchanges to obtain the resource conversion rate of each decentralized exchange for the resource conversion pair and the additional resource consumption required to execute the transaction; N is a positive integer; Based on the resource conversion rates and additional resource consumptions of the N decentralized exchanges for the resource conversion pair, generating aggregated display content and outputting the aggregated display content to a transaction initiation interface; In the transaction initiation interface, selecting a target decentralized exchange from the N decentralized exchanges and initiating a resource conversion transaction to the target decentralized exchange based on the resource conversion pair, so that the target decentralized exchange executes the resource conversion transaction based on the resource conversion rate and additional resource consumption belonging to the aggregated display content; the resource conversion transaction is used to convert a digital resource of the first resource type into a digital resource of the second resource type.

2. The method according to claim 1, characterized in that, The generating the aggregated display content based on the resource conversion rates and additional resource consumptions of the N decentralized exchanges for the resource conversion pair includes: Based on the resource conversion rates and additional resource consumptions of the N decentralized exchanges for the resource conversion pair, determining the transaction priority of each decentralized exchange; Based on the resource conversion rate and additional resource consumption of each decentralized exchange, generating the display content of each decentralized exchange; the display content of any one decentralized exchange includes the resource conversion rate and additional resource consumption of the any one decentralized exchange for the resource conversion pair; Based on the transaction priority of each decentralized exchange, performing a sorting process on the display content of the N decentralized exchanges to obtain sorted display content; Performing an aggregation process on the sorted display content to generate the aggregated display content.

3. The method according to claim 2, wherein The determining the transaction priority of each decentralized exchange based on the resource conversion rates and additional resource consumptions of the N decentralized exchanges for the resource conversion pair includes: Obtaining a plurality of first reference intervals set for the resource conversion rate, a plurality of second reference intervals set for the additional resource consumption, and a plurality of priority mapping intervals; each first reference interval has a corresponding first priority index, each second reference interval has a corresponding second priority index, and each priority mapping interval has a mapped transaction priority; Obtaining the first priority index corresponding to the first reference interval to which the resource conversion rate of each decentralized exchange for the resource conversion pair belongs as the first target priority index corresponding to each decentralized exchange; Obtain the second priority index corresponding to the second reference interval of the additional resource consumption of each decentralized exchange for the resource conversion pair as the second target priority index corresponding to each decentralized exchange; Perform a summation process on the first target priority index and the second target priority index corresponding to each decentralized exchange respectively to obtain the summation priority index corresponding to each decentralized exchange; Determine the trading priority corresponding to the priority mapping interval of the summation priority index corresponding to each decentralized exchange as the trading priority of each decentralized exchange.

4. The method according to claim 2, wherein The method further includes: Determine the decentralized exchange to which the display content ranked first in the sorted display content belongs as the decentralized exchange to be recommended; Generate recommendation information for the decentralized exchange to be recommended and display the recommendation information in the transaction initiation interface; In the transaction initiation interface, selecting a target decentralized exchange from the N decentralized exchanges includes: In response to a transaction confirmation operation based on the recommendation information, determine the decentralized exchange to be recommended in the recommendation information as the target decentralized exchange.

5. The method according to claim 1, wherein The resource conversion rates of the N decentralized exchanges for the resource conversion pair are dynamically changing; in the transaction initiation interface, selecting a target decentralized exchange from the N decentralized exchanges includes: In the transaction initiation interface, obtain the expected conversion rate set for the resource conversion rate for the resource conversion pair; when the expected conversion rate is set, the resource conversion rates of the N decentralized exchanges for the resource conversion pair are all greater than the expected conversion rate; When there is a resource conversion rate less than or equal to the expected conversion rate among the resource conversion rates of the N decentralized exchanges for the resource conversion pair, determine the decentralized exchange to which the resource conversion rate less than or equal to the expected conversion rate belongs as the target decentralized exchange.

6. The method according to claim 1, wherein Selecting a target decentralized exchange from the N decentralized exchanges includes: In response to a transaction splitting operation, obtain the set transaction splitting quantity M; M is a positive integer; Based on the transaction splitting quantity, select M target decentralized exchanges; one target decentralized exchange corresponds to one resource conversion transaction; Initiating a resource conversion transaction to the target decentralized exchange based on the resource conversion pair includes: Generate a resource conversion transaction corresponding to each target decentralized exchange based on the resource conversion pair, and initiate the resource conversion transaction corresponding to each target decentralized exchange to each target decentralized exchange respectively.

7. The method according to claim 6, characterized in that, Generating a resource conversion transaction corresponding to each target decentralized exchange based on the resource conversion pair includes: Obtain the resource conversion quantity of the digital resource of the first resource type to be converted; Perform an average splitting process on the resource conversion quantity based on the transaction splitting quantity to obtain M split resource conversion quantities; Allocate the M split resource conversion amounts to each of the target decentralized exchanges respectively; Based on the resource conversion pairs and the split resource conversion amounts allocated to each of the target decentralized exchanges, generate resource conversion transactions respectively corresponding to each of the target decentralized exchanges; Among them, the resource conversion transaction corresponding to any one of the target decentralized exchanges is used to convert digital resources of the first resource type with a resource conversion amount equal to the split resource conversion amount allocated to the any one of the target decentralized exchanges into digital resources of the second resource type.

8. The method according to claim 1, characterized in that The initiating of the resource conversion transaction to the target decentralized exchange based on the resource conversion pair includes: Obtain the first digital resource of the first resource type to be converted and the second digital resource of the third resource type from the object account of the target object; the third resource type is the resource type of the general resource in the target decentralized exchange, and the resource conversion amount of the second digital resource is the additional resource consumption amount required for the target decentralized exchange to execute the transaction; Initiate the resource conversion transaction to the target decentralized exchange based on the first digital resource and the second digital resource; Among them, the target decentralized exchange is used to convert the first digital resource according to the resource conversion rate it belongs to into digital resources of the second resource type.

9. The method according to claim 1, wherein The additional resource consumption amount required for any one of the decentralized exchanges to execute the transaction includes at least one of the following: The resource consumption amount generated by the relevant operations for any one of the decentralized exchanges to execute the transaction, and the resource consumption amount generated by the contract call when any one of the decentralized exchanges calls the contract to execute the transaction.

10. A transaction processing device for a blockchain network, characterized in that, The device includes: A resource acquisition unit, configured to acquire the resource conversion pairs included in the resource conversion request in response to the resource conversion request; the resource conversion pairs include a first resource type and a second resource type, and the resource conversion pairs are used to convert digital resources of the first resource type into digital resources of the second resource type; An interface call unit, configured to call the transaction query interfaces of N decentralized exchanges to obtain the resource conversion rates of each decentralized exchange for the resource conversion pair respectively, and the additional resource consumption amounts required to execute the transaction; N is a positive integer; An aggregation display unit, configured to generate aggregation display content based on the resource conversion rates and additional resource consumption amounts of each of the N decentralized exchanges for the resource conversion pair, and output the aggregation display content to the transaction initiation interface; A transaction execution unit, configured to select a target decentralized exchange from the N decentralized exchanges in the transaction initiation interface, and initiate a resource conversion transaction to the target decentralized exchange based on the resource conversion pair, so that the target decentralized exchange executes the resource conversion transaction based on the resource conversion rate and additional resource consumption amount belonging to the aggregation display content; the resource conversion transaction is used to convert digital resources of the first resource type into digital resources of the second resource type.

11. A computer device, characterized in that, It includes a processor and a memory. Among them, the processor is connected to the memory, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer program executes the method according to any one of claims 1-9.

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

13. A computer program product, characterized in that, The computer program product includes a computer program / instructions, and when the computer program / instructions are executed by a processor, the method according to any one of claims 1-9 is implemented.