CN112633863A - Block chain based bill exchange method, device, equipment and readable storage medium - Google Patents

Block chain based bill exchange method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN112633863A
CN112633863A CN202011603929.5A CN202011603929A CN112633863A CN 112633863 A CN112633863 A CN 112633863A CN 202011603929 A CN202011603929 A CN 202011603929A CN 112633863 A CN112633863 A CN 112633863A
Authority
CN
China
Prior art keywords
bill
document
exchange
receipt
initial
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
CN202011603929.5A
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.)
Hangzhou Qulian Technology Co Ltd
Original Assignee
Hangzhou Qulian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Qulian Technology Co Ltd filed Critical Hangzhou Qulian Technology Co Ltd
Priority to CN202011603929.5A priority Critical patent/CN112633863A/en
Publication of CN112633863A publication Critical patent/CN112633863A/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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/045Payment circuits using payment protocols involving tickets
    • G06Q20/0457Payment circuits using payment protocols involving tickets the tickets being sent electronically
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

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

Abstract

The embodiment of the application provides a bill exchange method, a bill exchange device, bill exchange equipment and a readable storage medium based on a block chain; the method comprises the following steps: receiving a bill opening operation instruction, calling a predefined intelligent contract interface, and generating an initial bill evidence according to a preset bill protocol in the intelligent contract interface; receiving a bill clearing exchange instruction, and determining the initial bill clearing and the target bill type to be exchanged according to the bill clearing exchange instruction; inquiring an exchange in a block chain, and adding circulation bill vouchers provided by various market suppliers in the exchange to a bill trading pool; exchanging the initial receipt with a target receipt corresponding to the target receipt type in the receipt transaction pool according to a preset interaction protocol corresponding to the receipt transaction pool; according to the method and the device, the unified document evidence is generated through the preset document protocol in the intelligent contract interface, and then the rapid circulation of the document evidence across the ecological chain is achieved according to the preset interaction protocol.

Description

