CN112200675B - Block chain-based transaction method, seller node system, equipment and medium - Google Patents

Block chain-based transaction method, seller node system, equipment and medium Download PDF

Info

Publication number
CN112200675B
CN112200675B CN202011096609.5A CN202011096609A CN112200675B CN 112200675 B CN112200675 B CN 112200675B CN 202011096609 A CN202011096609 A CN 202011096609A CN 112200675 B CN112200675 B CN 112200675B
Authority
CN
China
Prior art keywords
node
refund
transaction
seller
buyer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011096609.5A
Other languages
Chinese (zh)
Other versions
CN112200675A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202011096609.5A priority Critical patent/CN112200675B/en
Publication of CN112200675A publication Critical patent/CN112200675A/en
Application granted granted Critical
Publication of CN112200675B publication Critical patent/CN112200675B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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
    • G06Q30/00Commerce
    • G06Q30/01Customer relationship services
    • G06Q30/015Providing customer assistance, e.g. assisting a customer within a business location or via helpdesk
    • G06Q30/016After-sales

Abstract

The present disclosure provides a blockchain-based transaction method, a seller node, a terminal device, and a computer-readable storage medium, wherein the method comprises: when detecting that a buyer node purchases goods based on an intelligent contract in a blockchain, a seller node returns a spread to the buyer node based on the intelligent contract; the intelligent contract is used for enabling the seller node to refund the difference price to the buyer node according to preset rules. According to the embodiment of the disclosure, the block chain technology is utilized, the price refund mechanism of the buyer and the seller is realized based on the intelligent contract, so that the buyer node is ensured to obtain the price according to the price refund mode agreed in advance after purchasing the commodity, the consumption experience of the buyer is greatly improved, meanwhile, the seller can save a large amount of time to perform other transaction activities, and the mutual benefit win-win of the buyer and the seller is realized.

Description

