CN111815444A - 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
CN111815444A
CN111815444A CN202010584188.4A CN202010584188A CN111815444A CN 111815444 A CN111815444 A CN 111815444A CN 202010584188 A CN202010584188 A CN 202010584188A CN 111815444 A CN111815444 A CN 111815444A
Authority
CN
China
Prior art keywords
transaction
funds
platform
node
blockchain
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.)
Granted
Application number
CN202010584188.4A
Other languages
Chinese (zh)
Other versions
CN111815444B (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 Ars Advanced 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 Ars Advanced River System Technology Co ltd filed Critical Shenzhen Ars Advanced 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

Images

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 transaction method of a block chain, electronic equipment and a storage medium, wherein the transaction method comprises the following steps: a transaction platform of the blockchain receives transaction information and transaction funds from a first node of the blockchain; calling the intelligent contract of the block chain to generate a trading contract based on the trading information; executing the transaction contract to transfer at least a portion of the transaction funds to a second node of the blockchain; transferring at least a portion of the remaining transaction funds to a management platform of the blockchain for remediation of the blockchain. Through the mode, the safety and the reliability of the transaction can be effectively improved, and the healthy, stable and sustainable development of the block chain 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 method for blockchain transaction, an electronic device, and a storage medium.
Background
With the rise of blockchain technology, more and more blockchain projects are developed. Blockchain technology significantly reduces transaction costs with machine code trust, encouraging more participants to enter blockchain projects and participate in blockchain transactions.
Block chain link points in the block chain system can participate in block chain accounting to realize distributed storage of block chain data; in addition, the blockchain link points can also participate in blockchain transactions, generate fund flow and create value, so that the blockchain economy can be developed normally.
Disclosure of Invention
The technical problem that this application mainly solved is: the transaction method, the electronic device and the storage medium of the block chain are provided, so that the safety and the reliability of the transaction can be effectively improved, and the healthy, stable and sustainable development of the block chain is promoted.
In order to solve the technical problem, the application adopts a technical scheme that: a blockchain transaction method is provided, which comprises the following steps: a transaction platform of the blockchain receives transaction information and transaction funds from a first node of the blockchain; calling the intelligent contract of the block chain to generate a trading contract based on the trading information; executing the transaction contract to transfer at least a portion of the transaction funds to a second node of the blockchain; transferring at least a portion of the remaining transaction funds to a management platform of the blockchain for remediation of the blockchain; the management platform is used for managing the fund balance of the blockchain system.
Optionally, after receiving the transaction information and the transaction funds from the first node of the blockchain, the transaction platform of the blockchain further includes: the transaction platform judges whether a transaction completion message from the first node is received within a first preset time; if so, the transaction contract is executed to transfer at least a portion of the transaction funds to a second node of the blockchain.
Optionally, after receiving the transaction information and the transaction funds from the first node of the blockchain, the transaction platform of the blockchain further includes: if the trading platform does not receive the trading completion message within the first preset time, the trading platform further judges whether a trading cancellation message of the first node or the second node is received within the second preset time; if no transaction cancellation message is received, executing the 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 a second node of the blockchain and refund at least a portion of the transaction funds to the first node; and the second preset time is greater than the first preset time.
Optionally, executing the transaction contract to transfer at least part of the transaction funds to the second node of the blockchain comprises: the transaction platform transfers at least a portion of the transaction funds to the second node within a third predetermined time after receiving the transaction complete message.
Optionally, after receiving the transaction information and the transaction funds from the first node of the blockchain, the transaction platform of the blockchain further includes: and forming a transaction notification message based on the transaction information, and sending the transaction notification message to the second node so that the second node can execute the transaction according to the transaction notification message.
Optionally, the trading platform collects at least a portion of the remaining trading funds for use with the administering trading platform.
In order to solve the above technical problem, another technical solution adopted by the present application is: providing a management platform to receive transaction information and at least a portion of transaction funds; the transaction information comes 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; calling the intelligent contract of the block chain to generate a trading contract based on the trading information; executing the transaction contract to transfer at least a portion of the transaction funds to a second node of the blockchain; leaving at least a portion of the remaining transaction funds for use in administering the blockchain; the management platform is used for managing the fund balance of the blockchain system.
Optionally, before executing the transaction contract to transfer at least a portion of the transaction funds to the second node of the blockchain further comprises: 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 a transaction completion message is received, executing a 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 the transaction cancellation message of the first node, the second node or the transaction platform is received within a 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 a second node of the blockchain and refund at least a portion of the transaction funds to the first node; if no transaction cancellation message is received, executing the transaction contract to transfer at least a portion of the transaction funds to a second node of the blockchain; and the second preset time is greater than the first preset time.
Optionally, the receiving, by the management platform, 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 the transaction fund is another part of the transaction fund transferred to the management platform after the transaction platform reserves one part of the transaction fund; or, the management platform receiving the transaction information and at least part of the transaction funds comprises: the management platform receives transaction information and all transaction funds; leaving at least a portion of the remaining transaction funds for use in administering the blockchain further comprises: the management platform retains a portion of the remaining transaction funds and transfers another portion of the remaining transaction funds to the transaction platform for use in administering the transaction platform.
In order to solve the above technical problem, another technical solution adopted by the present application is: an electronic device is provided that includes a processor, a memory, and communication circuitry, the processor coupling the memory and the communication circuitry; the communication circuit is used for communicating the electronic equipment and the block link point equipment; the memory is used for storing program instructions; the processor is used for executing program instructions to realize the transaction method of the blockchain.
In order to solve the above technical problem, another technical solution adopted by the present application is: a computer storage medium is provided for storing program instructions executable by a processor to implement the blockchain transaction method described above.
The beneficial effect of this application is:
according to the embodiment, the credible trading channel is provided through the trading platform, the trading funds of the trading party can be transferred to the trading platform firstly and then distributed by the trading platform, so that the property loss of the trading party caused by malicious trading is effectively reduced, and the safety and reliability of trading are improved. The transaction platform automatically distributes the transaction funds by executing the transaction contract, so that the human intervention can be reduced, and the credibility of the transaction fund distribution is improved. The management platform on the block chain can continuously manage the fund of the block chain network by collecting part of transaction fund, does not worry about that the normal operation of the block chain is influenced by fund exhaustion, and is beneficial to promoting the healthy, stable and sustainable development of the block chain.
Drawings
FIG. 1 is a block chain system according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart diagram illustrating a first embodiment of a transaction method for a blockchain of the present application;
FIG. 3 is a schematic flow chart diagram of a second embodiment of a transaction method for a blockchain of the present application;
FIG. 4 is a schematic flow chart diagram illustrating a third exemplary embodiment of a transaction method for a blockchain of the present application;
FIG. 5 is a schematic flow chart diagram illustrating a fourth embodiment of a transaction method for a blockchain according to the present application;
FIG. 6 is a schematic flow chart diagram illustrating a fifth embodiment of a transaction method for blockchains according to the present application;
FIG. 7 is a schematic flow chart diagram illustrating a sixth embodiment of a transaction method for a blockchain 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 diagram of an embodiment of a storage medium according to the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first", "second" and "third" in this application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any indication of 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 can be included in at least one embodiment of the application. The appearances of the phrase 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. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The inventors of the present application have found, through long-term research: in the current blockchain project, there are many problems in carrying out blockchain transactions between blockchain link points. The transactions spontaneously performed by the two parties in the block chain lack credible guarantee, and some malicious transactions not only easily cause property loss and privacy disclosure of the parties, but also reduce the transaction efficiency of the block chain. Invalid transactions also waste the computation power of blockchain nodes in the blockchain system, and affect the normal operation of the blockchain system. As the blockchain is developed, the maintenance of the blockchain system consumes more capital, and the capital for maintaining the blockchain system is less and less, which is not only disadvantageous to the development of the blockchain system, but also may cause the breakdown of the blockchain system network. To solve these problems, the present application proposes at least the following embodiments.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an embodiment of the present invention. The blockchain system 100 of the present embodiment includes a trading platform 101, a management platform 102, and blockchain nodes 103.
The trading platform 101 may provide a trusted trading channel for both trading parties. When the blockchain transaction is performed, the blockchain node 103 may transfer the transaction funds to the transaction platform 101, and the transaction platform 101 may keep the transaction funds and distribute the transaction funds after the transaction is completed. The transaction platform 101 may also collect selling or purchasing information of goods or services on the blockchain, and push the information to corresponding demanders or buyers, so as to facilitate transactions between the blockchain nodes 103 and improve transaction efficiency.
The blockchain system 100 of the present embodiment may include one or more trading platforms 101, and different trading platforms 101 may trade in the same digital currency or may trade in corresponding digital currencies respectively. Transactions conducted between the various transaction platforms 101 may be isolated from each other to protect privacy and security of the transactions. The plurality of trading platforms 101 can also alleviate the situation of low trading efficiency caused by high concurrency of data in the blockchain system 100, which is beneficial to improving the trading efficiency. Blockchain node 103 may participate in transactions for multiple trading platforms 101.
The trading platform 101 may also deploy corresponding intelligent contracts, which may be used to specify trading rules for blockchains or allocation rules for trading funds. When conducting the blockchain transaction, the transaction platform 101 may execute a corresponding intelligent contract to conduct the transaction or allocate transaction funds, so that human intervention may be reduced, and the reliability of the blockchain transaction may be improved.
In some embodiments, the trading platform 101 may further provide an information publishing interface, and the block link node 103 may publish the goods or services information through the information publishing interface to perform the trading. For example, the buyer node may issue a purchase demand to the transaction platform 101, the seller node obtains the transaction demand and then performs matching, and if the purchase demand is met, the transaction platform 101 may perform transaction with the buyer node. Alternatively, the seller node may publish 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 a corresponding commission fee from the transaction funds for governing the transaction platform 101, so as to maintain safe and stable operation of the transaction platform 101. The transaction platform 101 may also verify the identity legitimacy of both parties during the transaction, and perform the transaction only when both parties are legitimate, otherwise, terminate the transaction, so as to ensure the security of the transaction. In addition, the transaction is carried out through the transaction platform 101, and the two transaction parties do not need to know the identity of the other transaction party in the transaction process, so that the privacy and the safety of the two transaction parties are protected.
In this embodiment, the management platform 102 may manage the fund collection and payment of the blockchain system 100. The fund collection and payment of the blockchain system 100 are performed through a common account configured by the blockchain system 100, and the fund in the common account can be used for the governance of the blockchain. The management platform 102 may enable management of the funds charges for the blockchain system 100 by managing common accounts. For example, the management platform 102 may place the collected transaction funds for the blockchain transaction into a common account and withdraw funds from the common 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 with stable operation and high credibility in the blockchain system 100, and these nodes may collectively manage the fund collection and payment of the blockchain system 100.
The management platform 102 may perform management operations such as transfers, collections, payments, checks, etc. of funds for the blockchain system 100 to maintain a steady development of digital currency in the blockchain system 100. For example, the management platform 102 may collect a portion of the transaction funds for the blockchain transaction that may be used as a commission provided by the blockchain node 103 for administration of the blockchain system 100 to maintain 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 the corresponding account for custody. 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 multiple types of transaction funds; or the management platform 102 may place the transaction funds transacted on different transaction platforms 101 into different accounts to achieve fund isolation for 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 intelligent contracts for specifying rules for the fund 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 an intelligent contract, which is beneficial to reduce human intervention and improve the security of the funds and the reliability of the funds management of the blockchain system 100.
In some embodiments, the management platform 102 may also be the trading platform 101, and at this time, the management platform 102 in the blockchain system 100 may serve as the trading platform 101 to provide a corresponding trading channel for blockchain trading and manage allocation of trading funds. In this embodiment, the blockchain system 100 includes a management platform 102 and blockchain link points 103. The management platform 102 may implement the functions of the trading platform 101, and the trading involving the block link points 103 may be performed through the management platform 102.
In this embodiment, the blockchain node 103 may participate in a transaction in the blockchain network, and may obtain a corresponding good or service by paying out transaction funds, or obtain a corresponding fund payment by paying out the good or service. There are multiple blockchain nodes 103 that may participate in blockchain transactions via the transaction platform 101. When the blockchain node 103 conducts transaction through the transaction platform 101, the transaction platform 101 provides a credible transaction guarantee without acquiring the identity of the other party, so that the privacy and the safety of both parties of the transaction can be effectively protected.
The blockchain node 103 can also participate in transactions such as endorsement, sorting, block packaging, communication or accounting of the blockchain, and can also obtain corresponding compensation by participating in the blockchain transactions. For example, the blockchain node 103 may obtain a corresponding funding reward by participating in the packaging of the blocks, or obtain a corresponding endorsement funding reward by an endorsement of the transaction; the blockchain node 103 may participate in the blockchain transaction with the accumulated funds as transaction funds.
In this embodiment, the blockchain link point 103 may also include a light node, and the light node may participate in the blockchain transaction, and the transaction platform 101 may transfer the transaction information and the transaction fund, and store the blockchain data related to the transaction itself after the transaction is completed, without synchronizing the complete blockchain ledger, so that the calculation effort may be saved, and the transaction efficiency of the blockchain link point 103 may be improved.
In the blockchain system 100 of the embodiment, the trading platform 101 is arranged to provide a credible trading channel, and the trading funds of the trading party can be transferred to the trading platform 101 and then distributed by the trading platform 101, so that property loss caused by malicious trading to the trading party is effectively reduced, the safety and reliability of trading are improved, and the trading platform 101 is used for trading, so that direct contact between two trading parties can be avoided, and the privacy and safety of the two trading parties can be protected; the management platform 102 on the blockchain may be used to administer the blockchain system 100 by collecting a portion of the transaction funds, which is beneficial to promote stable and sustainable development of the blockchain system 100.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of a transaction method of a blockchain according to the present application. The embodiment comprises the following steps:
s101: the first node sends the transaction information and the transaction funds to the transaction platform.
In this embodiment, the first node may be any blockchain node in the blockchain system. The first node is used as a demand party and participates in the blockchain transaction, and corresponding goods or services and the like are obtained through expenditure of funds. The first node may communicate with the transaction platform, send transaction information for purchasing the goods or services to the transaction platform, and pay corresponding transaction funds to the transaction platform, thereby performing a blockchain transaction.
In this embodiment, the transaction information may include addresses of both parties of the transaction, transaction time, transaction amount, commodity or service of the transaction, other related information, and the like. The transaction information may also be a single party of transaction information. For example, the transaction information is sent by the demanding party to the transaction platform, and may include an address of the demanding party, a transaction amount, information related to the required goods or services, and the like. After the first node sends the transaction information to the transaction platform, the transaction platform can search a proper transaction party according to the transaction information to carry out transaction.
In this embodiment, the transaction funds are funds that the first node pays based on the value of the goods or services purchased. The total amount of the transaction fund is not less than the corresponding transaction amount in the transaction. The first node can complete payment once or pay by stages when paying the transaction funds. When the first node carries out the blockchain transaction, transaction funds can be paid to the transaction platform in advance, and the transaction platform carries out fund keeping. After receiving the transaction funds, the transaction platform may verify whether the transaction funds meet the specifications, for example, whether the transaction funds are sufficient, whether the transaction funds are valid and valid, and the like, and if the transaction funds meet the specifications, 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 trading platform is provided with corresponding intelligent contracts, and after the trading information is received, the trading contracts of the trades can be generated by calling the intelligent contracts on the block chain.
The smart contracts may be used to specify rules for blockchain transactions. For example, the relevant rules include the term of the transaction, the execution mode, the processing method of the incomplete transaction, and the like. The smart contract may also specify rules for payment or distribution of the transaction funds, including, for example, payment methods for the transaction funds, payment addresses, proportions of payments made to the seller and the transaction platform and/or management platform, payment times, and the like.
When the first node conducts transaction, the transaction information is sent to the transaction platform to request for conducting transaction. The transaction platform can also verify the correctness and validity of the transaction information after receiving the transaction information. For example, the transaction platform may verify that the transaction information format is correct, the information is complete, the identity or address of the parties to the transaction is legitimate, the number of funds in the transaction is correct, etc. 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 the 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 the blockchain transaction, obtain a corresponding reward by providing goods or services, and the like. The second node may communicate with the trading platform, provide corresponding goods or services to the first node upon receiving a trading message from the trading platform, and obtain corresponding trading funds. In some embodiments, the second node may also issue the provided goods or services to the trading platform in advance, the trading platform notifies the second node to trade when receiving the corresponding trading demand of the first node, and the second node may obtain corresponding trading funds after executing the trade.
In this embodiment, the trading platform may execute the trading contract to transfer at least a portion of the trading funds to the second node when both parties to the trade complete the trade. For example, the trading platform may pay the corresponding trading funds to the second node as specified by the trading contract when the first node receives goods or services for the second node and confirms that the trade is completed. Alternatively, the trading platform may execute a trading contract at an agreed time to effect the allocation of trading funds. For example, the trading platform may pay the corresponding trading funds to the second node at a predetermined time, such as eight days or ten days, after receiving the trading contract.
The transaction platform transfers at least a portion of the transaction funds to the second node, which may be a full payment of the transaction funds to the second node. Or the trading platform can pay corresponding partial trading funds to the second node according to the distribution proportion of the trading funds in the trading contract, and the rest trading funds can be transferred to the management platform to be used for governing the block chain system. For example, the trading platform may also perform the following step of S104.
S104: the trading platform transfers at least a portion of the remaining trading 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 governing the blockchain system so as to maintain the stable operation of the blockchain system. The trading platform may pay the portion of the trading funds to the second node after the trading is completed and transfer the remaining portion of the trading funds to the management platform. Or, the transaction platform may transfer part of the transaction funds to the management platform in advance after receiving the transaction funds, 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 the funds for managing the block chain system can be continuous, the normal operation of the block chain is not influenced by the exhaustion of the funds, and the healthy, stable and sustainable development of the block chain is facilitated. In some embodiments, when the management platform is integrated with the trading platform, the trading platform may reserve the remaining trading funds for administering the blockchain system.
In some embodiments, the trading platform may also collect certain commission fees from the blockchain trading for the governance of the trading platform to maintain the safe and stable operation of the trading platform. For example, the trading platform may also perform the following step S105.
S105: the trading platform collects at least a portion of the remaining trading funds for use with the administering trading platform.
The transaction platform provides a credible transaction channel for transactions in the block system, so that the block chain nodes can perform transactions through the transaction platform when participating in the block chain transactions, the transaction platform can also receive transaction funds and provide temporary storage service for the transaction funds before the transactions are distributed, the security of the transaction funds is protected, and the fund loss caused by malicious transactions is reduced. In order to maintain the stable operation of the trading platform and provide a safer and more reliable trading channel, the trading platform can collect partial commission fees from trading funds for the governance of the trading platform.
In this embodiment, the trading platform may pay part of the trading funds to the second node after the trading is completed, and leave part of the remaining trading funds for governing the trading platform. Or, the transaction platform may take out part of the transaction funds in advance for standby after receiving the transaction funds, and pay the rest of the transaction funds to the second node when the transaction is completed.
In this embodiment, the steps of S104 and S105 may be executed only or may be executed both, and the execution order is not limited. For example, the transaction platform may pay a portion of the transaction funds to the second node, leave the remaining transaction funds or transfer the remaining transaction funds to the management platform; or the transaction platform can pay part of the transaction funds to the second node, reserve part of the remaining transaction funds, and transfer the other part of the remaining transaction funds to the management platform, namely, one part of the transaction funds in the blockchain is used for governing the transaction platform, and the other part of the transaction funds is used for governing the blockchain system, so that stable operation of the transaction platform and the blockchain is maintained.
According to the embodiment, the credible trading channel is provided through the trading platform, the trading funds of the trading party can be transferred to the trading platform firstly and then distributed by the trading platform, so that the property loss of the trading party caused by malicious trading is effectively reduced, and the safety and reliability of trading are improved. The transaction platform automatically distributes the transaction funds by executing the transaction contract, so that the human intervention can be reduced, and the credibility of the transaction fund distribution is improved. The management platform on the block chain can continuously manage the fund of the block chain network by collecting part of transaction fund, does not worry about that the normal operation of the block chain is influenced by fund exhaustion, and is beneficial to promoting the healthy, stable and sustainable development of the block chain.
In this embodiment, the sequence of steps S101 to S105 is the description sequence in this embodiment, and is not limited to the sequence of the transaction method of the block chain in this embodiment in the execution process, and on the premise that the method can be implemented, some steps may be executed simultaneously or individually by exchanging the sequence.
Referring to fig. 3, fig. 3 is a schematic flow chart of a transaction method of the blockchain of the present application according to a second embodiment. This embodiment is further described on the basis of the first embodiment of the block chain transaction method of the present application, and the same steps as those in the first embodiment of the block chain transaction method of the present application are not described herein again. The embodiment comprises the following steps:
s201: the first node sends 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 can be formed based on the transaction information. In this embodiment, the transaction notification message may include information of the goods or services being transacted, information related to the first node, transaction time limit, transaction amount, other related information, and the like. The transaction platform may 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 two parties of the transaction can be avoided, privacy and safety of the two parties of the transaction are protected, the transaction platform can provide reliable keeping of transaction funds, and security of the transaction funds of the first node is protected.
S204: the second node executes the transaction according to the transaction notification message.
When the second node receives the transaction notification message, the second node can provide corresponding goods or services to 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 transaction funds according to the rules of the transaction contract, such as performing the following steps S207-S209. Or after the transaction platform notifies the second node to perform the transaction, whether the transaction is completed correctly can be judged, so that whether the transaction fund is distributed or not is determined. For example, the trading platform may also perform the following steps of S205 or S205-S206 before allocating the trading funds.
S205: the trading platform judges whether a trading 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, start timing when the transaction information is received, or start timing when the transaction notification message is sent to the second node, and then determine whether the transaction completion message from the first node is received within a first preset time after the timing is started. 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, it may be determined that the transaction is completed correctly.
In this embodiment, the transaction completion message may include information related to the execution time, completion degree, and the like of the transaction. The transaction platform may also pay the corresponding transaction funds to the second node according to the completion condition of the transaction in the transaction completion message, such as the completion degree, when receiving the transaction completion message. For example, if the transaction completion message sent by the first node to the transaction platform indicates that the second node has completed only part of the transaction, the transaction platform may pay the corresponding part of the transaction funds to the second node after confirmation; the transaction platform can also return the transaction funds corresponding to the incomplete partial transaction to the first node, or pay the corresponding transaction funds to the second node when subsequently receiving the transaction completion message of the remaining partial transaction.
In this embodiment, if the trading platform receives a trading completion message from the first node within a first preset time, the following steps S207 to S209 may be executed to allocate the trading funds; if the trading platform does not receive the trading completion message from the first node within the first preset time, the following step S207 may not be executed, or the trading platform may further determine whether the trading is cancelled, for example, the following step S206 may be executed.
S206: and the trading platform judges whether a trading 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 the 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 about the reason for the transaction cancellation, the cancellation time, and the like. The transaction cancellation message may be sent by the first node or the second node to the transaction platform when the transaction is cancelled.
In this embodiment, the second preset time is greater than the first preset time. The transaction platform may time the transaction, for example, from receipt of the transaction message or from sending a transaction notification message to the second node. The first preset time and the second preset time can 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 the 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 does not receive the transaction cancellation message in the second preset time, the transaction platform may pay the corresponding transaction fund to the second node according to the specification of the transaction contract, for example, execute the following step S207; or the transaction platform may also confirm whether the transaction is completed to the first node and/or the second node to determine whether to perform the allocation of the transaction funds. If the trading platform receives the trading cancellation message of the first node or the second node within the second preset time, the trading platform determines that the trading is cancelled, and the following step S207 may not be executed any more. Alternatively, the trading platform may also refund the trading funds when the trade is cancelled, such as performing the following step S210.
S207: the trading platform executes the 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 trading platform distributes the trading funds within the third preset time, and appropriate buffer time can be provided for the trading platform and the trading parties to determine that the trading is completed correctly.
In some embodiments, the trading funds received by the trading platform can be used for other purposes within the time of the trading platform for keeping to generate benefits, so that the flexibility of the trading platform for trading fund management can be effectively improved, and the benefits generated by the trading funds can be used for governing the trading platform and maintaining the stable operation of the trading platform.
S208: the trading platform transfers at least a portion of the remaining trading funds to the management platform.
S209: the trading platform collects at least a portion of the remaining trading funds for use with the administering trading platform.
S210: the trading platform refunds at least a portion of the trading funds to the first node.
In this embodiment, if the transaction platform receives the transaction cancellation message from the first node or the second node, the transaction platform may return the corresponding transaction fund to the first node. For example, after receiving the transaction cancellation message, the transaction platform may confirm the first node or the second node, and if it is determined that the transaction is cancelled, at least part of the transaction funds 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 due to the failure of the transaction may be reduced.
In this embodiment, when returning the transaction fund, the transaction platform may return the transaction fund entirely or partially according to the provision of the transaction contract, and when returning partially, the remaining transaction fund may be retained in the transaction platform or transferred to the management platform for administration of the transaction platform or the blockchain system.
According to the embodiment, the credible trading channel is provided through the trading platform, the trading funds of the trading party can be transferred to the trading platform firstly and then distributed by the trading platform, so that the property loss of the trading party caused by malicious trading is effectively reduced, and the safety and reliability of trading are improved. The two transaction parties carry out transaction through the transaction platform, so that the direct contact of the two transaction parties can be avoided, and the privacy and the safety of the two transaction parties can be protected. The transaction platform automatically distributes the transaction funds by executing the transaction contract, so that the human intervention can be reduced, and the credibility of the transaction fund distribution is improved. The transaction platform can collect part of transaction commission fees for management of the transaction platform, so that stable operation of the transaction platform is maintained, and the transaction safety and the transaction efficiency are improved. The management platform can also ensure that funds for managing the block chain network are continuous by collecting part of transaction funds, does not worry about that the depletion of the funds affects the normal operation of the block chain, and is favorable for promoting the healthy, stable and sustainable development of the block chain.
In this embodiment, the sequence of steps S201 to S210 is the description sequence in this embodiment, and is not limited to the sequence of the transaction method of the block chain in this embodiment in the execution process, and on the premise that the method can be implemented, some steps may be executed simultaneously or individually by exchanging the sequence.
Referring to fig. 4, fig. 4 is a schematic flow chart of a transaction method of the blockchain of the present application according to a third embodiment. The embodiment comprises the following steps:
s301: the first node sends 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 participating in the blockchain transaction to the transaction platform, and execute the transaction through the transaction platform. For more contents of this step, reference may be made to the description of S101, which is not described herein again.
S302: the trading platform sends the trading information and at least part of the trading funds to the management platform.
In this embodiment, after receiving the transaction information and the transaction funds, the transaction platform may send the transaction information and at least part of the transaction funds to the management platform, and the management platform performs allocation of the transaction funds. When the transaction platform transfers transaction funds, all transaction funds can be transferred to the management platform and distributed by the management platform; or, the transaction platform can reserve part of transaction funds as commission fee according to the provisions of the transaction contract and transfer the rest part of transaction funds to the management platform for distribution.
The trading platform can also deploy corresponding intelligent contracts, and after the trading information of the first node is received, the intelligent contracts can be called to generate trading contracts based on the trading information. The transaction contract may define rules for allocation of transaction funds, and the transaction platform may execute the transaction contract to allocate transaction funds to send at least a portion of the transaction funds to the management platform.
In some embodiments, after the transaction platform receives the transaction information and the transaction funds, the transaction platform may also verify the validity of the transaction information and the transaction funds. For example, the trading platform may verify the validity of the identity of the two parties to the trade, the validity of the goods or services traded, whether the funds of the trade are sufficient, and the validity of other trade content. The transaction platform may send the transaction information and at least a portion of the transaction funds to the management platform after verifying that the transaction information and the transaction funds are legitimate. In some embodiments, if the transaction platform verifies that the transaction information is illegal, the transaction platform can refuse to execute the transaction, so that the safety of the blockchain transaction can be effectively improved.
In some embodiments, the transaction information received by the management platform may also be sent by the first node to the management platform. For example, when the first node sends the transaction information, the transaction information may be sent to the transaction platform and the management platform, respectively. After the management platform receives 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 trading contract based on the trading information.
In this embodiment, the management platform is deployed with 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 specify rules for blockchain transactions. For example, the relevant rules include the term of the transaction, the execution mode, the processing method of the incomplete transaction, and the like. The smart contract may also specify rules for payment or distribution of the transaction funds, including, for example, payment methods for the transaction funds, payment addresses, proportions of payments made to the seller and the transaction platform and/or management platform, payment times, and the like. The management platform can call the intelligent contract of the block chain to generate a trading contract based on the trading information after receiving the trading information of the first node, so as to execute the allocation of trading funds according to the rules of the trading contract.
S304: the management platform executes the trading contract to transfer at least a portion of the trading funds to the second node.
The second node can be any blockchain node in the blockchain system, and the second node can be used as a supplier to participate in blockchain transaction and obtain corresponding reward by providing goods or services. The second node may provide the corresponding goods or services to the first node upon receiving the transaction message.
The present embodiment provides for the allocation of the trading funds by the management platform, which may execute the trading contract to pay at least a portion of the trading funds to the second node after the trading is completed. In this embodiment, after receiving the transaction fund, the management platform may store the transaction fund in an account of the management platform in advance, where the fund in the account may be used to administer the blockchain system, and when the transaction is completed, the management platform may collect the corresponding fund from the account to pay to the second node, which is favorable for flexible management of the blockchain system fund and for maintaining stable operation of the blockchain system.
S305: the management platform reserves at least a portion of the remaining transaction funds for use in administering the blockchain.
In this embodiment, the management platform may collect at least a portion of the remaining transaction funds based on the rules of the transaction contract. The transaction fund collected by the management platform can have a block chain to be managed, so that the fund for managing the block chain in the block chain system can be continuously provided, the normal operation of the block chain is not influenced by the exhaustion of the fund, and the healthy, stable and sustainable development of the block chain is facilitated. In the embodiment, the management platform of the blockchain system allocates the transaction funds, so that the reliability and the safety of the transaction can be improved, and the property loss of the blockchain nodes caused by malicious transaction is reduced. And when the blockchain system is provided with a plurality of transaction platforms, transaction funds on the plurality of transaction platforms can be managed in a unified manner, so that the blockchain transaction fairness and the transaction fund security can be maintained. The management platform automatically distributes the transaction funds by executing the transaction contract, so that the human intervention can be reduced, and the credibility of the transaction fund distribution is improved.
In this embodiment, the sequence of steps S301 to S305 is the description sequence in this embodiment, and is not limited to the sequence 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 executed simultaneously or individually by exchanging the sequence.
Referring to fig. 5, fig. 5 is a schematic flow chart of a transaction method of the blockchain of the present application according to a fourth embodiment. This embodiment is further described on the basis of the third embodiment of the block chain transaction method of the present application, and the same steps as those in the third embodiment of the block chain transaction method of the present application are not repeated herein. The embodiment comprises the following steps:
s401: the first node sends the transaction information and the transaction funds to the transaction platform.
S402: the trading platform sends the trading information and at least part of the trading funds to the management platform.
In this embodiment, the trading platform may send all the trading funds to the management platform, and the management platform distributes the trading funds. Or the trading platform can also send part of the trading funds to the management platform, and the rest part of the trading funds are reserved for controlling the trading platform.
After receiving the transaction information of the first node, the transaction platform may further 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, and this step may specifically refer to the steps of S202 and S203 in the second embodiment of the block chain transaction method of the present application, which are not described herein again.
S403: the management platform generates a trading contract based on the trading information.
S404: the management platform judges whether a transaction completion message is received within a first preset time.
In this embodiment, the transaction completion message may be sent by the first node upon confirmation of receipt of the corresponding goods or services provided by the second node. The first node may send a transaction completion message to the transaction platform and the management platform; or, the first node may also send the transaction completion message to the transaction platform, and then the transaction platform forwards the transaction completion message to the management platform.
The specific content of this step may refer to the description of the step in the second embodiment S204 of the block chain transaction method of the present application, and this step is executed by using the management platform as an execution subject, 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 executed; or the management platform may further determine whether the transaction is cancelled, for example, the following step S405 may be performed.
S405: and 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, it may further determine whether the 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 about the reason for the transaction cancellation, the cancellation time, and the like.
The transaction cancellation message may be from the first node, the second node, or the transaction platform. For example, when the first node or the second node cannot complete the transaction correctly, a transaction cancellation message may be sent to the management platform to cancel the transaction; or the first node or the second node sends a transaction cancellation message to the transaction platform when the transaction cannot be completed correctly, and the transaction platform sends the transaction cancellation message to the management platform after confirmation so as to cancel the transaction.
In this embodiment, the second preset time is longer than the first preset time. The first predetermined time and the second predetermined time may be timed in the same manner, for example, from the receipt of the trading contract by the management platform. For example, the first preset time is 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 from the start of the transaction contract, it further determines whether the transaction cancellation message is received 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 the first preset time and the second preset time in the second embodiment of the block chain transaction method in the present application.
In this embodiment, if the management platform does not receive the transaction completion message in the first preset time, or does not receive the transaction cancellation message in the second preset time, the management platform may pay the corresponding transaction fund to the second node according to the specification of the transaction contract, for example, execute the following step S406; or the management platform may also confirm completion of the transaction to the first node, the second node and/or the transaction platform to determine whether to perform allocation of the transaction funds. 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 when the transaction is cancelled, for example, by performing the following step S409.
S406: the management platform executes the trading contract to transfer at least a portion of the trading funds to the second node.
In this embodiment, the management platform may also transfer at least a portion of the transaction funds to the second node within a third predetermined time after receiving the transaction complete message. The third preset time is, for example, one day or three days. The management platform performs the allocation of the transaction funds within the third preset time, and can provide a proper buffer time to ensure that the transaction is completed correctly. The third preset time in this embodiment is only used 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 within the time kept by the management platform to generate benefits, so that the flexibility of the management platform for transaction fund management can be effectively improved, and the benefits generated by the transaction funds can also be used for governing the blockchain system and maintaining the stable operation of the blockchain.
In this embodiment, when the transaction platform receives the transaction fund of the first node, the transaction fund can be completely transferred to the management platform. The management platform can also pay the transaction fund part to the second node according to the rules in the transaction contract, and use the remaining transaction fund part for the block chain or the governance of the transaction platform. For example, the management platform may perform the following steps S407 to S408.
S407: the management platform reserves a portion of the remaining transaction funds for use in administering the blockchain.
In the implementation, when the transaction is completed, the management platform can also receive part of the rest transaction funds according to the rules of the transaction contract, so as to be used for governing the block chain and maintaining the stable development of the block chain.
S408: the management platform transfers another portion of the remaining trading funds to the trading platform for use in administering the trading platform.
The management platform may also transfer a portion of the trading funds to the trading platform for remediation by the trading platform. For example, the management platform may transfer the portion of the transaction funds to the trading platform as a reward to the trading platform in accordance with the rules of the trading contract. Or the management platform can transfer corresponding trading funds to the trading platform according to the requirements of the trading platform so as to control the trading platform.
In this embodiment, the transaction funds may be all distributed by the management platform, the management platform may pay the corresponding transaction funds to the second node according to the rules of the transaction contract, and may also distribute the remaining transaction funds as required, for example, transfer the transaction funds to the transaction platform for governance of the transaction platform, or for governance and maintenance of the blockchain system. When the blockchain system is provided with a plurality of trading platforms, the management platform can transfer part of the trading funds to the trading platform corresponding to the trading, so that the trading platform can provide rewards of a credible trading channel, and the health and sustainable development of the trading platform are facilitated.
In some embodiments, the trading platform may leave a portion of the trading funds for use in administering the trading platform and transfer another remaining portion of the trading funds to the management platform when transferring 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 the remaining portion of the transaction funds for use in administering the blockchain.
And part of transaction funds are reserved on the transaction platform, so that the transaction platform can be used for governing the transaction platform, the stable operation of the transaction platform is maintained, and the security of the transaction carried out on the transaction platform is further protected. The transaction fund reserved by the management platform can be used for maintaining and managing the block chain system, so that the fund for managing the block chain network is continuous, the normal operation of the block chain is not influenced by the exhaustion of the fund, and the healthy, stable and sustainable development of the block chain is facilitated.
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 from the first node, the second node, or the transaction platform, the management platform may return the corresponding transaction fund to the first node. For example, after receiving the transaction cancellation message, the management platform may confirm the first node or the second node, and if it is determined that the transaction is cancelled, at least part of the transaction funds 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 due to the failure of the transaction may be reduced. When the transaction fund is returned, the management platform can return the transaction fund completely or partially according to the provisions of the transaction contract, and when the transaction fund is partially returned, the remaining transaction fund can be kept on the management platform for governing the blockchain system.
According to the embodiment, the credible trading channel is provided through the trading platform, so that property loss caused by malicious trading to a trading party can be effectively reduced, and the safety and reliability of trading are improved. The two transaction parties carry out transaction through the transaction platform, so that the direct contact of the two transaction parties can be avoided, and the privacy and the safety of the two transaction parties can be protected. The transaction fund is automatically distributed by executing the transaction contract through the management platform, so that the credibility of the transaction fund distribution is effectively improved. The management platform can also ensure that funds for managing the block chain network are continuous by collecting part of transaction funds, does not worry about that the depletion of the funds affects the normal operation of the block chain, and is favorable for promoting the healthy, stable and sustainable development of the block chain. The management platform can also transfer part of transaction funds to the transaction platform for treatment of the transaction platform, so that stable operation of the transaction platform is maintained, and the transaction safety and the transaction efficiency are improved.
In this embodiment, the sequence of steps S401 to S409 is the description sequence in this embodiment, and is not limited to the sequence 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 executed simultaneously or individually by exchanging the sequence.
Referring to fig. 6, fig. 6 is a schematic flow chart of a transaction method of the blockchain of the present application according to a fifth embodiment. The embodiment uses a transaction platform as an execution main body, and comprises:
s501: the transaction platform receives transaction information and transaction funds from the first node.
S502: the trading platform generates a trading contract based on the trading information.
S503: the trading platform executes the 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 trading funds to a management platform of the blockchain for remediation of the blockchain.
In this embodiment, the management platform is used for managing the fund balance of the blockchain system.
For more execution steps and contents of the trading platform in this embodiment, reference may be made to the description of the first to fourth embodiments of the block chain trading method in this application, which is not described herein again.
Referring to fig. 7, fig. 7 is a flowchart illustrating a transaction method according to a sixth embodiment of the blockchain of the present application. The management platform of the embodiment is an execution main body, and includes:
s601: the management platform receives transaction information and at least a portion of the transaction funds.
In this embodiment, the management platform is used for managing the fund balance of the blockchain system. The transaction information received by the management platform can come from a first node of the blockchain or a transaction platform of the blockchain, and at least part of transaction funds can be transferred to the management platform after the transaction platform receives the transaction funds of the first node.
S602: the management platform generates a trading contract based on the trading information.
S603: the management platform executes the trading contract to transfer at least a portion of the trading funds to the second node.
S604: the management platform reserves at least a portion of the remaining transaction funds for use in administering the blockchain.
For more execution steps and contents of the management platform in this embodiment, reference may be made to the description of the first to fourth embodiments of the block chain transaction method in this application, and details are not described herein again.
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 used for executing program instructions to implement the steps of the fifth to sixth embodiments of the block chain transaction method 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 having 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.
In this embodiment, for more execution processes, functions, and the like of the electronic device 80, reference may be made to the descriptions of the fifth to sixth embodiments of the block chain transaction method in the present application, and details are not described herein again.
Referring to fig. 9, fig. 9 is a schematic structural diagram of an embodiment of a computer storage medium according to the present application. The storage medium 90 in this embodiment is used to store program instructions 91. The program instructions 91 are executable by the processor to implement the steps of the fifth to sixth embodiments of the blockchain transaction method of the present application described above. Specifically, reference may be made to the description of the fifth embodiment to the sixth embodiment of the block chain transaction method in the present application, which is not described herein again.
The transaction method of blockchain according to the fifth to sixth embodiments of the present invention can be stored in a computer-readable storage medium if the method is implemented in the form of software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium 90 includes: various media capable of storing program codes, such as a usb disk, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or other devices, such as a mobile terminal including a storage medium.
The above description is only for the purpose of illustrating embodiments of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application or are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (11)

1. A blockchain transaction method, comprising:
a transaction platform of the blockchain receives transaction information and transaction funds from a first node of the blockchain;
calling the intelligent contract of the block chain to generate a trading contract based on the trading information;
executing the transaction contract to transfer at least a portion of the transaction funds to a second node of the blockchain;
transferring at least a portion of the remaining transaction funds to a management platform of the blockchain for remediation of the blockchain; the management platform is used for managing the fund balance of the blockchain system.
2. The transaction method according to claim 1,
the block chain transaction platform further comprises, after receiving transaction information and transaction funds from the first node of the block chain:
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 transaction contract to transfer at least a portion of the transaction funds to a second node of the blockchain is performed.
3. The transaction method according to claim 2,
the block chain transaction platform further comprises, after receiving transaction information and transaction funds from the first node of the block chain:
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 returning at least a portion of the transaction funds to the first node;
and the second preset time is greater than the first preset time.
4. The transaction method according to claim 2,
the executing the transaction contract to transfer at least a portion of the transaction funds to a second node of the blockchain comprises:
the transaction platform transfers at least a portion of the transaction funds to the second node within a third preset time after receiving the transaction completion message.
5. The transaction method according to claim 1,
the block chain transaction platform further comprises, after receiving transaction information and transaction funds from the first node of the block chain:
and forming a transaction notification message based on the transaction information, and sending the transaction notification message to the second node so that the second node can execute transaction according to the transaction notification message.
6. The transaction method according to claim 1, further comprising:
the trading platform collects at least a portion of the remaining trading funds for use in administering the trading platform.
7. A blockchain transaction method, 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 at least part of transaction funds are transferred to the management platform after the transaction platform receives the transaction funds of the first node;
calling the intelligent contract of the block chain to generate a trading contract based on the trading information;
executing the transaction contract to transfer at least a portion of the transaction funds to a second node of the blockchain;
leaving at least a portion of the remaining transaction funds for use in remediating the blockchain;
the management platform is used for managing the fund balance of the blockchain system.
8. The transaction method according to claim 7,
prior to the executing the transaction contract to transfer at least a portion of the transaction funds to the second node of the blockchain, further comprising:
the management platform judges whether a transaction completion message from the first node or the transaction platform is received within a first preset time;
executing 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 complete message is received;
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 returning 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;
and the second preset time is greater than the first preset time.
9. The transaction method according to claim 7,
the management platform receiving transaction information and at least a portion of the 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 another part of the transaction funds of the management platform after the transaction platform reserves one part of the transaction funds; or the like, or, alternatively,
the management platform receiving transaction information and at least a portion of the transaction funds comprises:
the management platform receives the transaction information and all the transaction funds;
said withholding at least a portion of said remaining transaction funds for use in remediating said blockchain further comprises:
the management platform reserves a part of the remaining transaction funds and transfers another part of the remaining transaction funds to the transaction platform for administering the transaction platform.
10. An electronic device comprising a processor, a memory, and communication circuitry, the processor coupling the memory and the communication circuitry; wherein the content of the first and second substances,
the communication circuit is used for the electronic equipment to communicate with the block link point equipment;
the memory is to store program instructions;
the processor is configured to execute the program instructions to implement the method according to any one of claims 1 to 9.
11. A computer storage medium for storing program instructions executable by a processor to perform 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 true CN111815444A (en) 2020-10-23
CN111815444B 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)