Block chain based bill exchange method, device, equipment and readable storage medium
Technical Field
The application relates to the technical field of block chains, in particular to a bill exchange method, a bill exchange device, bill exchange equipment and a readable storage medium based on the block chains.
Background
At present, with the progress of the living standard of people, people pay more and more attention to related products in the financial field, and the financial products are also greatly developed, however, with the development of the types of the financial products and the flow of business handling, the management of the trade financial field is challenged.
Because the financial business is strong in technology and specialty, the financial business is still operated in an offline traditional mode, the online operation of the financial business enables information to be opaque, steps to be complex and lack of specifications, centralized management or trading places are not provided, operation risks are high, information interaction efficiency is low, the financial field progress and development cannot be adapted, part of enterprises introduce block chains into the financial business, at present, in block chain supply chain finance, document design fields between different supply chain finance and supply chain finance are different, document field design rules are different, interfaces are different, so that the currency of documents in a block chain network is poor, the financial ecology and the ecology of a plurality of supply chains on the same block chain are relatively isolated, document exchange between two or more ecology is difficult to realize, and the currency of bills to be received in the ecology of the whole supply chain is not efficient, most documents can only be redeemed after expiry, resulting in low document circulation efficiency.
Disclosure of Invention
The application provides a bill exchange method, a bill exchange device, bill exchange equipment and a readable storage medium based on a block chain, and aims to solve the technical problems that in the existing supply chain finance, circulation can be performed only on a single platform for a fixed time, the circulation of bills is poor, and the circulation efficiency is low.
In one aspect, the present application provides a block chain-based document exchange method, which includes the following steps:
receiving a bill opening operation instruction, calling a predefined intelligent contract interface, and generating an initial bill evidence according to a preset bill protocol in the intelligent contract interface;
receiving a bill clearing exchange instruction, and determining the initial bill clearing and the target bill type to be exchanged according to the bill clearing exchange instruction;
inquiring an exchange in a block chain, and adding circulation bill vouchers provided by various market suppliers in the exchange to a bill trading pool;
and exchanging the initial receipt with a target receipt corresponding to the target receipt type in the receipt transaction pool according to a preset interaction protocol corresponding to the receipt transaction pool.
In some embodiments of the present application, before receiving an order opening operation instruction, invoking a predefined intelligent contract interface, and generating an initial document voucher according to a preset document protocol in the intelligent contract interface, the method includes:
receiving an interface definition request, acquiring a predefined intelligent contract interface, and deploying the predefined intelligent contract interface to each node of a block chain, wherein the intelligent contract interface is an ERC20 function interface, and the ERC20 function interface is associated with an ERC20 protocol;
the receiving of the order opening operation instruction, calling of a predefined intelligent contract interface and generation of an initial receipt evidence according to a preset receipt protocol in the intelligent contract interface comprise:
and receiving a bill opening operation instruction, calling the predefined intelligent contract interface, and generating an initial bill receipt according to an ERC20 protocol in the intelligent contract interface.
In some embodiments of the present application, exchanging, according to a preset interaction protocol corresponding to the document transaction pool, the initial document voucher with a target document voucher corresponding to the target document type in the document transaction pool includes:
acquiring a bill exchange ratio between the initial bill and the bill corresponding to the target bill type;
and acquiring a preset interaction protocol corresponding to the bill transaction pool, and exchanging the initial bill currency and the target bill currency corresponding to the target bill type in the bill transaction pool according to the preset interaction protocol and the bill exchange rate.
In some embodiments of the present application, the obtaining a document exchange ratio between the initial document voucher and the document voucher corresponding to the target document type includes:
and normalizing the initial receipt and the target receipt corresponding to the target receipt type to obtain a receipt exchange ratio between the initial receipt and the receipt corresponding to the target receipt type.
In some embodiments of the present application, the obtaining a preset interaction protocol corresponding to the document transaction pool, and exchanging the initial document voucher and the target document voucher corresponding to the target document type in the document transaction pool according to the preset interaction protocol and the document exchange ratio includes:
acquiring a preset interaction protocol corresponding to the bill transaction pool, and calculating the bill quantity product of the bill of each bill type in the bill transaction pool according to a quantity product constant rule in the preset interaction protocol;
acquiring the bill exchange quantity associated with the bill exchange instruction, and calculating to obtain transaction commission charge according to the bill exchange rate, the bill quantity product and the bill exchange quantity;
and exchanging the initial receipt with the target receipt corresponding to the target receipt type in the receipt transaction pool according to the transaction commission.
In some embodiments of the present application, the receiving an order opening operation instruction, invoking a predefined intelligent contract interface, and generating an initial document voucher according to a preset document protocol in the intelligent contract interface includes:
receiving a list opening operation instruction, acquiring a user identifier associated with the list opening operation instruction, and judging whether a user corresponding to the user identifier has a list opening authority or not;
if the user corresponding to the user identification does not have the order opening authority, outputting prompt information;
and if the user corresponding to the user identification has the bill opening authority, calling a predefined intelligent contract interface, and generating an initial bill voucher according to a preset bill protocol in the intelligent contract interface.
In some embodiments of the present application, after exchanging, according to a preset interaction protocol corresponding to the document transaction pool, the initial document voucher with a target document voucher corresponding to the target document type in the document transaction pool, the method includes:
when the receipt clearing exchange is detected to be completed, calculating and obtaining a first market price of the initial receipt clearing before transaction in the exchange, and calculating and obtaining an exchange price of the initial receipt clearing during transaction in the exchange;
calculating and obtaining a second market price after the initial document is exchanged according to the first market price and the exchange price;
and if the ratio of the first market price to the second market price exceeds a preset range, outputting prompt information.
In another aspect, the present application provides a block chain-based document exchange apparatus, including:
the document generation module is used for receiving a document opening operation instruction, calling a predefined intelligent contract interface and generating an initial document voucher according to a preset document protocol in the intelligent contract interface;
the type determining module is used for receiving a bill clearing and exchanging instruction and determining the type of an initial bill and a target bill to be exchanged according to the bill clearing and exchanging instruction;
the query adding module is used for querying the exchange in the block chain and adding the circulation document currency certificate provided by each market provider in the exchange to a document trading pool;
and the bill exchange module is used for exchanging the initial bill and the target bill corresponding to the target bill type in the bill transaction pool according to a preset interaction protocol corresponding to the bill transaction pool.
In another aspect, the present application further provides a block chain-based document exchange device, where the block chain-based document exchange device includes:
one or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the blockchain based document exchange method.
In another aspect, the present application further provides a readable storage medium, on which a computer program is stored, where the computer program is loaded by a processor to execute the steps in the block chain based document exchange method.
Receiving a bill opening operation instruction, calling a predefined intelligent contract interface, and generating an initial bill receipt according to a preset bill protocol in the intelligent contract interface; receiving a bill clearing exchange instruction, and determining the initial bill clearing and the target bill type to be exchanged according to the bill clearing exchange instruction; inquiring an exchange in a block chain, and adding circulation bill vouchers provided by various market suppliers in the exchange to a bill trading pool; exchanging the initial receipt with a target receipt corresponding to the target receipt type in the receipt transaction pool according to a preset interaction protocol corresponding to the receipt transaction pool; the method and the device for the receipt exchange of the intelligent contract interface generate the receipt passing evidence in the unified format through the preset receipt protocol in the intelligent contract interface, then exchange of the receipt passing evidence in different supply ecological chains is achieved according to the preset interaction protocol, in the embodiment, because the receipt passing evidence has the unified attribute, the receipt has circulation, and then cross-ecological chain circulation is conducted according to the preset interaction protocol, so that quick circulation of the receipt passing evidence and cross-ecological chain is achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of block-chain-based document exchange provided in an embodiment of the present application;
FIG. 2 is a flow chart illustrating an embodiment of a block-chain based document exchange method provided in an embodiment of the present application;
FIG. 3 is a schematic flowchart of an embodiment of document voucher generation in the document exchange method based on the block chain according to the embodiment of the present application;
FIG. 4 is a schematic flow chart diagram illustrating one embodiment of a document exchange in a block-chain based document exchange method provided in an embodiment of the present application;
fig. 5 is a schematic diagram of a specific scenario of an embodiment of document exchange in the document exchange method based on a block chain provided in the embodiment of the present application;
FIG. 6 is a flowchart illustrating an embodiment of authority authentication in a block-chain-based document exchange method according to the present application;
FIG. 7 is a schematic flowchart of an embodiment of a document passage market price hint in a document exchange method based on a block chain according to the embodiment of the present application;
FIG. 8 is a block-chain based document exchange apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an embodiment of a block-chain-based document exchange device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any inventive step, are within the scope of the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be considered as limiting the present invention. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the invention. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well-known structures and processes are not shown in detail to avoid obscuring the description of the invention with unnecessary detail. Thus, the present invention is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
The embodiments of the present application provide a method, an apparatus, a device, and a readable storage medium for exchanging documents based on a block chain, which are described in detail below.
The block chain-based bill exchange method is applied to a block chain-based bill exchange device, the block chain-based bill exchange device is arranged on block chain-based bill exchange equipment, one or more processors, a memory and one or more application programs are arranged in the block chain-based bill exchange equipment, and the one or more application programs are stored in the memory and configured to be executed by the processor to realize the block chain-based bill exchange method; the document exchange device based on the block chain can be a terminal, such as a mobile phone or a tablet computer, and the document exchange device based on the block chain can also be a server or a service cluster formed by a plurality of servers.
As shown in fig. 1, fig. 1 is a schematic view of a scene of block chain-based document exchange in an embodiment of the present application, and in the scene of block chain-based document exchange in the embodiment of the present invention, a block chain-based document exchange device 100 is included (a block chain-based document exchange apparatus is integrated in the block chain-based document exchange device 100), and a readable storage medium corresponding to the block chain-based document exchange is run in the block chain-based document exchange device 100, so as to execute a block chain-based document exchange step.
It can be understood that, in the scenario of block chain based document exchange shown in fig. 1, the block chain based document exchange device or the device included in the block chain based document exchange device does not limit the embodiment of the present invention, that is, the number and the type of the devices included in the block chain based document exchange scenario, or the number and the type of the devices included in each device do not affect the overall implementation of the technical solution in the embodiment of the present invention, and both of them can be calculated as equivalent replacements or derivatives of the technical solution claimed in the embodiment of the present invention.
The bill exchange device 100 based on the block chain in the embodiment of the present invention is mainly used for:
receiving a bill opening operation instruction, calling a predefined intelligent contract interface, and generating an initial bill evidence according to a preset bill protocol in the intelligent contract interface;
receiving a bill clearing exchange instruction, and determining the initial bill clearing and the target bill type to be exchanged according to the bill clearing exchange instruction;
inquiring an exchange in a block chain, and adding circulation bill vouchers provided by various market suppliers in the exchange to a bill trading pool;
and exchanging the initial receipt with a target receipt corresponding to the target receipt type in the receipt transaction pool according to a preset interaction protocol corresponding to the receipt transaction pool.
The block-chain-based document exchange device 100 in this embodiment of the present invention may be an independent block-chain-based document exchange device, or may be a block-chain-based document exchange device network or a block-chain-based document exchange device cluster that is formed by block-chain-based document exchange devices, for example, the block-chain-based document exchange device 100 described in this embodiment of the present invention includes, but is not limited to, a computer, a network host, a single network block-chain-based document exchange device, a plurality of network block-chain-based document exchange device sets, or a cloud block-chain-based document exchange device that is formed by a plurality of block-chain-based document exchange devices. Wherein the Cloud block-chain based document exchange device is composed of a large number of computers based on Cloud Computing (Cloud Computing) or a network block-chain based document exchange device.
Those skilled in the art can understand that the application environment shown in fig. 1 is only one application scenario related to the present invention, and does not constitute a limitation on the application scenario of the present invention, and that other application environments may further include more or less block chain based document exchange devices than those shown in fig. 1, or a network connection relationship between block chain based document exchange devices, for example, only 1 block chain based document exchange device is shown in fig. 1, and it can be understood that the block chain based document exchange scenario may further include one or more other block chain based document exchange devices, which is not limited herein specifically; a memory may also be included in the blockchain based document exchange device 100.
In addition, in the scene of the block chain based document exchange, the block chain based document exchange device 100 may be provided with a display device, or the block chain based document exchange device 100 is not provided with a display device in communication connection with an external display device 200, and the display device 200 is configured to output a result of the block chain based document exchange method executed in the block chain based document exchange device. The bill exchange device 100 based on the block chain may access the background database 300 (the background database may be in a local memory of the bill exchange device based on the block chain, and may also be set in the cloud), and the background database 300 stores information related to bill exchange based on the block chain.
It should be noted that the scene diagram of the bill exchange based on the block chain shown in fig. 1 is only an example, and the scene of the bill exchange based on the block chain described in the embodiment of the present invention is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not form a limitation on the technical solution provided by the embodiment of the present invention.
Based on the scene of bill exchange based on the block chain, an embodiment of the bill exchange method based on the block chain is provided.
Referring to fig. 2, fig. 2 is a schematic flowchart of an embodiment of a block chain-based document exchange method in an embodiment of the present application, where the block chain-based document exchange method includes steps 201 and 204:
and 201, receiving a bill opening operation instruction, calling a predefined intelligent contract interface, and generating an initial bill evidence according to a preset bill protocol in the intelligent contract interface.
The block chain-based document exchange method in this embodiment is applied to a block chain-based document exchange device, which is also called a node device, and the type of the block chain-based document exchange device is not specifically limited, for example, the block chain-based document exchange device may be a terminal or a server, which is described in this embodiment by taking the terminal as an example.
The terminal receives the order opening operation instruction, wherein the triggering mode of the order opening operation instruction is not specifically limited, and the order opening operation instruction can be actively triggered by a user, for example, the user clicks an 'exchange order opening' button on a terminal display interface to actively trigger the order opening operation instruction; in addition, the order opening operation instruction may also be automatically triggered by the terminal, for example, the triggering condition of the order opening operation instruction preset in the terminal is as follows: when the transaction is completed; the terminal monitors the transaction state information of each platform of the block chain in real time, and automatically triggers a single opening operation instruction when the terminal detects that the transaction is completed; for another example, the triggering conditions for the order opening operation instruction preset in the terminal are as follows: when the document information is updated; and the terminal is in a bill information state in real time, and when the terminal detects that the bill information is updated, the terminal automatically triggers a bill opening operation instruction.
After the terminal receives the order opening operation instruction, the terminal calls a preset intelligent contract interface (the intelligent contract interface is associated with an ERC20 protocol, ERC, the full name of Etuereum Request for Commen in English, ERC is a standard of an EtorFang community for creating an EtorFang platform, and the ERC20 protocol comprises a protocol specification and a contract standard, so that the intelligent contract can be constructed according to the universal interface standards), and an initial document general certificate (called document token, document token with circulation property) is generated through a preset document protocol (the preset document protocol refers to a preset document format protocol, for example, the preset document protocol is the ERC20 protocol) in the intelligent contract interface.
Referring to fig. 3, fig. 3 is a schematic flowchart of an embodiment of document certification generation in the document exchange method based on a block chain according to the embodiment of the present application; for example, there are two supply chains on a block chain network, one of which is denoted as a supply chain, the other is denoted as B supply chain, a unified document intelligent contract interface ERC20BS (ERC20 bill standard) is defined in the terminal, ERC20BS adds the attribute of the document based on the ERC20 protocol, the attribute includes detailed information of the document, document contracts of A, B two supply chains, one is denoted as abillcorract, and the other is denoted as bbillictract.
In this embodiment, the recomposing contract from the protocol of the etherhouse ERC20 is realized through the intelligent contract interface, so that the intelligent contract documents with different supply chain ecology have a uniform implementation, and the interface standard and the system have the liquidity of the ERC20 protocol at the same time, specifically:
and 202, receiving a bill clearing and exchanging instruction, and determining the initial bill clearing and the target bill type to be exchanged according to the bill clearing and exchanging instruction.
The terminal receives the bill clearing exchange instruction, the triggering mode of the bill clearing exchange instruction in the embodiment is not specifically limited, and the bill clearing exchange instruction can be actively triggered by a user, for example, the user selects a medium xx bill on the terminal and clicks an 'exchange' key to trigger the bill exchange instruction; in addition, the bill clearing and exchanging instruction can also be automatically triggered by the terminal, for example, when the number of xxx bills preset in the terminal exceeds the set value 100, the bill clearing and exchanging instruction is automatically triggered.
After the terminal receives the bill clearing and exchanging instruction, the terminal obtains an initial bill clearing and a target bill type corresponding to the bill clearing and exchanging instruction and to be exchanged, wherein the target bill type refers to the type of the target bill needing to be obtained after the bill exchanging instruction is executed, for example, the bill exchanging instruction is to clear the initial bill in the supply chain A and exchange the initial bill with the target bill in the supply chain B, and the type of the target bill is the target bill type.
And 203, inquiring the exchange in the block chain, and adding circulation bill vouchers provided by various market suppliers in the exchange to a bill transaction pool.
The method comprises the steps that a terminal inquires an exchange in a block chain, the terminal adds a bill clearing set consisting of circulation bill clearing of each market maker in the exchange to a bill trading pool, namely, after the terminal receives a bill clearing trading request, the terminal inquires the exchange, wherein the exchange can contain one or more market makers, after the terminal receives a bill exchange instruction, the terminal inquires the exchange, and the terminal adds the bill clearing set to the bill trading pool by each market maker in the exchange so as to exchange the bill clearing in the bill trading pool.
For example, the exchange may have multiple market makers, with one offering a 50:50 pool of 2500, and if 10 offer 50:50, the total pool is 500: 500; or one city merchant takes 7 coins and 1 American knife and puts them in the pool, at this time, there are 1 American knife and 7 RMB in the pool, 10 city merchants put in the pool are 7 American knives and 49 RMB.
And 204, exchanging the initial receipt with a target receipt corresponding to the target receipt type in the receipt transaction pool according to a preset interaction protocol corresponding to the receipt transaction pool.
And the terminal exchanges the initial document currency and the target document currency corresponding to the target document type in the document currency set in the document currency pool according to the preset interaction protocol.
That is, the preset interaction protocol in this embodiment is a constant protocol of a product of the numbers of two document transaction pairs, that is, the number of a document x the number of B documents is K, and K is a constant, and the terminal exchanges the generated initial transaction pass with the target document pass corresponding to the target document type in the transaction pool according to the constant protocol of the product of the numbers.
In this embodiment, a receipt opening operation instruction is received, a predefined intelligent contract interface is called, and an initial receipt is generated according to a preset receipt protocol in the intelligent contract interface; receiving a bill clearing exchange instruction, and determining the initial bill clearing and the target bill type to be exchanged according to the bill clearing exchange instruction; inquiring an exchange in a block chain, and adding circulation bill vouchers provided by various market suppliers in the exchange to a bill trading pool; exchanging the initial receipt with a target receipt corresponding to the target receipt type in the receipt transaction pool according to a preset interaction protocol corresponding to the receipt transaction pool; the method and the device for the receipt exchange of the intelligent contract interface generate the receipt passing evidence in the unified format through the preset receipt protocol in the intelligent contract interface, then exchange of the receipt passing evidence in different supply ecological chains is achieved according to the preset interaction protocol, in the embodiment, because the receipt passing evidence has the unified attribute, the receipt has circulation, and then cross-ecological chain circulation is conducted according to the preset interaction protocol, so that quick circulation of the receipt passing evidence and cross-ecological chain is achieved.
In some embodiments of the present application, before document certification is generated in the document exchange method based on a block chain, an intelligent contract interface needs to be predefined and deployed, including the following steps:
receiving an interface definition request, acquiring a predefined intelligent contract interface, and deploying the predefined intelligent contract interface to each node of a block chain, wherein the intelligent contract interface is an ERC20 function interface, and an ERC20 protocol is associated with the ERC20 function interface.
The method comprises the steps that a terminal receives an interface definition request, the triggering mode of the interface definition request is not limited, after the terminal receives the interface definition request, the terminal obtains a predefined intelligent contract interface, the predefined intelligent contract interface refers to a predefined ERC20 function interface, the ERC20 function interface is associated with a function interface of an ERC20 protocol and an ERC20 protocol, and the terminal deploys the predefined intelligent contract interface to each node of a block chain; and the terminal receives the order opening operation instruction, and the terminal calls the intelligent contract interface to generate initial document evidence through an ERC20 protocol in the intelligent contract interface.
In the embodiment, the terminal defines the intelligent contract interface in advance, deploys the predefined intelligent contract interface to each node of the block chain, and when the document is generated, the terminal calls the predefined intelligent contract interface to generate the document voucher with a uniform format through an ERC20 protocol in the intelligent contract interface, so as to conveniently execute document exchange operation.
Referring to fig. 4, fig. 4 is a schematic flowchart of an embodiment of document exchange in the document exchange method based on a block chain provided in the embodiment of the present application.
In some embodiments of the present application, a terminal in a block chain-based document exchange method performs document notification exchange, specifically, the method includes steps 401 and 402:
401, obtaining a bill exchange ratio between the initial bill and the bill corresponding to the target bill type.
The terminal obtains the initial document and passes the certificate, the target document corresponding to the target document type of the terminal passes the certificate, the terminal normalizes the initial document and the target document corresponding to the target document type, namely, the terminal unifies the dimensions of the initial document and the target document, and the document exchange ratio between the initial document and the target document corresponding to the certificate is obtained.
402, acquiring a preset interaction protocol corresponding to the bill transaction pool, and exchanging the initial bill currency in the bill transaction pool with the target bill currency corresponding to the target bill type according to the preset interaction protocol and the bill exchange rate.
The method comprises the steps that an interactive protocol is preset in a terminal, the preset interactive protocol refers to a preset document exchange protocol, for example, the preset interactive protocol defines the constant product of the number of two document transaction pairs in advance, namely the number of A documents and the number of B documents are K, the K is a constant, the terminal obtains the preset interactive protocol corresponding to a document transaction pool, and the terminal exchanges initial document currency with target document currency corresponding to the type of the target documents in the document transaction pool according to the preset interactive protocol and the document exchange rate. Specifically, the method comprises the following steps:
(1) acquiring a preset interaction protocol corresponding to the bill transaction pool, and calculating the bill quantity product of the bill type bill in the bill transaction pool according to a quantity product constant rule in the preset interaction protocol;
(2) acquiring the bill exchange quantity associated with the bill exchange instruction, and calculating to obtain transaction commission charge according to the bill exchange rate, the bill quantity product and the bill exchange quantity;
(3) and exchanging the initial receipt and the target receipt corresponding to the target receipt type in the receipt transaction pool according to the transaction commission charge.
The method comprises the steps that a terminal obtains a preset interaction protocol corresponding to a bill transaction pool, and the bill quantity product of each bill type bill in the bill transaction pool is calculated according to a quantity product constant rule in the preset interaction protocol; specifically, the terminal obtains the number of initial receipts in a receipt transaction pool for the same type of receipts (for example, receipt A), the terminal obtains the number of target receipts corresponding to the target type of receipts (for example, receipt B), the terminal calculates the number of initial receipts and the number of target receipts corresponding to the target type of receipts, the terminal obtains the exchange number of receipts associated with a receipt exchange instruction, and the exchange charge is calculated and obtained according to the receipt exchange ratio, the sum of the number of receipts and the exchange number of receipts; and the terminal exchanges the initial receipt with the target receipt corresponding to the target receipt type in the receipt trading pool according to the trading commission.
Referring to fig. 5, fig. 5 is a schematic diagram of a specific scenario of an embodiment of document exchange in the document exchange method based on a block chain provided in the embodiment of the present application;
for example, the trader needs to exchange a certain commission fee for the market maker who provides the circulation for Bill DEX SWAP every time, and assuming that now the exchange ratio of the a and B documents is 1:1, the market maker takes 50 a documents and 50B documents in the trading pool of Bill DEX SWAP, then the constant K is 50 x 50 — 2500. If the initial document currency A document needs to be exchanged to obtain a target document currency B document corresponding to the target document type, the number of the A documents in the exchange pool is 51A, the number of the B documents is 2500/51, namely the number of the B documents in the exchange pool is about 49.0196, the exchanged people will obtain 50-49.0196 to 0.9804, the exchanged people take 1A document to be exchanged to 0.9804B documents, meanwhile, the market makers take a certain proportion of handling fees as rewards, if more market makers provide larger liquidity, the constant K in the exchange pool is very large, if the liquidity pool is 50 thousands of A and 50 thousands of B, the constant K is 50 thousands of B, and the sliding point caused by exchanging one document is very low.
In the embodiment, the terminal determines the bill exchange rate and then executes the bill exchange operation, so that the slip point brought by the bill exchange is lower, the large fluctuation caused by the bill exchange is avoided, and the bill exchange is more stable.
Referring to fig. 6, fig. 6 is a schematic flowchart of an embodiment of authority authentication in the block chain based document exchange method provided in the embodiment of the present application.
In some embodiments of the present application, the method for exchanging a document based on a block chain performs authority authentication on an order opening user, specifically, includes steps 501 and 503:
501, receiving a list opening operation instruction, acquiring a user identifier associated with the list opening operation instruction, and judging whether a user corresponding to the user identifier has a list opening authority.
The terminal receives a billing operation instruction, acquires a user identifier associated with the billing operation instruction (the user identifier refers to identification information for uniquely identifying a user, such as a user account), and judges whether the user corresponding to the user identifier has a billing authority, for example, a blacklist is preset in the terminal, and if the user identifier is in the blacklist, the terminal judges that the user corresponding to the user identifier does not have the billing authority; and if the user identification is not in the blacklist, the terminal judges that the user corresponding to the user identification has the order opening authority.
502, if the user corresponding to the user identifier does not have the order opening authority, outputting prompt information.
And if the user corresponding to the user identification does not have the order opening authority, the terminal outputs prompt information to prompt the user to quit the order opening operation.
503, if the user corresponding to the user identifier has the billing authority, calling a predefined intelligent contract interface, and generating an initial document voucher according to a preset document protocol in the intelligent contract interface.
And if the user corresponding to the user identification has the bill opening authority, the terminal calls a predefined intelligent contract interface and generates an initial bill voucher according to a preset bill protocol in the intelligent contract interface. In the embodiment, the terminal authenticates the authority of the single user, so that the operation safety can be ensured.
Referring to fig. 7, fig. 7 is a schematic flowchart of an embodiment of a document voucher market price prompt in the document exchange method based on the block chain according to the embodiment of the present application.
In some embodiments of the present application, in the document exchange method based on the block chain, the terminal calculates the market price before the initial document is opened for evidence exchange and the market price after the initial document is opened for prompt when the initial document is opened for evidence exchange, specifically, the method includes steps 601-603:
601, when the receipt exchange is detected to be completed, calculating and obtaining a first market price of the initial receipt in the exchange before the transaction, and calculating and obtaining an exchange price of the initial receipt in the exchange during the transaction.
In this embodiment, the terminal detects the exchange state of the document voucher in real time, and when the terminal detects that the document voucher exchange is completed, the terminal calculates and obtains the first market price of the initial document voucher before the transaction in the exchange, and calculates and obtains the exchange price of the initial document voucher during the transaction in the exchange, that is, the terminal calculates the first market price of the initial document voucher, that is, the first market price of the initial document voucher is the number of the initial document voucher a in the pool/the number of the target document voucher B in the pool (pbatch is X/Y). Supposing that the market quantity approaches infinity, the exchange price approaches X/Y infinitely; and the terminal calculates the converted price of the initial receipt certificate when the transaction in the exchange is obtained, namely the quantity of the payment initial receipt certificate A/the quantity of the obtaining target receipt certificate B (P conversion is delta x/delta y).
And 602, calculating and obtaining a second market price after the original document is exchanged corresponding to the document type according to the first market price and the exchange price.
The terminal calculates and obtains a second market price after the initial document corresponding to the document type is converted according to the first market price and the conversion price, namely, the terminal obtains the number X 'of the initial document corresponding to the document type and the number Y' of the target document corresponding to the document type after the conversion, and the terminal calculates that the second market price after the initial document corresponding to the document is converted in the document transaction pool is the number X 'of the initial document corresponding to the document A in the pool/the number Y' of the target document corresponding to the document B in the pool (P market is X '/Y').
603, if the ratio between the first market price and the second market price exceeds a preset range, outputting prompt information.
The terminal performs ratio operation on the first market price and the second market price to obtain a ratio result, the terminal judges whether the ratio result is in a preset range (the preset range can be set according to specific scenes, for example, the preset range is set to be 0.9-1.1), and if the ratio result is in the preset range, the terminal judges that the initial receipt is not subjected to large fluctuation; if the ratio result exceeds the preset range, the terminal outputs prompt information to prompt that the price is abnormal, the price of the document for passing the certificate can be effectively monitored in the embodiment, and the prompt is given when the price of the document for passing the certificate is greatly fluctuated, so that the transaction of the document for passing the certificate is more convenient.
As shown in fig. 8, fig. 8 is a schematic structural diagram of an embodiment of a document exchange device based on a block chain.
In order to better implement the block chain-based document exchange method in the embodiment of the present application, on the basis of the block chain-based document exchange method, an embodiment of the present application further provides a block chain-based document exchange device, where the block chain-based document exchange device includes:
the document generation module 701 is used for receiving a document opening operation instruction, calling a predefined intelligent contract interface, and generating an initial document voucher according to a preset document protocol in the intelligent contract interface;
the type determining module 702 is configured to receive a document clearing and exchanging instruction, and determine an initial document clearing and a target document type to be exchanged according to the document clearing and exchanging instruction;
the query adding module 703 is configured to query an exchange in the block chain, and add a circulation document voucher provided by each market in the exchange to a document transaction pool;
and the bill exchange module 704 is configured to exchange the initial bill and a target bill corresponding to the target bill type in the bill transaction pool according to a preset interaction protocol corresponding to the bill transaction pool.
In some embodiments of the present application, the block-chain-based document exchange apparatus includes:
receiving an interface definition request, acquiring a predefined intelligent contract interface, and deploying the predefined intelligent contract interface to each node of a block chain, wherein the intelligent contract interface is an ERC20 function interface, and the ERC20 function interface is associated with an ERC20 protocol;
the document generation module 701 includes:
and receiving a bill opening operation instruction, calling the predefined intelligent contract interface, and generating an initial bill receipt according to an ERC20 protocol in the intelligent contract interface.
In some embodiments of the present application, the document exchange module 704 includes:
acquiring a bill exchange ratio between the initial bill and the bill corresponding to the target bill type;
and acquiring a preset interaction protocol corresponding to the bill transaction pool, and exchanging the initial bill currency and the target bill currency corresponding to the target bill type in the bill transaction pool according to the preset interaction protocol and the bill exchange rate.
In some embodiments of the present application, the obtaining a document exchange ratio between the initial document voucher and the document voucher corresponding to the target document type by the block chain-based document exchange device includes:
and normalizing the initial receipt and the target receipt corresponding to the target receipt type to obtain a receipt exchange ratio between the initial receipt and the receipt corresponding to the target receipt type.
In some embodiments of the present application, the obtaining of the preset interaction protocol corresponding to the document transaction pool and exchanging the initial document voucher and the target document voucher corresponding to the target document type in the document transaction pool according to the preset interaction protocol and the document exchange ratio in the document exchange device based on the block chain includes:
acquiring a preset interaction protocol corresponding to the bill transaction pool, and calculating the bill quantity product of the bill of each bill type in the bill transaction pool according to a quantity product constant rule in the preset interaction protocol;
acquiring the bill exchange quantity associated with the bill exchange instruction, and calculating to obtain transaction commission charge according to the bill exchange rate, the bill quantity product and the bill exchange quantity;
and exchanging the initial receipt with the target receipt corresponding to the target receipt type in the receipt transaction pool according to the transaction commission.
In some embodiments of the present application, the document generating module 701 includes:
receiving a list opening operation instruction, acquiring a user identifier associated with the list opening operation instruction, and judging whether a user corresponding to the user identifier has a list opening authority or not;
if the user corresponding to the user identification does not have the order opening authority, outputting prompt information;
and if the user corresponding to the user identification has the bill opening authority, calling a predefined intelligent contract interface, and generating an initial bill voucher according to a preset bill protocol in the intelligent contract interface.
In some embodiments of the present application, the block-chain-based document exchange apparatus includes:
when the receipt clearing exchange is detected to be completed, calculating and obtaining a first market price of the initial receipt clearing before transaction in the exchange, and calculating and obtaining an exchange price of the initial receipt clearing during transaction in the exchange;
calculating and obtaining a second market price after the initial document is exchanged according to the first market price and the exchange price;
and if the ratio of the first market price to the second market price exceeds a preset range, outputting prompt information.
In the embodiment of the application, the bill exchange device based on the block chain receives the bill opening operation instruction, calls the predefined intelligent contract interface, and generates the initial bill evidence according to the preset bill protocol in the intelligent contract interface; receiving a bill clearing exchange instruction, and determining the initial bill clearing and the target bill type to be exchanged according to the bill clearing exchange instruction; inquiring an exchange in a block chain, and adding circulation bill vouchers provided by various market suppliers in the exchange to a bill trading pool; exchanging the initial receipt with a target receipt corresponding to the target receipt type in the receipt transaction pool according to a preset interaction protocol corresponding to the receipt transaction pool; the document of unified format is generated through the preset document protocol in the intelligent contract interface, then the exchange of the document in different supply ecological chains is realized according to the preset interaction protocol, the document is converted into the document with unified attribute in the embodiment, so that the document has circulation, and then the ecological chain circulation is crossed according to the preset interaction protocol, so that the rapid circulation of the document across the ecological chain is realized.
An embodiment of the present invention further provides a block chain-based document exchange device, as shown in fig. 9, fig. 9 is a schematic structural diagram of an embodiment of a block chain-based document exchange device provided in an embodiment of the present application.
The block chain based bill exchange device integrates any one block chain based bill exchange device provided by the embodiment of the invention, and comprises:
one or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor for performing the steps of the blockchain based document exchange method in any of the above embodiments of the blockchain based document exchange method.
Specifically, the method comprises the following steps: the blockchain based document exchange device may include components such as a processor 801 of one or more processing cores, a memory 802 of one or more readable storage media, a power supply 803, and an input unit 804. Those skilled in the art will appreciate that the block-chain based document exchange device architecture shown in figure 9 does not constitute a limitation of block-chain based document exchange devices and may include more or fewer components than shown, or some components in combination, or a different arrangement of components. Wherein:
the processor 801 is a control center of the block-chain-based document exchange device, connects various parts of the whole block-chain-based document exchange device by using various interfaces and lines, and executes various functions and processes data of the block-chain-based document exchange device by running or executing software programs and/or modules stored in the memory 802 and calling data stored in the memory 802, thereby performing overall monitoring of the block-chain-based document exchange device. Alternatively, processor 801 may include one or more processing cores; preferably, the processor 801 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 801.
The memory 802 may be used to store software programs and modules, and the processor 801 executes various functional applications and data processing by operating the software programs and modules stored in the memory 802. The memory 802 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the stored data area may store data created from use of the block-chain based document exchange device, and the like. Further, the memory 802 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 802 may also include a memory controller to provide the processor 801 access to the memory 802.
The block chain based document exchange device further comprises a power supply 803 for supplying power to each component, and preferably, the power supply 803 can be logically connected with the processor 801 through a power management system, so that functions of charging, discharging, power consumption management and the like can be managed through the power management system. The power supply 803 may also include one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and any like components.
The blockchain based document exchange device may further include an input unit 804, the input unit 804 being operable to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the block-chain based document exchange device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 801 in the block-chain-based document exchange device loads an executable file corresponding to one or more processes of an application program into the memory 802 according to the following instructions, and the processor 801 runs the application program stored in the memory 802, so as to implement various functions as follows:
receiving a bill opening operation instruction, calling a predefined intelligent contract interface, and generating an initial bill evidence according to a preset bill protocol in the intelligent contract interface;
receiving a bill clearing exchange instruction, and determining the initial bill clearing and the target bill type to be exchanged according to the bill clearing exchange instruction;
inquiring an exchange in a block chain, and adding circulation bill vouchers provided by various market suppliers in the exchange to a bill trading pool;
and exchanging the initial receipt with a target receipt corresponding to the target receipt type in the receipt transaction pool according to a preset interaction protocol corresponding to the receipt transaction pool.
It will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by instructions or by related hardware controlled by the instructions, which may be stored in a readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present invention provides a readable storage medium, which may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like. Stored thereon, is a computer program, which is loaded by a processor to execute the steps in any of the block-chain based document exchange methods provided by the embodiments of the present invention. For example, the computer program may be loaded by a processor to perform the steps of:
receiving a bill opening operation instruction, calling a predefined intelligent contract interface, and generating an initial bill evidence according to a preset bill protocol in the intelligent contract interface;
receiving a bill clearing exchange instruction, and determining the initial bill clearing and the target bill type to be exchanged according to the bill clearing exchange instruction;
inquiring an exchange in a block chain, and adding circulation bill vouchers provided by various market suppliers in the exchange to a bill trading pool;
and exchanging the initial receipt with a target receipt corresponding to the target receipt type in the receipt transaction pool according to a preset interaction protocol corresponding to the receipt transaction pool.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed descriptions of other embodiments, and are not described herein again.
In a specific implementation, each unit or structure may be implemented as an independent entity, or may be combined arbitrarily to be implemented as one or several entities, and the specific implementation of each unit or structure may refer to the foregoing method embodiment, which is not described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The document exchange method based on the block chain provided by the embodiment of the present application is described in detail above, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understand the method of the present invention and the core idea thereof; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A block chain based document exchange method is characterized in that the block chain based document exchange method comprises the following steps:
receiving a bill opening operation instruction, calling a predefined intelligent contract interface, and generating an initial bill evidence according to a preset bill protocol in the intelligent contract interface;
receiving a bill clearing exchange instruction, and determining the initial bill clearing and the target bill type to be exchanged according to the bill clearing exchange instruction;
inquiring an exchange in a block chain, and adding circulation bill vouchers provided by various market suppliers in the exchange to a bill trading pool;
and exchanging the initial receipt with a target receipt corresponding to the target receipt type in the receipt transaction pool according to a preset interaction protocol corresponding to the receipt transaction pool.
2. The block-chain-based document exchange method according to claim 1, wherein before receiving the document opening operation instruction, invoking a predefined intelligent contract interface, and generating an initial document voucher according to a preset document protocol in the intelligent contract interface, the method comprises:
receiving an interface definition request, acquiring a predefined intelligent contract interface, and deploying the predefined intelligent contract interface to each node of a block chain, wherein the intelligent contract interface is an ERC20 function interface, and the ERC20 function interface is associated with an ERC20 protocol;
the receiving of the order opening operation instruction, calling of a predefined intelligent contract interface and generation of an initial receipt evidence according to a preset receipt protocol in the intelligent contract interface comprise:
and receiving a bill opening operation instruction, calling the predefined intelligent contract interface, and generating an initial bill receipt according to an ERC20 protocol in the intelligent contract interface.
3. The block-chain-based document exchange method according to claim 1, wherein exchanging the initial document voucher with a target document voucher corresponding to the target document type in the document transaction pool according to a preset interaction protocol corresponding to the document transaction pool comprises:
acquiring a bill exchange ratio between the initial bill and the bill corresponding to the target bill type;
and acquiring a preset interaction protocol corresponding to the bill transaction pool, and exchanging the initial bill currency and the target bill currency corresponding to the target bill type in the bill transaction pool according to the preset interaction protocol and the bill exchange rate.
4. The block-chain based document exchange method according to claim 3, wherein the obtaining of the document exchange ratio between the initial document voucher and the document voucher corresponding to the target document type comprises:
and normalizing the initial receipt and the target receipt corresponding to the target receipt type to obtain a receipt exchange ratio between the initial receipt and the receipt corresponding to the target receipt type.
5. The block-chain-based bill exchange method according to claim 3, wherein the obtaining of a preset interaction protocol corresponding to the bill transaction pool, and exchanging the initial bill passage with a target bill passage corresponding to the target bill type in the bill transaction pool according to the preset interaction protocol and the bill exchange rate, comprises:
acquiring a preset interaction protocol corresponding to the bill transaction pool, and calculating the bill quantity product of the bill of each bill type in the bill transaction pool according to a quantity product constant rule in the preset interaction protocol;
acquiring the bill exchange quantity associated with the bill exchange instruction, and calculating to obtain transaction commission charge according to the bill exchange rate, the bill quantity product and the bill exchange quantity;
and exchanging the initial receipt with the target receipt corresponding to the target receipt type in the receipt transaction pool according to the transaction commission.
6. The block-chain-based document exchange method according to claim 1, wherein the receiving an order-opening operation instruction, invoking a predefined intelligent contract interface, and generating an initial document voucher according to a preset document protocol in the intelligent contract interface comprises:
receiving a list opening operation instruction, acquiring a user identifier associated with the list opening operation instruction, and judging whether a user corresponding to the user identifier has a list opening authority or not;
if the user corresponding to the user identification does not have the order opening authority, outputting prompt information;
and if the user corresponding to the user identification has the bill opening authority, calling a predefined intelligent contract interface, and generating an initial bill voucher according to a preset bill protocol in the intelligent contract interface.
7. The block-chain based document exchange method according to any one of claims 1 to 6, wherein after exchanging the initial document voucher with a target document voucher corresponding to the target document type in the document transaction pool according to a preset interaction protocol corresponding to the document transaction pool, the method comprises:
when the receipt clearing exchange is detected to be completed, calculating and obtaining a first market price of the initial receipt clearing before transaction in the exchange, and calculating and obtaining an exchange price of the initial receipt clearing during transaction in the exchange;
calculating and obtaining a second market price after the initial document is exchanged according to the first market price and the exchange price;
and if the ratio of the first market price to the second market price exceeds a preset range, outputting prompt information.
8. A block-chain based document exchange apparatus, comprising:
the document generation module is used for receiving a document opening operation instruction, calling a predefined intelligent contract interface and generating an initial document voucher according to a preset document protocol in the intelligent contract interface;
the type determining module is used for receiving a bill clearing and exchanging instruction and determining the type of an initial bill and a target bill to be exchanged according to the bill clearing and exchanging instruction;
the query adding module is used for querying the exchange in the block chain and adding the circulation document currency certificate provided by each market provider in the exchange to a document trading pool;
and the bill exchange module is used for exchanging the initial bill and the target bill corresponding to the target bill type in the bill transaction pool according to a preset interaction protocol corresponding to the bill transaction pool.
9. A blockchain based document exchange device, the blockchain based document exchange device comprising:
one or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the blockchain based document exchange method of any one of claims 1 to 7.
10. A readable storage medium having stored thereon a computer program to be loaded by a processor for performing the steps of the block-chain based document exchange method of any one of claims 1 to 7.
CN202011603929.5A 2020-12-29 2020-12-29 Block chain based bill exchange method, device, equipment and readable storage medium Pending CN112633863A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011603929.5A CN112633863A (en) 2020-12-29 2020-12-29 Block chain based bill exchange method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011603929.5A CN112633863A (en) 2020-12-29 2020-12-29 Block chain based bill exchange method, device, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112633863A true CN112633863A (en) 2021-04-09