Block chain-based transaction method, seller node system, equipment and medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a blockchain-based transaction method, a vendor node system, a terminal device, and a computer-readable storage medium.
Background
In order to realize commodity promotion, almost all e-commerce platforms can regularly or irregularly carry out various preferential activities, such as twenty-one activities of a certain e-commerce platform. However, in actual transactions, many merchants do not start the preferential activity exactly according to the time points issued by the electronic commerce platform, for example, some merchants may start to sell goods to the outside with preferential prices in advance of one day or even one week, which may cause the buyer to decrease prices after the goods are purchased, resulting in dissatisfaction of the buyer.
The current solution is that the buyer actively contacts the commodity customer service, determines a specific preferential mode and preferential price, agrees that once the price is higher than the price of the preferential activity on the day, the user still needs to contact the customer service again when actually returning the difference, online dialogue records before presentation are used as evidence, and then the commodity customer service is operated according to customer service prompts, which is time-consuming and labor-consuming and affects commodity sales promotion efficiency.
Disclosure of Invention
The present disclosure provides a blockchain-based transaction method, a seller node, a terminal device, and a computer-readable storage medium to address at least the above problems.
According to an aspect of the disclosed embodiments, there is provided a blockchain-based transaction method including:
when detecting that a buyer node purchases goods based on an intelligent contract in a blockchain, a seller node returns a spread to the buyer node based on the intelligent contract;
the intelligent contract is used for enabling the seller node to refund the difference price to the buyer node according to preset rules.
In one embodiment, before the seller node returns the spread to the buyer node based on the smart contract, the method further comprises:
the seller node creates an intelligent contract in a blockchain, wherein the intelligent contract agrees that the seller node sends a refund price promise to the buyer node so that the buyer node purchases goods based on the intelligent contract after receiving the refund price promise.
In one embodiment, the seller node refunds a spread to the buyer node based on the smart contract, comprising:
the seller node obtains a transaction settlement price for the buyer node to purchase the commodity;
continuously acquiring the current price of each purchase transaction of the commodity at each time point by the seller node in a preset spread refund period;
the seller node calculates the difference between the current price of each purchase transaction at each time point and the transaction settlement price to obtain the difference of each purchase transaction;
the seller node selecting a highest spread from the spreads for each purchase transaction; the method comprises the steps of,
the seller node refunds the highest spread to the buyer node.
In one embodiment, the seller node refunds a spread to the buyer node based on the smart contract, comprising:
any node in the blockchain acquires a transaction settlement price for the buyer node to purchase the commodity;
any node in the blockchain continuously acquires the current price of each purchase transaction of the commodity at each time point in a preset spread refund period;
any node in the blockchain calculates the difference between the current price of each purchase transaction at each time point and the transaction settlement price to obtain the difference of each purchase transaction;
any node in the blockchain selects the highest spread from the spreads of each purchase transaction, and uploads the highest spread to the blockchain; the method comprises the steps of,
the seller node obtains the highest spread from the blockchain and returns the highest spread to the buyer node.
In one embodiment, before returning the highest spread to the buyer node, the seller node further comprises:
the seller node uploads order information of the commodity purchased by the buyer node, the highest difference and a calculation process thereof to a blockchain so that the buyer node signs the highest difference;
the seller node returning the highest spread to the buyer node, comprising:
the seller node returns the highest spread to the buyer node after the buyer node signs the highest spread.
In one embodiment, the seller node continuously obtains the current price of the commodity at each purchase transaction at each point in time within a preset spread refund period, and further comprises:
the seller node judging whether a designated point in time of spread refund of the commodity is received;
if the seller node does not receive the appointed time point, executing the step of continuously acquiring the current price of each purchase transaction of the commodity at each time point in a preset spread refund period;
if the seller node receives the appointed time point, the seller node calculates the difference between the current price of each purchase transaction of the commodity at the appointed time point and the transaction settlement price to obtain the difference of each purchase transaction at the appointed time point;
the seller node selecting a highest spread at the specified point in time from the spreads of each purchase transaction at the specified point in time; the method comprises the steps of,
the seller node refunds the buyer node of the highest spread for the specified point in time.
In one embodiment, the method further comprises:
and after returning the corresponding gap to the buyer node, the seller node uploads order information and gap returning information of the commodity purchased by the buyer node to a blockchain.
According to another aspect of the disclosed embodiments, there is provided a seller node system, comprising:
a spread refund module configured to refund a spread to a buyer node based on an intelligent contract in a blockchain upon detecting that the buyer node purchases an item based on the intelligent contract;
the intelligent contract is used for enabling the seller node to refund the price to the buyer according to preset rules.
According to yet another aspect of the embodiments of the present disclosure, there is provided a terminal device including a memory and a processor, the memory having a computer program stored therein, the processor executing the blockchain-based transaction method when the processor runs the computer program stored in the memory.
According to yet another aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the blockchain-based transaction method.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
according to the transaction method based on the blockchain, when a seller node detects that a buyer node purchases goods based on an intelligent contract in the blockchain, the seller node returns a spread to the buyer node based on the intelligent contract; the intelligent contract is used for enabling the seller node to refund the difference price to the buyer node according to preset rules. According to the embodiment of the disclosure, the block chain technology is utilized, the price refund mechanism of the buyer and the seller is realized based on the intelligent contract, so that the buyer node is ensured to obtain the price according to the price refund mode agreed in advance after purchasing the commodity, the consumption experience of the buyer is greatly improved, meanwhile, the seller can save a large amount of time to perform other transaction activities, and the mutual benefit win-win of the buyer and the seller is realized.
Additional features and advantages of the disclosure will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the disclosure. The objectives and other advantages of the disclosure will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the disclosed embodiments and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain, without limitation, the disclosed embodiments.
FIG. 1 is a flow chart of a blockchain-based transaction method provided in an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of step S101 in fig. 1;
FIG. 3 is a flow chart of another blockchain-based transaction method provided by embodiments of the present disclosure;
fig. 4 is a schematic structural diagram of a vendor node system according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of the spread return module 41 in fig. 4;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the following detailed description of the specific embodiments of the present disclosure will be given with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the disclosure, are not intended to limit the disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order; moreover, embodiments of the present disclosure and features of embodiments may be arbitrarily combined with each other without conflict.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present disclosure, and are not of specific significance per se. Thus, "module," "component," or "unit" may be used in combination.
Referring to fig. 1, fig. 1 is a block chain-based transaction method according to an embodiment of the disclosure, which includes step S101.
In step S101, when detecting that a buyer node purchases goods based on an intelligent contract in a blockchain, a seller node refunds a spread to the buyer node based on the intelligent contract;
the intelligent contract is used for enabling the seller node to refund the difference price to the buyer node according to preset rules.
In this embodiment, the seller node and the buyer node are respectively blockchain nodes in the blockchain network, and based on the intelligent contract, the price difference is returned after the buyer purchases the commodity, so as to promote the consumption experience of the buyer, and meanwhile, the seller can save a great amount of time to perform other transaction activities.
It should be noted that, the preset rule, that is, the buyer node returns the spread to the buyer node based on the manner agreed in the intelligent contract.
Specifically, before the seller node returns the spread to the buyer node based on the smart contract, the method further includes the steps of:
the seller node creates an intelligent contract in a blockchain, wherein the intelligent contract agrees that the seller node sends a refund price promise to the buyer node so that the buyer node purchases goods based on the intelligent contract after receiving the refund price promise.
Wherein the refund price promise may be refund transaction in the smart contract, i.e. T as described in (5) of the smart contract in this embodiment refund The information such as commodity information, a spread refund term and the like is carried in the refund price promise, a seller node signs the refund transaction before a buyer purchases the commodity and uploads the refund transaction to the blockchain, the buyer node decides whether to purchase the commodity after receiving the refund transaction, and uploads the information of the purchased commodity to the blockchain after the commodity is purchased, the seller node or any other node in the blockchain calculates an actual spread based on the intelligent contract, and the seller node returns the spread to the buyer node.
It will be appreciated that the intelligent contract may be created by any node in the blockchain and run on the blockchain, and in this embodiment, the intelligent contract created by the seller node may include the following: (1) Obtaining a current transaction settlement price p=p
(2) Let P 1 =P 2 =P;r=P 1 -P 2 ;t=0
(3) Setting refund time T and order number Num
(4) Setting a transaction T buy {[I B |Num],[o=p→A]}
(5) Setting a transaction T refund {[o|Num],[R→B]|[R=r,r in-Chain]}
(6) Setting flip-flop t { [ P ] 2 ≠P]~[t=1]}
(7) A is opposite to T refund Signature is sent to B
(8) B to T buy Signed and sent to A
(9) A is opposite to T buy Broadcast it to blockchain after signing
(10) The following procedure is performed
1.while(not T)do
2.if t
3. P2=P
4. if r<P1-P2
5. r=P1-P2
6. end if
7. t=0
8.end if
9.end while
10. Broadcasting r and Num to blockchain
(11) B to T refund Broadcast it to blockchain after signing
In the above, it should be noted that:
(A) P represents the current price of the commodity at any moment; r represents the amount of expected refund; t is an identification of the trigger as a result, wherein 0 indicates that the trigger is not activated and 1 indicates that the trigger is activated; t represents the cut-off time point.
(B)[I B |Num]Representation I B Corresponding to order number Num, I B Representing the funds of B (buyer). [ o=p→A]The representation represents the output of the process p→a (seller) with o, i.e., the output result of the payment of the settlement amount p actually paid to a is o, and the settlement amount actually paid to a is p.
(C)[o|Num]The representation o corresponds to the order number Num, o represents T refund Input of transaction, which is T buy The input and output of the transaction, i.e. the funds involved in the process of setting the refund range to p→a, and the refund amount paid to B is R, and the final value of R is the input value of the posting ledger.
(D)[P 2 ≠P]~[t=1]Indicating that the tag trigger is activated upon finding a change in the settlement price for the good.
(E) B purchases a commodity with a settlement price p from A. And by transaction T buy The payment to a is completed. The amount paid is p.When the transaction is satisfied: and B, signing the payment transaction, sending the payment transaction to A, and broadcasting the payment transaction after the A signature. The signature of both parties means that both parties recognize the transaction. (F) B to T buy Before signing, T with A signature is received refund Otherwise, a refund may not be received because A may not be specific to T after p is received refund Broadcasting is performed.
If B receives T with A signature refund Thereafter, the signed T is not to be signed buy Is sent to A because of [ o ] in Trefund at this time]Is a null value because no pass through [ o=p→a ]]This process of initializing it, therefore even if B does not sign T buy Send to a and upon receipt of T with a signature refund Immediately after which it is signed and broadcast, nor is any refund received, since no refund can be refunded at all.
Finally, when refund time T is reached, r is logged into the blockchain ledger, B is broadcast T refund To obtain refunds for the spread. It should be noted that step (10) in the smart contract may be performed by any one or more nodes on the blockchain, and any node may verify it before the final r is written to the blockchain, and write to the blockchain after consensus is reached.
It should be noted that, the transaction in the intelligent contract is a transaction in the blockchain, and the validity and the correctness of the execution result are ensured by all the blockchain link points on the blockchain, which are distinguished from the purchase transaction in the embodiment.
Further, as shown in fig. 2, the step S101 specifically includes the following steps S101a to S101e:
in step S101a, a seller node acquires a transaction settlement price for the buyer node to purchase the commodity.
In practical application, the seller node uploads the transaction data of buying and selling to the blockchain to realize the storage and sharing of the data, and the seller node can directly acquire the transaction settlement price of buying goods by the buyer node from the blockchain. Specifically, the current price of the transaction settlement price of the commodity and other purchase transactions of the commodity are obtained based on the order information of the commodity so as to ensure that the blockchain system calculates the difference price for the same commodity. In step S101b, the seller node continuously obtains the current price of each purchase transaction of the commodity at each time point within a preset spread refund period.
Considering that multiple purchase transactions may occur at one point in time in a large-scale preference, and that multiple purchase transactions may each occur at different prices, the present application is used for calculating the spread by continuously acquiring the current price of each purchase transaction of the commodity at each point in time. It should be noted that, the current price of each purchase transaction at each time point is the current price of the commodity purchased by the user given to the seller system of each purchase transaction at each time point, but the current price is not equal to the settlement price of each purchase transaction, because in the actual transaction, the user may use the self-coupon or vip user gives a further benefit on the basis of the price given by the seller system, in order to guarantee the rights of the seller, the current price is the original price of each purchase transaction set by the seller.
The bid refund term is a term of validity of the bid refund that the seller node can refund for the buyer, the buyer can set the bid refund term in advance on the seller node, the bid refund term can be set based on the preferential date of the commodity, that is, the time point can be in units of day, or other time points, the time point can be in units of day, and the price uniformity of all transactions at the time point is taken as an example, the preferential date of the commodity is 1280 yuan, the seller purchases the commodity at 1600 yuan on 11 month 8, the prices of the commodity at 11 month 9 and 11 month 10 are 1200 yuan and 1500 yuan, the spread at 11 month 9 is 400 yuan, the spread at 11 month 10 is 100 yuan, the spread at 11 month 11 yuan is 320 yuan, in some embodiments, the bid refund term can also be set based on other modes, and the preferential date setting is not limited in a specific manner.
It should be noted that, in this embodiment, the difference between the current price of each purchase transaction and the transaction settlement price at each time point is calculated when the transaction settlement price is greater than the current price of each purchase transaction at each time point, specifically, a trigger may be set in the seller node, when the current price of some transactions at some time points in the spread return period is detected to be greater than the transaction settlement price, the trigger is activated to calculate the difference therebetween, and for the transactions at the time points where the price is not greater than the transaction settlement price in the period, the current buyer is described as a commodity purchased at the optimal price, the seller node does not need to perform the difference calculation, for example, the price for 11 months 10 is 1700 instead of 1500, and the price for 11 months 10 is no longer calculated.
In step S101c, the seller node calculates a difference between the current price of each purchase transaction and the transaction settlement price at each time point, to obtain a difference of each purchase transaction;
and S101d, selecting the highest difference from the differences of each purchase transaction by the seller node.
In the example above, the highest spread is 400 yuan for 11 months 9 days, and the seller node selects that spread as the spread returned to the buyer.
In step S101e, the seller node refunds the highest spread to the buyer node.
It will be appreciated that the seller node automatically refunds the highest spread to the buyer node on the last day of the spread refund deadline, which in this embodiment is 11 months and 11 days. Of course, if in some embodiments, the point in time to refund the spread is calculated in hours, the seller node automatically refunds the highest spread to the buyer node upon reaching the last hour of the spread refund deadline.
In some embodiments, the calculation of the spread may be performed by any other blockchain node, e.g. a buyer node, based on a smart contract, i.e. the other blockchain node including the buyer node may also perform the calculation of the highest spread in steps S101a-S101d, in particular the seller node refunds the spread to the buyer node based on the smart contract (step S101), comprising the steps of:
any node in the blockchain acquires a transaction settlement price for the buyer node to purchase the commodity;
any node in the blockchain continuously acquires the current price of each purchase transaction of the commodity at each time point in a preset spread refund period;
any node in the blockchain calculates the difference between the current price of each purchase transaction at each time point and the transaction settlement price to obtain the difference of each purchase transaction;
any node in the blockchain selects the highest spread from the spreads of each purchase transaction, and uploads the highest spread to the blockchain; the method comprises the steps of,
the seller node obtains the highest spread from the blockchain and returns the highest spread to the buyer node.
It is understood that any blockchain node in the blockchain network may calculate the highest spread based on the intelligent contract, and the seller node obtains the highest spread from the blockchain and returns the highest spread to the buyer node.
In this embodiment, the actual order of the commodity purchased by the buyer and the settlement price thereof are associated with the expected to-be-performed preferential activity, the current price and the settlement price at each time point are continuously compared in the contracted preferential period through the seller node, and when the actual preferential activity day arrives, the maximum difference price is automatically returned to the buyer in the preferential period, the buyer does not need to frequently consult, confirm, supervise and urge the seller to return the difference price, the consumption experience of the buyer is improved, the seller can save a great amount of time to perform other transaction activities, and the mutual win of the buyer and the seller is realized.
Referring to fig. 3, fig. 3 is a block chain-based transaction method provided in the embodiment of the present disclosure, in which a spread calculated based on a current price of each purchase transaction at a designated time point is returned to a buyer by receiving the designated time point of the spread return, and the method is particularly suitable for a scenario in which an e-commerce platform performs a preferential activity on a specific day, specifically, based on the previous embodiment, the seller node in the present embodiment continuously obtains the current price of each purchase transaction of the commodity at each time point before the preset spread return period (step S101 b), and further includes steps S301-S304.
In step S301, the seller node determines whether a specified time point of the price return of the commodity is received, if the specified time point is not received by the seller node, step S101b is executed to continuously obtain the current price of each purchase transaction of the commodity at each time point within a preset price return period, and if the specified time point is received, step S302 is executed.
In step S302, the seller node calculates a difference between a current price of each purchase transaction of the commodity at the designated time point and the transaction settlement price, and obtains a difference price of each purchase transaction at the designated time point;
in step S303, the seller node selects a highest spread at the specified point in time from among spreads at each purchase transaction at the specified point in time;
in step S304, the seller node returns the highest spread for the specified point in time to the buyer node.
For example, when the specific preferential day of the e-commerce platform is 11 months and 11 days, and the buyer purchases the commodity at 11 months and 8 days, the highest price calculated in the current price of each purchase transaction at 11 months and 11 days is returned to the buyer no matter what the price is at 11 months and 9 days and 11 months and 10 days, so that the creditability of the preferential day in the e-commerce platform promotion can be effectively improved. In the condition that a plurality of transactions at a certain time point are consistent, in combination with the content of the intelligent contract in the embodiment, while (not T) do needs to be modified as follows: while (Tin (11 days 0:00, 11 days 24:00)) do.
It should be noted that, the buyer pays the money to the seller or the seller returns the difference to the buyer, which may be electronic money on the blockchain or money paid through a banking system, if the money is paid through the banking system, the banking system is in interface connection with the blockchain system through a process sequence, and the intelligent contract on the blockchain is automatically executed, which is not described again.
In some embodiments, the highest spread at the specified point in time may also be calculated by other blockchain nodes based on the intelligent contract, and the transaction is signed and broadcast into the blockchain by the other blockchain nodes and the buyer node, with the highest spread returned by the seller node to the buyer node, which is not described in detail herein.
Further, in this embodiment, the buying node confirms the refund gap to further guarantee the rights and interests of the buying party, and meanwhile, the block chain technology is utilized to improve the transaction efficiency and ensure the security of the transaction information, specifically, before the selling node refunds the highest gap to the buying node (i.e. step S101 e), the method further includes the following steps:
the seller node uploads order information of the commodity purchased by the buyer node, the highest difference and a calculation process thereof to a blockchain so that the buyer node signs the highest difference;
the seller node returns the highest spread to the buyer node (i.e., step S101 e), specifically:
the seller node returns the highest spread to the buyer node after the buyer node signs the highest spread. Specifically, after obtaining the gap refund information (i.e., the information of the highest gap, etc.) calculated by the seller from the blockchain, the buyer node checks whether the gap refund information of the seller is consistent with the contents promised in the refund promised, if so, signs the gap refund information and uploads the same to the blockchain, the buyer and the seller agree on the gap refund, and show on the blockchain, and the seller refunds the corresponding gap to the buyer.
In one embodiment, the method further comprises the steps of:
after returning the corresponding gap to the buyer node, the seller node uploads the order information and the gap returning information of the commodity to a blockchain;
the spread refund information comprises a spread and a time point corresponding to the spread.
In particular, the seller node and the buyer node sign an intelligent contract, the intelligent contract running in a blockchain,
to further understand the content of the smart contract, taking the example that the preferential activity of a certain e-commerce platform will start at the point of 0 on 11 days and end at the point of 24 on 11 days,
purchasing a commodity with a price of 1000 yuan from the E-commerce platform on 8 days, and returning a difference between 1000 yuan if the price is lower than 1000 yuan in the period from the beginning of payment of the E-commerce platform to the ending of the preferential activity by the B promise;
the A and the B together create the intelligent contract above on the blockchain;
first, 1000 yuan of goods are paid; suppose that prices several days later (each purchase transaction in a day does not produce a price change) are divided into: 9 days: 999 yuan, 10 day 999 yuan, 11 day 996 yuan. Then: a) The blockchain system will modify r to 1-ary at 9 days and to 4-ary at 11 days; b) Writing the value 4 and the corresponding order number into an account book at the same time; c) Nail broadcasts T after seeing r in agreement on the blockchain refund Thereby obtaining refunds for the spread.
Suppose that prices several days after that are divided into: 9 days: 999 yuan, 995 yuan on 10 days, 996 yuan on 11 days. Then: a) The blockchain system will modify r to 1 element at 9 days and to 5 elements at 10 days; b) And writing the value 5 and the corresponding order number into the account book at the same time.
Nail broadcasts T after seeing r in agreement on the blockchain refund Thereby obtaining refunds for the spread.
Based on the same technical concept, the embodiments of the present disclosure correspondingly further provide a seller node system, as shown in fig. 4, comprising a spread refund module 41 configured to refund a spread to a buyer node based on an intelligent contract in a blockchain upon detecting that the buyer node purchases a commodity based on the intelligent contract;
the intelligent contract is used for enabling the seller node to refund the price to the buyer according to preset rules.
In one embodiment, the seller node system further comprises:
a creation module configured to create an intelligent contract in a blockchain before the spread refund module refunds the spread to the buyer node, the intelligent contract in which the seller node is contracted to send a refund price promise to the buyer node to cause the buyer node to purchase goods based on the intelligent contract after receiving the refund price promise.
In one embodiment, as shown in fig. 5, the spread refund module 41 includes an acquisition module 411, a calculation module 412, a selection module 413, and a refund module 414, wherein,
the acquiring module 411 is configured to acquire a transaction settlement price for the buyer node to purchase the commodity;
the acquiring module 411 is further configured to continuously acquire a current price of each purchase transaction of the commodity at each time point within a preset spread refund period;
the calculation module 412 is configured to calculate the difference between the current price of each purchase transaction and the transaction settlement price at each time point to obtain the difference of each purchase transaction
The selection module 413 is configured to select a highest spread from the spreads of each purchase transaction at the respective points in time; the method comprises the steps of,
the refund module 414 is configured to refund the highest spread to the buyer node.
In one embodiment, any node in the blockchain obtains a transaction settlement price for the buyer node to purchase the commodity; any node in the blockchain continuously acquires the current price of each purchase transaction of the commodity at each time point in a preset spread refund period; any node in the blockchain calculates the difference between the current price of each purchase transaction at each time point and the transaction settlement price to obtain the difference of each purchase transaction; any node in the blockchain selects the highest spread from the spreads of each purchase transaction, and uploads the highest spread to the blockchain;
the spread refund module includes:
a second acquisition module configured to acquire the highest spread from a blockchain;
and a second refund module configured to refund the highest spread to the buyer node.
In one embodiment, the seller node further comprises:
an upload module configured to upload order information of the commodity purchased by the buyer node, the highest spread, and a calculation process thereof into a blockchain before the refund module 414 refunds the highest spread, so that the buyer node signs the highest spread;
the refund module 414 is specifically configured to refund the highest spread to the buyer node after the buyer node signs the highest spread. In one embodiment, the seller node further comprises:
a judging module configured to judge whether a specified time point of a spread refund of the commodity is received before the acquiring module 411 continuously acquires a current price of each purchase transaction of the commodity at each time point;
the obtaining module 411 is further configured to continuously obtain, when the determining module determines that the seller node does not receive the specified time point, a current price of each purchase transaction of the commodity at each time point during a spread refund period;
the calculating module 412 is further configured to calculate, when the determining module determines that the seller node receives the specified time point, a difference between a current price of each purchase transaction of the commodity at the specified time point and the transaction settlement price, and obtain a difference of each purchase transaction at the specified time point;
the selection module 413 is further configured to select a highest spread at the specified point in time from the spreads of each purchase transaction at the specified point in time; the method comprises the steps of,
the refund module 414 is further configured to refund the highest spread for the specified point in time to the buyer node.
In one embodiment, the uploading module is further configured to upload order information and spread refund information of the commodity purchased by the buyer node into a blockchain after refunding the corresponding spread to the buyer node.
The spread refund information comprises a spread and a time point corresponding to the spread.
Based on the same technical concept, the embodiment of the present disclosure correspondingly provides a terminal device, as shown in fig. 6, where the terminal device includes a memory 61 and a processor 62, the memory 61 stores a computer program, and when the processor 62 runs the computer program stored in the memory 61, the processor 62 executes the blockchain-based transaction method.
Based on the same technical concept, the embodiments of the present disclosure correspondingly further provide a computer readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor executes the blockchain-based transaction method.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, functional modules/units in the apparatus, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed cooperatively by several physical components. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present disclosure, and not for limiting the same; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present disclosure.