Cited By (2)

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

Citations (12)

* 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
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

Patent Citations (12)

* 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
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 (2)

* Cited by examiner, † Cited by third party
Title
CHIU, J,等: "Blockchain-Based Settlement for Asset Trading", REVIEW OF FINANCIAL STUDIES, vol. 32, no. 05, pages 1716 - 1753 *
严振亚,等: "区块链在数字资产交易领域中的创新应用", 企业经济, no. 01, pages 56 - 64 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2023009973A (en) * 2021-07-08 2023-01-20 Necプラットフォームズ株式会社 Arithmetic circuit, arithmetic device, method, and program
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

Also Published As

Publication number Publication date
CN111815444B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
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
TWI610255B (en) Online payment method and equipment
CN109961365B (en) Account receiving record processing method and system based on block chain intelligent contract
US20120066121A1 (en) Brokered Bill Payment
WO2016155197A1 (en) Incentive method, online transaction platform, and incentive funds platform for safe online transactions
JP5264510B2 (en) Method and system for billing an account
CN111444209B (en) Data processing method, device, equipment and medium based on block chain
CN109064167B (en) Data processing method and device based on block chain
CN110533405B (en) Cross-border mobile payment information processing method, device, system and storage medium
CN109426955B (en) Target object providing method, device and system
WO2019227344A1 (en) Management method and system for maintenance device, and data management server
CN110148046A (en) A kind of payment management method and device
CN111612453A (en) Decentralized transaction method and device based on block chain and electronic equipment
CN111815444B (en) Block chain transaction method, electronic device and storage medium
CN110659993A (en) Resource management method and device based on block chain network
CN110378693B (en) Distributed energy weak centralized transaction management system based on alliance block chain
CN111144889A (en) Block chain-based integral settlement method and block chain accounting system
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
WO2020103573A1 (en) Block chain-based network transaction signature method and device, and terminal equipment
CN111815307A (en) Asset management method of block chain, electronic device and storage medium
CN108492095B (en) Transaction method and device based on block chain
CN106600247B (en) Payment 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

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

TR01 Transfer of patent right