Inquiry transaction processing method and device based on block chain, and storage medium
By signing and executing transaction contracts on the blockchain and using target digital collections and virtual resources for transactions, the problem of high risk of digital resources and asset operations is solved, and the security and authenticity of transaction processes are improved.
Patent Information
- Application Number
- CN202310849583.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-11
- Publication Date
- 2025-01-14
AI Technical Summary
In the existing blockchain-based inquiry and transaction solutions, the operational risks of digital resources and digital assets are high, resulting in insufficient security.
Collect transaction inquiries through blockchain links, send transaction quotes, and sign and execute transaction contracts on the blockchain, use target digital collections and virtual resources to trade, and avoid directly using digital assets and resources to trade.
It reduces the operational risks of digital resources and assets, improves their security, and ensures the authenticity and tamper-proof of transaction processes through on-chain evidence storage.
Smart Images

Figure CN119313417A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a blockchain-based inquiry transaction processing method, device and storage medium. Background Art
[0002] At present, the inquiry transaction mainly adopts the mode of "offline signing", "online inquiry" and "online agreement". Although this mode can constitute a complete inquiry transaction process, there are problems such as information opacity, many manual intervention links, and difficulty in controlling non-standard processes. In order to solve these problems, the relevant technology proposes a technical solution to realize the inquiry transaction process using blockchain technology, so as to overcome the problems of information opacity, many manual intervention links, and difficulty in controlling non-standard processes to a certain extent.
[0003] However, in the current blockchain-based inquiry transaction scheme, both parties conduct direct transactions based on digital resources and digital assets, which is prone to operational risks caused by improper operation of digital resources and digital assets, and therefore easily affects the security of digital resources and digital assets. Summary of the invention
[0004] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0005] The embodiments of the present invention provide a blockchain-based inquiry transaction processing method, device and storage medium, which can improve the security of digital resources and digital assets.
[0006] On the one hand, an embodiment of the present invention provides a method for processing a price inquiry transaction based on blockchain, comprising the following steps:
[0007] Receiving a transaction inquiry for a target digital asset sent by a first object through a blockchain, and sending a transaction quotation to the first object through the blockchain according to the transaction inquiry;
[0008] When the first object agrees to the transaction offer, a transaction contract is signed with the first object, the transaction contract is uploaded to the blockchain, and the transaction contract is executed in the blockchain, wherein the transaction contract includes the target digital resources required for trading the target digital assets;
[0009] In the process of executing the transaction contract in the blockchain, a target digital collectible used to represent the target digital asset and a target virtual resource used to represent the target digital resource are determined, and the first object is subjected to transfer-out processing for the target virtual resource according to the transaction contract, and the target digital collectible is transferred to the first object according to the transaction contract.
[0010] On the other hand, an embodiment of the present invention further provides a blockchain-based inquiry transaction processing device, comprising:
[0011] A transaction negotiation unit, configured to receive a transaction inquiry for a target digital asset sent by a first object through a blockchain, and send a transaction quotation to the first object through the blockchain according to the transaction inquiry;
[0012] A contract signing unit, configured to sign a transaction contract with the first object when the first object agrees to the transaction quotation, upload the transaction contract to the blockchain, and execute the transaction contract in the blockchain, wherein the transaction contract includes the target digital resources required for trading the target digital assets;
[0013] A contract execution unit is used to determine, during the process of executing the transaction contract in the blockchain, a target digital collectible used to represent the target digital asset and a target virtual resource used to represent the target digital resource, perform a transfer-out process on the first object for the target virtual resource according to the transaction contract, and transfer the target digital collectible to the first object according to the transaction contract.
[0014] Optionally, the price inquiry transaction processing device further includes:
[0015] a virtual resource generating unit, configured to generate the target virtual resource according to the target digital resource in response to receiving the target digital resource transferred by the first object;
[0016] A virtual resource allocation unit is used to allocate the target virtual resource to the first virtual resource account of the first object through the blockchain.
[0017] Optionally, the price inquiry transaction processing device further includes:
[0018] a virtual resource deduction unit, configured to, in response to the first object initiating a transfer-out process on the virtual resources to be transferred out in the first virtual resource account through the blockchain, deduct the virtual resources to be transferred out from the first virtual resource account;
[0019] A first resource transfer unit, configured to transfer a first digital resource to a first digital resource account of the first object according to the virtual resource to be transferred out, wherein the first digital resource is equivalent to the virtual resource to be transferred out;
[0020] A virtual resource destruction unit is used to destroy the virtual resource to be transferred out in the blockchain.
[0021] Optionally, the target digital asset belongs to the second object, and the price inquiry transaction processing device further includes:
[0022] A digital collection generation unit, configured to upload the target digital asset to the blockchain in response to the second object request, and generate the target digital collection according to the target digital asset;
[0023] A digital collection allocation unit is used to allocate the target digital collection to the second digital collection account of the second object through the blockchain, and deduct the target digital asset from the second digital asset account of the second object.
[0024] Optionally, the price inquiry transaction processing device further includes:
[0025] a digital collection deduction unit, configured to, in response to the second object initiating a transfer process for the digital collection to be transferred out in the second digital collection account through the blockchain, deduct the digital collection to be transferred out from the second digital collection account;
[0026] A digital asset transfer unit, configured to transfer a second digital asset to a second digital asset account of the second object according to the digital collection to be transferred out, wherein the second digital asset is equivalent to the digital collection to be transferred out;
[0027] A digital collection destruction unit is used to destroy the digital collection to be transferred out in the blockchain.
[0028] Optionally, the transaction negotiation unit is further configured to:
[0029] Calling the off-chain data acquisition contract according to the transaction inquiry, and sending a first off-chain data request to the off-chain data acquisition node;
[0030] Receiving the first off-chain data acquired by the off-chain data acquisition node according to the first off-chain data request, and generating a transaction quotation for the target digital asset according to the first off-chain data;
[0031] The transaction offer is sent to the first object through the blockchain.
[0032] Optionally, the target digital collectible belongs to the second object, and the transaction negotiation unit is further used to:
[0033] Obtaining a selling quotation of the second object for the target digital collectible through the blockchain according to the transaction inquiry;
[0034] Obtaining a transaction quotation for the target digital asset according to the selling quotation;
[0035] The transaction offer is sent to the first object through the blockchain.
[0036] Optionally, the price inquiry transaction processing device further includes:
[0037] An off-chain data request unit, configured to, in response to the expiration of the transaction contract, call the off-chain data acquisition contract to send a second off-chain data request to the off-chain data acquisition node;
[0038] a settlement information acquisition unit, configured to receive the second off-chain data acquired by the off-chain data acquisition node according to the second off-chain data request, and obtain transaction settlement information according to the second off-chain data;
[0039] A value-added resource acquisition unit, configured to obtain a value-added virtual resource according to the transaction settlement information, the target digital collection and the target virtual resource;
[0040] A second resource transfer unit, configured to transfer a second digital resource to the first digital resource account of the first object according to the value-added virtual resource when the value-added virtual resource is positive, wherein the second digital resource is equivalent to the value-added virtual resource;
[0041] A resource destruction unit is used to destroy the value-added virtual resources and the target digital collection in the blockchain.
[0042] Optionally, the second resource transfer unit is further used for:
[0043] When the added-value virtual resource is a negative value, determining the difference between the absolute value of the added-value virtual resource and the reserved resource, wherein the reserved resource is used to allow the first object to have the right to dispose of the target digital collection;
[0044] When the absolute value of the added-value virtual resource is greater than the retained resource, the first object's disposal authority over the target digital collection is released, so that the target digital collection is in a state that can be traded at any time.
[0045] Optionally, the contract signing unit is further used for:
[0046] Agreeing on the contract content with the first party according to the transaction quotation;
[0047] Setting trigger condition information in the contract content to obtain the transaction contract;
[0048] The trigger condition information describes the trigger conditions for executing the transaction contract.
[0049] Optionally, the target digital collectible belongs to the second object, and the contract execution unit is further used to:
[0050] adding the target virtual resource in the second virtual resource account of the second object according to the transaction contract;
[0051] The target digital collection is deducted from the second digital collection account of the second object according to the transaction contract.
[0052] On the other hand, an embodiment of the present invention further provides a blockchain-based inquiry transaction processing device, comprising:
[0053] at least one processor;
[0054] at least one memory for storing at least one program;
[0055] When at least one of the programs is executed by at least one of the processors, the blockchain-based inquiry transaction processing method as described above is implemented.
[0056] On the other hand, an embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program executable by a processor, and the computer program executable by the processor is used to implement the blockchain-based inquiry transaction processing method as described above when executed by the processor.
[0057] On the other hand, an embodiment of the present invention further provides a computer program product, including a computer program or computer instructions, wherein the computer program or the computer instructions are stored in a computer-readable storage medium, and the processor of the blockchain-based inquiry transaction processing device reads the computer program or the computer instructions from the computer-readable storage medium, and the processor executes the computer program or the computer instructions, so that the inquiry transaction processing device performs the blockchain-based inquiry transaction processing method as described above.
[0058] The embodiments of the present invention include at least the following beneficial effects: when a transaction inquiry for a target digital asset sent by a first object is received through a blockchain, a transaction quotation is sent to the first object through the blockchain according to the transaction inquiry; when the first object agrees to the transaction quotation, a transaction contract is signed with the first object, the transaction contract is uploaded to the blockchain, and the transaction contract is executed in the blockchain; since the transaction inquiry sent by the first object, the transaction quotation sent to the first object, and the transaction contract signed with the first object are all carried out through the blockchain, manual intervention can be reduced, and key link information of the inquiry transaction process can be uploaded to the chain for evidence storage, thereby ensuring the authenticity and tamper-proof of the inquiry transaction process. In addition, in the process of executing a transaction contract in the blockchain, the target digital collection used to represent the target digital asset and the target virtual resource used to represent the target digital resource are first determined, and then the target virtual resource is transferred out of the first object according to the transaction contract, and the target digital collection is transferred to the first object according to the transaction contract to complete the inquiry transaction for the target digital asset. That is to say, in the process of executing the transaction contract, the execution of the transaction contract is achieved through the target digital collection that can represent the target digital asset and the target virtual resource that can represent the target digital resource. Therefore, it is possible to avoid directly using digital assets and digital resources to execute the transaction contract, thereby reducing the operational risks of digital resources and digital assets, and further improving the security of digital resources and digital assets.
[0059] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.
[0061] Figure 1 It is a flowchart of using blockchain technology to realize inquiry transactions in related technologies;
[0062] Figure 2 is a schematic diagram of an implementation environment provided by an embodiment of the present invention;
[0063] Figure 3 It is a schematic diagram of key information links of on-chain evidence storage performed by securities firms and custodian banks provided by an embodiment of the present invention;
[0064] Figure 4 It is a schematic diagram of a smart contract called by a business node in a price inquiry transaction process provided by an embodiment of the present invention;
[0065] Figure 5 It is a schematic diagram of an architecture platform for executing a price inquiry transaction processing method provided by an embodiment of the present invention;
[0066] Figure 6 is a schematic diagram of an application scenario provided by an embodiment of the present invention;
[0067] Figure 7 is a schematic diagram of another application scenario provided by an embodiment of the present invention;
[0068] Figure 8 It is a flowchart of a method for processing price inquiry transactions based on blockchain provided by an embodiment of the present invention;
[0069] Fig. 9 is a schematic diagram of a process of signing a transaction contract between a transaction service node and a first object provided by an embodiment of the present invention;
[0070] Fig.10 is a schematic diagram of a process of matching a transaction between a first object and a second object through a blockchain provided by an embodiment of the present invention;
[0071] Fig.11 It is a schematic diagram of the process of putting the target virtual resources and the target digital collection on the chain provided by an embodiment of the present invention;
[0072] Fig.12 It is a schematic diagram of a process of transferring out virtual resources and digital collections to be transferred out provided by an embodiment of the present invention;
[0073] Fig.13 It is a schematic diagram of a transaction settlement process when the value-added virtual resource provided by an embodiment of the present invention is positive;
[0074] Fig.14 It is a schematic diagram of a transaction settlement process when the added-value virtual resource provided by an embodiment of the present invention is a negative value;
[0075] Fig.15 It is a schematic diagram of an application scenario of the method for executing a price inquiry transaction processing provided by an embodiment of the present invention;
[0076] Fig.16 It is a flowchart of a method for processing price inquiry transactions based on blockchain provided by an example of the present invention;
[0077] Fig.17 It is a schematic diagram of a price inquiry transaction processing device based on blockchain provided by an embodiment of the present invention;
[0078] Fig.18 It is a schematic diagram of another blockchain-based inquiry transaction processing device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0079] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments. The described embodiments should not be regarded as limiting the present invention, and all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0080] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0081] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein are only for the purpose of describing the embodiments of the present invention and are not intended to limit the present invention.
[0082] Before further describing the embodiments of the present invention in detail, the nouns and terms involved in the embodiments of the present invention are described. The nouns and terms involved in the embodiments of the present invention are subject to the following interpretations.
[0083] 1) Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer and application service layer. Blockchain can include public chain, alliance chain and private chain. Among them, public chain refers to a blockchain that anyone can enter the blockchain network at any time to read data, send data or compete for accounting; alliance chain refers to a blockchain jointly managed by several organizations or institutions; private chain refers to a blockchain with certain centralized control. The write right of the private chain account book is controlled by a certain organization or institution, and the access and use of data are strictly managed by permissions.
[0084] 2) Smart contracts are programs that run on the blockchain. Smart contracts need to ensure that the results of running in every node of the blockchain network are exactly the same, so that any node can verify whether the results of the smart contract execution in the block are correct. A smart contract can include multiple contract methods, which refers to the method by which the smart contract executes transactions in the blockchain transaction pool.
[0085] 3) Inquiry transaction means that the two parties with a mutual credit relationship directly inquire and negotiate on the content and time of the transaction, and confirm the transaction after reaching a consensus.
[0086] At present, price inquiry transactions, such as derivative price inquiry transactions with securities firms, mainly adopt the modes of "offline contract signing", "online price inquiry" and "online agreement". Among them, "offline contract signing" refers to the user and the third-party trading institution signing the transaction master agreement (such as SAC agreement) and related supplementary agreements, so that the third-party trading institution (such as securities firms, etc.) can serve as a safe price inquiry trading platform to ensure that the user's transaction can be carried out smoothly; "online price inquiry" means that the user can inquire about the price of the third-party trading institution online as needed, and the third-party trading institution will then provide the user with the premium price (premium ratio); "online agreement" means that after the user and the third-party trading institution finalize the transaction scale and transaction price, they need to use the authorized mailbox to send a formal transaction application email to the mailbox specified by the third-party trading institution to complete the transaction agreement between the two parties. The content of the transaction agreement includes the name of the underlying, term, strike price, name of the derivative structure, scale, option quotation, option premium and transaction time. Although the above process can constitute a complete price inquiry transaction process, this process has a considerable degree of operational risk. For example, when users make online inquiries, the inquiry process will not be legally recorded. Although the user has signed an agreement with the third-party trading institution, in the actual inquiry process, it is easy for problems such as contract cancellation or price disputes to occur due to speech errors or other reasons. Therefore, the current inquiry transaction process has problems such as information opacity, many manual intervention links, and difficulty in controlling non-standard processes, which affects the rigor and efficiency of the inquiry transaction.
[0087] In order to solve these problems, the related technology proposes a technical solution of using blockchain technology to realize the inquiry transaction process. Figure 1As shown, the scheme in the related technology mainly includes steps 110 to 140, wherein, in step 110, before the user conducts an inquiry transaction with a third-party transaction institution, the third-party transaction institution will first verify the identity and access of the user; after the identity and access verification of the user, in step 120, the third-party transaction institution will sign a transaction master agreement (such as a SAC agreement) and related supplementary agreements with the user, and the agreement contract signed by both parties will be put on the blockchain, so that the agreement contract signed by both parties can achieve compliance management and risk management through the blockchain; then, in step 130, the user conducts an inquiry transaction with the third-party transaction institution; after the two parties complete the inquiry transaction, in step 140, the third-party transaction institution manages and settles the transaction products. In this technical scheme, by applying blockchain technology to the inquiry transaction process, problems such as information opacity, multiple manual intervention links, and difficulty in controlling non-standard processes can be overcome to a certain extent. However, in this technical solution, only the agreement contract signed by both parties during the signing process is put on the chain for evidence storage, which is not enough to avoid operational risks that may arise in other links, such as the inquiry stage; moreover, in this technical solution, both parties conduct direct transactions based on digital resources and digital assets, which may easily lead to operational risks caused by improper operation of digital resources and digital assets, and thus may easily affect the security of digital resources and digital assets.
[0088] In order to avoid operational risks in various links of inquiry transactions and improve the security of digital resources and digital assets, embodiments of the present invention provide an inquiry transaction processing method based on blockchain, an inquiry transaction processing device based on blockchain, a computer-readable storage medium, and a computer program product. When a transaction inquiry for a target digital asset sent by a first object is received through a blockchain, a transaction quotation is sent to the first object through the blockchain according to the transaction inquiry. When the first object agrees to the transaction quotation, a transaction contract is signed with the first object, the transaction contract is uploaded to the blockchain, and the transaction contract is executed in the blockchain. Since the transaction inquiry sent by the first object, the transaction quotation sent to the first object, and the transaction contract signed with the first object are all carried out through the blockchain, manual intervention can be reduced, and the key link information of the inquiry transaction process can be uploaded to the chain for evidence storage, thereby ensuring the authenticity and tamper-proof of the inquiry transaction process, and thus avoiding operational risks in various links of the inquiry transaction. In addition, in the process of executing a transaction contract in the blockchain, the target digital collection used to represent the target digital asset and the target virtual resource used to represent the target digital resource are first determined, and then the target virtual resource is transferred out of the first object according to the transaction contract, and the target digital collection is transferred to the first object according to the transaction contract to complete the inquiry transaction for the target digital asset. That is to say, in the process of executing the transaction contract, the execution of the transaction contract is achieved through the target digital collection that can represent the target digital asset and the target virtual resource that can represent the target digital resource. Therefore, it is possible to avoid directly using digital assets and digital resources to execute the transaction contract, thereby reducing the operational risks of digital resources and digital assets, and further improving the security of digital resources and digital assets.
[0089] Reference Figure 2 , Figure 2 1 is a schematic diagram of an implementation environment provided by an embodiment of the present invention. The implementation environment may include multiple user terminals 101, resource hosting nodes 102, transaction service nodes 103, control nodes 104, and audit nodes 105. The user terminals 101, resource hosting nodes 102, and transaction service nodes 103 may be directly or indirectly connected to each other through wired or wireless communication, and the transaction service node 103 may be directly or indirectly connected to the control node 104 and the audit node 105 through wired or wireless communication. Among them, the user terminal 101, resource hosting node 102, transaction service node 103, control node 104, and audit node 105 may all be nodes in the blockchain, and this embodiment does not specifically limit this.
[0090] The user terminal 101 may include but is not limited to a smart phone, a tablet, a computer, an intelligent voice interaction device, a smart home appliance, a vehicle terminal, an aircraft, etc. Optionally, the user terminal 101 may be installed with a price inquiry transaction client, and the user may conduct a price inquiry transaction with the transaction service node 103 through the price inquiry transaction client.
[0091] The resource hosting node 102, transaction service node 103, management and control node 104 and audit node 105 can all be independent physical servers, or they can be server clusters or distributed systems composed of multiple physical servers. They can also be cloud servers that provide 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, CDN (Content Delivery Network) and big data and artificial intelligence platforms.
[0092] In the case where the user terminal 101, the resource hosting node 102, the transaction service node 103, the control node 104 and the audit node 105 are all nodes in the blockchain, the resource hosting node 102, the transaction service node 103, the control node 104 and the audit node 105 have different role permissions in the blockchain. For example, the resource hosting node 102 and the transaction service node 103 can participate in the inquiry transaction processing flow based on the blockchain as business nodes in the blockchain, and the resource hosting node 102 and the transaction service node 103 can only query their respective business-related data information in the blockchain, so that the data information of the resource hosting node 102 and the transaction service node 103 can be isolated and protected, effectively avoiding data risks. The control node 104 can be used as a consensus node in the blockchain, and the control node 104 can query all data information in the blockchain. In addition, the control node 104 can also dynamically control the entire inquiry transaction processing flow by setting relevant business logic, and can formulate different control methods for different transaction entities. The audit node 105 can serve as an independent witness node in the blockchain. After obtaining permission from other business nodes, the audit node 105 can obtain the on-chain information of the business node, thereby realizing the audit processing of the business node by comparing the on-chain data with the actual system data.
[0093] At each key link in the inquiry transaction process, the resource hosting node 102 and the transaction service node 103 will store different key link information on the chain, so as to ensure the authenticity and tamper-proof nature of the inquiry transaction process. For example, in the early stage of the inquiry transaction, the transaction service node 103 can store the electronic contract information between the user terminal 101 and the inquiry information of both parties on the chain; in the middle stage of the inquiry transaction, the transaction service node 103 can store the transaction instructions sent by the user terminal 101 and the operation instruction voucher of the transaction service node 103 on the chain; in the late stage of the inquiry transaction, when the transaction expires, the resource hosting node 102 and the transaction service node 103 can store the transaction settlement information on the chain. Taking the resource hosting node 102 as a custodian bank and the transaction service node 103 as a securities firm as an example, the key link information stored on the chain by the resource hosting node 102 and the transaction service node 103 will be specifically explained. For example Figure 3 As shown, Figure 3 The key information of the on-chain evidence storage by securities firms and custodian banks is shown as an example. Figure 3 In the pre-inquiry transaction stage 310, the brokerage firm can store the electronic contract information 311 between it and the client and the inquiry information 312 of both parties on the chain, where the inquiry information 312 of both parties may include information such as the subject matter, term, exercise price, and estimated scale; in the mid-term inquiry transaction stage 320, the brokerage firm can store the transaction instructions 321 sent by the client and the brokerage firm's operation instruction voucher 322 on the chain, where the transaction instructions 321 sent by the client may include information such as the principal amount, subject matter, term, transaction time range, exercise price, whether there is a price limit, and estimated scale, and the brokerage firm's operation instruction voucher 322 may include information such as the client's funds arrival flow voucher and the hedging transaction position establishment record. In the later stage 330 of the inquiry transaction, when the transaction expires, the securities firm and the custodian bank can clear and settle the funds according to the execution of the transaction, and upload the corresponding settlement information 331 to the chain. For example, the custodian bank will transfer the expired funds according to the instructions sent by the securities firm. At this time, the transfer certificate (i.e., the settlement information 331) will be uploaded to the chain as an important data certificate after the transaction. In addition, when the transaction is terminated due to abnormal circumstances such as market fluctuations or breach of contract between the client and the securities firm, the transaction termination record 332 will also be uploaded to the chain as an important data certificate after the transaction. The transaction termination record 332 may include information such as the termination date, reason, and fund settlement flow.
[0094] At each key link of the inquiry transaction process, different nodes will call different smart contracts in the blockchain to perform different transaction tasks, thereby achieving the purpose of reducing manual intervention. For example, in the early stage of the inquiry transaction, the transaction service node 103 can call the smart contract in the blockchain to implement the signing of the transaction master agreement and related supplementary agreements between the transaction service node 103 and the user terminal 101; in the middle stage of the inquiry transaction, the transaction service node 103 can call the smart contract in the blockchain to implement the signing of the transaction contract between the transaction service node 103 and the user terminal 101; in the late stage of the inquiry transaction, the resource hosting node 102 can call the smart contract in the blockchain to settle the transaction. In addition, the control node 104 can implement control over the overall process of the inquiry transaction process, and can timely intervene in risky transactions in the process by calling the smart contract in the blockchain; the audit node 105 can call the smart contract in the blockchain to regularly review the compliance of the contracts of each business node. The following uses the resource hosting node 102 as a hosting bank, the transaction service node 103 as a securities firm, the control node 104 as a control agency, and the audit node 105 as an internal and external audit center as an example to specifically describe the smart contracts in the blockchain called by each node in the inquiry transaction process. Figure 4 As shown, Figure 4 The following example shows the smart contracts in the blockchain that are called by nodes such as brokers and custodian banks in the price inquiry transaction process. Figure 4In the pre-inquiry transaction stage 410, the brokerage firm can call the transaction contract agreement smart contract 411 in the blockchain to negotiate the transaction contract with the customer. On the basis that the transaction contract includes the original electronic signing information and the inquiry information of both parties, the triggering conditions of the transaction contract can also be agreed in the transaction contract. For example, both parties need to meet the condition that the funds have been transferred to the account before the transaction contract is executed; in the mid-inquiry transaction stage 420, the brokerage firm can call the quotation smart contract 421 and the transaction matching smart contract 422 in the blockchain to realize the signing of the transaction contract between the brokerage firm and the customer, among which the quotation smart contract 421 and the transaction matching smart contract 422 can be a pre-agreed template. After determining the quotation and time information, these information are filled into the template as parameters to form a complete contract. In the later stage of the inquiry transaction 430, when the transaction expires, the custodian bank can call the transaction settlement smart contract 431 in the blockchain to settle the transaction, which can avoid manual operation of funds and cause operational risks. In addition, the custodian bank can also call the risk transaction freezing smart contract 432 in the blockchain to conduct real-time dynamic control of the transaction. Once the transaction risk is found, the risk transaction freezing smart contract 432 can be executed to freeze the transaction contract of both parties. In addition, the control agency can implement control over the entire process of the inquiry transaction process, and can timely intervene in the risk transaction in the process by calling the risk warning smart contract 441 in the blockchain; the internal and external audit center can call the risk warning smart contract 442 in the blockchain to conduct regular reviews of the compliance of the contracts of each business node.
[0095] Reference Figure 5 As shown, Figure 5 The following is a schematic diagram of an architecture platform for executing a price inquiry transaction processing method provided by an example. Figure 5In the example, the architecture platform may include a first securities firm 510, a second securities firm 520, a custodian bank 530, a control agency 540, and an internal and external audit center 550. The first securities firm 510, the second securities firm 520, the custodian bank 530, the control agency 540, and the internal and external audit center 550 are all nodes in the blockchain, and the first securities firm 510, the second securities firm 520, the custodian bank 530, the control agency 540, and the internal and external audit center 550 form a double-layer chain architecture, wherein the double-layer chain architecture means that the first securities firm 510, the second securities firm 520, and the custodian bank 530 are all business nodes in the blockchain, and the business nodes in the blockchain only have the authority to query and upload business data related to them; the control agency 540 and the internal and external audit center 550 are witness nodes in the blockchain, and can query the full amount of data on the blockchain or the business data authorized to be viewed by the business nodes. The first securities firm 510 is internally provided with a first electronic signing system 511, a first price inquiry and trading system 512 and a first blockchain business node software development toolkit 513; the second securities firm 520 is internally provided with a second electronic signing system 521, a second price inquiry and trading system 522 and a second blockchain business node software development toolkit 523; the custodian bank 530 is internally provided with a resource custodian system 531, a resource settlement system 532 and a bank business node software development toolkit 533; the control agency 540 is provided with a control agency node 541; and the internal and external audit center 550 is provided with an audit witness node 551.
[0096] In such Figure 5 In the illustrated architecture platform, when a business person logs into a relevant system in a business node, such as the first electronic contract signing system 511 in the first brokerage firm 510 or the second price inquiry transaction system 522 in the second brokerage firm 520, the business node logged in by the business person will synchronously execute the corresponding software development kit, and then the key information in the price inquiry transaction will be stored on the chain through the corresponding software development kit, wherein the key information stored on the chain may include but is not limited to contract signing information, price inquiry information, transaction instructions provided by customers, operation records of brokerage firms, bank account change information, and other information. In addition, the control agency 540 can obtain real-time chain information through its internal control agency node 541, and the internal and external audit center 550 can obtain real-time chain information through its internal audit witness node 551, so that the obtained real-time chain information can be used as the substantive basis for control or audit.
[0097] Reference Figure 6As shown, in an application scenario, it is assumed that the user terminal 601 is a smart phone, and the user terminal 601 is installed with an inquiry transaction client. When the user uses the user terminal 601 to send a transaction inquiry for the target digital asset to the transaction service node 603 through the blockchain, when the target digital asset is a digital asset issued by the transaction service node 603, the transaction service node 603 can first receive the transaction inquiry through the blockchain, and then call the off-chain data acquisition contract according to the transaction inquiry to obtain the off-chain data from the off-chain data acquisition node, and generate a transaction quotation for the target digital asset according to the off-chain data, and then send the transaction quotation to the user terminal 601 through the blockchain; when the user agrees to the transaction quotation through the user terminal 601, the transaction service node 603 will sign a transaction contract with the user through the user terminal 601, and put the transaction contract on the chain, so that the transaction contract can be executed in the blockchain, wherein the transaction contract includes the target digital resources required for trading the target digital asset. During the execution of the transaction contract, the transaction service node 603 will first determine the target digital collection used to represent the target digital asset and the target virtual resource used to represent the target digital resource, and then transfer the target virtual resource to the user according to the transaction contract, and transfer the target digital collection to the user according to the transaction contract, thereby completing the inquiry transaction for the target digital asset.
[0098] Reference Figure 7As shown, in another application scenario, it is assumed that the user terminal 701 is a smart phone, and the user terminal 701 is installed with an inquiry transaction client. In the case where the first user uses the user terminal 701 to send a transaction inquiry for the target digital asset to the transaction service node 703 through the blockchain, when the target digital asset is a digital asset that the second user places an order to sell through the transaction service node 703, the transaction service node 703 can first receive the transaction inquiry through the blockchain, and then obtain the second user's selling quotation for the target digital asset through the blockchain according to the transaction inquiry, and obtain the transaction quotation for the target digital asset according to the selling quotation, and then send the transaction quotation to the user terminal 701 through the blockchain; when the first user agrees to the transaction quotation through the user terminal 701, the transaction service node 703 will sign a transaction contract with the first user through the user terminal 701, and put the transaction contract on the chain, so that the transaction contract can be executed in the blockchain, wherein the transaction contract includes the target digital resources required for trading the target digital asset. During the execution of the transaction contract, the transaction service node 703 will first determine the target digital collection used to represent the target digital asset and the target virtual resource used to represent the target digital resource, and then transfer the target virtual resource to the first user according to the transaction contract, and transfer the target digital collection to the first user according to the transaction contract; at the same time, the transaction service node 703 will also add the target virtual resource to the virtual resource account of the second user according to the transaction contract, and deduct the target digital collection from the digital collection account of the second user. At this time, the inquiry transaction for the target digital asset is completed.
[0099] It should be noted that in various specific embodiments of the present invention, when it comes to the need to perform relevant processing based on the attribute information or attribute information set of the target object (such as a user, etc.) and other data related to the characteristics of the target object, the permission or consent of the target object will be obtained first, and the collection, use and processing of these data will comply with relevant laws, regulations and standards. In addition, when the embodiment of the present invention needs to obtain the attribute information of the target object, it will obtain the separate permission or separate consent of the target object through a pop-up window or jump to a confirmation page, and after clearly obtaining the separate permission or separate consent of the target object, it will obtain the relevant data of the target object necessary for the normal operation of the embodiment of the present invention.
[0100] Figure 8 This is a flowchart of a blockchain-based inquiry transaction processing method provided by an embodiment of the present invention. The inquiry transaction processing method can be executed by a transaction service node (such as a brokerage firm, etc.). In the embodiment of the present invention, the method is executed by a transaction service node as an example for explanation. Figure 8The blockchain-based inquiry transaction processing method may include but is not limited to steps 810 to 830.
[0101] Step 810: Receive a transaction inquiry for a target digital asset sent by a first object through a blockchain, and send a transaction quotation to the first object through a blockchain according to the transaction inquiry.
[0102] In one embodiment, a transaction inquiry sent by a first party is received through a blockchain, and a transaction quotation is sent to the first party through a blockchain, so that the inquiry information of both parties can be carried out through the blockchain, thereby reducing manual intervention. Moreover, since the inquiry information of both parties through the blockchain will be saved on the blockchain, the key link information of the inquiry transaction process can be stored on the chain, thereby ensuring the authenticity and tamper-proof of the inquiry transaction process, and further avoiding operational risks in various links of the inquiry transaction.
[0103] In one embodiment, the transaction inquiry for the target digital asset sent by the first object can be received by means of timed synchronization of blockchain data, or the transaction inquiry for the target digital asset sent by the first object can be received by means of conditional triggering. Appropriate selection can be made according to the actual application situation, and no specific limitation is made here. When the transaction inquiry for the target digital asset sent by the first object is received by means of timed synchronization of blockchain data, the transaction service node can pre-set a data synchronization time. Whenever the data synchronization time is reached, the transaction service node will synchronize the blockchain data on the blockchain to the local. When it is detected that the blockchain data contains the transaction inquiry for the target digital asset sent by the first object, the transaction service node can obtain the transaction inquiry in the blockchain data and complete the reception of the transaction inquiry. Receiving the transaction inquiry by means of timed synchronization of blockchain data can avoid the situation of missing the transaction inquiry, which is conducive to the effective conduct of the inquiry transaction between the transaction service node and the first object. Alternatively, when receiving a transaction inquiry for a target digital asset sent by the first object through a conditional trigger, the transaction service node can continuously detect transaction information in each block in the blockchain. When the transaction address is detected as transaction information of the address of the transaction service node, and the transaction information is a transaction inquiry, the transaction service node can be triggered to obtain the transaction inquiry in the corresponding block and complete the reception of the transaction inquiry. Receiving transaction inquiries through conditional triggering can improve the timeliness of receiving transaction inquiries, thereby facilitating the effective conduct of inquiry transactions between the transaction service node and the first object.
[0104] In one embodiment, when the first object sends a transaction inquiry for the target digital asset through the blockchain, the first object can first use the relevant terminal device to package the transaction inquiry as the transaction content of the block into the block to obtain the block to be chained, and then broadcast the block to be chained to the consensus node in the blockchain for consensus processing. When the consensus node in the blockchain reaches a consensus on the block to be chained, the first object adds the block to be chained to the blockchain through the terminal device. At this time, the transaction inquiry is completed on the chain, so the transaction service node can receive the transaction inquiry in the blockchain by querying the blockchain data. By sending the transaction inquiry to the transaction service node in a chained manner, the transaction inquiry sent by the first object for the target digital asset can be chained and stored, so the authenticity and tamper-proof of the transaction inquiry can be guaranteed.
[0105] In one embodiment, when the target digital asset is a digital asset issued by a transaction service node (e.g., a financial product such as a wealth management product), sending a transaction quotation to the first object through the blockchain according to the transaction inquiry may include the following steps:
[0106] First, call the off-chain data acquisition contract according to the transaction inquiry, and send the first off-chain data request to the off-chain data acquisition node;
[0107] Then, the first off-chain data acquired by the off-chain data acquisition node according to the first off-chain data request is received, and a transaction quotation for the target digital asset is generated according to the first off-chain data;
[0108] The transaction offer is then sent to the first party via the blockchain.
[0109] In one embodiment, the first off-chain data may be unit price data of the target digital asset. If the transaction quotation is also unit price data, then when generating the transaction quotation for the target digital asset based on the first off-chain data, the first off-chain data may be directly used as the transaction quotation for the target digital asset. For example, assuming that the first off-chain data is 10,000 per lot, then the transaction quotation for the target digital asset is 10,000 per lot (unit price data); if the transaction quotation is total price data, then when generating the transaction quotation for the target digital asset based on the first off-chain data, the product of the first off-chain data and the target digital asset may be calculated to obtain the transaction quotation for the target digital asset. For example, assuming that the first off-chain data is 10,000 per lot and the number of target digital assets is 10, then the transaction quotation for the target digital asset is 100,000 (total price data).
[0110] In one embodiment, when the off-chain data acquisition contract is called according to the transaction inquiry to send the first off-chain data request to the off-chain data acquisition node, the transaction inquiry may be firstly verified for legitimacy, and when the legitimacy verification is passed, the off-chain data acquisition contract is called to send the first off-chain data request to the off-chain data acquisition node. For example, the address of the first object may be verified first, and if the address verification of the first object is passed, it means that the legitimacy verification of the transaction inquiry is passed, so the transaction service node may call the off-chain data acquisition contract according to the transaction inquiry to send the first off-chain data request to the off-chain data acquisition node; if the address verification of the first object is not passed, it means that the transaction inquiry may not be initiated by the first object. In order to ensure the data security of the blockchain, it can be considered that the legitimacy verification of the transaction inquiry has not been passed, so the transaction service node may not call the off-chain data acquisition contract to send the first off-chain data request to the off-chain data acquisition node, and may issue a reminder message indicating that the transaction inquiry may not be a legal transaction inquiry initiated by the first object. Because the address of the first object is verified before the off-chain data acquisition contract is called to send the first off-chain data request to the off-chain data acquisition node, and the off-chain data acquisition contract is called to send the first off-chain data request to the off-chain data acquisition node after determining that the transaction inquiry is legal, it can play a role in ensuring the data security of the blockchain.
[0111] In one embodiment, when performing address verification on the first object, the transaction service node may first obtain the address information of the first object stored locally, and obtain the address information of the first object recorded in the transaction inquiry, and then compare the two address information. When the two address information are consistent, it can be determined that the address verification of the first object has been passed. If the two address information are inconsistent, it can be determined that the address verification of the first object has not been passed. By comparing the consistency of the address information of the first object stored locally and the address information of the first object recorded in the transaction inquiry, the legitimacy of the transaction inquiry can be accurately determined, thereby ensuring the data security of the blockchain.
[0112] In one embodiment, when the target digital asset is a digital asset (such as a financial product such as a stock or a security) that the second party places an order to sell through a transaction service node, sending a transaction quotation to the first party through the blockchain according to the transaction inquiry may include the following steps:
[0113] First, according to the transaction inquiry, a selling quotation of the target digital collection corresponding to the target digital asset is obtained through the blockchain, wherein the target digital collection is used to represent the target digital asset, and both the target digital collection and the target digital asset belong to the second object;
[0114] Then, a transaction quote for the target digital asset is obtained based on the selling quote;
[0115] The transaction offer is then sent to the first party via the blockchain.
[0116] In one embodiment, the transaction inquiry may include information content of the target digital asset. When obtaining the selling quotation of the target digital collection corresponding to the target digital asset through the blockchain according to the transaction inquiry, the corresponding target digital collection may be determined according to the target digital asset in the transaction inquiry, and then the selling quotation of the second object for the target digital collection may be obtained in the blockchain. After obtaining the selling quotation of the second object for the target digital collection, the selling quotation is the transaction quotation for the target digital asset. In this embodiment, the target digital asset sold by the second object through the transaction service node is represented in the form of the target digital collection, so that the subsequent steps can avoid directly using the target digital asset to execute the transaction contract, thereby reducing the operational risk of the digital asset, and further improving the security of the digital asset.
[0117] In one embodiment, when the transaction service node sends a transaction quotation to the first object through the blockchain, the transaction service node can first package the transaction quotation into the block as the transaction content of the block to obtain the block to be chained, and then broadcast the block to be chained to the consensus node in the blockchain for consensus processing. When the consensus nodes in the blockchain reach a consensus on the block to be chained, the transaction service node adds the block to be chained to the blockchain. At this time, the transaction quotation is chained, so the first object can receive the transaction quotation in the blockchain by querying the blockchain data. By sending the transaction quotation to the first object by chaining it, the transaction quotation sent by the transaction service node can be chained and stored, so the authenticity and tamper-proof of the transaction quotation can be guaranteed.
[0118] Step 820: When the first party agrees to the transaction quotation, a transaction contract is signed with the first party, the transaction contract is uploaded to the blockchain, and the transaction contract is executed in the blockchain, wherein the transaction contract includes the target digital resources required for trading the target digital assets.
[0119] In one embodiment, after the first party agrees to the transaction quotation, the transaction service node can sign a transaction contract for the target digital asset with the first party, and store the transaction contract on the chain, thereby ensuring the authenticity and tamper-proof nature of the transaction contract; in addition, after the transaction contract is stored on the chain, the transaction service node can execute the transaction contract through the blockchain, thereby reducing manual intervention and effectively avoiding operational risks caused by manual operations.
[0120] In one embodiment, in addition to the target digital resources (such as the principal amount) required for trading the target digital assets, the transaction contract may also include information such as the subject matter (i.e., the target digital asset), term, trading time interval, exercise price, whether to limit the price, estimated scale, execution trigger conditions, etc.
[0121] In one embodiment, when signing a transaction contract with the first object, the contract content can be first agreed with the first object according to the transaction quotation, and then the trigger condition information can be set in the contract content to obtain the transaction contract, wherein the trigger condition information describes the trigger condition for executing the transaction contract. In one embodiment, when the contract content is agreed with the first object according to the transaction quotation, the corresponding transaction contract template can be obtained according to the type of the target digital asset, wherein the transaction contract template can include a variety of information to be agreed upon, such as the principal amount, the subject matter, the term, the transaction time interval, the exercise price, whether the price is limited, the estimated scale, etc., and then the transaction quotation and the first object are negotiated for various information to be agreed upon in the transaction contract template, thereby completing the agreement between the two parties on the contract content. When the two parties complete the agreement on the contract content, the transaction service node can fill the various agreed information as parameters into the transaction contract template to obtain a candidate transaction contract. At this time, the transaction service node can set the trigger condition information in the contract content of the candidate transaction contract to obtain the completed transaction contract, so that the transaction contract will be executed only after the corresponding trigger condition is met. For example, the two parties need to meet the condition that the funds have been transferred to the account before the transaction contract is executed. Since the transaction contract will be automatically executed after the corresponding trigger conditions are met, it can reduce manual intervention and effectively avoid operational risks caused by manual operations.
[0122] The following is an explanation of the process of signing a transaction contract between the transaction service node and the first object using a specific example.
[0123] Reference Fig. 9 As shown, Fig. 9 This is a schematic diagram of the process of a transaction service node and a first object signing a transaction contract, which is provided as a specific example. Fig. 9 In the example, the target digital asset is a stock, the transaction service node is a brokerage firm, and the first object is an investor. Assuming that the current price of stock X is 10,000 per lot, the investor initially has 6 million funds, and the brokerage firm initially has 3,000 lots of stocks, then the process of the brokerage firm and the investor signing a transaction contract for stock X may include the following steps 910 to 930.
[0124] Step 910: The broker initiates a request to create a transaction contract to the blockchain.
[0125] In this step, the contract content of the transaction contract may include the contract term, contract subject, initial structure, swap size and fixed income, wherein the contract term is 1 year, the contract subject is stock X, the initial structure is 10,000 per lot, the swap size is 3,000 lots, and the fixed income is 8%. After the blockchain receives the request sent by the broker and successfully creates the transaction contract, the broker will execute the transaction contract through the blockchain. After the execution of the transaction contract, the stock X in the broker will be reduced by 3,000 lots, and the investor's asset account will increase by 3,000 lots of stock X, wherein the 3,000 lots of stock X added to the investor's asset account will be temporarily frozen, that is, the 3,000 lots of stock X added to the investor's asset account cannot be traded temporarily.
[0126] Step 920: The investor transfers 6 million fund certificates to the broker’s blockchain address through the blockchain.
[0127] In this step, after the investor transfers 6 million fund certificates to the broker's blockchain address through the blockchain, the broker will continue to execute the transaction contract through the blockchain. After completing the execution of the transaction contract, the investor's fund account will reduce 6 million fund certificates. At this time, the balance of the investor's fund account is 0, and the broker's fund account will increase by 6 million fund certificates. At this time, the balance of the broker's fund account is 6 million fund certificates. Among them, the 6 million fund certificates in the broker's fund account will be in an unfrozen state, that is, the broker can operate on the 6 million fund certificates.
[0128] Step 930: The blockchain sends a notification message to the investor that the on-chain contract has been successfully signed.
[0129] In this step, when the brokerage firm completes the execution of the transaction contract through the blockchain, the blockchain can send a notification message to the investor that the on-chain contract has been successfully signed, so that the investor can clearly know that the transaction contract has been successfully signed with the brokerage firm, and the transaction contract will be executed according to the specific contract content. The logic.
[0130] In this specific example, after the brokerage and the investor complete the signing of the transaction contract through the blockchain, the blockchain will automatically execute the transaction contract after the transaction contract meets the corresponding trigger conditions, thereby reducing human intervention and effectively avoiding operational risks caused by manual operations.
[0131] Step 830: During the execution of the transaction contract in the blockchain, a target digital collection for representing the target digital asset and a target virtual resource for representing the target digital resource are determined, the target virtual resource is transferred out of the first object according to the transaction contract, and the target digital collection is transferred to the first object according to the transaction contract.
[0132] In one embodiment, after the transaction service node puts the transaction contract on the chain, the transaction service node can execute the transaction contract through the blockchain. In the process of executing the transaction contract, the target digital collection used to represent the target digital asset and the target virtual resource used to represent the target digital resource can be first determined, and then the first object is transferred out for the target virtual resource according to the transaction contract, and the target digital collection is transferred to the first object according to the transaction contract, and the corresponding accounting action is completed to ensure the balance of the account. At this time, the inquiry transaction of the first object for the target digital asset is completed. Since the execution of the transaction contract is realized by the target digital collection that can represent the target digital asset and the target virtual resource that can represent the target digital resource, it is possible to avoid directly using digital assets and digital resources to execute the transaction contract, thereby reducing the operational risks of digital resources and digital assets, and further improving the security of digital resources and digital assets.
[0133] In one embodiment, a virtual asset issuance and recovery module, a virtual funds issuance and recovery module, and an on-chain virtual account module may be provided in the transaction service node. The virtual asset issuance and recovery module is used to issue or recover digital collections circulating in the blockchain, the virtual funds issuance and recovery module is used to issue or recover virtual resources circulating in the blockchain, and the on-chain virtual account module is used to provide users with digital collection accounts and virtual resource accounts, wherein the digital collection account is used to record the digital collections owned by the user, the virtual resource account is used to record the virtual resources owned by the user, the digital collection is used to represent the digital assets, and the virtual resources are used to represent the digital resources. That is to say, when the first object trades digital assets or digital resources through the blockchain, the transaction service node will not directly use the digital assets or digital resources for trading, but will first map the digital assets to digital collections, and map the digital resources to virtual resources, and then use the digital collections or virtual resources to trade in the blockchain. In addition, when using digital collections and virtual resources to trade in the blockchain, the digital collection accounts and virtual resource accounts will perform corresponding accounting actions according to the usage of the digital collections and virtual resources, so as to ensure the balance of the user's accounts.
[0134] In one embodiment, when the target digital collection belongs to the second object, that is, when the target digital asset belongs to the second object, the inquiry transaction of the first object for the target digital asset is actually an inquiry transaction between the first object and the second object. After the transaction contract for the target digital asset is signed, the flow of the target virtual resources and the target digital collection will be carried out between the first object and the second object. Therefore, in the process of executing the transaction contract in the blockchain, when the transaction service node implements the accounting action between the digital collection and the virtual resource of the first object, it will also add the target virtual resource to the second virtual resource account of the second object according to the transaction contract, and deduct the target digital collection from the second digital collection account of the second object according to the transaction contract, complete the accounting action between the digital collection and the virtual resource of the second object, and ensure the account balance of the second object.
[0135] In one embodiment, when the target digital collection belongs to the second object, that is, when the target digital asset belongs to the second object, the role played by the transaction service node is actually to match the transaction between the first object and the second object through the blockchain. The following is an example to explain the process of matching the transaction between the first object and the second object through the blockchain.
[0136] Reference Fig.10 As shown, Fig.10 This is a specific example of a process diagram of matching a transaction between a first object and a second object through a blockchain. Fig.10 In the example, the first object is investor A and the second object is investor B. The process of matching the transaction between the first object and the second object through the blockchain may include the following steps 1010 to 1040.
[0137] Step 1010: Investor B issues a sales request to sell the target digital collection through the blockchain.
[0138] In this step, the unit price and quantity of the target digital collection that investor B requests to sell through the blockchain can be set by investor B, and are not specifically limited here. For example, the unit price of the target digital collection that is sold can be set to 10 and the quantity to 1000. After investor B requests to sell the target digital collection through the blockchain, the target digital collection in investor B's digital collection account will be temporarily frozen, that is, investor B cannot perform other operations on the target digital collection temporarily.
[0139] Step 1020: Investor A sends a purchase request to purchase the target digital collection through the blockchain.
[0140] In this step, the unit price of the target digital collection that investor A requests to purchase through the blockchain is the unit price set by investor B, and the number of target digital collections that investor A requests to purchase through the blockchain can be set by investor A, but the number cannot exceed the number of target digital collections that investor B has placed an order for sale. For example, investor A can set the number of target digital collections requested to be purchased to 100. After investor A requests to purchase the target digital collection through the blockchain, the target virtual resources in investor A's virtual resource account that are equivalent to the target digital collection requested to be purchased will be temporarily frozen, that is, investor A cannot perform other operations on the target virtual resources temporarily. For example, assuming that investor A purchases 100 target digital collections at a unit price of 10, then the target virtual resources with a quantity of 1000 in investor A's virtual resource account will be temporarily frozen.
[0141] Step 1030: The blockchain matches the transaction between investor B and investor A based on investor B’s selling request and investor A’s purchasing request.
[0142] In this step, when the blockchain matches transactions between investor B and investor A, investor B and investor A will sign corresponding transaction contracts through the blockchain based on the sale request and purchase request.
[0143] Step 1040: The blockchain performs transaction settlement according to the transaction contract between investor B and investor A.
[0144] In this step, when the blockchain settles the transaction according to the transaction contract between investor B and investor A, the accounting action between investor B and investor A will be completed. For example, assuming that the unit price of the target digital collection that investor B places an order to sell is 10, the quantity is 1000, and the quantity of the target digital collection that investor A requests to purchase is 100, then the virtual resource account of investor B will increase by 1000 virtual resources, and the order information of investor B may include: the target digital collection is sold, the quantity is reduced by 100, the number of remaining target digital collections is 900, and the number of transactions has been completed is 100. At this time, the virtual resource account of investor A will reduce the number of target virtual resources by 1000, and the digital collection account of investor A will increase the number of target digital collections by 100, and the order information of investor A may include: the target digital collection is purchased, the number of virtual resources is reduced by 1000, and the number of target digital collections that have been completed is 100.
[0145] In this specific example, since the two parties to the transaction implement the execution of the transaction contract through the target digital collection that can represent the target digital assets and the target virtual resources that can represent the target digital resources, it is possible to avoid directly using digital assets and digital resources to execute the transaction contract, thereby reducing the operational risks of digital resources and digital assets, and further improving the security of digital resources and digital assets.
[0146] In this embodiment, through the blockchain-based inquiry transaction processing method including the above steps 810 to 830, when a transaction inquiry for a target digital asset sent by a first object is received through the blockchain, a transaction quotation is sent to the first object through the blockchain according to the transaction inquiry, and when the first object agrees to the transaction quotation, a transaction contract is signed with the first object, the transaction contract is uploaded to the chain, and the transaction contract is executed in the blockchain; since the transaction inquiry sent by the first object, the transaction quotation sent to the first object, and the transaction contract signed with the first object are all carried out through the blockchain, manual intervention can be reduced, and the key link information of the inquiry transaction process can be uploaded to the chain for evidence storage, thereby ensuring the authenticity and tamper-proof of the inquiry transaction process, and thus avoiding operational risks in various links of the inquiry transaction. In addition, in the process of executing a transaction contract in the blockchain, the target digital collection used to represent the target digital asset and the target virtual resource used to represent the target digital resource are first determined, and then the target virtual resource is transferred out of the first object according to the transaction contract, and the target digital collection is transferred to the first object according to the transaction contract to complete the inquiry transaction for the target digital asset. That is to say, in the process of executing the transaction contract, the execution of the transaction contract is achieved through the target digital collection that can represent the target digital asset and the target virtual resource that can represent the target digital resource. Therefore, it is possible to avoid directly using digital assets and digital resources to execute the transaction contract, thereby reducing the operational risks of digital resources and digital assets, and further improving the security of digital resources and digital assets.
[0147] In one embodiment, the blockchain-based inquiry transaction processing method may also include but is not limited to the following steps:
[0148] In response to receiving the target digital resource transferred from the first object, generating a target virtual resource according to the target digital resource;
[0149] The target virtual resource is allocated to the first virtual resource account of the first object through the blockchain.
[0150] In one embodiment, when the first object wishes to execute an inquiry transaction through a transaction service node, the first object needs to first transfer digital resources to a first digital resource account provided by the transaction service node for the first object, so that when the transaction service node processes the inquiry transaction of the first object through the blockchain, the digital resources in the first digital resource account of the first object can be used as the basis for the transaction.
[0151] In one embodiment, in order to avoid operational risks to digital resources that may be caused by directly using digital resources in the first digital resource account to execute inquiry transactions, after the first object transfers the target digital resources, the transaction service node may first generate corresponding target virtual resources based on the transferred target digital resources, and then allocate the target virtual resources to the first virtual resource account of the first object through the blockchain, so that subsequent steps can use the virtual resources in the first virtual resource account of the first object to conduct inquiry transactions, thereby avoiding directly using digital resources to execute inquiry transactions, reducing operational risks to digital resources, and further improving the security of digital resources.
[0152] In one embodiment, when the first object transfers the target digital resource, it transfers the target digital resource to the resource hosting node that has signed a hosting contract with the transaction service node. Specifically, after the transaction service node and the resource hosting node sign a hosting contract, a resource account will be opened for the transaction service node inside the resource hosting node, and the transaction service node can perform resource operations through the resource account. When the first object transfers the target digital resource, the first object will transfer the target digital resource to the resource account in the resource hosting node. After the resource hosting node receives the target digital resource transferred by the first object, the resource hosting node will add the target digital resource to the resource account and send a notification message to the transaction service node that the first object has transferred the target digital resource. When the transaction service node receives the notification message, the transaction service node can confirm that the first object has completed the transfer of the target digital resource. At this time, the transaction service node will generate a corresponding target virtual resource based on the target digital resource, and allocate the target virtual resource to the first virtual resource account of the first object through the blockchain.
[0153] In one embodiment, the target virtual resource can be generated according to the target digital resource in different ways, which are not specifically limited here. For example, the target digital resource can be mapped to the corresponding target virtual resource through a preset data mapping table, or the target digital resource can be homomorphically encrypted to obtain the corresponding target virtual resource.
[0154] In one embodiment, when the target digital resource is mapped through a preset data mapping table to obtain the corresponding target virtual resource, the target digital resource can be searched in the preset data mapping table. When the target digital resource is found in the data mapping table, the target virtual resource corresponding to the target digital resource is obtained in the data mapping table. The pre-constructed data mapping table may include original data and mapping data, and the original data and mapping data are in a one-to-one correspondence. For example, when the original data is 100, the mapping data may be 5; when the original data is 200, the mapping data may be 10; and so on. When the target virtual resource is generated according to the target digital resource, the target digital resource is first searched in the original data of the data mapping table. When the target digital resource is found in the original data of the data mapping table, the mapping data corresponding to the original data is obtained in the data mapping table. The mapping data is the target virtual resource generated according to the target digital resource.
[0155] In one embodiment, when the corresponding target virtual resource is obtained by homomorphically encrypting the target digital resource, the target digital resource can be first homomorphically encrypted to obtain encrypted data, and then the encrypted data can be used as the target virtual resource corresponding to the target digital resource. Alternatively, the target digital resource can be first homomorphically encrypted to obtain encrypted data, and then the encrypted data can be mapped to obtain encrypted mapping data, and then the encrypted mapping data can be used as the target virtual resource corresponding to the target digital resource.
[0156] In one embodiment, when the transaction service node allocates the target virtual resource to the first virtual resource account of the first object through the blockchain, the transaction service node can first pack the target virtual resource into the block as the transaction content of the block, and fill the transaction address in the block as the address of the first virtual resource account of the first object, obtain the block to be chained, and then broadcast the block to be chained to the consensus node in the blockchain for consensus processing. When the consensus node in the blockchain reaches a consensus on the block to be chained, the transaction service node adds the block to be chained to the blockchain. At this time, the target virtual resource is allocated to the first virtual resource account of the first object in the blockchain. By allocating the target virtual resource to the first object by chaining it, the target virtual resource allocated to the first object can be stored on the chain, so the authenticity and tamper-proof of the first object's ownership of the target virtual resource can be guaranteed.
[0157] In one embodiment, when the target digital asset belongs to the second object, the blockchain-based inquiry transaction processing method may also include but is not limited to the following steps:
[0158] In response to the second object's request to put the target digital asset on the blockchain, a target digital collection is generated according to the target digital asset;
[0159] The target digital collection is allocated to the second digital collection account of the second object through the blockchain, and the target digital asset is deducted from the second digital asset account of the second object.
[0160] In one embodiment, when the second party wishes to place an order for sale of a target digital asset through a transaction service node, in order to ensure the authenticity and tamper-proofness of the target digital asset to be sold, the second party needs to first put the target digital asset on the chain, so that the transaction service node can process the inquiry transaction for the target digital asset through the blockchain, thereby ensuring the authenticity and tamper-proofness of the inquiry transaction process.
[0161] In one embodiment, in order to avoid operational risks to digital assets that may be caused by directly using digital assets to execute inquiry transactions, upon receiving an on-chain request for a target digital asset sent by a second object, the transaction service node may first generate a corresponding target digital collection based on the target digital asset of the second object, and then allocate the target digital collection to the second digital collection account of the second object through the blockchain, and deduct the target digital asset from the second digital asset account of the second object, so that the digital collection in the second digital collection account of the second object can be used for inquiry transactions in subsequent steps, thereby avoiding the direct use of digital assets to execute inquiry transactions, reducing operational risks to digital assets, and further improving the security of digital assets.
[0162] In one embodiment, there may be different implementations for generating a target digital collection based on a target digital asset, which are not specifically limited herein. For example, the target digital asset may be mapped through a preset data mapping table to obtain the corresponding target digital collection, or the target digital asset may be homomorphically encrypted to obtain the corresponding target digital collection.
[0163] In one embodiment, when the target digital asset is mapped through a preset data mapping table to obtain the corresponding target digital collection, the target digital asset can be searched in the preset data mapping table. When the target digital asset is found in the data mapping table, the target digital collection corresponding to the target digital asset is obtained in the data mapping table. The pre-constructed data mapping table may include original data and mapping data. The original data and mapping data are in a one-to-one correspondence. For example, when the original data is 100, the mapping data may be 5; when the original data is 200, the mapping data may be 10; and so on. When the target digital collection is generated according to the target digital asset, the target digital asset is first searched in the original data of the data mapping table. When the target digital asset is found in the original data of the data mapping table, the mapping data corresponding to the original data is obtained in the data mapping table. The mapping data is the target digital collection generated according to the target digital asset.
[0164] In one embodiment, when the corresponding target digital collection is obtained by homomorphically encrypting the target digital asset, the target digital asset can be first homomorphically encrypted to obtain encrypted data, and then the encrypted data can be used as the target digital collection corresponding to the target digital asset. Alternatively, the target digital asset can be first homomorphically encrypted to obtain encrypted data, and then the encrypted data can be mapped to obtain encrypted mapping data, and then the encrypted mapping data can be used as the target digital collection corresponding to the target digital asset.
[0165] In one embodiment, when the transaction service node allocates the target digital collection to the second digital collection account of the second object through the blockchain, the transaction service node may first pack the target digital collection into the block as the transaction content of the block, and fill the transaction address in the block as the address of the second digital collection account of the second object, to obtain the block to be chained, and then broadcast the block to be chained to the consensus node in the blockchain for consensus processing. When the consensus node in the blockchain reaches a consensus on the block to be chained, the transaction service node adds the block to be chained to the blockchain. At this time, the target digital collection is allocated to the second digital collection account of the second object in the blockchain. By allocating the target digital collection to the second object by chaining it, the target digital collection allocated to the second object can be stored on the chain, so the authenticity and tamper-proof of the second object's ownership of the target digital collection can be guaranteed.
[0166] The following is a specific example to describe the specific process of putting the target virtual resources and target digital collections on the chain.
[0167] Reference Fig.11 As shown, Fig.11 This is a specific example of the process of putting the target virtual resources and target digital collections on the chain. Fig.11 In the example, the first object is investor A, the second object is investor B, the target digital asset is securities, the target digital resource is funds, the transaction service node is a brokerage firm, and the resource hosting node is a custodian bank. The process of uploading the target virtual resource and the target digital collection to the chain may include the following steps 1110 to 1190.
[0168] Step 1110: Investor B purchases 1,000 securities X from a securities firm.
[0169] Step 1120: The brokerage firm generates a digital collection X' based on security X, where the number of digital collection X' is 1000.
[0170] Step 1130: The securities firm internally deducts 1,000 securities X from the securities account of investor B.
[0171] Step 1140: The broker issues 1,000 digital collections X' to the digital collection account of investor B through the blockchain.
[0172] Step 1150: Investor A sends a deposit request for $10,000 to the broker.
[0173] Step 1160: The broker sends a deposit instruction of 10,000 to the custodian bank based on the deposit request.
[0174] Step 1170: The custodian bank transfers 10,000 of investor A's funds to the broker's capital account according to the deposit instruction.
[0175] Step 1180: The custodian bank sends a funds arrival notification to the securities firm.
[0176] Step 1190: The brokerage firm generates 10,000 virtual resources based on the funds arrival notification, and issues 10,000 virtual resources to the virtual resource account of investor A through the blockchain.
[0177] In this specific example, the securities firm first maps the investor's digital resources into virtual resources, and maps the investor's digital assets into digital collections, and then issues the virtual resources and digital collections to the investor's corresponding blockchain account through the blockchain, so that when the investor conducts inquiry transactions through the blockchain, he can only use digital collections that can represent digital assets and virtual resources that can represent digital resources to implement them, avoiding the direct use of digital assets and digital resources to execute inquiry transactions, thereby reducing the operational risks of digital resources and digital assets, and further improving the security of digital resources and digital assets.
[0178] In one embodiment, the blockchain-based inquiry transaction processing method may also include but is not limited to the following steps:
[0179] In response to the first object initiating a transfer-out process for the virtual resources to be transferred out in the first virtual resource account through the blockchain, deducting the virtual resources to be transferred out from the first virtual resource account;
[0180] Transferring a first digital resource into a first digital resource account of a first object according to the virtual resource to be transferred out, wherein the first digital resource is equivalent to the virtual resource to be transferred out;
[0181] Destroy the virtual resources to be transferred out in the blockchain.
[0182] In one embodiment, when the first object no longer intends to perform the inquiry transaction through the blockchain, the first object can initiate a transfer-out process for the virtual resources to be transferred out in the first virtual resource account through the blockchain, so that the virtual resources to be transferred out in the first virtual resource account can be converted into corresponding equivalent digital resources. In this case, when the transaction service node receives a transfer-out process request for the virtual resources to be transferred out in the first virtual resource account sent by the first object through the blockchain, the transaction service node can deduct the virtual resources to be transferred out from the first virtual resource account, and then transfer the equivalent first digital resources to the first digital resource account of the first object according to the virtual resources to be transferred out, and complete the transfer-out process for the virtual resources to be transferred out. Since the account balance between the virtual resources to be transferred out and the first digital resources is achieved through the accounting action between the first virtual resource account and the first digital resource account, the virtual resources to be transferred out will no longer be circulated in the blockchain, so the transaction service node can destroy the virtual resources to be transferred out through the blockchain.
[0183] In one embodiment, the virtual resources to be transferred out may be all virtual resources that are not frozen in the first virtual resource account, or may be part of the virtual resources that are not frozen in the first virtual resource account, which may be determined according to the actual use needs of the first object, and is not specifically limited here. For example, assuming that the first virtual resource account of the first object stores 1000 virtual resources, and all of these virtual resources are in an unfrozen state, then the virtual resources to be transferred out may be 1000 virtual resources, or may be 100 virtual resources, or may be 10 virtual resources, and so on.
[0184] In one embodiment, the blockchain-based inquiry transaction processing method may also include but is not limited to the following steps:
[0185] In response to the second object initiating a transfer process for the digital collection to be transferred out in the second digital collection account through the blockchain, deducting the digital collection to be transferred out from the second digital collection account;
[0186] Transferring a second digital asset to a second digital asset account of a second object according to the digital collection to be transferred out, wherein the second digital asset is equivalent to the digital collection to be transferred out;
[0187] Destroy the digital collections to be transferred out in the blockchain.
[0188] In one embodiment, when the second object no longer intends to perform the inquiry transaction through the blockchain, the second object can initiate a transfer-out process for the digital collection to be transferred out in the second digital collection account through the blockchain, so that the digital collection to be transferred out in the second digital collection account can be converted into a corresponding equivalent digital asset. In this case, when the transaction service node receives a transfer-out process request for the digital collection to be transferred out in the second digital collection account sent by the second object through the blockchain, the transaction service node can deduct the digital collection to be transferred out from the second digital collection account, and then transfer the equivalent second digital asset to the second digital asset account of the second object according to the digital collection to be transferred out, and complete the transfer-out process for the digital collection to be transferred out. Since the account balance between the digital collection to be transferred out and the second digital asset is achieved through the accounting action between the second digital collection account and the second digital asset account, the digital collection to be transferred out will no longer be circulated in the blockchain, so the transaction service node can destroy the digital collection to be transferred out through the blockchain.
[0189] In one embodiment, the digital collections to be transferred out may be all the digital collections that are not frozen in the second digital collection account, or may be part of the digital collections that are not frozen in the second digital collection account, which may be determined according to the actual use needs of the second object, and is not specifically limited here. For example, assuming that the second digital collection account of the second object stores 10,000 digital collections, and all of these digital collections are in an unfrozen state, then the digital collections to be transferred out may be 10,000 digital collections, or may be 1,000 digital collections, or may be 100 digital collections, and so on.
[0190] The following describes the specific process of transferring out virtual resources and digital collections to be transferred using a specific example.
[0191] Reference Fig.12 As shown, Fig.12 This is a specific example of a schematic diagram of the process of transferring out virtual resources and digital collections to be transferred out. Fig.12 In the example, the first object is investor A, the second object is investor B, the transaction service node is a broker, and the resource custody node is a custody bank. Assuming that investor B has 900 digital collections to be transferred out, and investor A has 9000 virtual resources to be transferred out, the process of transferring out the virtual resources to be transferred out and the digital collections to be transferred out may include the following steps 1201 to 1211.
[0192] Step 1201: Investor B initiates a transfer request to the brokerage firm through the blockchain for 900 digital collections to be transferred.
[0193] Step 1202: In the blockchain, 900 of investor B's digital collections to be transferred are transferred to the brokerage's digital collection account.
[0194] In this step, after transferring 900 digital collections to be transferred from investor B to the broker's digital collection account, 900 digital collections will be reduced in investor B's digital collection account, while 900 digital collections will be increased in the broker's digital collection account.
[0195] Step 1203: The blockchain sends transfer event notification information about the digital collection to be transferred to the broker.
[0196] In this step, the transfer event notification information may include but is not limited to the following contents: adding digital collections to be transferred, the source of the digital collections to be transferred is investor B, the quantity is 900, and the remark information is transfer out.
[0197] Step 1204: The broker transfers a second digital asset equivalent to the digital collection to be transferred to the digital asset account of investor B according to the transfer event notification information.
[0198] In this step, the brokerage firm may transfer 900 of the second digital asset to the digital asset account of investor B according to the transfer-out event notification information.
[0199] Step 1205: The broker destroys 900 digital collections to be transferred in the blockchain.
[0200] Step 1206: Investor A initiates a transfer process for 9,000 virtual resources to be transferred to the brokerage firm through the blockchain.
[0201] Step 1207: In the blockchain, 9,000 virtual resources to be transferred from investor A are transferred to the virtual resource account of the brokerage firm.
[0202] In this step, after investor A's 9,000 virtual resources to be transferred are transferred to the broker's virtual resource account, 9,000 virtual resources will be reduced in investor A's virtual resource account, while 9,000 virtual resources will be increased in the broker's virtual resource account.
[0203] Step 1208: The blockchain sends a transfer event notification message about the virtual resources to be transferred to the broker.
[0204] In this step, the transfer-out event notification information may include, but is not limited to, the following contents: adding virtual resources to be transferred out, the source of the virtual resources to be transferred out is investor A, the quantity is 9000, and the remark information is transfer-out.
[0205] Step 1209: The securities firm transfers the first digital resource to the digital resource account of investor A through the custodian bank.
[0206] In this step, the securities firm can transfer 9,000 first digital resources to investor A's digital resource account through the custodian bank.
[0207] Step 1210: The custodian bank sends a transfer success notification message to the securities firm.
[0208] Step 1211: The broker destroys 9,000 virtual resources to be transferred in the blockchain according to the successful transfer notification information.
[0209] In one embodiment, the blockchain-based inquiry transaction processing method may also include but is not limited to the following steps:
[0210] In response to the expiration of the transaction contract, calling the off-chain data acquisition contract to send a second off-chain data request to the off-chain data acquisition node;
[0211] Receiving the second off-chain data obtained by the off-chain data acquisition node according to the second off-chain data request, and obtaining transaction settlement information according to the second off-chain data;
[0212] Obtaining value-added virtual resources according to transaction settlement information, target digital collections and target virtual resources;
[0213] When the value-added virtual resource is positive, a second digital resource is transferred to the first digital resource account of the first object according to the value-added virtual resource, wherein the second digital resource is equivalent to the value-added virtual resource;
[0214] Destroy value-added virtual resources and target digital collections in the blockchain.
[0215] In one embodiment, when a transaction contract expires, the transaction service node can call an off-chain data acquisition contract to obtain second off-chain data from an off-chain data acquisition node, and then obtain transaction settlement information based on the obtained second off-chain data, and then use the transaction settlement information to settle the transaction contract.
[0216] In one embodiment, as the transaction time progresses, the unit price data of the target digital collection will change. When the transaction contract expires, the latest unit price data of the target digital collection may be greater than the transaction quotation when the transaction contract is signed, or it may be less than the transaction quotation when the transaction contract is signed, or it may be equal to the transaction quotation when the transaction contract is signed. Therefore, when the transaction contract expires, it is necessary to obtain the latest unit price data of the target digital collection so as to perform transaction settlement based on the latest unit price data of the target digital collection.
[0217] In one embodiment, in order to ensure the legality and validity of the latest unit price data of the target digital collection obtained, the latest unit price data of the target digital collection can be obtained by calling the off-chain data acquisition contract to obtain the second off-chain data from the off-chain data acquisition node. In this case, the second off-chain data obtained by the off-chain data acquisition node can be the latest unit price data of the target digital collection. After the latest unit price data of the target digital collection is obtained by the off-chain data acquisition node, the latest unit price data can be used as transaction settlement information, and then the value-added virtual resources can be obtained based on the transaction settlement information, the target digital collection and the target virtual resources, so that the transaction settlement can be performed based on the value-added virtual resources.
[0218] In one embodiment, when obtaining the value-added virtual resource based on the transaction settlement information, the target digital collection and the target virtual resource, since the transaction settlement information is the latest unit price data of the target digital collection, the product of the transaction settlement information and the target digital collection can be calculated first to obtain the total transaction settlement information, and then the target virtual resource when the transaction contract is signed can be subtracted from the total transaction settlement information to obtain the value-added virtual resource. When the value-added virtual resource is a positive value, it means that the target digital collection has brought benefits to the first object, so the second digital resource equivalent to the value-added virtual resource can be transferred to the first digital resource account of the first object based on the value-added virtual resource to complete the transaction settlement of the first object. In addition, after the transaction settlement is completed, the value-added virtual resource and the target digital collection are no longer needed, so the transaction service node can destroy the value-added virtual resource and the target digital collection through the blockchain.
[0219] The following is a specific example to describe the specific process of transaction settlement when the added-value virtual resource is positive.
[0220] Reference Fig.13 As shown, Fig.13 This is a specific example of a transaction settlement process when the added-value virtual resource is positive. Fig.13 In the example, the first object is an investor and the transaction service node is a broker. Assuming that the current time has reached the agreed settlement time of the transaction contract, and the latest unit price data of the current target digital collection is 13,000 per lot, the transaction settlement process may include the following steps 1310 to 1350.
[0221] Step 1310: The blockchain initiates contract expiration settlement.
[0222] Step 1320: The blockchain calls the off-chain data acquisition contract to send a second off-chain data acquisition request to the off-chain data acquisition node.
[0223] Step 1330: The off-chain data acquisition node acquires the second off-chain data according to the second off-chain data acquisition request, and sends the second off-chain data to the blockchain.
[0224] In this step, since the latest unit price data of the current target digital collection is 13,000 per lot, the second off-chain data obtained by the off-chain data acquisition node according to the second off-chain data acquisition request is 13,000 per lot. Assuming that the unit price data when the investor purchased the target digital collection was 10,000 per lot, and a total of 3,000 lots were purchased, then when the blockchain receives the second off-chain data and executes the transaction settlement, it can be calculated that the investor's value-added virtual resources are 9 million. Assuming that the investor needs to pay 8% interest to the broker, the investor needs to pay 2.4 million to the broker, so the investor's final income is 6.6 million, so the investor's digital resource account will increase by 6.6 million digital resources.
[0225] Step 1340: After the blockchain completes the contract expiration settlement, it sends an event notification of the completion of the contract expiration settlement to the broker.
[0226] Step 1350: The broker sends a notification message of contract expiration settlement completion to the investor based on the event notification of contract expiration settlement completion.
[0227] In one embodiment, the blockchain-based inquiry transaction processing method may also include but is not limited to the following steps:
[0228] When the added-value virtual resource is a negative value, determining the difference between the absolute value of the added-value virtual resource and the retained resource, wherein the retained resource is used to allow the first object to have the right to dispose of the target digital collection;
[0229] When the absolute value of the added-value virtual resources is greater than the retained resources, the first object's disposal rights over the target digital collection are released, so that the target digital collection is in a state where it can be traded at any time.
[0230] In one embodiment, when the value-added virtual resource is negative, it means that the target digital collection does not bring benefits to the first object, but causes the first object to suffer losses. At this time, the absolute value of the value-added virtual resource and the retention resource can be judged, wherein the retention resource is used to enable the first object to have the right to dispose of the target digital collection, for example, the retention resource can be a deposit, etc. When the absolute value of the value-added virtual resource is greater than the retention resource, that is, when the loss of the first object exceeds the retention resource, it means that the first object can no longer maintain the right to dispose of the target digital collection. At this time, the transaction service node can release the first object's right to dispose of the target digital collection, so that the target digital collection is in a state that can be traded at any time, thereby reducing the level of retention resources and reducing risks to a certain extent, and protecting the first object from greater resource losses.
[0231] In one embodiment, when the absolute value of the value-added virtual resources is less than or equal to the retained resources, that is, when the loss of the first object does not exceed the retained resources, it means that the first object can continue to maintain the disposal authority over the target digital collection, and therefore the first object can continue to have the disposal authority over the target digital collection. It should be noted that when the absolute value of the value-added virtual resources is equal to the retained resources, it means that the loss of the first object may exceed the retained resources at any time. Therefore, in order to ensure that the first object has a stable disposal authority over the target digital collection, the first object can add new retained resources to avoid the situation where the absolute value of the value-added virtual resources is greater than the retained resources.
[0232] The following is a specific example to describe the specific process of transaction settlement when the added-value virtual resource is negative.
[0233] Reference Fig.14 As shown, Fig.14 This is a specific example of a transaction settlement process when the added-value virtual resource is negative. Fig.14 In the example, the first object is an investor and the transaction service node is a broker. Assuming that the current time has reached the agreed settlement time of the transaction contract, and the latest unit price data of the current target digital collection is 8,800 per lot, the transaction settlement process may include the following steps 1410 to 1450.
[0234] Step 1410: The off-chain data acquisition node acquires the second off-chain data and sends the second off-chain data to the blockchain.
[0235] In this step, since the latest unit price data of the current target digital collection is 8,800 per lot, the second off-chain data obtained by the off-chain data acquisition node is 8,800 per lot. Assuming that the unit price data when the investor purchased the target digital collection was 10,000 per lot, and a total of 3,000 lots were purchased, then when the blockchain receives the second off-chain data and executes the transaction settlement, it can be determined that the investor is in a state of resource loss.
[0236] Step 1420: The blockchain initiates forced settlement of the contract.
[0237] In this step, since the latest unit price data of the current target digital collection is 8,800 per lot, the unit price data when the investor purchased the target digital collection was 10,000 per lot, and a total of 3,000 lots were purchased, it can be calculated that the investor's value-added virtual resources are -3.6 million. Assuming that the investor needs to pay 8% interest to the brokerage firm, then the investor needs to pay 2.4 million to the brokerage firm, so the investor's final profit is -6 million, that is to say, the investor currently loses 6 million. Assuming that the retention resources paid by the investor when purchasing the target digital collection are 5 million, then the investor's current loss exceeds the retention resources, so the investor can no longer maintain the disposal rights over the target digital collection.
[0238] Step 1430: The blockchain releases the investor's disposal rights over the target digital collection, making the target digital collection available for trading at any time.
[0239] Step 1440: After the blockchain executes the forced settlement of the contract, it sends an event notification of the completion of the forced settlement of the contract to the securities firm.
[0240] Step 1450: The broker sends a notification message of the completion of the contract forced settlement to the investor based on the event notification of the completion of the contract forced settlement.
[0241] The following is a detailed description of the blockchain-based inquiry transaction processing method provided by an embodiment of the present invention using a specific example.
[0242] Reference Fig.15 As shown, Fig.15 This is a schematic diagram of an application scenario of the execution inquiry transaction processing method provided by an example. Fig.15 In the example, the application scenario includes an investment institution 1510 (i.e., the first object), a custodial bank 1520 (i.e., a resource custodial node), a securities firm 1530 (i.e., a transaction service node), a control agency 1540 (i.e., a control node), and an internal and external audit center 1550 (i.e., an audit node). The investment institution 1510 is internally provided with a virtual asset wallet 1511, which can be used for key management and transaction orders; the custodial bank 1520 is internally provided with a fund custody and settlement system 1521; the securities firm 1530 is internally provided with an on-chain transaction module 1531, a virtual asset issuance and recovery module 1532, a virtual fund issuance and recovery module 1533, an off-chain data acquisition module 1534, and an on-chain virtual account module 1535. The on-chain virtual account module 1535 is used to provide users with asset note accounts (i.e., digital collection accounts) and fund balance accounts (i.e., virtual resource accounts).
[0243] When the investment institution 1510 executes the price inquiry transaction processing method with the securities firm 1530 through the blockchain, the price inquiry transaction processing method may include but is not limited to the following steps:
[0244] The investment institution 1510 conducts an online inquiry through the virtual asset wallet 1511, and the brokerage firm 1530 receives the inquiry through the on-chain transaction module 1531 and sends an off-chain data acquisition request to the off-chain data acquisition module 1534;
[0245] The off-chain data acquisition module 1534 synchronizes the off-chain data of the off-chain data source service to the blockchain according to the off-chain data acquisition request. The broker 1530 obtains the off-chain data from the blockchain, obtains the quotation information, and feeds back the quotation information to the investment institution 1510 in real time.
[0246] When the investment institution 1510 agrees with the quotation information, the investment institution 1510 and the securities dealer 1530 agree on a transaction contract, wherein the transaction contract may include information such as the principal amount, the subject matter, the term, the trading time interval, the exercise price, whether the price is limited, the estimated scale and the execution trigger conditions. Then, the securities dealer 1530 initiates an execution request for the transaction contract to the virtual asset issuance and recovery module 1532 through the on-chain transaction module 1531;
[0247] Among them, when the investment institution 1510 transfers money to the custodian bank 1520 to complete the deposit operation, the securities firm 1530 will first map the funds deposited by the investment institution 1510 into equivalent virtual resources through the virtual funds issuance and recovery module 1533, and display the virtual resources in the fund balance account of the on-chain virtual account module 1535 of the investment institution 1510; in addition, after the investment institution 1510 completes the inquiry transaction for the target digital asset through the securities firm 1530, the virtual asset issuance and recovery module 1532 in the securities firm 1530 will issue a target digital collection equivalent to the target digital asset to the investment institution 1510, and display the target digital collection in the asset note account of the on-chain virtual account module 1535 of the investment institution 1510;
[0248] Between the capital balance account and the asset note account, the corresponding accounting actions are completed according to the execution of the inquiry transaction, so that the accounts between the capital balance account and the asset note account are balanced;
[0249] After the bookkeeping action is completed between the fund balance account and the asset note account, the on-chain virtual account module 1535 returns the notification information that the transaction instruction has been executed to the on-chain transaction module 1531. At this time, the broker 1530 can send a corresponding notification information to the virtual asset wallet 1511 of the investment institution 1510, informing the investment institution 1510 that the transaction will be automatically executed according to the real-time data of the trading market under the signed transaction contract.
[0250] When the transaction contract expires, the on-chain transaction module 1531 of the broker 1530 will execute the product expiration contract. The on-chain transaction module 1531 will obtain the market data of the transaction contract expiration date through the off-chain data acquisition module 1534. Then, the on-chain transaction module 1531 will initiate a request to execute the product expiration contract to the virtual asset issuance and recovery module 1532 and the virtual funds issuance and recovery module 1533.
[0251] When the virtual asset issuance and recovery module 1532 and the virtual funds issuance and recovery module 1533 receive a request to execute a product expiration contract, the virtual asset issuance and recovery module 1532 will initiate a digital collection recovery application to the on-chain virtual account module 1535, and the virtual funds issuance and recovery module 1533 will initiate a virtual resource recovery application to the on-chain virtual account module 1535;
[0252] When the on-chain virtual account module 1535 receives the digital collection recovery application and the virtual resource recovery application, the on-chain virtual account module 1535 completes the expiration recovery of the digital collection and virtual resources through the bookkeeping process between the asset note account and the fund balance account;
[0253] After completing the recovery of digital collections and virtual resources, the on-chain transaction module 1531 will initiate a fund settlement request to the fund custody and settlement system 1521 of the custodian bank 1520;
[0254] After the custodian bank 1520 completes the fund settlement according to the fund settlement request, the fund balance of the investment institution 1510 will be displayed in the bank account of the investment institution 1510 and will be synchronously displayed in the virtual asset wallet 1511 of the investment institution 1510.
[0255] Reference Fig.16 As shown, Fig.16 This is a flowchart of a blockchain-based inquiry transaction processing method provided as an example. Fig.16 In the example, the method is executed by a transaction service node. The inquiry transaction processing method may include but is not limited to steps 1601 to 1615.
[0256] Step 1601: Determine whether the target digital resource for transfer is received, or whether a request for on-chain transfer of the target digital asset is received, or whether a transaction inquiry is received, or whether a transfer-out request for the virtual resource to be transferred out is received, or whether a transfer-out request for the digital collection to be transferred out is received; when the target digital resource transferred in by the first object is received, execute step 1602; when the request for on-chain transfer of the target digital asset by the second object is received, execute step 1603; when the transaction inquiry issued by the first object is received, execute step 1604; when the transfer-out request for the virtual resource to be transferred out by the first object is received, execute step 1614; when the transfer-out request for the digital collection to be transferred out by the second object is received, execute step 1615.
[0257] Step 1602: Generate a target virtual resource according to the target digital resource, and allocate the target virtual resource to the first virtual resource account of the first object through the blockchain, and then execute step 1601.
[0258] Step 1603: Generate a target digital collection based on the target digital asset, then allocate the target digital collection to the second digital collection account of the second object through the blockchain, and deduct the target digital asset from the second digital asset account of the second object, and then execute step 1601.
[0259] Step 1604: Send a transaction quotation for the target digital asset to the first object through the blockchain according to the transaction inquiry.
[0260] In one embodiment, when the target digital asset is a digital asset issued by a transaction service node, when the transaction service node sends a transaction quotation for the target digital asset to the first object through the blockchain according to the transaction inquiry, it can first call the off-chain data acquisition contract according to the transaction inquiry, send a first off-chain data request to the off-chain data acquisition node, and then receive the first off-chain data obtained by the off-chain data acquisition node according to the first off-chain data request, and generate a transaction quotation for the target digital asset based on the first off-chain data, and then send the transaction quotation to the first object through the blockchain.
[0261] In another embodiment, when the target digital asset belongs to the second object, when the transaction service node sends a transaction quotation for the target digital asset to the first object through the blockchain based on the transaction inquiry, it can first obtain the second object's selling quotation for the target digital collection through the blockchain based on the transaction inquiry, and then obtain the transaction quotation for the target digital asset based on the selling quotation, and then send the transaction quotation to the first object through the blockchain.
[0262] Step 1605: When the first party agrees to the transaction quotation, a transaction contract is signed with the first party, the transaction contract is uploaded to the blockchain, and the transaction contract is executed in the blockchain.
[0263] In this step, the transaction contract may include the target digital resources required for trading the target digital assets. In addition, when signing a transaction contract with the first party, the contract content may be agreed upon with the first party based on the transaction quotation, and then trigger condition information may be set in the contract content to obtain the transaction contract, wherein the trigger condition information describes the trigger condition for executing the transaction contract.
[0264] Step 1606: During the execution of the transaction contract in the blockchain, the target digital collection used to represent the target digital asset and the target virtual resource used to represent the target digital resource are determined, and then the target virtual resource is transferred out of the first object according to the transaction contract, and the target digital collection is transferred to the first object according to the transaction contract.
[0265] Step 1607: Add the target virtual resource to the second virtual resource account of the second object according to the transaction contract, and deduct the target digital collection from the second digital collection account of the second object according to the transaction contract.
[0266] Step 1608: In response to the expiration of the transaction contract, the off-chain data acquisition contract is called to send a second off-chain data request to the off-chain data acquisition node, and then the second off-chain data acquired by the off-chain data acquisition node according to the second off-chain data request is received, and the transaction settlement information is obtained based on the second off-chain data, and then the value-added virtual resources are obtained based on the transaction settlement information, the target digital collection and the target virtual resources.
[0267] Step 1609: Determine whether the added virtual resource is a positive value. If it is a positive value, execute step 1610; if it is a negative value, execute step 1611.
[0268] Step 1610: Based on the value-added virtual resource, transfer the second digital resource equivalent to the value-added virtual resource to the first digital resource account of the first object, and then destroy the value-added virtual resource and the target digital collection in the blockchain.
[0269] Step 1611: Determine the size between the absolute value of the value-added virtual resources and the retained resources. If the absolute value of the value-added virtual resources is greater than the retained resources, execute step 1612; if the absolute value of the value-added virtual resources is less than or equal to the retained resources, execute step 1613.
[0270] Step 1612: Release the first object's disposal rights over the target digital collection, so that the target digital collection is in a state that can be traded at any time, and then execute step 1601.
[0271] Step 1613: Maintain the first object's disposal authority over the target digital collection, and then execute step 1601.
[0272] Step 1614: deduct the virtual resources to be transferred out from the first virtual resource account, and transfer the first digital resources equivalent to the virtual resources to be transferred out to the first digital resource account of the first object according to the virtual resources to be transferred out, and then destroy the virtual resources to be transferred out in the blockchain, and then execute step 1601.
[0273] Step 1615: Deduct the digital collection to be transferred from the second digital collection account, and transfer the second digital assets equivalent to the digital collection to be transferred to the second digital asset account of the second object based on the digital collection to be transferred, and then destroy the digital collection to be transferred in the blockchain, and then execute step 1601.
[0274] In this embodiment, when the transaction service node receives a transaction inquiry for a target digital asset sent by a first object through a blockchain, a transaction quotation is first sent to the first object through the blockchain according to the transaction inquiry. When the first object agrees to the transaction quotation, a transaction contract is signed with the first object, the transaction contract is uploaded to the blockchain, and the transaction contract is executed in the blockchain. Since the transaction inquiry sent by the first object, the transaction quotation sent by the transaction service node to the first object, and the transaction contract signed between the transaction service node and the first object are all carried out through the blockchain, manual intervention can be reduced, and the key link information of the inquiry transaction process can be uploaded to the chain for evidence storage, thereby ensuring the authenticity and tamper-proof of the inquiry transaction process, and thus avoiding operational risks in various links of the inquiry transaction. In addition, in the process of executing a transaction contract in the blockchain, the transaction service node first determines the target digital collection used to represent the target digital asset and the target virtual resource used to represent the target digital resource, and then performs a transfer-out process on the first object for the target virtual resource according to the transaction contract, and transfers the target digital collection to the first object according to the transaction contract to complete the inquiry transaction for the target digital asset. That is to say, in the process of executing the transaction contract, the execution of the transaction contract is achieved through the target digital collection that can represent the target digital asset and the target virtual resource that can represent the target digital resource. Therefore, it is possible to avoid directly using digital assets and digital resources to execute the transaction contract, thereby reducing the operational risks of digital resources and digital assets, and further improving the security of digital resources and digital assets.
[0275] The following are some practical examples to illustrate the application scenarios of the embodiments of the present invention.
[0276] The blockchain-based inquiry transaction processing method provided in the embodiment of the present invention can be applied to different application scenarios such as inquiry transactions for financial products and inquiry transactions for stocks and securities. The following is an explanation using the inquiry transaction scenarios for financial products and the inquiry transaction scenarios for stocks and securities as examples.
[0277] Scene 1
[0278] The inquiry transaction processing method based on blockchain provided by the embodiment of the present invention can be applied to the inquiry transaction scenario for financial products. For example, if an investor sends a transaction inquiry for a target financial product to a broker through blockchain, the broker can first receive the transaction inquiry through blockchain, and then call the off-chain data acquisition contract to obtain off-chain data from the off-chain data acquisition node according to the transaction inquiry, and generate a transaction quotation for the target financial product according to the off-chain data, and then send the transaction quotation to the investor through blockchain; when the investor agrees to the transaction quotation, the broker will sign a transaction contract with the investor and put the transaction contract on the chain so that the transaction contract can be executed in the blockchain, wherein the transaction contract includes the target funds required for trading the target financial product. During the execution of the transaction contract, the broker will first determine the target digital collection used to represent the target financial product and the target virtual resource used to represent the target funds, and then transfer the target virtual resource to the investor according to the transaction contract, and transfer the target digital collection to the investor according to the transaction contract to complete the inquiry transaction for the target financial product. When the transaction contract expires, the broker can call the off-chain data acquisition contract to send an off-chain data request to the off-chain data acquisition node, and then receive the off-chain data obtained by the off-chain data acquisition node according to the off-chain data request, and obtain the transaction settlement information based on the currently obtained off-chain data, and then obtain the value-added virtual resources based on the transaction settlement information, the target digital collection and the target virtual resources. When the value-added virtual resources are positive, the funds equivalent to the value-added virtual resources are transferred to the investor's digital resource account based on the value-added virtual resources, and the value-added virtual resources and the target digital collection are destroyed in the blockchain; when the value-added virtual resources are negative, the size of the absolute value of the value-added virtual resources and the margin is judged. When the absolute value of the value-added virtual resources is greater than the margin, the target digital collection is unfrozen, so that the target digital collection is in a state that can be traded at any time.
[0279] Scene 2
[0280] The blockchain-based inquiry transaction processing method provided in an embodiment of the present invention can also be applied to inquiry transaction scenarios for stock securities. For example, assuming that a first user sends a transaction inquiry for a target stock of a second user to a securities dealer through a blockchain, the securities dealer can first receive the transaction inquiry through the blockchain, and then obtain the second user's selling quotation for the target stock through the blockchain based on the transaction inquiry, and obtain a transaction quotation for the target stock based on the selling quotation, and then send the transaction quotation to the first user through the blockchain; when the first user agrees to the transaction quotation, the securities dealer will sign a transaction contract with the first user and put the transaction contract on the chain so that the transaction contract can be executed in the blockchain, wherein the transaction contract includes the target funds required for trading the target stock. During the execution of the transaction contract, the securities firm will first determine the target digital collection used to represent the target stock and the target virtual resources used to represent the target funds, and then transfer the target virtual resources to the first user according to the transaction contract, and transfer the target digital collection to the first user according to the transaction contract. At the same time, the securities firm will also add the target virtual resources to the virtual resource account of the second user according to the transaction contract, and deduct the target digital collection from the digital collection account of the second user. At this time, the inquiry transaction for the target stock can be completed. When the transaction contract expires, the broker can call the off-chain data acquisition contract to send an off-chain data request to the off-chain data acquisition node, and then receive the off-chain data obtained by the off-chain data acquisition node according to the off-chain data request, and obtain the transaction settlement information based on the currently obtained off-chain data, and then obtain the value-added virtual resources based on the transaction settlement information, the target digital collection and the target virtual resources. When the value-added virtual resources are positive, the funds equivalent to the value-added virtual resources are transferred to the digital resource account of the first user according to the value-added virtual resources, and the value-added virtual resources and the target digital collection are destroyed in the blockchain; when the value-added virtual resources are negative, the absolute value of the value-added virtual resources and the margin are judged. When the absolute value of the value-added virtual resources is greater than the margin, the target digital collection is unfrozen so that the target digital collection is in a state that can be traded at any time, that is, the first user is forced to close the position.
[0281] It is to be understood that, although the steps in the above-mentioned various flow charts are shown in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in the present embodiment, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the above-mentioned flow charts can include a plurality of steps or a plurality of stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of the steps or stages in other steps or other steps.
[0282] Reference Fig.17 The embodiment of the present invention further discloses a price inquiry transaction processing device based on blockchain. The price inquiry transaction processing device 1700 can implement the price inquiry transaction processing method based on blockchain in the previous embodiment. The price inquiry transaction processing device 1700 includes:
[0283] The transaction negotiation unit 1710 is configured to receive a transaction inquiry for a target digital asset sent by a first object through a blockchain, and send a transaction quotation to the first object through a blockchain according to the transaction inquiry;
[0284] The contract signing unit 1720 is used to sign a transaction contract with the first party when the first party agrees to the transaction quotation, upload the transaction contract to the blockchain, and execute the transaction contract in the blockchain, wherein the transaction contract includes the target digital resources required for trading the target digital assets;
[0285] The contract execution unit 1730 is used to determine the target digital collection used to represent the target digital asset and the target virtual resource used to represent the target digital resource during the process of executing the transaction contract in the blockchain, transfer out the target virtual resource to the first object according to the transaction contract, and transfer the target digital collection to the first object according to the transaction contract.
[0286] In one embodiment, the price inquiry transaction processing device 1700 further includes:
[0287] A virtual resource generation unit, configured to generate a target virtual resource according to the target digital resource in response to receiving the target digital resource transferred from the first object;
[0288] The virtual resource allocation unit is used to allocate the target virtual resource to the first virtual resource account of the first object through the blockchain.
[0289] In one embodiment, the price inquiry transaction processing device 1700 further includes:
[0290] A virtual resource deduction unit, configured to, in response to the first object initiating a transfer-out process on the virtual resources to be transferred out in the first virtual resource account through the blockchain, deduct the virtual resources to be transferred out from the first virtual resource account;
[0291] A first resource transfer unit, configured to transfer a first digital resource to a first digital resource account of a first object according to the virtual resource to be transferred out, wherein the first digital resource is equivalent to the virtual resource to be transferred out;
[0292] The virtual resource destruction unit is used to destroy the virtual resources to be transferred out in the blockchain.
[0293] In one embodiment, the target digital asset belongs to the second object, and the price inquiry transaction processing device 1700 further includes:
[0294] A digital collection generation unit, configured to upload a target digital asset to the blockchain in response to a second object request, and generate a target digital collection according to the target digital asset;
[0295] The digital collection allocation unit is used to allocate the target digital collection to the second digital collection account of the second object through the blockchain, and deduct the target digital asset from the second digital asset account of the second object.
[0296] In one embodiment, the price inquiry transaction processing device 1700 further includes:
[0297] A digital collection deduction unit, configured to, in response to the second object initiating a transfer process for the digital collection to be transferred out in the second digital collection account through the blockchain, deduct the digital collection to be transferred out from the second digital collection account;
[0298] A digital asset transfer unit, used to transfer a second digital asset to a second digital asset account of a second object according to the digital collection to be transferred out, wherein the second digital asset is equivalent to the digital collection to be transferred out;
[0299] The digital collection destruction unit is used to destroy the digital collections to be transferred out in the blockchain.
[0300] In one embodiment, the transaction negotiation unit 1710 is further configured to:
[0301] Call the off-chain data acquisition contract according to the transaction inquiry, and send the first off-chain data request to the off-chain data acquisition node;
[0302] Receiving the first off-chain data obtained by the off-chain data acquisition node according to the first off-chain data request, and generating a transaction quotation for the target digital asset according to the first off-chain data;
[0303] A transaction offer is sent to the first party via the blockchain.
[0304] In one embodiment, the target digital collectible belongs to the second object, and the transaction negotiation unit 1710 is further configured to:
[0305] Obtaining a selling quotation of the second party for the target digital collection through the blockchain according to the transaction inquiry;
[0306] Obtain a transaction quote for the target digital asset based on the selling quote;
[0307] A transaction offer is sent to the first party via the blockchain.
[0308] In one embodiment, the price inquiry transaction processing device 1700 further includes:
[0309] An off-chain data request unit, configured to, in response to the expiration of a transaction contract, call an off-chain data acquisition contract to send a second off-chain data request to an off-chain data acquisition node;
[0310] A settlement information acquisition unit, configured to receive the second off-chain data acquired by the off-chain data acquisition node according to the second off-chain data request, and obtain transaction settlement information according to the second off-chain data;
[0311] A value-added resource acquisition unit, used to obtain value-added virtual resources according to transaction settlement information, target digital collections and target virtual resources;
[0312] A second resource transfer unit, configured to transfer a second digital resource to the first digital resource account of the first object according to the value-added virtual resource when the value-added virtual resource is positive, wherein the second digital resource is equivalent to the value-added virtual resource;
[0313] Resource destruction unit, used to destroy value-added virtual resources and target digital collections in the blockchain.
[0314] In one embodiment, the second resource transfer unit is further configured to:
[0315] When the added-value virtual resource is a negative value, determining the difference between the absolute value of the added-value virtual resource and the retained resource, wherein the retained resource is used to allow the first object to have the right to dispose of the target digital collection;
[0316] When the absolute value of the added-value virtual resources is greater than the retained resources, the first object's disposal rights over the target digital collection are released, so that the target digital collection is in a state where it can be traded at any time.
[0317] In one embodiment, the contract signing unit 1720 is further configured to:
[0318] Agree on the contract details with the first party based on the transaction quotation;
[0319] Set the trigger condition information in the contract content to obtain the transaction contract;
[0320] The trigger condition information describes the trigger conditions for executing the transaction contract.
[0321] In one embodiment, the target digital collectible belongs to the second object, and the contract execution unit 1730 is further configured to:
[0322] Adding the target virtual resource in the second virtual resource account of the second object according to the transaction contract;
[0323] The target digital collection is deducted from the second digital collection account of the second object according to the transaction contract.
[0324] It should be noted that since the blockchain-based inquiry transaction processing device 1700 of this embodiment can implement the blockchain-based inquiry transaction processing method of the previous embodiment, the blockchain-based inquiry transaction processing device 1700 of this embodiment and the blockchain-based inquiry transaction processing method of the previous embodiment have the same technical principles and the same beneficial effects. In order to avoid repetition of content, they will not be repeated here.
[0325] Reference Fig.18 The embodiment of the present invention further discloses a price inquiry transaction processing device based on blockchain, and the price inquiry transaction processing device 1800 based on blockchain includes:
[0326] at least one processor 1801;
[0327] At least one memory 1802, used to store at least one program;
[0328] When at least one program is executed by at least one processor 1801, the aforementioned blockchain-based inquiry transaction processing method is implemented.
[0329] An embodiment of the present invention further discloses a computer-readable storage medium, which stores a computer program executable by a processor. When the computer program executable by the processor is executed by the processor, it is used to implement the blockchain-based inquiry transaction processing method as described above.
[0330] An embodiment of the present invention also discloses a computer program product, including a computer program or computer instructions, which are stored in a computer-readable storage medium. The processor of the blockchain-based inquiry transaction processing device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, so that the inquiry transaction processing device executes the blockchain-based inquiry transaction processing method as described above.
[0331] The terms "first", "second", "third", "fourth", etc. (if any) in the description of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0332] It should be understood that in the present invention, "at least one (item)" refers to one or more, and "plurality" refers to two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can represent: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0333] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0334] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0335] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0336] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.
[0337] The step numbers in the above method embodiment are only provided for the convenience of explanation and description, and no limitation is imposed on the order of the steps. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
Claims
1. A method for processing price inquiry transactions based on blockchain, characterized in that: The following steps are involved: Receiving a transaction inquiry for a target digital asset sent by a first object through a blockchain, and sending a transaction quotation to the first object through the blockchain according to the transaction inquiry; When the first object agrees to the transaction offer, a transaction contract is signed with the first object, the transaction contract is uploaded to the blockchain, and the transaction contract is executed in the blockchain, wherein the transaction contract includes the target digital resources required for trading the target digital assets; In the process of executing the transaction contract in the blockchain, a target digital collectible used to represent the target digital asset and a target virtual resource used to represent the target digital resource are determined, and the first object is subjected to transfer-out processing for the target virtual resource according to the transaction contract, and the target digital collectible is transferred to the first object according to the transaction contract.
2. The method according to claim 1, characterized in that The method further comprises: In response to receiving the target digital resource transferred by the first object, generating the target virtual resource according to the target digital resource; The target virtual resource is allocated to a first virtual resource account of the first object through the blockchain.
3. The method according to claim 2, characterized in that The method further comprises: In response to the first object initiating a transfer-out process for the virtual resources to be transferred out in the first virtual resource account through the blockchain, deducting the virtual resources to be transferred out from the first virtual resource account; Transferring a first digital resource into a first digital resource account of the first object according to the virtual resource to be transferred out, wherein the first digital resource is equivalent to the virtual resource to be transferred out; The virtual resource to be transferred out is destroyed in the blockchain.
4. The method according to claim 1, characterized in that The target digital asset belongs to the second object, and the method further includes: In response to the second object requesting to put the target digital asset on the chain, generating the target digital collection according to the target digital asset; The target digital collection is allocated to the second digital collection account of the second object through the blockchain, and the target digital asset is deducted from the second digital asset account of the second object.
5. The method according to claim 4, characterized in that The method further comprises: In response to the second object initiating a transfer process for the digital collectibles to be transferred out in the second digital collectibles account through the blockchain, deducting the digital collectibles to be transferred out from the second digital collectibles account; Transferring a second digital asset to a second digital asset account of the second object according to the digital collection to be transferred out, wherein the second digital asset is equivalent to the digital collection to be transferred out; Destroy the digital collection to be transferred in the blockchain.
6. The method according to claim 1, characterized in that The sending a transaction quotation to the first object through the blockchain according to the transaction inquiry includes: Calling the off-chain data acquisition contract according to the transaction inquiry, and sending a first off-chain data request to the off-chain data acquisition node; Receiving the first off-chain data acquired by the off-chain data acquisition node according to the first off-chain data request, and generating a transaction quotation for the target digital asset according to the first off-chain data; The transaction offer is sent to the first object through the blockchain.
7. The method according to claim 1, characterized in that The target digital collection belongs to a second object, and sending a transaction quotation to the first object through the blockchain according to the transaction inquiry includes: Obtaining a selling quotation of the second object for the target digital collectible through the blockchain according to the transaction inquiry; Obtaining a transaction quotation for the target digital asset according to the selling quotation; The transaction offer is sent to the first object through the blockchain.
8. The method according to claim 1, characterized in that: The method further comprises: In response to the expiration of the transaction contract, calling the off-chain data acquisition contract to send a second off-chain data request to the off-chain data acquisition node; Receiving the second off-chain data acquired by the off-chain data acquisition node according to the second off-chain data request, and obtaining transaction settlement information according to the second off-chain data; Obtaining a value-added virtual resource according to the transaction settlement information, the target digital collection and the target virtual resource; When the value-added virtual resource is positive, transferring a second digital resource to the first digital resource account of the first object according to the value-added virtual resource, wherein the second digital resource is equivalent to the value-added virtual resource; The value-added virtual resources and the target digital collectibles are destroyed in the blockchain.
9. The method according to claim 8, characterized in that The method further comprises: When the added-value virtual resource is a negative value, determining the difference between the absolute value of the added-value virtual resource and the reserved resource, wherein the reserved resource is used to allow the first object to have the right to dispose of the target digital collection; When the absolute value of the added-value virtual resource is greater than the retained resource, the first object's disposal authority over the target digital collection is released, so that the target digital collection is in a state that can be traded at any time.
10. The method according to claim 1, characterized in that The step of signing a transaction contract with the first object includes: Agreeing on the contract content with the first party according to the transaction quotation; Setting trigger condition information in the contract content to obtain the transaction contract; The trigger condition information describes the trigger conditions for executing the transaction contract.
11. The method according to claim 1, characterized in that: The target digital collectible belongs to the second object, and in the process of executing the transaction contract in the blockchain, the method further includes: adding the target virtual resource in the second virtual resource account of the second object according to the transaction contract; The target digital collection is deducted from the second digital collection account of the second object according to the transaction contract.
12. A price inquiry transaction processing device based on blockchain, characterized in that: include: A transaction negotiation unit, configured to receive a transaction inquiry for a target digital asset sent by a first object through a blockchain, and send a transaction quotation to the first object through the blockchain according to the transaction inquiry; A contract signing unit, configured to sign a transaction contract with the first object when the first object agrees to the transaction quotation, upload the transaction contract to the blockchain, and execute the transaction contract in the blockchain, wherein the transaction contract includes the target digital resources required for trading the target digital assets; A contract execution unit is used to determine, during the process of executing the transaction contract in the blockchain, a target digital collectible used to represent the target digital asset and a target virtual resource used to represent the target digital resource, perform a transfer-out process on the first object for the target virtual resource according to the transaction contract, and transfer the target digital collectible to the first object according to the transaction contract.
13. A price inquiry transaction processing device based on blockchain, characterized in that: include: at least one processor; at least one memory for storing at least one program; When at least one of the programs is executed by at least one of the processors, the blockchain-based inquiry transaction processing method as described in any one of claims 1 to 11 is implemented.
14. A computer-readable storage medium, characterized in that: A computer program executable by a processor is stored therein, and when the computer program executable by the processor is executed by the processor, it is used to implement the blockchain-based inquiry transaction processing method as described in any one of claims 1 to 11.
15. A computer program product comprising a computer program or computer instructions, characterized in that The computer program or the computer instructions are stored in a computer-readable storage medium, and the processor of the blockchain-based inquiry transaction processing device reads the computer program or the computer instructions from the computer-readable storage medium, and the processor executes the computer program or the computer instructions, so that the inquiry transaction processing device performs the blockchain-based inquiry transaction processing method as described in any one of claims 1 to 11.
Citation Information
Cited By
Account transfer method and device of block chain system
CN112348501A