Claims (9)

1. A blockchain-based transaction method, comprising:
the seller node creates an intelligent contract in the blockchain, wherein the intelligent contract is used for enabling the seller node to refund the price to the buyer node according to preset rules, and the intelligent contract comprises refund price transaction T refund Payment transaction T buy And refund settlement time point T, and payment transaction T buy The output is the refund price transaction T refund Is input, refund price transaction T refund A process representing that the seller node pays a spread of refund amount R to the buyer node;
the seller node sends a refund price difference transaction T to the buyer node based on the intelligent contract refund And said moving backSpread trade T refund With a seller node signature such that the buyer node receives a refund price differential transaction T with the seller node signature refund Thereafter, a payment transaction T is made based on the smart contract buy After signing, the transaction is sent to the seller node, wherein the buyer node receives the refund price transaction T with the seller node signature refund The input of (2) is a null value;
the seller node receives a payment transaction T with a buyer node signature buy To deal with payment transaction T buy Signing and comparing payment transaction T with buyer node signature and seller node signature buy Broadcast into blockchain, payment transaction T buy The condition for the buyer node to establish a payment transaction T buy After signing, sends to the seller node, the seller node deals with the payment transaction T buy Broadcasting after signing; and, when the refund settlement time point T is reached, the buyer node signs a refund price transaction T with the seller node refund Signature and return differential price transaction T with seller node signature and buyer node signature refund Broadcast to the blockchain to obtain the spread refund with the amount R.
2. The method of claim 1, wherein the seller node refunds a spread to the buyer node based on the smart contract, comprising:
the seller node obtains a transaction settlement price of the commodity purchased by the buyer node;
continuously acquiring the current price of each purchase transaction of the commodity at each time point by the seller node in a preset spread refund period;
the seller node calculates the difference between the current price of each purchase transaction at each time point and the transaction settlement price to obtain the difference of each purchase transaction;
the seller node selecting a highest spread from the spreads for each purchase transaction; the method comprises the steps of,
the seller node refunds the highest spread to the buyer node.
3. The method of claim 1, wherein the seller node refunds a spread to the buyer node based on the smart contract, comprising:
any node in the blockchain acquires a transaction settlement price of the buyer node for purchasing goods;
any node in the blockchain continuously acquires the current price of each purchase transaction of the commodity at each time point in a preset spread refund period;
any node in the blockchain calculates the difference between the current price of each purchase transaction at each time point and the transaction settlement price to obtain the difference of each purchase transaction;
any node in the blockchain selects the highest spread from the spreads of each purchase transaction, and uploads the highest spread to the blockchain; the method comprises the steps of,
the seller node obtains the highest spread from the blockchain and returns the highest spread to the buyer node.
4. The method of claim 2, wherein the seller node is further comprised of, prior to returning the highest spread to the buyer node:
the seller node uploads order information of the commodity purchased by the buyer node, the highest difference and a calculation process thereof to a blockchain so that the buyer node signs the highest difference;
the seller node returning the highest spread to the buyer node, comprising:
the seller node returns the highest spread to the buyer node after the buyer node signs the highest spread.
5. The method of claim 2, wherein the seller node continues to acquire the current price of the item at each point in time for each purchase transaction within a preset spread refund period, further comprising:
the seller node judging whether a designated point in time of spread refund of the commodity is received;
if the seller node does not receive the appointed time point, executing the step of continuously acquiring the current price of each purchase transaction of the commodity at each time point in a preset spread refund period;
if the seller node receives the appointed time point, the seller node calculates the difference between the current price of each purchase transaction of the commodity at the appointed time point and the transaction settlement price to obtain the difference of each purchase transaction at the appointed time point;
the seller node selecting a highest spread at the specified point in time from the spreads of each purchase transaction at the specified point in time; the method comprises the steps of,
the seller node refunds the buyer node of the highest spread for the specified point in time.
6. The method according to any one of claims 1-5, further comprising:
and after returning the corresponding spread to the buyer node, the seller node uploads order information and spread return information of the commodity purchased by the buyer node to a blockchain.
7. A seller node system, comprising:
a creation module configured to create an intelligent contract in the blockchain for causing the seller node to refund the price to the buyer node according to a preset rule, the intelligent contract including a refund price transaction T refund Payment transaction T buy And refund settlement time point T, and payment transaction T buy The output is the refund price transaction T refund Is input, refund price transaction T refund A process representing that the seller node pays a spread of refund amount R to the buyer node;
a spread refund module configured to send to the buyer node based on the smart contractRefund price transaction T refund And the refund price difference transaction T refund With a seller node signature such that the buyer node receives a refund price differential transaction T with the seller node signature refund Thereafter, a payment transaction T is made based on the smart contract buy After signing, the transaction is sent to the seller node, wherein the buyer node receives the refund price transaction T with the seller node signature refund The input of (2) is a null value; and receiving a payment transaction T with a buyer node signature buy To deal with payment transaction T buy Signing and comparing payment transaction T with buyer node signature and seller node signature buy Broadcast into blockchain, payment transaction T buy The condition for the buyer node to establish a payment transaction T buy After signing, sends to the seller node, the seller node deals with the payment transaction T buy Broadcasting after signing; and, when the refund settlement time point T is reached, the buyer node signs a refund price transaction T with the seller node refund Signature and return differential price transaction T with seller node signature and buyer node signature refund Broadcast to the blockchain to obtain the spread refund with the amount R.
8. A terminal device comprising a memory and a processor, the memory having a computer program stored therein, the processor performing the blockchain-based transaction method according to any of claims 1 to 6 when the processor runs the computer program stored in the memory.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, performs the blockchain-based transaction method according to any of claims 1 to 6.
CN202011096609.5A 2020-10-14 2020-10-14 Block chain-based transaction method, seller node system, equipment and medium Active CN112200675B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011096609.5A CN112200675B (en) 2020-10-14 2020-10-14 Block chain-based transaction method, seller node system, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011096609.5A CN112200675B (en) 2020-10-14 2020-10-14 Block chain-based transaction method, seller node system, equipment and medium