Family

ID=75287257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011603929.5A Pending CN112633863A (en) 2020-12-29 2020-12-29 Block chain based bill exchange method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112633863A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113570466A (en) * 2021-09-24 2021-10-29 腾讯科技(深圳)有限公司 Transaction data processing method and device and readable storage medium
CN114581087A (en) * 2022-03-03 2022-06-03 杭州复杂美科技有限公司 Block chain-based object exchange method, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463680A (en) * 2017-08-07 2017-12-12 山东浪潮通软信息科技有限公司 A kind of method and device for integrating document
CN109242498A (en) * 2018-09-19 2019-01-18 清华大学 A kind of the block chain method of commerce and device of decentralization
CN109461076A (en) * 2018-10-09 2019-03-12 哈希(武汉)网络科技有限公司 A kind of block chain method of commerce
CN109872235A (en) * 2019-01-25 2019-06-11 东莞市大易产业链服务有限公司 A kind of digital asset interoperability methods based on block chain technology
CN109919769A (en) * 2019-03-15 2019-06-21 北京世纪诚链科技有限公司 Model and its implementation across chain tra nsfer are worth between a kind of main chain side chain
CN110471984A (en) * 2019-07-15 2019-11-19 阿里巴巴集团控股有限公司 Method for processing business and device, electronic equipment based on block chain
US20200065899A1 (en) * 2018-08-23 2020-02-27 GET IT FIRST, Inc. Item market place in blockchain environment
CN111369353A (en) * 2018-12-07 2020-07-03 傲为信息技术(江苏)有限公司 Certificate exchange method based on public link and block link system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463680A (en) * 2017-08-07 2017-12-12 山东浪潮通软信息科技有限公司 A kind of method and device for integrating document
US20200065899A1 (en) * 2018-08-23 2020-02-27 GET IT FIRST, Inc. Item market place in blockchain environment
CN109242498A (en) * 2018-09-19 2019-01-18 清华大学 A kind of the block chain method of commerce and device of decentralization
CN109461076A (en) * 2018-10-09 2019-03-12 哈希(武汉)网络科技有限公司 A kind of block chain method of commerce
CN111369353A (en) * 2018-12-07 2020-07-03 傲为信息技术(江苏)有限公司 Certificate exchange method based on public link and block link system
CN109872235A (en) * 2019-01-25 2019-06-11 东莞市大易产业链服务有限公司 A kind of digital asset interoperability methods based on block chain technology
CN109919769A (en) * 2019-03-15 2019-06-21 北京世纪诚链科技有限公司 Model and its implementation across chain tra nsfer are worth between a kind of main chain side chain
CN110471984A (en) * 2019-07-15 2019-11-19 阿里巴巴集团控股有限公司 Method for processing business and device, electronic equipment based on block chain

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113570466A (en) * 2021-09-24 2021-10-29 腾讯科技(深圳)有限公司 Transaction data processing method and device and readable storage medium
CN113570466B (en) * 2021-09-24 2021-11-30 腾讯科技(深圳)有限公司 Transaction data processing method and device and readable storage medium
CN114581087A (en) * 2022-03-03 2022-06-03 杭州复杂美科技有限公司 Block chain-based object exchange method, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109559166B (en) Online and offline membership point promotion integrated system and method
CN108876497B (en) Resource transfer method and device and third-party server
CN111311209A (en) Cross-block-chain data processing method, device, equipment and computer storage medium
EP3996021A1 (en) Computer-implemented system and method for generating and extracting user related data stored on a blockchain
KR20210001896A (en) Power trading intermediation system of peer to peer type based on block chain technology
CN109636504A (en) Information processing method and device, electronic equipment and storage medium
CN110009365B (en) User group detection method, device and equipment for abnormally transferring electronic assets
JP6457391B2 (en) Method and system for distributing data streams
JP2016095846A (en) Method and system for processing payment using instant message service
Saxena et al. Blockchain based transactive energy systems for voltage regulation in active distribution networks
CN109166027A (en) A kind of loaning bill contract processing method and processing device
CN112633863A (en) Block chain based bill exchange method, device, equipment and readable storage medium
CN102012940A (en) Method and system for integrating multiple merchant commodity sales information in online shops
CN109727017B (en) Online shopping method, device, system, server and storage medium
CN106651422A (en) Data processing method and data processing device
CN107730328A (en) Net purchase method and net purchase device
CN115118777B (en) Message conversion method, device, equipment and storage medium based on service type
CN111144859A (en) Virtual resource transfer method and device, computer equipment and storage medium
CN114140202A (en) Block chain-based distributed electric energy bidding transaction service method and system
CN110555692A (en) virtual resource transfer method, device and storage medium
CN114820188A (en) Virtual asset transaction method and device, electronic equipment and readable storage medium
Fujimoto et al. Secure blockchain interworking using extended smart contract
KR20160057025A (en) Method and system of processing payment using instant message service
TWI772710B (en) System for providing interface to application server for electronic payment and method thereof
CN110826994B (en) Data processing method, device, equipment and storage medium

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