CN113191897A - Block chain based product transaction method, device, equipment and storage medium - Google Patents

Block chain based product transaction method, device, equipment and storage medium Download PDF

Info

Publication number
CN113191897A
CN113191897A CN202110477600.7A CN202110477600A CN113191897A CN 113191897 A CN113191897 A CN 113191897A CN 202110477600 A CN202110477600 A CN 202110477600A CN 113191897 A CN113191897 A CN 113191897A
Authority
CN
China
Prior art keywords
share
target
contract
user
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110477600.7A
Other languages
Chinese (zh)
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.)
Zhongchao Credit Card Industry Development Co ltd
Zhongchao Creditcard Industry Development Co Ltd Hangzhou Blockchain Technology Research Institute
Original Assignee
Zhongchao Credit Card Industry Development Co ltd
Zhongchao Creditcard Industry Development Co Ltd Hangzhou Blockchain Technology Research Institute
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 Zhongchao Credit Card Industry Development Co ltd, Zhongchao Creditcard Industry Development Co Ltd Hangzhou Blockchain Technology Research Institute filed Critical Zhongchao Credit Card Industry Development Co ltd
Priority to CN202110477600.7A priority Critical patent/CN113191897A/en
Publication of CN113191897A publication Critical patent/CN113191897A/en
Pending legal-status Critical Current

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Bioethics (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Technology Law (AREA)
  • Databases & Information Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a product transaction method, a device, equipment and a storage medium based on a block chain. The method comprises the following steps: in response to a transaction request of a first user for a target product, creating a listing contract, wherein a total share of the target product to be transacted by the first user is recorded in the listing contract; issuing a pending contract to the blockchain; receiving a trading contract sent by a second user through a second node, wherein the trading contract records a target share of a target product predetermined by the second user; locking a target share of a target product in a list hanging contract; receiving a first quantity of target resources transferred by a second user through a second node; and transferring the ownership of the target product of the target share to the second user and transferring the target resource of the first quantity to the first user under the condition that the target resource of the first quantity meets the preset condition recorded in the list hanging contract. The application provides a trading scheme which can solve the trading barrier between individuals among different groups in the prior art.

Description

Block chain based product transaction method, device, equipment and storage medium
Technical Field
The application relates to the technical field of blockchain application, in particular to a product transaction method, a device, equipment and a storage medium based on blockchains.
Background
Some products may be transformed into a resource after a period of time has elapsed. However, during the period before the conversion, the individuals who own the products cannot directly obtain the resources through the products, and the individuals who own the products can suffer from imbalance of the products and the resources, and the conversion is difficult. For example, financial products of various financial institutions have a closed period, so that investors cannot redeem the products in advance, and the liquidity of the products is subject to scaling.
In practice, there may be a plurality of groups having the above products, and there is a barrier to product transfer between the groups, and even if some groups allow transfer conversion between products and resources among individuals having the products within the groups in consideration of the above problems, since the number of individuals owned by one group itself is limited, the needs of the individuals for transfer conversion between products and resources cannot be met. For example, in order to solve the problem of poor liquidity of financial products, some financial institutions have introduced a business of transfer transactions of financial products. However, the current transfer transaction business can only be transferred within the financial institution due to the consideration of transaction security. And the number of clients of a single financial institution is limited, and the current transfer transaction mode still cannot meet the requirements of the clients on financial product transaction.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, a device and a storage medium for trading a product based on a block chain, which can solve the technical problem in the prior art that there is a barrier in trading between individuals among different groups in trading of some products.
The technical scheme of the application is as follows:
in a first aspect, a method for trading a product based on a blockchain is provided, the blockchain at least comprises a first node and a second node, the method is applied to the first node, and the method comprises the following steps:
responding to a transaction request of a first user for a target product, creating a listing contract, recording the total share of the target product in the listing contract, and converting the target product into a corresponding target resource after first preset time;
issuing a pending contract to the blockchain;
receiving a trading contract sent by a second user through a second node, wherein the trading contract records a target share of a target product predetermined by the second user;
locking a target share of a target product in a list hanging contract;
receiving a first quantity of target resources transferred by a second user through a second node;
transferring ownership of the target share of the target product to the second user if the first number of target resources meets a preset condition set forth in the hang order contract, an
Transferring the first quantity of target resources to the first user.
In some embodiments, creating a hang ticket contract in response to a transaction request for a target product by a first user includes:
acquiring a transaction request sent by a first user, wherein the transaction request comprises the total share of a target product to be transacted by the first user;
and under the condition that the total share of the target product to be traded by the first user is not larger than the share of the target product stored by the first user at the first node, creating a menu-hanging contract based on the total share of the target product to be traded by the first user, wherein the first node is the node where the first user is located.
In some embodiments, the trade contract is voided in the event that the first quantity of the target resource does not satisfy a preset condition set forth in the hang-order contract or the target resource transferred by the second node is not received within a second preset time.
In some embodiments, after issuing the pending contract to the blockchain, the method further comprises:
in response to a contract modification request of a first user, modifying the tradable share of a target product in a listing contract, wherein the modified tradable share is not more than the share of the target product stored by the first user at a first node, and the first node is the node where the first user is located;
and issuing the modified menu hanging contract to the blockchain.
In some embodiments, the listing contract records total shares, locked shares, closed shares, withdrawn shares, tradable shares of the target product; the singleton share is the share of the target product to which the ownership of the target product has been transferred to other users; the withdrawn share is the share of the transaction which is reduced by the modified deposit receipt contract compared with the share before modification; the tradable share satisfies the following equation:
tradeable share is total share- (locked single share + singled-out share + singled-back share).
In some embodiments, the target share lock order for the target product in the pending contract comprises:
in the event that the target share is not greater than the tradable share, a target share lock order for the target product in the contract will be placed.
In some embodiments, the method further comprises:
after the first preset time, determining at least one third user, wherein the third user has ownership of the target product;
transferring, to each of the at least one third users, the target resource corresponding to the ownership share based on the ownership share of each of the at least one third users.
In a second aspect, a method for product transaction based on a blockchain is provided, the blockchain at least comprises a first node and a second node, and the method is applied to the second node, and the method comprises:
acquiring a listing contract in a block chain in response to a query request of a second user for a target product, wherein the listing contract is recorded with the total share of the target product to be traded by a first user, and the target product is converted into a target resource from the target product after a first preset time;
creating a trading contract based on the trading demand of the second user, the trading contract recording a target share of a target product predetermined by the second user;
sending the transaction contract to a first node, so that the first node can hang a target share lock order of a target product in the order contract after receiving the transaction contract, wherein the first node is a node where a first user is located;
and responding to a resource transfer request of a second user, transferring a first quantity of target resources to the first node, so that the first node transfers the ownership of the target product of the target share to the second user and transfers the first quantity of target resources to the first user under the condition that the first quantity of target resources meets a preset condition recorded in the hang-order contract.
In a third aspect, there is provided a blockchain-based product transaction apparatus, the blockchain including at least a first node and a second node, the apparatus being applied to the first node, the apparatus including:
the system comprises a listing module, a transaction module and a display module, wherein the listing module is used for responding to a transaction request of a first user for a target product, creating a listing contract, recording the total share of the target product in the listing contract, and converting the target product into a corresponding target resource after first preset time;
the first sending module is used for issuing the menu hanging contract to the block chain;
the first receiving module is used for receiving a trading contract sent by a second user through a second node, and the trading contract records a target share of a target product predetermined by the second user;
the locking list module is used for locking a target share of a target product in a list hanging contract;
a second receiving module, configured to receive a first amount of target resources transferred by a second user through a second node;
and the first transaction control module is used for transferring the ownership of the target product of the target share to the second user and transferring the target resource of the first quantity to the first user under the condition that the target resource of the first quantity meets the preset condition recorded in the listing contract.
In a fourth aspect, there is provided a blockchain-based product transaction apparatus, the blockchain including at least a first node and a second node, the apparatus being applied to the second node, the apparatus including:
the product query module is used for responding to a query request of a second user for a target product, acquiring a list hanging contract in a block chain, wherein the list hanging contract records the total share of the target product to be traded by the first user, and the target product is converted into a target resource from the target product after first preset time;
the contract creating module is used for creating a trading contract in response to the trading demand of the second user, and the trading contract records a target share of a target product predetermined by the second user;
the second sending module is used for sending the transaction contract to the first node so that the first node locks the target share of the target product in the menu-hanging contract after receiving the transaction contract, and the first node is a node where the first user is located;
and the resource transfer module is used for responding to a resource transfer request of a second user, transferring a first quantity of target resources to the first node, so that the first node transfers the ownership of the target product of the target share to the second user and transfers the first quantity of target resources to the first user under the condition that the first quantity of target resources meet the preset condition recorded in the menu hanging contract.
In a fifth aspect, the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the blockchain-based product transaction method according to the first aspect or the second aspect.
In a sixth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the blockchain-based product transaction method according to the first or second aspect.
The technical scheme provided by the embodiment of the application at least has the following beneficial effects:
according to the product transaction method based on the block chain, a product transaction system with a plurality of nodes capable of participating is established by using the block chain technology, the nodes of one block chain can correspond to one product issuer, and the number of users participating in transfer and conversion between products and resources is increased.
The first user and the second user can be not in the same node, namely, not in the same group, so that mutual transfer among different groups is realized, and the requirement of a client for transfer conversion among products and resources across the groups is met.
And under the condition that the first quantity of target resources meet the preset conditions recorded in the hang-order contract, transferring the ownership of the target product with the target share to a second user, transferring the first quantity of target resources to the first user, and monitoring the completion condition of the transaction through the block chain node, so that the security of the transaction is ensured.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application and are not to be construed as limiting the application.
Fig. 1 is a schematic diagram of a product transaction scenario based on a block chain according to an embodiment of the present application;
fig. 2 is a first flowchart illustrating a blockchain-based product transaction method according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a cross-bank transfer contract model for financial products according to an embodiment of the present application;
fig. 4 is a schematic flowchart illustration two of a block chain-based product transaction method according to an embodiment of the present application;
fig. 5 is a third flowchart of a product transaction method based on a blockchain according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of Alice's waybill information according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of lock order information provided by Bob according to an embodiment of the present application;
fig. 8 is a schematic diagram illustrating change of policy information of Alice according to an embodiment of the present application;
FIG. 9 is a schematic diagram illustrating a change of lock order information of Bob according to an embodiment of the present application;
fig. 10 is a schematic diagram illustrating change of policy information of Alice according to an embodiment of the present application;
fig. 11 is a schematic diagram of christs lock order information provided in an embodiment of the present application;
fig. 12 is a schematic diagram illustrating change of policy information of Alice according to an embodiment of the present application;
fig. 13 is a schematic diagram illustrating a change of information of a christ lock order according to an embodiment of the present application;
fig. 14 is a schematic diagram illustrating change of policy information of Alice according to an embodiment of the present application;
fig. 15 is a schematic diagram illustrating change of policy information of Alice according to an embodiment of the present application;
FIG. 16 is a schematic diagram illustrating a change of the coupon information of Bob according to an embodiment of the present application;
fig. 17 is a schematic diagram illustrating a change of christ waybill information according to an embodiment of the present application;
FIG. 18 is a flow diagram illustrating a vendor flow routine provided by an embodiment of the present application;
FIG. 19 is a schematic diagram illustrating a flow of a buyer's lock order provided by an embodiment of the present application;
FIG. 20 is a schematic diagram of a vendor revocation flow provided by an embodiment of the present application;
fig. 21 is a schematic diagram of a buyer revocation flow provided by an embodiment of the present application;
FIG. 22 is a schematic flow chart diagram of a statement provided by an embodiment of the present application;
FIG. 23 is a schematic illustration of a redemption flow provided by an embodiment of the application;
fig. 24 is a first schematic structural diagram of a product transaction apparatus based on a blockchain according to an embodiment of the present disclosure;
fig. 25 is a schematic structural diagram of a product transaction apparatus based on a blockchain according to an embodiment of the present disclosure;
fig. 26 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are intended to be illustrative only and are not intended to be limiting. It will be apparent to one skilled in the art that the present application may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present application by illustrating examples thereof.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples consistent with certain aspects of the present application, as detailed in the appended claims.
Based on the background technology, the product transfer among groups in the prior art has obstacles, the number of individuals in the groups is limited, and the requirements of the individuals on the transfer and conversion between products and resources cannot be met.
In particular, financial products are taken as an example. The inventor finds that most of the current bank financing products have a closed period, cannot be redeemed by investors in advance and have serious fluidness. In order to improve the liquidity of the financial products, banks launch the transfer business of the financial products. However, most of the existing transfer businesses proposed by banks are based on the transfer among owned customers of a single bank, and the transfer transaction is mainly completed in a transfer mode by self-seeking 'next home' to negotiate the transfer and 'one price/bid'. The space of the own customer transfer market based on a single bank is limited, the number of customers is relatively small, and the matching time of the transaction is long. The self-search of the 'next' negotiation transfer and the 'one bite price/bidding' mode transfer tend to be in packaging transaction, and the requirements of fragmentation and zero dispersion on investment cannot be met.
Based on the findings, the embodiments of the application provide a product transaction method, device, equipment and storage medium based on a blockchain, and a credible product transfer public account book is established based on the blockchain, so that a product transfer market among different groups is established, and the problems of insufficient product mobility and limited customer resources are solved. In addition, the method can support product split transaction, support transaction transfer of partial products, support withdrawal of partial products, provide flexible transaction modes for both transaction parties, and provide a brand-new thought for development of a cross-group transfer market.
The method, apparatus, device and storage medium for product transaction based on block chains provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
The product transaction method based on the block chain can be applied to a cross-group product transaction scene, such as a cross-bank financing product transaction.
FIG. 1 is a block chain based product transaction scenario diagram shown in accordance with an exemplary embodiment.
The core idea of the product transaction method based on the blockchain is that a public transaction account book which is commonly maintained by all banks is constructed by constructing a blockchain transaction network which is participated by all banks, so that a cross-bank transaction market of financial products is formed for customers of different banks, and cross-bank detachable transactions of the financial products are realized by applying a loosely coupled hang list and a transaction contract model on a contract layer, so that fragmented and scattered transaction requirements are met.
As shown in fig. 1, in the scene, banks provide consensus nodes to participate in building a blockchain transaction network, public transaction accounts are maintained by the consensus nodes of all rows, each bank constructs a transaction service for financial management customers of the bank based on the consensus nodes, the financial management customers of all rows initiate inter-row transactions of financial products through the transaction service, fund payment among the banks is completed through payment channels among the banks, and payment result information is completed through transaction service communication.
According to the application scenario, the block chain based product transaction method provided by the embodiment of the present application is described in detail below with reference to fig. 2 to 23. It should be noted that, in the blockchain-based product transaction method provided in the embodiment of the present application, the execution main body may be a blockchain-based product transaction apparatus, or a control module in the blockchain-based product transaction apparatus for executing the blockchain-based product transaction method. In the embodiment of the present application, a block chain-based product transaction apparatus executes a block chain-based product transaction method as an example, and the block chain-based product transaction method provided in the embodiment of the present application is described.
Fig. 2 is a schematic flow chart of a blockchain-based product transaction method provided in the first aspect of the embodiment of the present application, where a blockchain includes at least a first node and a second node, and the method may be applied to the first node, as shown in fig. 2, and the blockchain-based product transaction method 100 may include steps S110 to S160.
Step S110, in response to a transaction request of a first user for a target product, creating a coupon contract, where a total share of the target product to be transacted by the first user is recorded in the coupon contract, and after a first preset time, the target product is converted into a corresponding target resource.
The first user may be a user of the first node. For example, in the case that the blockchain is constructed by providing consensus nodes for banks, the first node may be a node of any one of the banks, and the first user may be a client of the bank.
And the target product can be converted into the target resource from the target product after the first preset time. For example, a financial product, after a closed period (corresponding to a first preset time), may be exchanged for money, which may include principal, income, or investment loss.
The portion, target product, may include a specific portion, i.e., quantity, a unit that measures the quantity of the product.
The target resource, which may be money or other physical or virtual equivalents, such as gold, silver, and points in the internet system, coupons, red packets, traffic, etc.
A hang ticket contract, which may be an intelligent contract, is a computer protocol intended to propagate, validate, or execute contracts in an informational manner.
The block chain can be an alliance chain, all banks provide consensus nodes to participate in building a block chain transaction network, public transaction accounts are maintained by the consensus nodes of all rows, all banks build transaction services facing financial management customers of the bank based on the consensus nodes, and the financial management customers of all rows initiate cross-row transactions of financial products through the transaction services. Wherein, the transaction service can be a transaction service client or a product transaction device based on the block chain.
The first node responds to a transaction request sent by a user and generates a hang-order contract according to the total share of the target product pre-transacted by the first user recorded in the transaction request.
And step S120, issuing the menu hanging contract to the block chain.
As one example, the first node issues a hang order contract onto the blockchain after generating the hang order contract. After the suspension contract is issued to the block chain, the first user is equivalent to issue the held financial product to be traded to the block chain. As shown in fig. 3, the listing contract identifies the salable share of a financial product and information about the financial product.
Step S130, receiving a trading contract sent by the second user through the second node, where the trading contract records a target share of a target product predetermined by the second user.
The second user may be a user of the second node. For example, in the case that the blockchain is constructed by providing consensus nodes for banks, the second node may be a node of any one of the banks, and the second user may be a client of the bank.
The second node may or may not be the same node as the first node. Hereinafter, an example will be described in the case where the first node and the second node are not the same node. When the first node and the second node are the same node, the processing flow may be the same as or different from the method described below, and the existing transaction method may be adopted when different, so that the security of the transaction is ensured by the security system of the bank itself.
The introduction of the transaction contract is referred to as a hang-order contract, and details are not repeated herein.
As one example, the design of a trading contract may be as shown in FIG. 3.
Target shares, the transaction can only continue without being greater than the total share in the preceding paragraph. The target share may be less than the total share, i.e., the trading method provided by the embodiments of the present application supports split trading of products.
The second user generates and sends a trading contract through the second node, and the first node receives the trading contract.
And step S140, the target share lock order of the target product in the order contract is hung.
And locking the order, namely changing the state of the target product of the target share in the menu contract into a non-tradable state.
As one example, the first node changes the state of the target share of the target product in the first user's hang-order contract to a non-tradable state, i.e., a lock order.
Step S150, receiving a first amount of target resources transferred by the second user through the second node.
The transfer mode can be various, and in the transaction scene of the bank financing product, the transfer mode can be inter-bank transfer. And under the condition that the first node and the second node are the same, the transfer mode is bank internal transfer.
A first quantity, a size of the first quantity associated with a value of the target product. Specifically, when the first user creates the listing contract, the value of each share of the target product may be recorded in the listing contract, and the amount of the target resource converted from the target share of the target product according to the value is the first amount.
As an example, the second user transfers the target resource through the second node, that is, transfers the target resource to a bank corresponding to the first node through bank-to-bank transfer, specifically, a bank account of the first user corresponding to the first node.
And step S160, transferring the ownership of the target product of the target share to the second user and transferring the target resource of the first quantity to the first user under the condition that the target resource of the first quantity meets the preset condition recorded in the hang-order contract.
In one example, when creating a listing contract, a first user may document the value per share of a target product in the listing contract, and convert the target share of the target product to the amount of the target resource as a target amount according to the value. The preset condition may be that the first number is equal to the target number. That is, in the case that the first quantity is equal to the target quantity, the first node transfers ownership of the target product of the target share to the second user, transfers the target resource of the first quantity to the first user, and completes the transaction.
In some embodiments, since the target product is changed from the target product to the target resource after the first preset time, the target resource needs to be attributed at this time. The blockchain-based product transaction method 100 may further include steps S170-S180.
Step S170, after the first preset time, determining at least one third user, where the third user has ownership of the target product.
Between the first presets, the first preset time may be a closed period in the case where the target product is a financial product.
And the third user comprises the second user in the foregoing. The third users are all users who hold the target product.
As an example, if the holder of the product has only the first and second users in the foregoing. Then the third users determined at this time are the first user and the second user in the foregoing. If the first user trades the target product to the second user, and the holder of the target product only has the second user, then the third user only has the second user at this time.
Step S180, transferring the target resource corresponding to the ownership share to each third user based on the ownership share of each third user of the at least one third user.
In one example, after a preset time, each share of the target product has its corresponding value, and according to the value and the share number of each third user, the value due to each third user can be calculated, and the value is converted into the amount of the target resource, namely the target resource allocated by the third user.
As one example, the target product is a financial product and the target resource is money. In this case, in step S180, money corresponding to the share of the financial product is redeemed for the owner of the financial product.
According to the product trading method based on the block chain, a product trading system with a plurality of nodes capable of participating in is established by applying the block chain technology, the nodes of one block chain can correspond to one group, the number of the groups participating in transfer and conversion between products and resources is increased, and the number of individuals is increased; the mutual transfer among different groups is realized, and the requirements of customers on the transfer and conversion among the products and resources across the groups are met; the completion condition of the transaction is monitored through the block chain nodes, and the security of the transaction is ensured.
In some embodiments, the hang order contract may record total shares, locked order shares, closed order shares, withdrawn order shares, tradable shares of the target product; the singleton share is the share of the target product to which the ownership of the target product has been transferred to other users; the withdrawn share is the share of the transaction which is reduced by the modified deposit receipt contract compared with the share before modification; the tradable share satisfies the following equation:
tradeable share is total share- (locked single share + singled-out share + singled-back share).
In some embodiments, creating the hang ticket contract also requires that the first user's transaction request satisfy certain conditions, e.g., the total share to be traded is not greater than the user's holding share. Based on this, step S110 may include:
step S111, acquiring a transaction request sent by a first user, wherein the transaction request comprises the total share of a target product to be transacted by the first user;
and step S112, under the condition that the total share of the target product to be traded by the first user is not more than the share of the target product stored by the first user at the first node, creating a menu-hanging contract based on the total share of the target product to be traded by the first user, wherein the first node is the node where the first user is located.
As one example, the target product is a financial product. The total share of the target products to be traded by the first user is not more than the share of the target products stored in the first node, that is, the amount of the financial products to be traded by the first user cannot be more than the share of the financial products held by the bank corresponding to the first node by the first user.
In some embodiments, step S140 may specifically be to hang the target share lock order of the target product in the order contract if the target share is not greater than the tradable share.
According to the product transaction method based on the block chain, a product transaction system with a plurality of nodes capable of participating in is established by applying a block chain technology, and a single-hanging contract in the system can record a plurality of items of information, such as total share, locked share, paid share, withdrawn share, tradeable share and the like of a target product, so that a user can know tradeable share data in time; the creation of the hang-order contract is subject to certain conditions to avoid that the user does not have the target product share in the hang-order contract, which results in the transaction being incomplete.
In some embodiments, after the first user sends the transaction request, the first node may generate and issue a hang ticket contract to the blockchain. In the event that there are also tradeable shares in the listing contract, the first user may also modify the shares in the listing contract. That is, the blockchain-based product transaction method 100 may further include:
in response to a contract modification request of a first user, modifying the tradable share of a target product in a listing contract, wherein the modified tradable share is not more than the share of the target product stored by the first user at a first node, and the first node is the node where the first user is located;
and issuing the modified menu hanging contract to the blockchain.
As one example, the target product is a financial product. In the event that there is still a saleable share of the financial product of the first user, i.e., there is also a tradeable share in the listing contract, the first user may also modify the listing contract to reduce the share of sales, as well as increase the share of sales.
In some embodiments, the transaction may also be incomplete for some reason. Such as the case of a transaction contract being voided.
Based on this, i.e. the blockchain-based product transaction method 100, may further include:
and step S190, under the condition that the first quantity of target resources do not meet the preset conditions recorded in the menu hanging contract or the target resources transferred by the second node are not received within the second preset time, the trading contract is invalidated.
The first number of target resources do not satisfy the preset condition recorded in the policy agreement, wherein whether the preset condition can be satisfied is introduced above and is not described herein again.
The second predetermined time may be a payment time limit for the transaction agreed by the system, within which the transaction contract is voided if no payment is made.
As an example, the first node invalidates the transaction contract and unlocks the target share of the lock order due to the transaction contract if the first amount of the target resource does not satisfy the preset condition stated in the hang-order contract or the target resource transferred by the second node is not received within a second preset time.
According to the product transaction method based on the block chain, a product transaction system with a plurality of nodes capable of participating in is established by applying the block chain technology, the system supports the modification operation of the menu-hanging contract, and the modification can be timely made when the share of a user is wrongly input or the transaction quantity is required to be changed; the system sets the voiding rule of the trade contract, and can reduce the problem that the trade can not be carried out due to some reasons, but the product lock list in the list contract is hung to influence the trade of the user.
Based on the same inventive concept, the embodiment of the application also provides another product transaction method based on the block chain.
Fig. 4 is a flowchart illustrating a blockchain-based product transaction method provided by a second aspect of the embodiment of the present application, where a blockchain includes at least a first node and a second node, and the method is applied to the second node, as shown in fig. 4, the blockchain-based product transaction method 200 may include steps S210-S240.
Step S210, in response to a query request of a second user for a target product, obtaining a coupon contract in the block chain, wherein the coupon contract records a total share of the target product to be traded by the first user, and after a first preset time, the target product is converted from the target product to a target resource.
Step S220, creating a trading contract in response to the trading demand of the second user, the trading contract recording a target share of a target product predetermined by the second user.
Step S230, sending the trade contract to the first node, so that the first node receives the trade contract and then hangs the target share lock order of the target product in the trade contract, where the first node is a node where the first user is located.
Step S240, in response to the resource transfer request of the second user, transferring the first quantity of target resources to the first node, so that the first node transfers the ownership of the target product of the target share to the second user and transfers the first quantity of target resources to the first user when the first quantity of target resources meets the preset condition recorded in the policy agreement.
The inventive concept of the blockchain-based product transaction method provided by this embodiment is the same as the inventive concept of the blockchain-based product transaction method provided by the embodiments of the first aspect in the foregoing. The second embodiment differs from the first embodiments only in that the two embodiments have different execution bodies, that is, the first embodiment stands at the perspective of the product provider, and the execution body is a first node; an embodiment of the second aspect is that the executing subject standing at the perspective of the resource provider is the second node.
It should be noted that the description of the embodiments of the first aspect is also applicable to the embodiments of the second aspect. Therefore, it is possible to adapt the content of the embodiments of the first aspect to meet the embodiments of the second aspect.
The first and second aspect embodiments described above describe blockchain based product transaction methods from the perspective of a product provider and a resource provider, respectively. For ease of understanding, the blockchain-based product transaction method is described in detail below from the perspective of product provider and resource provider interaction.
Fig. 5 is a flowchart illustrating a block chain-based product transaction method according to an embodiment of the present application.
As shown in fig. 5, a seller (a financial product holder of a certain bank) initiates a hang-up through a transaction service of the bank, issues a held financial product to be transacted to a blockchain, and marks a saleable share of the financial product and information related to the financial product. And inquiring the financing products which are available for sale on the chain by the buyer through the transaction service of the bank, and locking a certain share of the financing products according to the investment requirement of the buyer, wherein the share number locked by the buyer is less than or equal to the hung share number of the seller. The buyer pays the fund to the seller through a fund transfer channel between banks, and the seller bank finishes the locking order after receiving the fund, namely the statement is obtained. After the financial product is due, the seller bank pays the principal and interest of the financial product to the buyer. In addition, the seller can revoke the share of the hang-order financing product in the saleable state, and the buyer can initiate purchase revocation operation under the condition of overtime payment and non-payment.
Fig. 3 shows a transfer contract model diagram, which is divided into a hang order contract model and a trade contract model.
In the coupon contract model, the coupon ID is a globally unique coupon number generated after the seller initiates the coupon uplink. The total share of the hang ticket is the amount of the financing share which can be sold when the seller initiates the hang ticket. The share of the locked order is the amount of the share which is currently locked by the buyer but is not yet paid or is in the process of being paid. The outstanding share is the amount of share that has currently been locked and paid by the buyer. A revoked share is the amount of shares that the seller withdraws from the marketable share that are not transacted. The remark information mainly designates basic information of the financing product sold, such as information of the seller's bank, the seller and the product itself.
In the transaction contract model, the transaction flow ID is a globally unique flow number generated after the buyer initiates the chain of the lock order. And the coupon ID is a coupon number of the financial product corresponding to the buyer locked share. The lock order share is the share of the financing product purchased by the buyer. The remark information mainly indicates basic information of the buyer, such as buyer bank and buyer information.
The assigned meanings of the status fields in the hang contract model and the trade contract model are shown in the following table:
TABLE 1 assignment of status fields in a SUSPENDED CONTRAST AND TRANSACTION CONTRACT MODEL
Figure BDA0003047684600000111
The incidence relation between the hang-order contract model and the transaction contract model is shown as the following table:
table 2 list of associations between contract model and trade contract model
Figure BDA0003047684600000121
The following describes in detail the transaction process of the bank financing product by using a specific example, with reference to fig. 1 and fig. 6 to 17.
Referring to fig. 1, a bank seller Alice of a banks buys 100 financial products, a bank buyer Bob of B purchases 50 financial products, a bank buyer Chris of C purchases 30 financial products, and the financial products are paid due.
The bank seller Alice initiates a coupon uplink with 100 financial products held by the bank seller Alice to generate a coupon transaction message as shown in fig. 6.
The B bank buyer Bob checks Alice's coupon information (available share is sufficient), and initiates to purchase 50 trade uplinks, generates a piece of lock ticket trade information, and associates and changes the coupon information, as shown in fig. 7 and 8.
After the bank buyer Bob completes payment after locking the bill (unpaid-paid account), the lock bill information on the chain is changed, and meanwhile, the change hanging bill information is associated, as shown in FIG. 9 and FIG. 10:
the bank buyer Chris checks Alice's coupon information (enough shares available for sale), and initiates to purchase 30 trade uplinks, generates a piece of lock ticket transaction information, and associates and changes the coupon information, as shown in fig. 11 and 12.
After the Chris locking order of the C bank buyer is completed (unpaid-paid is not paid and is paid, the locking order information on the chain is changed, and meanwhile, the change hanging order information is correlated, as shown in fig. 13 and fig. 14.
As shown in fig. 15-17, currently, the a bank seller Alice holds 20 shares (total share of the incoming sheet-share of the incoming sheet + share of the outgoing sheet), the B bank buyer Bob holds 50 shares (share of the lock sheet of Bob), and the C bank buyer Chris holds 30 shares (share of the lock sheet of Chris). And cashing occurs after the financing product is due, Alice, Bob and Chris obtain financing income of corresponding shares of the financing product, meanwhile, the state change is initiated by bank A in the form hanging information on the chain, the state change is initiated by bank B and bank C respectively in the form locking information on the chain, and the state change is changed into cashing.
The product transaction method based on the blockchain provided by the embodiment of the application is characterized in that a credible public transaction account book between banks is constructed based on the blockchain; a single locking mechanism based on a block chain effectively prevents the problem of double flowers; forming a trading market for trans-bank transfer of financial products, and fully sharing client resources among banks; the market is open, the expansibility is strong, and banks can be added and withdrawn flexibly; the financing product can be divided for transaction, and the scattered investment requirements are met.
In some embodiments, the blockchain-based product transaction method may be specifically divided into a seller hang-flow process, a buyer lock-flow process, a seller cancel-flow process, a buyer cancel-flow process, an order-closing process, and a cash-in process. The above-described process is described in detail below with reference to the accompanying drawings.
FIG. 18 illustrates a seller flow routine provided by an embodiment of the present application.
As shown in FIG. 18, a query for the share of a financing product is first initiated by a seller; at the moment, transaction service of a seller bank, namely a first node, is called, the first node inquires the position holding share of the client and presents the position holding share to the seller; the seller receives the share inquiry result and configures a share of the bill hanging to initiate the bill hanging; the first node inquires whether the seller determines to initiate the chaining of the bill hanging information under the condition that the amount of the bill hanging share is smaller than or equal to the seller's position holding share, and returns to the seller to modify and configure the bill hanging share again under the condition that the amount of the bill hanging share is larger than the seller's position holding share; and under the condition that the user determines to initiate the chaining of the chaining information, calling a first node of the chaining service to establish a chaining contract on the block chain and returning a chaining result. Wherein the coupon contract field information comprises: coupon ID, total share of the coupon, share of the locked coupon, share of the paid coupon, shares revoked, status, remark information (vendor bank, vendor, financial product information).
Fig. 19 shows a buyer's lock order flow provided by an embodiment of the present application.
As shown in fig. 19, a financial product information query is first initiated by a buyer; at the moment, transaction service of a buyer bank, namely a second node, is called, the second node inquires the bill hanging information on the block chain and presents the bill hanging information to the buyer; the buyer checks the information of the sellable financing product and initiates a lock order transaction; and calling the uplink service second node to create a transaction contract on the blockchain and returning an uplink result. Wherein the trading contract field information includes: transaction flow ID, hang ticket ID, lock ticket share, status, remark information (buyer bank, buyer).
Fig. 20 illustrates a seller revocation flow provided by an embodiment of the present application.
As shown in FIG. 20, a listing query is first initiated by the seller; at the moment, transaction service of the seller bank, namely a first node, is called, the first node inquires the saleable share in the bill hanging information in the blockchain and returns the bill hanging information to the seller; the seller receives the coupon information and initiates a revocation operation (selecting the coupon ID and configuring a revocation share); and the first node returns the seller modification when the revocation share is larger than the revocable share of the seller, changes the state of the policy information to be invalid when the revocation share is equal to the revocable share of the seller, changes the policy information according to the actual data when the revocation share is smaller than the revocable share of the seller, and returns the uplink result. Wherein, revocable share is the total share of the menu-locked share-the single share of the result-the revoked share.
Fig. 21 illustrates a buyer revocation flow provided by an embodiment of the present application.
As shown in fig. 21, a buyer first initiates a financial product information query; at the moment, transaction service of the buyer bank, namely a second node, is called, the second node inquires the bill hanging information in the block chain and returns the bill hanging information to the buyer; the buyer checks the information of the saleable financial products and initiates a bill withdrawing (the condition of initiating the bill withdrawing comprises the buyer actively withdrawing the bill and overtime payment withdrawing the bill); the second node changes the list hanging information and the transaction information in the block chain and returns an uplink result. Wherein the transaction information change comprises: state change to 'withdraw order', hang order information change: the locked single share is equal to 'the original locked single share-the current withdrawing single share'.
FIG. 22 shows a statement flow provided by an embodiment of the present application
As shown in fig. 22, a ticket payment is first initiated by the purchaser; at the moment, the buyer bank pays the funds to the seller bank through the inter-bank payment channel; the seller's bank receives the funds and determines whether the listing has been redeemed, i.e., whether ownership of the financial product is transferred to the buyer, and transfers the funds to the seller in the event of redemption.
Fig. 23 illustrates a redemption flow provided by an embodiment of the application. As shown in fig. 23, the seller's bank initiates a cash out for financing due, and the buyer's bank receives the cash out funds.
Based on the same inventive concept, the embodiment of the application also provides a product transaction device based on the block chain.
Fig. 24 illustrates a blockchain-based product transaction apparatus according to a third aspect of the embodiment of the present application, and as shown in fig. 24, the blockchain-based product transaction apparatus 300 includes at least a first node and a second node, and the apparatus is applied to the first node, and the apparatus may include:
the listing module 310 may be configured to create a listing contract in response to a transaction request of a first user for a target product, where the listing contract records a total share of the target product to be transacted by the first user, and the target product is converted into a corresponding target resource after a first preset time;
a first sending module 320, which may be configured to issue a hang ticket contract to the blockchain;
a first receiving module 330, configured to receive a trading contract sent by a second user through a second node, where the trading contract records a target share of a target product predetermined by the second user;
a lock order module 340, which may be configured to lock an order of a target share of a target product in the order contract;
a second receiving module 350, configured to receive a first number of target resources transferred by a second user through a second node;
the first transaction control module 360 may be configured to transfer ownership of the target share of the target product to the second user and transfer the first amount of the target resource to the first user if the first amount of the target resource satisfies a preset condition set forth in the hang order contract.
In some embodiments, the menu module 310 may include:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit can be used for acquiring a transaction request sent by a first user, and the transaction request comprises the total share of a target product to be transacted by the first user;
the first contract creating unit may be configured to create a suspension contract based on the total share of the target product to be traded by the first user when the total share of the target product to be traded by the first user is not greater than the share of the target product stored by the first user at a first node, where the first node is a node where the first user is located.
In some embodiments, the first transaction control module 360 may be further configured to invalidate the transaction contract if the first amount of the target resource does not satisfy the preset condition recorded in the pending contract or the target resource transferred by the second node is not received within a second preset time.
In some embodiments, the blockchain-based product transaction apparatus 300 may further include:
the contract modification module may be configured to modify a tradable share of a target product in the listing contract in response to a contract modification request of a first user after issuing the listing contract to the blockchain, where the modified tradable share is not greater than a share of the target product stored by the first user at a first node, and the first node is a node where the first user is located;
and the contract uplink module can be used for issuing the modified suspension order contract to the block chain.
In some embodiments, the blockchain-based product transaction apparatus 300 records the total share, the locked share, the paid share, the withdrawn share, and the tradable share of the target product; the singleton share is the share of the target product to which the ownership of the target product has been transferred to other users; the withdrawn share is the share of the transaction which is reduced by the modified deposit receipt contract compared with the share before modification; the tradable share satisfies the following equation:
tradeable share is total share- (locked single share + singled-out share + singled-back share).
In some embodiments, the lock order module 340 may be specifically configured to suspend the target share lock order of the target product in the contract if the target share is not greater than the tradable share.
In some embodiments, the blockchain-based product transaction apparatus 300 may further include:
the ownership determining module can be used for determining at least one third user after the first preset time, wherein the third user has ownership of the target product;
the resource allocation module may be configured to transfer, to each third user, a target resource corresponding to the ownership share based on the ownership share of each third user of the at least one third user.
The blockchain-based product transaction apparatus provided in the embodiment of the present application may be configured to execute the blockchain-based product transaction method provided in the method embodiments of the first aspect, and the implementation principle and the technical effect are similar, and for the sake of brevity, no further description is provided here.
Based on the same inventive concept, the embodiment of the application also provides another product transaction device based on the block chain.
Fig. 25 illustrates a blockchain-based product transaction apparatus according to a fourth aspect of the embodiment of the present application, as shown in fig. 25, the blockchain-based product transaction apparatus 400, where a blockchain includes at least a first node and a second node, and the apparatus, applied to the second node, may include:
the product query module 410 is configured to, in response to a query request of a second user for a target product, obtain a coupon contract in a block chain, wherein the coupon contract records a total share of the target product to be traded by the first user, and after a first preset time, the target product is converted from the target product to a target resource;
a contract creation module 420 for creating a trading contract in response to a trading demand of the second user, the trading contract noting a target share of a target product predetermined by the second user;
a second sending module 430, configured to send the trade contract to the first node, so that the first node locks the target share of the target product in the coupon contract after receiving the trade contract, where the first node is a node where the first user is located;
the resource transfer module 440 is configured to transfer, in response to a resource transfer request of the second user, the first number of target resources to the first node, so that the first node transfers ownership of the target product of the target share to the second user and transfers the target resource of the first number to the first user when the target resource of the first number meets a preset condition recorded in the policy agreement.
In some embodiments, the blockchain-based product transaction apparatus 400 records the total share, the locked share, the paid share, the withdrawn share, and the tradable share of the target product in the listing contract; the singleton share is the share of the target product to which the ownership of the target product has been transferred to other users; the withdrawn share is the share of the transaction which is reduced by the modified deposit receipt contract compared with the share before modification; the tradable share satisfies the following equation:
tradeable share is total share- (locked single share + singled-out share + singled-back share).
The blockchain-based product transaction apparatus provided in the embodiment of the present application may be configured to execute the blockchain-based product transaction method provided in the method embodiments of the second aspect, and the implementation principle and the technical effect are similar, and for the sake of brevity, no further description is provided here.
Based on the same inventive concept, the embodiment of the application also provides the electronic equipment.
Fig. 26 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 26, the electronic device may include a processor 501 and a memory 502 storing computer programs or instructions.
Specifically, the processor 501 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
Memory 502 may include mass storage for data or instructions. By way of example, and not limitation, memory 502 may include a Hard Disk Drive (HDD), a floppy Disk Drive, flash memory, an optical Disk, a magneto-optical Disk, tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 502 may include removable or non-removable (or fixed) media, where appropriate. The memory 502 may be internal or external to the integrated gateway disaster recovery device, where appropriate. In a particular embodiment, the memory 502 is non-volatile solid-state memory. In a particular embodiment, the memory 502 includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these.
The processor 501 reads and executes computer program instructions stored in the memory 502 to implement any one of the blockchain-based product transaction methods in the above embodiments.
In one example, the electronic device can also include a communication interface 503 and a bus 510. As shown in fig. 26, the processor 501, the memory 502, and the communication interface 503 are connected via a bus 510 to complete communication therebetween.
The communication interface 503 is mainly used for implementing communication between modules, devices, units and/or devices in the embodiments of the present application.
Bus 510 includes hardware, software, or both to couple the components of the electronic device to each other. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 510 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
The electronic device may execute the blockchain-based product transaction method in the embodiment of the present application, so as to implement the blockchain-based product transaction method and apparatus described in the embodiments of the first aspect to the fourth aspect.
In addition, in combination with the blockchain-based product transaction method in the above embodiments, the embodiments of the present application may provide a readable storage medium to implement. The readable storage medium having stored thereon program instructions; the program instructions, when executed by a processor, implement any of the above embodiments of a blockchain-based product transaction method.
It is to be understood that the present application is not limited to the particular arrangements and instrumentality described above and shown in the attached drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications, and additions or change the order between the steps after comprehending the spirit of the present application.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the present application are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
Aspects of the present application are described above in terms of flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware for performing the specified functions or acts, or combinations of special purpose hardware and computer instructions.
As described above, only the specific embodiments of the present application are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present application, and these modifications or substitutions should be covered within the scope of the present application.

Claims (12)

1. A blockchain-based product transaction method, the blockchain including at least a first node and a second node, the method being applied to the first node, the method comprising:
responding to a transaction request of a first user for a target product, and creating a listing contract, wherein the total share of the target product is recorded in the listing contract, and the target product is converted into a corresponding target resource after a first preset time;
issuing the hang order contract to the blockchain;
receiving a trading contract sent by a second user through a second node, wherein the trading contract records a target share of the target product predetermined by the second user;
locking a target share of a target product in the listing contract;
receiving a first quantity of target resources transferred by a second user through the second node;
transferring ownership of the target share of the target product to the second user if the first number of target resources meets a preset condition set forth in the listing contract, an
Transferring the first quantity of target resources to the first user.
2. The method of claim 1, wherein creating a hang-order contract in response to a transaction request for a target product by a first user comprises:
acquiring a transaction request sent by a first user, wherein the transaction request comprises the total share of a target product to be transacted by the first user;
and under the condition that the total share of the target product to be traded by the first user is not larger than the share of the target product stored by the first user at a first node, creating a menu-hanging contract based on the total share of the target product to be traded by the first user, wherein the first node is the node where the first user is located.
3. The method of claim 1, wherein the trade contract is voided if the first amount of target resources does not satisfy a preset condition set forth in the hang-up contract or a target resource transferred by the second node is not received within a second preset time.
4. The method of claim 1, wherein after issuing the onboarding contract to the blockchain, the method further comprises:
in response to a contract modification request of the first user, modifying a tradable share of a target product in the listing contract, wherein the modified tradable share is not larger than a share of the target product stored by the first user at a first node, and the first node is a node where the first user is located;
and issuing the modified menu hanging contract to the block chain.
5. The method of claim 4, wherein the listing contract records a total share, a locked share, an expired share, a withdrawn share, a tradable share of the target product; the singleton share is a share of the target product to which ownership of the target product has been transferred to other users; the cancelled share is a share of the transaction that is reduced by the modified listing contract compared with the share before modification; the tradable share satisfies the following equation:
tradeable share is total share- (locked single share + singled-out share + singled-back share).
6. The method of claim 5, wherein said locking a target share of a target product in the listing contract comprises:
locking the target share of the target product in the listing contract if the target share is not greater than the tradable share.
7. The method of claim 1, further comprising:
after the first preset time, determining at least one third user, wherein the third user has ownership of the target product;
transferring, to each of the at least one third users, a target resource corresponding to an ownership share based on the ownership share of each of the at least one third users.
8. A blockchain-based product transaction method, the blockchain including at least a first node and a second node, the method being applied to the second node, the method comprising:
acquiring a listing contract at the blockchain in response to a query request of a second user for a target product, wherein the listing contract is recorded with a total share of the target product to be traded by a first user, and the target product is converted into a target resource from the target product after a first preset time;
creating a trading contract in response to a trading demand of the second user, the trading contract noting a target share of the target product predetermined by the second user;
sending the transaction contract to a first node, so that the first node locks a target share of a target product in the listing contract after receiving the transaction contract, wherein the first node is a node where the first user is located;
and responding to a resource transfer request of the second user, transferring a first quantity of target resources to a first node, so that the first node transfers the ownership of the target product of the target share to the second user and transfers the first quantity of target resources to the first user under the condition that the first quantity of target resources meets a preset condition recorded in the hang-order contract.
9. A blockchain-based product transaction apparatus, the blockchain including at least a first node and a second node, the apparatus being applied to the first node, the apparatus comprising:
the system comprises a listing module, a transaction module and a display module, wherein the listing module is used for responding to a transaction request of a first user for a target product, creating a listing contract, recording the total share of the target product in the listing contract, and converting the target product into a corresponding target resource after first preset time;
the first sending module is used for issuing the menu hanging contract to the block chain;
the first receiving module is used for receiving a trading contract sent by a second user through a second node, and the trading contract records a target share of a target product predetermined by the second user;
the locking list module is used for locking a target share of a target product in the list hanging contract;
a second receiving module, configured to receive a first amount of target resources transferred by a second user through the second node;
and the transaction control module is used for transferring the ownership of the target product of the target share to the second user and transferring the target resource of the first quantity to the first user under the condition that the target resource of the first quantity meets the preset condition recorded in the hang-order contract.
10. A blockchain-based product transaction apparatus, the blockchain including at least a first node and a second node, the apparatus being applied to the second node, the apparatus comprising:
the product query module is used for responding to a query request of a second user for a target product, acquiring a listing contract in the block chain, wherein the listing contract is recorded with the total share of the target product to be traded by the first user, and the target product is converted into a target resource from the target product after a first preset time;
a contract creation module for creating a trading contract in response to a trading demand of the second user, the trading contract noting a target share of the target product predetermined by the second user;
a second sending module, configured to send the transaction contract to a first node, so that the first node locks a target share of a target product in the listing contract after receiving the transaction contract, where the first node is a node where the first user is located;
and the resource transfer module is used for responding to a resource transfer request of the second user, transferring a first quantity of target resources to the first node, so that the first node transfers the ownership of the target product of the target share to the second user and transfers the first quantity of target resources to the first user under the condition that the first quantity of target resources meets a preset condition recorded in the hang-order contract.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the blockchain based product transaction method according to any one of claims 1 to 8.
12. A readable storage medium, on which a program or instructions are stored, which when executed by a processor, carry out the steps of the blockchain based product transaction method according to any one of claims 1 to 8.
CN202110477600.7A 2021-04-29 2021-04-29 Block chain based product transaction method, device, equipment and storage medium Pending CN113191897A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110477600.7A CN113191897A (en) 2021-04-29 2021-04-29 Block chain based product transaction method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110477600.7A CN113191897A (en) 2021-04-29 2021-04-29 Block chain based product transaction method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113191897A true CN113191897A (en) 2021-07-30

Family

ID=76982883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110477600.7A Pending CN113191897A (en) 2021-04-29 2021-04-29 Block chain based product transaction method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113191897A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106504089A (en) * 2016-10-14 2017-03-15 平安科技(深圳)有限公司 Method of commerce and system are applied to purchase based on the fund of block chain
CN111127216A (en) * 2019-12-30 2020-05-08 山东爱城市网信息技术有限公司 Method, equipment and medium for realizing bank financing product based on block chain
CN111369245A (en) * 2020-02-28 2020-07-03 杭州云象网络技术有限公司 Alliance chain system for financial product sales
CN111861462A (en) * 2020-07-16 2020-10-30 中国工商银行股份有限公司 Financial product transaction method and device based on block chain

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106504089A (en) * 2016-10-14 2017-03-15 平安科技(深圳)有限公司 Method of commerce and system are applied to purchase based on the fund of block chain
CN111127216A (en) * 2019-12-30 2020-05-08 山东爱城市网信息技术有限公司 Method, equipment and medium for realizing bank financing product based on block chain
CN111369245A (en) * 2020-02-28 2020-07-03 杭州云象网络技术有限公司 Alliance chain system for financial product sales
CN111861462A (en) * 2020-07-16 2020-10-30 中国工商银行股份有限公司 Financial product transaction method and device based on block chain

Similar Documents

Publication Publication Date Title
US5826241A (en) Computerized system for making payments and authenticating transactions over the internet
US8701991B2 (en) System and method for preventing fraud by generating new prepaid gift accounts
US20170372417A1 (en) Digital asset account management
US8413160B2 (en) Systems, methods, and computer program products for transaction based load balancing
WO2020220746A1 (en) Block chain-based settlement method and apparatus, and electronic device
CN109643415A (en) Trade management technology
CN109426955A (en) Target object providing method, apparatus and system
US20240020705A1 (en) Systems and methods for end to end encryption utilizing a commerce platform for card not present transactions
US20220005023A1 (en) Programmable Transactions
WO2024085923A1 (en) Systems and methods for exchanging electronic tokens
CN113191897A (en) Block chain based product transaction method, device, equipment and storage medium
TWI649704B (en) Payment integration method and server for integrated payment
CN110992172A (en) Offline payment method, device and storage medium
CA2199942C (en) Computerized payment system for purchasing information products by electronic transfer on the internet
US20220108283A1 (en) Processing transactions involving card reader devices
CA2592534C (en) Computerized payment system for purchasing information products by electronic transfer on the internet
KR102398641B1 (en) System for providing card payment agent service and method performing thereof
CN117151702B (en) Cross-system payment method and system based on money-based fund real-time transfer
US20240232865A9 (en) Systems and methods for exchanging electronic tokens
CN106203972A (en) Payment system based on same fund server and method, device and server
JPWO2020027269A1 (en) Remittance methods, systems and programs
JP2003036410A (en) Inter-company common settlement system utilizing internet
TWM563596U (en) Financing system for online shopping platform
KR20180122817A (en) Value elevating method of bitcoin based on the block chain
AU9703898A (en) Computerized payment system for purchasing information products by electronic transfer on the internet

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210730