Publications (2)

Publication Number Publication Date
CN112200675A CN112200675A (en) 2021-01-08
CN112200675B true CN112200675B (en) 2024-04-05

Family

ID=74008901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011096609.5A Active CN112200675B (en) 2020-10-14 2020-10-14 Block chain-based transaction method, seller node system, equipment and medium

Country Status (1)

Country Link
CN (1) CN112200675B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880947A (en) * 2011-07-11 2013-01-16 阿里巴巴集团控股有限公司 Information interactive method and device of electronic business platform and logistics trading platform
CN104766228A (en) * 2015-04-21 2015-07-08 陈博 Electronic payment method, device and system based on price adjustment
CN105210091A (en) * 2013-01-18 2015-12-30 塞恩斯伯里超级市场有限公司 A computer system for processing product data
CN105787753A (en) * 2016-02-01 2016-07-20 北京京东尚科信息技术有限公司 Method and system for events triggering and goods return processing
CN107203919A (en) * 2016-03-18 2017-09-26 阿里巴巴集团控股有限公司 The processing method and processing device of business information
CN107248096A (en) * 2017-04-20 2017-10-13 多点生活(中国)网络科技有限公司 Order processing method and system
CN110097461A (en) * 2018-01-29 2019-08-06 阿里巴巴集团控股有限公司 A kind of execution method and apparatus of intelligence contract
CN111199479A (en) * 2019-12-27 2020-05-26 湖南大学 Method and storage medium for import overseas payment based on block chain

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7769631B2 (en) * 1999-08-17 2010-08-03 Mcclung Iii Guy L Business systems with price guarantee and display
US11544708B2 (en) * 2017-12-29 2023-01-03 Ebay Inc. User controlled storage and sharing of personal user information on a blockchain

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880947A (en) * 2011-07-11 2013-01-16 阿里巴巴集团控股有限公司 Information interactive method and device of electronic business platform and logistics trading platform
CN105210091A (en) * 2013-01-18 2015-12-30 塞恩斯伯里超级市场有限公司 A computer system for processing product data
CN104766228A (en) * 2015-04-21 2015-07-08 陈博 Electronic payment method, device and system based on price adjustment
CN105787753A (en) * 2016-02-01 2016-07-20 北京京东尚科信息技术有限公司 Method and system for events triggering and goods return processing
CN107203919A (en) * 2016-03-18 2017-09-26 阿里巴巴集团控股有限公司 The processing method and processing device of business information
CN107248096A (en) * 2017-04-20 2017-10-13 多点生活(中国)网络科技有限公司 Order processing method and system
CN110097461A (en) * 2018-01-29 2019-08-06 阿里巴巴集团控股有限公司 A kind of execution method and apparatus of intelligence contract
CN111199479A (en) * 2019-12-27 2020-05-26 湖南大学 Method and storage medium for import overseas payment based on block chain

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Privacy-Preserving E-Commerce System Based on the Blockchain Technology;Yiming Jiang等;《2019 IEEE International Workshop on Blockchain Oriented Software Engineering (IWBOSE)》;20190314;第50-55页,全文 *
基于区块链的数据处理方案研究;江沁;《中国优秀硕士学位论文全文数据库信息科技辑》;20181215;I138-782,全文 *

