CN111815444B - Block chain transaction method, electronic device and storage medium - Google Patents

Block chain transaction method, electronic device and storage medium Download PDF

Info

Publication number
CN111815444B
CN111815444B CN202010584188.4A CN202010584188A CN111815444B CN 111815444 B CN111815444 B CN 111815444B CN 202010584188 A CN202010584188 A CN 202010584188A CN 111815444 B CN111815444 B CN 111815444B
Authority
CN
China
Prior art keywords
transaction
funds
blockchain
platform
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010584188.4A
Other languages
Chinese (zh)
Other versions
CN111815444A (en
Inventor
张日和
谭长生
楼颖飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Shulun Technology Co ltd
Original Assignee
Shenzhen Advance River System Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Advance River System Technology Co ltd filed Critical Shenzhen Advance River System Technology Co ltd
Priority to CN202010584188.4A priority Critical patent/CN111815444B/en
Publication of CN111815444A publication Critical patent/CN111815444A/en
Application granted granted Critical
Publication of CN111815444B publication Critical patent/CN111815444B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application discloses a block chain transaction method, electronic equipment and a storage medium, wherein the transaction method comprises the following steps: the transaction platform of the blockchain receives transaction information and transaction funds from a first node of the blockchain; invoking intelligent contracts of the blockchain to generate transaction contracts based on transaction information; executing the trade contract to transfer at least a portion of the trade funds to a second node of the blockchain; at least a portion of the remaining transactional funds are transferred to a blockchain management platform for use in managing the blockchain. By the adoption of the mode, the safety and reliability of transaction can be effectively improved, and the healthy, stable and sustainable development of the blockchain is promoted.

Description

Block chain transaction method, electronic device and storage medium
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a blockchain transaction method, an electronic device, and a storage medium.
Background
With the rise of blockchain technology, more and more blockchain projects are vigorously developed. Blockchain technology significantly reduces transaction costs with machine code trust, encouraging more participants to enter blockchain projects and participate in blockchain transactions.
The blockchain nodes in the blockchain system can participate in blockchain billing, so that the distributed storage of the blockchain data is realized; and the blockchain node can also participate in blockchain transactions to generate fund flow and create value, so that the blockchain economic system can be normally developed.
Disclosure of Invention
The application mainly solves the technical problems that: the block chain transaction method, the electronic equipment and the storage medium can effectively improve the safety and reliability of transactions and promote the healthy, stable and sustainable development of block chains.
In order to solve the technical problems, the application adopts a technical scheme that: provided is a transaction method of a blockchain, comprising: the transaction platform of the blockchain receives transaction information and transaction funds from a first node of the blockchain; invoking intelligent contracts of the blockchain to generate transaction contracts based on transaction information; executing the trade contract to transfer at least a portion of the trade funds to a second node of the blockchain; transferring at least a portion of the remaining transactional funds to a blockchain management platform for use in managing the blockchain; the management platform is used for managing fund balance of the blockchain system.
Optionally, the transaction platform of the blockchain further includes, after receiving the transaction information and the transaction funds from the first node of the blockchain: the transaction platform judges whether a transaction completion message from a first node is received within a first preset time; if so, executing the trade contract to transfer at least a portion of the trade funds to a second node of the blockchain.
Optionally, the transaction platform of the blockchain further includes, after receiving the transaction information and the transaction funds from the first node of the blockchain: if the transaction platform does not receive the transaction completion message within the first preset time, the transaction platform further judges whether a transaction cancellation message of the first node or the second node is received within the second preset time; if the transaction cancellation message is not received, executing a transaction contract to transfer at least a portion of the transaction funds to a second node of the blockchain; if a transaction cancellation message is received, not executing the transaction contract to transfer at least a portion of the transaction funds to the second node of the blockchain and refund at least a portion of the transaction funds to the first node; wherein the second preset time is longer than the first preset time.
Optionally, executing the trade contract to transfer at least a portion of the trade funds to the second node of the blockchain includes: and the transaction platform transfers at least part of the transaction funds to the second node within a third preset time after receiving the transaction completion message.
Optionally, the transaction platform of the blockchain further includes, after receiving the transaction information and the transaction funds from the first node of the blockchain: forming a transaction notification message based on the transaction information and transmitting the transaction notification message to the second node to enable the second node to perform a transaction in accordance with the transaction notification message.
Optionally, the trading platform receives at least a portion of the remaining trading funds for use in governance of the trading platform.
In order to solve the technical problems, the application adopts another technical scheme that: providing a management platform for receiving transaction information and at least part of transaction funds; the transaction information is from a first node of the blockchain or a transaction platform of the blockchain, and at least part of transaction funds are transferred to the management platform after the transaction platform receives the transaction funds of the first node; invoking intelligent contracts of the blockchain to generate transaction contracts based on transaction information; executing the trade contract to transfer at least a portion of the trade funds to a second node of the blockchain; leaving at least a portion of the remaining transactional funds available for use in remediating the blockchain; the management platform is used for managing fund balance of the blockchain system.
Optionally, prior to executing the trade contract to transfer at least a portion of the trade funds to the second node of the blockchain further comprises: the management platform judges whether a transaction completion message from a first node or a transaction platform is received within a first preset time; executing the transaction contract to transfer at least a portion of the transaction funds to a second node of the blockchain if the transaction completion message is received; if the transaction completion message is not received, the management platform further judges whether the transaction cancellation message of the first node, the second node or the transaction platform is received within the second preset time; if a transaction cancellation message is received, not executing the transaction contract to transfer at least a portion of the transaction funds to the second node of the blockchain and refund at least a portion of the transaction funds to the first node; if the transaction cancellation message is not received, executing a transaction contract to transfer at least a portion of the transaction funds to a second node of the blockchain; wherein the second preset time is longer than the first preset time.
Optionally, the management platform receiving the transaction information and at least a portion of the transaction funds comprises: the management platform receives transaction information and part of transaction funds; wherein, the part of transaction funds are transferred to the other part of transaction funds of the management platform after the transaction platform leaves a part of the transaction funds; or, the management platform receiving the transaction information and at least a portion of the transaction funds comprises: the management platform receives transaction information and all transaction funds; leaving at least a portion of the remaining transactional funds for use in administering the blockchain further includes: the management platform reserves a portion of the remaining transactional funds and transfers another portion of the remaining transactional funds to the transactional platform for use in governance of the transactional platform.
In order to solve the technical problems, the application adopts another technical scheme that: there is provided an electronic device comprising a processor, a memory, and a communication circuit, the processor being coupled to the memory and the communication circuit; the communication circuit is used for communicating the electronic equipment with the block chain link point equipment; the memory is used for storing program instructions; the processor is configured to execute the program instructions to implement the blockchain transaction method described above.
In order to solve the technical problems, the application adopts another technical scheme that: there is provided a computer storage medium storing program instructions executable by a processor to implement the blockchain transaction method described above.
The beneficial effects of the application are as follows:
according to the embodiment, a trusted transaction channel is provided through the transaction platform, transaction funds of a transaction party can be transferred to the transaction platform first and then distributed by the transaction platform, so that property loss caused by malicious transaction to the transaction party is effectively reduced, and the safety and reliability of the transaction are improved. The transaction platform automatically distributes transaction funds by executing the transaction contract, so that human intervention can be reduced, and the credibility of transaction funds distribution is improved. The management platform on the blockchain can enable funds for managing the blockchain network to be continuous by collecting part of transaction funds, does not worry about the exhaustion of funds to influence the normal operation of the blockchain, and is beneficial to promoting the healthy, stable and sustainable development of the blockchain.
Drawings
FIG. 1 is a schematic diagram of a block chain system embodiment of the present application;
FIG. 2 is a flow chart of a first embodiment of a blockchain transaction method of the present application;
FIG. 3 is a flow chart of a second embodiment of a blockchain transaction method of the present application;
FIG. 4 is a flow chart of a third embodiment of a blockchain transaction method of the present application;
FIG. 5 is a flow chart of a fourth embodiment of a blockchain transaction method of the present application;
FIG. 6 is a flowchart of a fifth embodiment of a blockchain transaction method of the present application;
FIG. 7 is a flowchart of a sixth embodiment of a blockchain transaction method of the present application;
FIG. 8 is a schematic diagram of an embodiment of an electronic device of the present application;
fig. 9 is a schematic structural view of an embodiment of the storage medium of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms "first," "second," "third," and the like in this disclosure are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The inventor of the present application has long studied to find that: there are a number of problems with blockchain transactions between blockchain nodes in the current blockchain project. The transactions spontaneously performed by both transaction parties in the blockchain are lack of trusted guarantee, and some malicious transactions are easy to cause property loss and privacy disclosure of the transaction parties, and the transaction efficiency of the blockchain is reduced. Ineffective transactions also waste the computational power of the blockchain nodes in the blockchain system, affecting the normal operation of the blockchain system. With the development of the blockchain, the more funds are consumed for maintaining the blockchain system, the less funds can be used for maintaining the blockchain system, which is not only unfavorable for the development of the blockchain system, but also can cause the breakdown of the blockchain system network. In order to solve these problems, the present application proposes at least the following embodiments.
Referring to fig. 1, fig. 1 is a schematic diagram of a blockchain system embodiment of the present application. The blockchain system 100 of the present embodiment includes a transaction platform 101, a management platform 102, and blockchain nodes 103.
The transaction platform 101 may provide a trusted transaction pathway for both parties to a transaction. The blockchain node 103 may transfer transaction funds to the transaction platform 101 when performing blockchain transactions, and the transaction platform 101 may keep the transaction funds and distribute the transaction funds after completing the transactions. The transaction platform 101 may also collect sales or purchase information of goods or services on the blockchain, and push the information to corresponding requesters or buyers to facilitate transactions between blockchain nodes 103, thereby improving transaction efficiency.
The blockchain system 100 of the present embodiment may include one or more transaction platforms 101, where different transaction platforms 101 may use the same digital currency for transactions or may use corresponding digital currencies for transactions, respectively. Transactions conducted between the various transaction platforms 101 may be isolated from each other to protect the privacy security of the transactions. The transaction platforms 101 can also alleviate the inefficiency of transactions caused by high concurrency of data in the blockchain system 100, which is beneficial to improving the transaction efficiency. Blockchain node 103 may participate in transactions for multiple transaction platforms 101.
The trading platform 101 may also deploy corresponding smart contracts that may be used to normalize the trading rules of the blockchain or the distribution rules of the trading funds. When the blockchain transaction is performed, the transaction platform 101 can perform the transaction or distribute the transaction funds by executing the corresponding intelligent contract, so that human intervention can be reduced, and the credibility of the blockchain transaction is improved.
In some embodiments, the transaction platform 101 may also provide an information distribution interface through which the blockchain node 103 may distribute merchandise or service information for transactions. For example, the buyer node may issue a purchase demand to the transaction platform 101, and the seller node obtains the transaction demand and then matches the purchase demand, and if the purchase demand is met, the transaction may be performed with the buyer node through the transaction platform 101. Alternatively, the seller node may issue the offered goods or services to the transaction platform 101, and the buyer node may initiate a transaction to the seller node through the transaction platform 101 upon purchase. The transaction platform 101 may also notify the seller node to provide the corresponding goods or services after receiving the transaction information of the buyer node.
In this embodiment, the blockchain node 103 performs a transaction through the transaction platform 101, and the transaction platform 101 may also collect corresponding commissions from the transaction funds for the administration of the transaction platform 101 to maintain the safe and stable operation of the transaction platform 101. The transaction platform 101 can also verify the identity legitimacy of both sides of the transaction when the transaction is performed, and perform the transaction when the identities of both sides of the transaction are legal, otherwise, the transaction can be terminated to ensure the security of the transaction. In addition, the transaction platform 101 is used for carrying out the transaction, so that the identity of the opposite party is not required to be known in the transaction process of the two parties, and the privacy security of the two parties is protected.
In this embodiment, the management platform 102 may manage the capital expenditure of the blockchain system 100. The funding balance of the blockchain system 100 is performed, for example, by a common account configured by the blockchain system 100, where funds can be used for blockchain governance. The management platform 102 may implement management of the monetary balance of the blockchain system 100 by managing public accounts. For example, the management platform 102 may place the collected transaction funds for the blockchain transaction into a public account and withdraw funds from the public account for use in administering the blockchain. The management platform 102 may be a particular node or organization thereof in the blockchain system 100. For example, the management platform 102 may be selected nodes of the blockchain system 100 that are stable in operation and high in credibility, which may collectively manage the capital expenditure of the blockchain system 100.
The management platform 102 may perform transfer, collection, payment, verification, etc. of funds to the blockchain system 100 to maintain stable development of digital currency in the blockchain system 100. For example, the management platform 102 may collect a portion of the transaction funds of the blockchain transaction, which may be used in the administration of the blockchain system 100 as a commission provided by the blockchain node 103 to maintain the stable and sustainable development of the blockchain system 100.
The management platform 102 may also set up a corresponding account for storing funds for the blockchain system 100. The management platform 102 may place the received transaction funds into a corresponding account for escrow. For example, the management platform 102 may place transaction funds into corresponding types of accounts according to the types of funds, so as to respectively manage the transaction funds of multiple types; or the management platform 102 may put the transaction funds transacted on the different transaction platforms 101 into different accounts to achieve funds isolation for the different transaction platforms 101.
In this embodiment, the blockchain system 100 provides a trusted transaction channel for blockchain transactions through the cooperation of the management platform 102 and the transaction platform 101, and performs trusted allocation on transaction funds, which is beneficial to improving the security of blockchain transactions.
The management platform 102 may also preset corresponding smart contracts for rules specifying the funding balance of the blockchain system 100. For example, the management platform 102 may perform management operations such as collection, payment, or verification of funds by executing smart contracts, which is advantageous for reducing human intervention and improving the security of funds and the reliability of funds management for the blockchain system 100.
In some embodiments, the management platform 102 may also be the transaction platform 101, where the management platform 102 in the blockchain system 100 may serve as the transaction platform 101 to provide a corresponding transaction channel for blockchain transactions and manage the distribution of transaction funds. In this embodiment, the blockchain system 100 includes a management platform 102 and blockchain nodes 103. The management platform 102 can fulfill the functions of the transaction platform 101, and the transaction involving the blockchain node 103 can be performed by the management platform 102.
In this embodiment, the blockchain node 103 may participate in transactions in the blockchain network, and may obtain corresponding goods or services by paying out funds for the transactions, or may obtain corresponding funds for paying out goods or services. The blockchain node 103 has a plurality of nodes and can participate in blockchain transactions through the transaction platform 101. When the blockchain node 103 carries out transaction through the transaction platform 101, the identity of the opposite party is not required to be known, and the transaction platform 101 provides trusted transaction guarantee, so that the privacy security of both parties of the transaction can be effectively protected.
The blockchain node 103 may also participate in transactions such as endorsing, ordering, packaging blocks, communicating or billing of the blockchain, and may also obtain corresponding rewards by participating in the blockchain transaction. For example, the blockchain node 103 may obtain a corresponding fund reward by participating in the packaging of the blocks, or obtain a corresponding endorsed fund reward by transacting endorsements; blockchain node 103 may participate in blockchain transactions with the accumulated funds as transaction funds.
In this embodiment, the blockchain node 103 may also include a light node, where the light node may participate in blockchain transaction, and transfer transaction information and transaction funds through the transaction platform 101, and after the transaction is completed, store blockchain data related to the transaction itself, without synchronizing a complete blockchain ledger, which is beneficial to saving calculation power and improving transaction efficiency of the blockchain node 103.
The blockchain system 100 of the embodiment is used for providing a trusted transaction channel by arranging the transaction platform 101, transaction funds of a transaction party can be transferred to the transaction platform 101 firstly and then distributed by the transaction platform 101, so that property loss caused by malicious transaction to the transaction party is effectively reduced, the safety and reliability of the transaction are improved, and direct contact of the transaction party and the transaction party can be avoided by the transaction platform 101, thereby being beneficial to protecting privacy safety of the transaction party and the transaction party; the management platform 102 on the blockchain may be used to govern the blockchain system 100 by collecting a portion of the transactional funds, which may be beneficial to promote stable and sustainable development of the blockchain system 100.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a blockchain transaction method according to the present application. The embodiment comprises the following steps:
s101: the first node transmits the transaction information and the transaction funds to the transaction platform.
In this embodiment, the first node may be any blockchain node in a blockchain system. The first node is used as a demand party to participate in blockchain transaction, and obtains corresponding goods or services through paying out funds. The first node may communicate with the transaction platform, send transaction information for purchasing goods or services to the transaction platform, and pay corresponding transaction funds to the transaction platform, thereby conducting blockchain transactions.
In this embodiment, the transaction information may include an address of both parties to the transaction, a transaction time, a transaction amount, goods or services of the transaction, other related information, and the like. The transaction information may be unilateral transaction information. For example, the transaction information is sent by the requesting party to the transaction platform and may include the address of the requesting party, the transaction amount, information regarding the desired goods or services, etc. After the first node transmits the transaction information to the transaction platform, the transaction platform can search a proper transaction party according to the transaction information to conduct the transaction.
In this embodiment, the transaction funds are funds paid by the first node based on the value of the purchased good or service. The total amount of transaction funds is not less than the corresponding transaction amount in the transaction. The first node may complete the payment at one time, or may pay in stages, etc. when paying the transaction funds. When the first node performs blockchain transaction, transaction funds can be paid to the transaction platform in advance, and the transaction platform performs funds keeping. After receiving the transaction funds, the transaction platform can verify whether the transaction funds meet the regulations, such as whether the transaction funds are enough, whether the transaction funds are legal and effective, and the like, and if the regulations are met, the transaction is continued.
S102: the trading platform generates a trading contract based on the trading information.
In this embodiment, the transaction platform may provide a blockchain transaction channel. The transaction platform is deployed with corresponding intelligent contracts, and after transaction information is received, the transaction contracts of the transaction can be generated by calling the intelligent contracts on the blockchain.
The smart contracts may be used to normalize rules for blockchain transactions. Including, for example, the terms of the transaction, the manner of execution, the method of processing the incomplete transaction, etc. The smart contract may also specify payment or distribution rules for the transaction funds, including, for example, the manner of payment for the transaction funds, the payment address, the proportion of payment to the seller to the transaction platform and/or management platform, the time of payment, etc.
When the first node conducts a transaction, the transaction information is sent to the transaction platform to request the transaction. The transaction platform can also verify the correctness and legality of the transaction information after receiving the transaction information. For example, the transaction platform may verify that the transaction information is in the correct format, that the information is complete, that the identity or address of the transaction party is legitimate, that the amount of funds in the transaction is correct, and so on. The transaction platform can call the intelligent contract to generate a corresponding transaction contract when the transaction information is verified to be correct and legal.
S103: the trading platform executes a trading contract to transfer at least a portion of the trading funds to the second node.
The second node may be any blockchain node in the blockchain system, and the second node may be a supplier, participate in blockchain transactions, obtain corresponding rewards by providing goods or services, and the like. The second node may communicate with the transaction platform, provide the first node with a corresponding commodity or service upon receipt of a transaction message from the transaction platform, and obtain corresponding transaction funds. In some embodiments, the second node may also issue the provided goods or services to the transaction platform in advance, and the transaction platform notifies the second node to perform the transaction when receiving the corresponding transaction requirement of the first node, and the second node may obtain the corresponding transaction funds after performing the transaction.
In this embodiment, the transaction platform may execute the transaction contract to transfer at least a portion of the transaction funds to the second node when both parties to the transaction complete the transaction. For example, the trading platform may pay the second node for the corresponding trade funds as specified by the trade contract when the first node receives the goods or services of the second node and confirms that the trade is completed. Alternatively, the trading platform may execute trade contracts for distribution of trade funds at contracted times. For example, the trading platform may pay the corresponding trade funds to the second node a preset time, such as eight days, ten days, after receiving the trade contract.
The transaction platform transfers at least a portion of the transaction funds to the second node, which may be the entire payment of the transaction funds to the second node. Alternatively, the trading platform may pay a corresponding portion of the trading funds to the second node according to the proportion of the trading funds in the trading contract, and the remaining trading funds may be transferred to the management platform for use in managing blockchains. For example, the trading platform may also perform the following step S104.
S104: the trading platform transfers at least a portion of the remaining trade funds to the management platform.
In this embodiment, the management platform may be used to manage the fund balance of the blockchain system. The funds collected by the management platform can be used for managing the blockchain system to maintain the stable operation of the blockchain system. The trading platform may pay a portion of the trading funds to the second node after the trade is completed and transfer the remaining portion of the trading funds to the management platform. Or, after receiving the transaction funds, the transaction platform may transfer part of the transaction funds to the management platform in advance, and pay the corresponding transaction funds to the second node when the transaction is completed.
The transaction platform transfers part of transaction funds to the management platform, so that funds for managing the blockchain system can be continuously used without worrying about the influence of funds exhaustion on the normal operation of the blockchain, and the healthy, stable and sustainable development of the blockchain is facilitated. In some embodiments, the management platform may be integrated with the trading platform, which may leave the remaining trading funds for use in administering the blockchain system.
In some embodiments, the transaction platform may also collect a certain fee from the blockchain transaction for administration of the transaction platform to maintain safe and stable operation of the transaction platform. For example, the trading platform may also perform the following step S105.
S105: the trading platform receives at least a portion of the remaining trading funds for use in governance of the trading platform.
The transaction platform provides a trusted transaction channel for the transaction in the blockchain system, so that the blockchain node can conduct the transaction through the transaction platform when participating in the blockchain transaction, the transaction platform can also collect transaction funds, temporary storage service is provided for the transaction funds before the transaction is distributed, the security of the transaction funds is protected, and the funds loss caused by malicious transaction is reduced. In order to maintain the stable operation of the transaction platform, a safer and more reliable transaction channel is provided, and the transaction platform can collect part of commission from transaction funds for the treatment of the transaction platform.
In this embodiment, the transaction platform may pay a portion of the transaction funds to the second node after the transaction is completed, and may reserve a portion of the remaining transaction funds for use in administering the transaction platform. Or, the transaction platform may take out part of the transaction funds for standby in advance after receiving the transaction funds, and pay the rest of the transaction funds to the second node when the transaction is completed.
In the present embodiment, the steps of S104 and S105 may be performed by either one or both of them, and the order of execution is not limited. For example, the trading platform may pay a portion of the trading funds to the second node, leave the remaining trading funds or transfer the remaining trading funds to the management platform; or, the transaction platform may pay a portion of the transaction funds to the second node, leave a portion of the remaining transaction funds, and transfer another portion of the remaining transaction funds to the management platform, i.e., a portion of the transaction funds in the blockchain is used to govern the transaction platform and another portion is used to govern the blockchain system to maintain stable operation of the transaction platform and blockchain.
According to the embodiment, a trusted transaction channel is provided through the transaction platform, transaction funds of a transaction party can be transferred to the transaction platform first and then distributed by the transaction platform, so that property loss caused by malicious transaction to the transaction party is effectively reduced, and the safety and reliability of the transaction are improved. The transaction platform automatically distributes transaction funds by executing the transaction contract, so that human intervention can be reduced, and the credibility of transaction funds distribution is improved. The management platform on the blockchain can enable funds for managing the blockchain network to be continuous by collecting part of transaction funds, does not worry about the exhaustion of funds to influence the normal operation of the blockchain, and is beneficial to promoting the healthy, stable and sustainable development of the blockchain.
In this embodiment, the order of steps S101 to S105 is the description order in this embodiment, and is not limited to the order of the transaction method of the blockchain in this embodiment in the execution process, and some steps may be replaced, executed simultaneously or executed separately on the premise that the method can be implemented.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of a blockchain transaction method according to the present application. The present embodiment is further described based on the first embodiment of the transaction method of the blockchain of the present application, and the same steps as those of the first embodiment of the transaction method of the blockchain of the present application are not described herein. The embodiment comprises the following steps:
S201: the first node transmits the transaction information and the transaction funds to the transaction platform.
S202: the trading platform generates a trading contract based on the trading information.
S203: the transaction platform forms a transaction notification message based on the transaction information and sends the transaction notification message to the second node.
After the transaction platform receives the transaction information of the first node, a transaction notification message may be formed based on the transaction information. In this embodiment, the transaction notification message may include information of the goods or services being transacted, related information of the first node, transaction time limit, transaction amount, other related information, and the like. The transaction platform can extract relevant information in the transaction information and form a transaction notification message after receiving the transaction information. The transaction platform sends the transaction notification message to the second node so that the second node can execute the transaction in time.
In this embodiment, the first node sends the transaction information to the transaction platform, and the transaction platform notifies the second node to perform the transaction, so that direct contact between the two parties of the transaction can be avoided, privacy security of the two parties of the transaction can be protected, and the transaction platform can provide trusted keeping of the transaction funds, so as to protect the transaction funds security of the first node.
S204: the second node performs the transaction in accordance with the transaction notification message.
When the second node receives the transaction notification message, the second node can provide corresponding goods or services for the first node within a specified time according to the transaction content in the transaction notification message.
In this embodiment, when the transaction is completed, the transaction platform may allocate the transaction funds according to the specification of the transaction contract, for example, the following steps S207 to S209 are performed. Or, after notifying the second node to conduct the transaction, the transaction platform can also judge whether the transaction is completed correctly, so as to determine whether to conduct the allocation of the transaction funds. For example, the trading platform may also perform the following steps S205 or S205-S206 before distributing the trading funds.
S205: the transaction platform judges whether a transaction completion message is received within a first preset time.
In this embodiment, after notifying the second node to execute the transaction, the transaction platform may determine whether the transaction is completed by determining whether a transaction completion message of the first node is received. The transaction platform may time the transaction, for example, from the time of receiving the transaction information or from the time of sending the transaction notification message to the second node, and then determine whether the transaction completion message from the first node is received within a first preset time after starting the time counting. The first preset time is, for example, seven days or ten days, and if the transaction platform receives the transaction completion message of the first node within the first preset time, the transaction platform can determine that the transaction is completed correctly.
In this embodiment, the transaction completion message may include information about execution time, completion degree, and the like of the transaction. The transaction platform can also pay corresponding transaction funds to the second node according to the completion condition, such as the completion degree, of the transaction in the transaction completion message when the transaction completion message is received. For example, the first node sends a transaction completion message to the transaction platform indicating that the second node has completed only a portion of the transaction, and the transaction platform may pay the second node a corresponding portion of the transaction funds after confirmation; the transaction platform can also refund the transaction funds corresponding to the incomplete partial transaction to the first node, or pay the corresponding transaction funds to the second node when the transaction completion message of the rest partial transaction is subsequently received.
In this embodiment, if the transaction platform receives the transaction completion message from the first node within the first preset time, the following steps S207 to S209 may be executed to allocate transaction funds; if the transaction platform does not receive the transaction completion message from the first node within the first preset time, the following step S207 may not be performed, or the transaction platform may further determine whether the transaction is canceled, for example, the following step S206 may be performed.
S206: the transaction platform judges whether a transaction cancellation message is received within a second preset time.
In this embodiment, if the transaction platform does not receive the transaction completion message of the first node within the first preset time, it may further determine whether a transaction cancellation message is received within the second preset time, so as to determine whether the transaction is cancelled. The transaction cancellation message may include information regarding the reason for the cancellation of the transaction, the cancellation time, etc. The transaction cancellation message may be sent to the transaction platform by the first node or the second node when canceling the transaction.
In this embodiment, the second preset time is longer than the first preset time. The transaction platform may time the transaction, for example, from receipt of the transaction information or from sending a transaction notification message to the second node. The first preset time and the second preset time may adopt the same timing mode, and the second preset time is greater than the first preset time. For example, the first preset time is seven days, the second preset time may be ten days, and if the transaction platform does not receive the transaction completion message within seven days, it is further determined whether a transaction cancellation message is received within ten days.
In this embodiment, if the transaction platform does not receive the transaction completion message in the first preset time or the transaction cancellation message in the second preset time, the transaction platform may pay the corresponding transaction funds to the second node according to the rule of the transaction contract, for example, execute the following step S207; or the transaction platform may also confirm to the first node and/or the second node whether the transaction is complete to determine whether to conduct the allocation of funds for the transaction. If the transaction platform receives the transaction cancellation message of the first node or the second node within the second preset time, the transaction platform determines that the transaction is cancelled, and the following step S207 may not be performed. Alternatively, the transaction platform may also refund the transaction funds when the transaction is cancelled, for example, by performing the following step S210.
S207: the trading platform executes a trading contract to transfer at least a portion of the trading funds to the second node.
In this embodiment, the transaction platform may further transfer at least a portion of the transaction funds to the second node within a third predetermined time after receiving the transaction completion message. The third preset time is, for example, one day or three days. The transaction platform distributes transaction funds within the third preset time, and can provide proper buffer time for the transaction platform and the transaction parties to determine that the transaction is completed correctly.
In some embodiments, the transaction funds collected by the transaction platform can be used for other purposes to generate benefits in the time of keeping the transaction platform, so that the flexibility of the transaction platform for transaction funds management can be effectively improved, and the benefits generated by the transaction funds can be used for controlling the transaction platform to maintain the stable operation of the transaction platform.
S208: the trading platform transfers at least a portion of the remaining trade funds to the management platform.
S209: the trading platform receives at least a portion of the remaining trading funds for use in governance of the trading platform.
S210: the trading platform refunds at least a portion of the trade funds to the first node.
In this embodiment, if the transaction platform receives the transaction cancellation message of the first node or the second node, the transaction platform may also refund the corresponding transaction funds to the first node. For example, after the transaction platform receives the transaction cancellation message, the transaction platform can confirm to the first node or the second node, if it is determined that the transaction is cancelled, at least part of the transaction funds can be returned to the first node within a certain time, so that the benefit of the first node can be effectively protected, and the benefit loss of the first node caused by the transaction failure is reduced.
In this embodiment, when the transaction platform refunds transaction funds, the transaction funds can be totally refunded or partially refunded according to the rules of the transaction contract, and when the transaction platform refunds partially, the rest of the transaction funds can be reserved in the transaction platform or transferred to the management platform for treating the transaction platform or the blockchain system.
According to the embodiment, a trusted transaction channel is provided through the transaction platform, transaction funds of a transaction party can be transferred to the transaction platform first and then distributed by the transaction platform, so that property loss caused by malicious transaction to the transaction party is effectively reduced, and the safety and reliability of the transaction are improved. The transaction parties can conduct transaction through the transaction platform, direct contact of the transaction parties can be avoided, and privacy safety of the transaction parties can be protected. The transaction platform automatically distributes transaction funds by executing the transaction contract, so that human intervention can be reduced, and the credibility of transaction funds distribution is improved. The transaction platform can collect part of transaction commission for the treatment of the transaction platform, maintains the stable operation of the transaction platform, and is beneficial to improving the safety and the transaction efficiency of the transaction. The management platform can also enable the funds for managing the blockchain network to be continuous by collecting part of transaction funds, so that the normal operation of the blockchain is not influenced by exhaustion of the funds, and the healthy, stable and sustainable development of the blockchain is facilitated.
In this embodiment, the order of steps S201 to S210 is the description order in this embodiment, and is not limited to the order of the transaction method of the blockchain in this embodiment in the execution process, and some steps may be replaced, executed simultaneously or executed separately on the premise of being able to implement the method.
Referring to fig. 4, fig. 4 is a flowchart illustrating a third embodiment of a blockchain transaction method according to the present application. The embodiment comprises the following steps:
s301: the first node transmits the transaction information and the transaction funds to the transaction platform.
In this embodiment, the first node may send the transaction information and the transaction funds that participate in the blockchain transaction to the transaction platform, and execute the transaction through the transaction platform. For more details of this step, reference may be made to the description of S101, which is not repeated here.
S302: the trading platform transmits the trading information and at least a portion of the trading funds to the management platform.
In this embodiment, after the transaction platform receives the transaction information and the transaction funds, the transaction information and at least a portion of the transaction funds may be sent to the management platform, and the management platform may perform the allocation of the transaction funds. When the transaction platform transfers transaction funds, all the transaction funds can be transferred to the management platform, and the management platform distributes the transaction funds; alternatively, the transaction platform may also reserve a portion of the transaction funds as a commission according to the provision of the transaction contract, and transfer the remaining portion of the transaction funds to the management platform for distribution.
The transaction platform can deploy corresponding intelligent contracts, and after receiving the transaction information of the first node, the transaction platform can call the intelligent contracts to generate transaction contracts based on the transaction information. The trade contract may define a trade funds allocation rule, and the trade platform may execute the trade contract to allocate trade funds to send at least a portion of the trade funds to the management platform.
In some embodiments, after the transaction platform receives the transaction information and the transaction funds, the validity of the transaction information and the transaction funds may also be verified. For example, the transaction platform may verify the legitimacy of the identity of the transaction parties, the legitimacy of the goods or services being transacted, whether the funds of the transaction are sufficient, the legitimacy of other transaction content, and so forth. The transaction platform can send the transaction information and at least part of the transaction funds to the management platform after verifying that the transaction information and the transaction funds are legal. In some embodiments, if the transaction platform verifies that the transaction information is illegal, the transaction may be refused to be executed, so that the security of the blockchain transaction may be effectively improved.
In some embodiments, the transaction information received by the management platform may also be transmitted by the first node to the management platform. For example, the first node may send transaction information to the transaction platform and the management platform, respectively, when sending the transaction information. After receiving the transaction information and the transaction funds, the management platform can execute corresponding intelligent contracts to distribute the transaction funds.
S303: the management platform generates a transaction contract based on the transaction information.
In this embodiment, the management platform deploys a corresponding intelligent contract, and after receiving the transaction information, the management platform may generate a transaction contract for the transaction by calling the intelligent contract on the blockchain.
The smart contracts may be used to normalize rules for blockchain transactions. Including, for example, the terms of the transaction, the manner of execution, the method of processing the incomplete transaction, etc. The smart contract may also specify payment or distribution rules for the transaction funds, including, for example, the manner of payment for the transaction funds, the payment address, the proportion of payment to the seller to the transaction platform and/or management platform, the time of payment, etc. The management platform may invoke the intelligent contract of the blockchain to generate a transaction contract based on the transaction information after receiving the transaction information of the first node, so as to perform allocation of transaction funds according to rules of the transaction contract.
S304: the management platform executes the trade contract to transfer at least a portion of the trade funds to the second node.
The second node may be any blockchain node in the blockchain system, and the second node may be a supplier, participate in a blockchain transaction, and receive a corresponding reward by providing goods or services. The second node may provide the corresponding goods or services to the first node upon receipt of the transaction message.
The present embodiment is configured to distribute the transaction funds by a management platform, which may execute a transaction contract to pay at least a portion of the transaction funds to the second node after the transaction is completed. In this embodiment, after receiving the transaction funds, the management platform may pre-store the transaction funds into an account of the management platform, where the funds in the account may be used for managing the blockchain system, and when the transaction is completed, the management platform may pay corresponding funds from the account to pay to the second node, which is beneficial to flexible management of the funds of the blockchain system and to maintaining stable operation of the blockchain system.
S305: the management platform reserves at least a portion of the remaining transactional funds for use in managing the blockchain.
In this embodiment, the management platform may collect at least a portion of the remaining transaction funds according to rules of the transaction contract. Transaction funds collected by the management platform can be provided with a treatment blockchain, so that funds for treating the blockchain in the blockchain system can be continuously used, the normal operation of the blockchain is not influenced by exhaustion of funds, and the healthy, stable and sustainable development of the blockchain is promoted. In the embodiment, the management platform of the blockchain system distributes transaction funds, so that the credibility and the safety of transactions can be improved, and the property loss of blockchain nodes caused by malicious transactions can be reduced. And when the blockchain system is provided with a plurality of transaction platforms, transaction funds on the transaction platforms can be uniformly managed, so that fairness of blockchain transaction and safety of transaction funds are maintained. The management platform automatically distributes transaction funds by executing the transaction contract, so that human intervention can be reduced, and the credibility of transaction funds distribution is improved.
In this embodiment, the order of steps S301 to S305 is the description order in this embodiment, and is not limited to the order of the transaction method of the blockchain in this embodiment in the execution process, and some steps may be replaced, executed simultaneously or executed separately on the premise of being able to implement the method.
Referring to fig. 5, fig. 5 is a flowchart illustrating a fourth embodiment of a blockchain transaction method of the present application. The present embodiment is further described based on the third embodiment of the transaction method of the blockchain of the present application, and the same steps as those of the third embodiment of the transaction method of the blockchain of the present application are not described herein. The embodiment comprises the following steps:
s401: the first node transmits the transaction information and the transaction funds to the transaction platform.
S402: the trading platform transmits the trading information and at least a portion of the trading funds to the management platform.
In this embodiment, the trading platform may send all the trade funds to the management platform, and the management platform distributes the trade funds. Or, the transaction platform can also send part of the transaction funds to the management platform, and the rest part of the transaction funds are reserved for the treatment of the transaction platform.
After receiving the transaction information of the first node, the transaction platform may generate a transaction notification message based on the transaction information and send the transaction notification message to the second node, so that the second node may execute the transaction in time.
S403: the management platform generates a transaction contract based on the transaction information.
S404: the management platform judges whether a transaction completion message is received within a first preset time.
In this embodiment, the transaction complete message may be issued by the first node upon confirmation of receipt of the corresponding good or service provided by the second node. The first node may send a transaction completion message to the transaction platform and the management platform; alternatively, the first node may send the transaction completion message to the transaction platform, which then forwards the transaction completion message to the management platform.
For the details of this step, reference may be made to the description of the step in the second embodiment S204 of the blockchain transaction method of the present application, and the management platform is used as the execution body to execute this step, which is not described herein again.
In this embodiment, if the management platform receives the transaction completion message from the first node or the transaction platform within the first preset time, the following step S406 may be executed to allocate the transaction funds; if the management platform does not receive the transaction completion message from the first node within the first preset time, the following step S406 may not be performed; or the management platform may further determine whether the transaction is canceled, for example, the following step S405 may be performed.
S405: the management platform judges whether the transaction cancellation message is received within a second preset time.
In this embodiment, if the management platform does not receive the transaction completion message of the first node within the first preset time, the management platform may further determine whether a transaction cancellation message is received within the second preset time, so as to determine whether the transaction is cancelled. The transaction cancellation message may include information regarding the reason for the cancellation of the transaction, the cancellation time, etc.
The transaction cancellation message may be from the first node, the second node, or the transaction platform. For example, the first node or the second node may send a transaction cancellation message to the management platform to cancel the transaction when the transaction cannot be completed correctly; or the first node or the second node sends a transaction canceling message to the transaction platform when the transaction cannot be completed correctly, and the transaction platform confirms and then sends the transaction canceling message to the management platform to cancel the transaction.
In this embodiment, the second preset time is longer than the first preset time. The first preset time and the second preset time may be the same timing manner, for example, from the management platform to the time when the transaction contract is received. For example, the first preset time may be five days, the second preset time may be ten days, and if the management platform does not receive the transaction completion message within five days of receiving the transaction contract, then further determines whether to receive the transaction cancellation message within ten days.
The first preset time and the second preset time in this embodiment are only used for description, and may be the same as or different from those in the second embodiment of the transaction method of the blockchain of the present application.
In this embodiment, if the management platform does not receive the transaction completion message in the first preset time and does not receive the transaction cancellation message in the second preset time, the management platform may pay the corresponding transaction funds to the second node according to the rules of the transaction contract, for example, perform the following step S406; or the management platform may further confirm to the first node, the second node, and/or the transaction platform whether the transaction is completed to determine whether to conduct the allocation of funds for the transaction. If the management platform receives the transaction cancellation message of the first node, the second node or the transaction platform within the second preset time, the management platform determines that the transaction is cancelled, and may not execute the following step S406. In some embodiments, the management platform may also refund the transaction funds upon cancellation of the transaction, for example, by performing the following step S409.
S406: the management platform executes the trade contract to transfer at least a portion of the trade funds to the second node.
In this embodiment, the management platform may further transfer at least a portion of the transaction funds to the second node within a third predetermined time after receiving the transaction completion message. The third preset time is, for example, one day or three days. The management platform distributes transaction funds within a third preset time, and can provide proper buffer time to ensure that the transaction is completed correctly. The third preset time in this embodiment is only for description, and may be the same as or different from the third preset time in the second embodiment of the transaction method of the blockchain of the present application.
In some embodiments, the transaction funds received by the management platform can be used for other purposes to generate benefits in the time of custody of the management platform, so that the flexibility of the management platform for transaction funds management can be effectively improved, and the benefits generated by the transaction funds can be used for controlling the blockchain system to maintain stable operation of the blockchain.
In this embodiment, when the transaction platform receives the transaction funds of the first node, the transaction funds may be all transferred to the management platform. The management platform may also pay the transaction funds portion to the second node and use the transaction funds remaining portion for administration of the blockchain or the transaction platform in accordance with rules in the transaction contract. For example, the management platform may perform the following steps S407 to S408.
S407: the management platform leaves a portion of the remaining transactional funds for use in managing the blockchain.
In this implementation, when the transaction is completed, the management platform may also collect a part of the remaining transaction funds according to the rules of the transaction contract, so as to be used for managing the blockchain and maintaining the stable development of the blockchain.
S408: the management platform transfers another portion of the remaining transactional funds to the transaction platform for use in administering the transaction platform.
The management platform may also transfer a portion of the transaction funds to the transaction platform for administration of the transaction platform. For example, the management platform may send a portion of the transaction funds to the transaction platform as a reward to the transaction platform according to rules of the transaction contract. Or, the management platform can also transfer corresponding transaction funds to the transaction platform for treating the transaction platform according to the requirements of the transaction platform.
In this embodiment, the transaction funds may be all distributed by the management platform, and the management platform may pay the corresponding transaction funds to the second node according to the transaction contract rule, and may also distribute the remaining transaction funds as required, for example, to the transaction platform for administration of the transaction platform or for administration and maintenance of the blockchain system. When the blockchain system is provided with a plurality of transaction platforms, the management platform can transfer part of transaction funds to the transaction platform corresponding to the transaction, so that the transaction platform can provide rewards of a trusted transaction channel, and the health and sustainable development of the transaction platform are facilitated.
In some embodiments, the trading platform may, upon transferring the trading funds to the management platform, reserve a portion of the trading funds for use in administering the trading platform and transfer the remaining portion of the trading funds to the management platform. The management platform may pay a portion of the received transaction funds to the second node and collect a remaining portion of the transaction funds for use in administering the blockchain.
The transaction platform reserves part of transaction funds, can be used for treating the transaction platform, maintains the stable operation of the transaction platform, and further protects the security of the transaction conducted on the transaction platform. Transaction funds reserved by the management platform can be used for maintaining and managing the blockchain system, so that funds for managing the blockchain network are continuous, the normal operation of the blockchain is not influenced by exhaustion of funds, and the healthy, stable and sustainable development of the blockchain is promoted.
S409: the management platform refunds at least a portion of the transaction funds to the first node.
In this embodiment, if the management platform receives the transaction cancellation message of the first node, the second node or the transaction platform, the management platform may also refund the corresponding transaction funds to the first node. For example, after receiving the transaction cancellation message, the management platform may confirm to the first node or the second node, and if it is determined that the transaction is cancelled, at least part of the funds of the transaction may be returned to the first node within a certain time, so that the benefit of the first node may be effectively protected, and the benefit loss of the first node caused by the transaction failure is reduced. When the management platform refunds transaction funds, the transaction funds can be totally refunded or partially refunded according to the regulations of the transaction contract, and when the transaction funds are partially refunded, the rest transaction funds can be reserved in the management platform for treating the blockchain system.
The embodiment provides a trusted transaction channel through the transaction platform, so that property loss caused by malicious transaction to a transaction party can be effectively reduced, and the safety and reliability of the transaction are improved. The transaction parties can conduct transaction through the transaction platform, direct contact of the transaction parties can be avoided, and privacy safety of the transaction parties can be protected. And the transaction funds are automatically distributed by executing the transaction contracts through the management platform, so that the credibility of the transaction funds distribution is effectively improved. The management platform can also enable the funds for managing the blockchain network to be continuous by collecting part of transaction funds, so that the normal operation of the blockchain is not influenced by exhaustion of the funds, and the healthy, stable and sustainable development of the blockchain is facilitated. The management platform can also transfer part of transaction funds to the transaction platform for the treatment of the transaction platform, maintain the stable operation of the transaction platform and improve the safety and the transaction efficiency of the transaction.
In this embodiment, the order of steps S401 to S409 is the description order in this embodiment, and is not limited to the order of the transaction method of the blockchain in this embodiment in the execution process, and on the premise that the method can be implemented, some steps may be exchanged, executed simultaneously or executed separately.
Referring to fig. 6, fig. 6 is a flowchart illustrating a fifth embodiment of a blockchain transaction method according to the present application. The embodiment takes a transaction platform as an execution main body, and comprises:
s501: the trading platform receives trading information and trading funds from the first node.
S502: the trading platform generates a trading contract based on the trading information.
S503: the trading platform executes a trading contract to transfer at least a portion of the trading funds to the second node.
S504: the trading platform transfers at least a portion of the remaining trade funds to the blockchain management platform for use in managing the blockchain.
In this embodiment, the management platform is used to manage the fund balance of the blockchain system.
For more execution steps and contents of the transaction platform in this embodiment, reference may be made to the descriptions of the first to fourth embodiments of the blockchain transaction method of the present application, and the description thereof will not be repeated here.
Referring to fig. 7, fig. 7 is a flowchart illustrating a sixth embodiment of a blockchain transaction method according to the present application. The management platform of this embodiment is an execution body, including:
s601: the management platform receives the transaction information and at least a portion of the transaction funds.
In this embodiment, the management platform is used to manage the fund balance of the blockchain system. The transaction information received by the management platform may be from a first node of the blockchain or a transaction platform of the blockchain, and at least a portion of the transaction funds may be transferred to the management platform after the transaction platform receives the transaction funds of the first node.
S602: the management platform generates a transaction contract based on the transaction information.
S603: the management platform executes the trade contract to transfer at least a portion of the trade funds to the second node.
S604: the management platform reserves at least a portion of the remaining transactional funds for use in managing the blockchain.
For more execution steps and contents of the management platform in this embodiment, reference may be made to the descriptions of the first to fourth embodiments of the blockchain transaction method of the present application, and the description thereof will not be repeated here.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an embodiment of an electronic device according to the present application. The electronic device 80 of the present embodiment includes a processor 81, a memory 82 and a communication circuit 83, and the processor 81 is coupled to the memory 82 and the communication circuit 83.
In this embodiment, the communication circuit 83 is used for the electronic device 80 to communicate with the block link point device. The memory 82 is used to store program instructions. The processor 81 is configured to execute program instructions to implement the steps of the fifth embodiment to the sixth embodiment of the transaction method of the blockchain of the present application.
In the present embodiment, the processor 81 may also be referred to as a CPU (Central Processing Unit ). The processor 81 may be an integrated circuit chip with signal processing capabilities. Processor 81 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
For more execution processes and functions of the electronic device 80 in this embodiment, reference may be made to the descriptions of the fifth to sixth embodiments of the blockchain transaction method of the present application, and the description thereof is omitted herein.
Referring to fig. 9, fig. 9 is a schematic diagram of a computer storage medium according to an embodiment of the present application. The storage medium 90 in this embodiment is used to store program instructions 91. The program instructions 91 are capable of being executed by a processor to implement the steps of the fifth embodiment to the sixth embodiment of the blockchain transaction method of the present application as described above. The details of the fifth to sixth embodiments of the blockchain transaction method of the present application can be referred to above, and will not be described herein.
The methods according to the fifth through sixth embodiments of the blockchain transaction method of the present application may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium 90 includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, or other devices including a mobile terminal or the like that can store program codes.
The foregoing description is only of embodiments of the present application, and is not intended to limit the scope of the application, and all equivalent structures or equivalent processes using the descriptions and the drawings of the present application or directly or indirectly applied to other related technical fields are included in the scope of the present application.

Claims (11)

1. A method of trading a blockchain, comprising:
the transaction platform of the blockchain receives transaction information and transaction funds from a first node of the blockchain;
invoking the intelligent contract of the blockchain to generate a transaction contract based on the transaction information;
executing the trade contract to transfer at least a portion of the trade funds to a second node of the blockchain;
transferring at least a portion of the remaining transactional funds to a management platform of the blockchain for use in remediation of the blockchain; the management platform is used for managing fund balance of the blockchain system.
2. A transaction method according to claim 1, wherein,
the transaction platform of the blockchain receives transaction information and transaction funds from a first node of the blockchain, and then further comprises:
The transaction platform judges whether a transaction completion message from the first node is received within a first preset time;
if so, the step of executing the trade contract to transfer at least a portion of the trade funds to a second node of the blockchain is performed.
3. A transaction method according to claim 2, wherein,
the transaction platform of the blockchain receives transaction information and transaction funds from a first node of the blockchain, and then further comprises:
if the transaction platform does not receive the transaction completion message within the first preset time, the transaction platform further judges whether a transaction cancellation message of the first node or the second node is received within a second preset time;
if the transaction cancellation message is not received, performing the step of executing the transaction contract to transfer at least a portion of the transaction funds to a second node of the blockchain;
if the transaction cancellation message is received, not performing the step of executing the transaction contract to transfer at least a portion of the transaction funds to a second node of the blockchain, and refunding at least a portion of the transaction funds to the first node;
Wherein the second preset time is longer than the first preset time.
4. A transaction method according to claim 2, wherein,
the second node executing the trade contract to transfer at least a portion of the trade funds to the blockchain includes:
and the transaction platform transfers at least part of the transaction funds to the second node within a third preset time after receiving the transaction completion message.
5. A transaction method according to claim 1, wherein,
the transaction platform of the blockchain receives transaction information and transaction funds from a first node of the blockchain, and then further comprises:
forming a transaction notification message based on the transaction information and transmitting the transaction notification message to the second node so that the second node can perform a transaction in accordance with the transaction notification message.
6. The transaction method according to claim 1, wherein the transaction method further comprises:
the transaction platform receives at least a portion of the remaining transaction funds for use in administering the transaction platform.
7. A method of trading a blockchain, comprising:
The management platform receives transaction information and at least part of transaction funds; the transaction information is from a first node of the blockchain or a transaction platform of the blockchain, and the at least part of transaction funds are transferred to the management platform after the transaction platform receives the transaction funds of the first node;
invoking the intelligent contract of the blockchain to generate a transaction contract based on the transaction information;
executing the trade contract to transfer at least a portion of the trade funds to a second node of the blockchain;
leaving at least a portion of the remaining transactional funds available for use in remediation of the blockchain;
the management platform is used for managing fund balance of the blockchain system.
8. The method of claim 7, wherein,
the executing the trade contract to transfer at least a portion of the trade funds to a second node of the blockchain further includes:
the management platform judges whether a transaction completion message from the first node or the transaction platform is received within a first preset time;
if the transaction completion message is received, performing the step of executing the transaction contract to transfer at least a portion of the transaction funds to a second node of the blockchain;
If the transaction completion message is not received, the management platform further judges whether a transaction cancellation message of the first node, the second node or the transaction platform is received within a second preset time;
if the transaction cancellation message is received, not performing the step of executing the transaction contract to transfer at least a portion of the transaction funds to a second node of the blockchain, and refunding at least a portion of the transaction funds to the first node;
if the transaction cancellation message is not received, performing the step of executing the transaction contract to transfer at least a portion of the transaction funds to a second node of the blockchain;
wherein the second preset time is longer than the first preset time.
9. The method of claim 7, wherein,
the management platform receiving transaction information and at least a portion of transaction funds comprises:
the management platform receives the transaction information and part of the transaction funds; wherein, part of the transaction funds are transferred to the other part of the transaction funds of the management platform after the transaction platform leaves a part of the transaction funds; or alternatively, the first and second heat exchangers may be,
The management platform receiving transaction information and at least a portion of transaction funds comprises:
the management platform receives the transaction information and all the transaction funds;
the reserving at least a portion of the remaining transactional funds for use in treating the blockchain further comprises:
the management platform reserves a portion of the remaining transactional funds and transfers another portion of the remaining transactional funds to the transactional platform for use in governance of the transactional platform.
10. An electronic device comprising a processor, a memory, and a communication circuit, the processor coupled to the memory and the communication circuit; wherein,,
the communication circuit is used for communicating the electronic equipment with the block chain link point equipment;
the memory is used for storing program instructions;
the processor is configured to execute the program instructions to implement the method of any one of claims 1 to 9.
11. A computer storage medium storing program instructions executable by a processor to implement the method of any one of claims 1 to 9.
CN202010584188.4A 2020-06-23 2020-06-23 Block chain transaction method, electronic device and storage medium Active CN111815444B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010584188.4A CN111815444B (en) 2020-06-23 2020-06-23 Block chain transaction method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010584188.4A CN111815444B (en) 2020-06-23 2020-06-23 Block chain transaction method, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN111815444A CN111815444A (en) 2020-10-23
CN111815444B true CN111815444B (en) 2023-09-01

Family

ID=72845554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010584188.4A Active CN111815444B (en) 2020-06-23 2020-06-23 Block chain transaction method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN111815444B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7428392B2 (en) * 2021-07-08 2024-02-06 Necプラットフォームズ株式会社 Arithmetic circuit, arithmetic device, method, and program
CN113822671A (en) * 2021-11-22 2021-12-21 武汉龙津科技有限公司 Private data transaction method, device, equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109872137A (en) * 2019-01-30 2019-06-11 北京沃东天骏信息技术有限公司 A kind of electronic trade method, node and storage medium
KR20190096220A (en) * 2018-02-08 2019-08-19 주식회사 케이티 Platform and Method for Safety Transaction based on Block Chain
CN110221919A (en) * 2019-05-31 2019-09-10 阿里巴巴集团控股有限公司 Virtual resource allocation method and apparatus based on block chain
CN110298643A (en) * 2019-08-22 2019-10-01 深圳市先河系统技术有限公司 Service charge distribution method, device and storage medium based on block chain
KR101995316B1 (en) * 2018-04-13 2019-10-01 주식회사 케이체인 Blockchain-based aggregate transaction system and method
CA3098182A1 (en) * 2018-03-30 2019-10-03 Exposition Park Holdings SEZC Digital asset exchange
WO2019203736A1 (en) * 2018-04-19 2019-10-24 Vechain Foundation Limited Blockchain transaction processing
WO2019227341A1 (en) * 2018-05-30 2019-12-05 深圳市元征科技股份有限公司 Maintenance station management method and system, and data management server
CN110838063A (en) * 2019-09-30 2020-02-25 远光软件股份有限公司 Transaction processing method based on block chain, electronic device and storage medium
CN110866752A (en) * 2017-09-18 2020-03-06 腾讯科技(深圳)有限公司 Resource transaction method, node, device and storage medium
KR102118715B1 (en) * 2019-04-25 2020-06-03 넷마블 주식회사 Method for automized remittance using blockchain

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180293557A1 (en) * 2017-04-05 2018-10-11 Samsung Sds Co., Ltd. Method of charging electronic currency automatically based on blockchain and system thereof

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110866752A (en) * 2017-09-18 2020-03-06 腾讯科技(深圳)有限公司 Resource transaction method, node, device and storage medium
KR20190096220A (en) * 2018-02-08 2019-08-19 주식회사 케이티 Platform and Method for Safety Transaction based on Block Chain
CA3098182A1 (en) * 2018-03-30 2019-10-03 Exposition Park Holdings SEZC Digital asset exchange
KR101995316B1 (en) * 2018-04-13 2019-10-01 주식회사 케이체인 Blockchain-based aggregate transaction system and method
WO2019203736A1 (en) * 2018-04-19 2019-10-24 Vechain Foundation Limited Blockchain transaction processing
WO2019227341A1 (en) * 2018-05-30 2019-12-05 深圳市元征科技股份有限公司 Maintenance station management method and system, and data management server
CN109872137A (en) * 2019-01-30 2019-06-11 北京沃东天骏信息技术有限公司 A kind of electronic trade method, node and storage medium
KR102118715B1 (en) * 2019-04-25 2020-06-03 넷마블 주식회사 Method for automized remittance using blockchain
CN110221919A (en) * 2019-05-31 2019-09-10 阿里巴巴集团控股有限公司 Virtual resource allocation method and apparatus based on block chain
CN110298643A (en) * 2019-08-22 2019-10-01 深圳市先河系统技术有限公司 Service charge distribution method, device and storage medium based on block chain
CN110838063A (en) * 2019-09-30 2020-02-25 远光软件股份有限公司 Transaction processing method based on block chain, electronic device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Blockchain-Based Settlement for Asset Trading;Chiu, J,等;REVIEW OF FINANCIAL STUDIES;第32卷(第05期);第1716-1753页 *

Also Published As

Publication number Publication date
CN111815444A (en) 2020-10-23

Similar Documents

Publication Publication Date Title
TWI640937B (en) Online payment method and equipment
CN108197944B (en) Resource transaction method and device based on block chain technology
CN104484811B (en) It is a kind of that transaction processing method and system are put on someone's head based on mobile Internet
CN108805627B (en) Media resource allocation method, device, system, medium and equipment
CN108229926B (en) Service settlement method and related device
CN110599323B (en) Resource processing method and processing equipment
JP5264510B2 (en) Method and system for billing an account
CN111444209B (en) Data processing method, device, equipment and medium based on block chain
CN101122986A (en) Method and system for implementing debit and credit by network
CN111815444B (en) Block chain transaction method, electronic device and storage medium
WO2019227344A1 (en) Management method and system for maintenance device, and data management server
KR101404719B1 (en) System for international prepaid card payment using national bank identification number
CN109816361B (en) Block chain signature transfer method without mineral expense
CN111476670B (en) Block chain rollback insurance method, apparatus and storage medium
CN110148046A (en) A kind of payment management method and device
CN109426955B (en) Target object providing method, device and system
WO2019227345A1 (en) Method and system for managing maintenance and repair plant and data management server
US20180341972A1 (en) System and method for distributing sales profit
CN111612453A (en) Decentralized transaction method and device based on block chain and electronic equipment
CN111260450A (en) Electric power bilateral transaction system based on block chain technology
CN110378693B (en) Distributed energy weak centralized transaction management system based on alliance block chain
CN103985033A (en) Method for implementing internet payment and internet payment platform
JP7503497B2 (en) CONTROL METHOD, FUND MANAGEMENT SYSTEM, AND PROGRAM
CN112788555B (en) Cross-operator telephone charge transfer settlement method, device and computing equipment
CN106157141B (en) Numerical value processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240219

Address after: Room 403, West Block, Tian'an Innovation Technology Plaza (Phase II), Intersection of Binhe Road and Xiangmihu Road, Tian'an Community, Shatou Street, Futian District, Shenzhen City, Guangdong Province, 518000

Patentee after: Shenzhen Shulun Technology Co.,Ltd.

Country or region after: China

Address before: 518048 workshop No. 6, floor 2, Jinxiang building, Xinzhou South Road, Futian street, Futian District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN ADVANCE RIVER SYSTEM TECHNOLOGY Co.,Ltd.

Country or region before: China