Also Published As

Publication number Publication date
CN112200675A (en) 2021-01-08

Similar Documents

Publication Publication Date Title
US9704163B2 (en) Secondary market for gift cards where secondary market transactions do not physically transfer the same gift card between a seller and a purchaser
US20110238570A1 (en) System of Online Trading Through Intermediary Platform and Methods Thereof
CN106251205A (en) A kind of merchandise sales management system and method
US20160042340A1 (en) Closed prepayment program via merchant pos terminals
KR101740879B1 (en) Method and server for providing artcraft trading service
CN112215611B (en) Block chain-based offer method, seller node equipment, terminal equipment and storage medium
US20150178768A1 (en) System and method for intermediating electronic commerce using offline transaction information
WO2021139522A1 (en) Data processing method and apparatus
KR101927516B1 (en) System for transaction service of noble metal applying virtual money
CN115797022B (en) Order management and control method and system for supply chain collaboration platform
CN110717777A (en) Commodity and resource processing method, device and equipment
CN109978554A (en) Order processing method, server device and computer readable storage medium
CA2995865C (en) Electronic-certificate-based transaction method and system
CN112200675B (en) Block chain-based transaction method, seller node system, equipment and medium
CN110633966A (en) Block chain-based contract securitization method and device
US20200027142A1 (en) System and method for marketing through division of product groups
KR101789922B1 (en) Trade method between using message application
CN110910146A (en) Commodity processing method and device
CN110675260A (en) Agricultural product transaction data processing method and device based on block chain
RU2699068C1 (en) System for guaranteed return of goods in retail sales network
US20230237560A1 (en) Product catalog mapping and integration across distributed systems and interfaces, dynamic determination and presentation of customized service offers and lifecycle management of services
US20230230153A1 (en) Modular multi-party points of transaction for digital business
US20230359984A1 (en) Methods and systems for inventory management for blockchain-based transactions
US20230206247A1 (en) Product catalog mapping and integration across distributed systems and interfaces, dynamic determination and presentation of customized service offers and lifecycle management of services
KR20180114789A (en) Method for transaction agricultural and fishery goods and system thereof

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