CN111402049A - Mining method based on block chain mortgage transaction - Google Patents
Mining method based on block chain mortgage transaction Download PDFInfo
- Publication number
- CN111402049A CN111402049A CN202010167655.3A CN202010167655A CN111402049A CN 111402049 A CN111402049 A CN 111402049A CN 202010167655 A CN202010167655 A CN 202010167655A CN 111402049 A CN111402049 A CN 111402049A
- Authority
- CN
- China
- Prior art keywords
- transaction
- platform
- mortgage
- transaction amount
- order
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/04—Payment circuits
- G06Q20/06—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
- G06Q20/065—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/389—Keeping log of transactions for guaranteeing non-repudiation of a transaction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Lists, e.g. purchase orders, compilation or processing
- G06Q30/0635—Processing of requisition or of purchase orders
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Game Theory and Decision Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Technology Law (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The invention discloses a mining method based on block chain mortgage transaction, which comprises the following steps: the intelligent contract of the exchange receives platform coin data transferred by the user side to complete the mortgage operation; the intelligent contract of the exchange generates a corresponding mortgage transaction amount; when a user places an order for a transaction, calculating the consumption transaction amount required by the order placement according to the transaction data in the current order placement; if the order placing is successful, storing the order in an order list in a trading platform and matching; transferring the corresponding transaction tokens of the two parties, recording the corresponding matching records and transaction consumption record data on a chain, and cleaning the matching records and the transaction consumption record data into a database; meanwhile, the distributed reward is distributed according to the mine digging reward corresponding to the transaction amount consumed in each account; the effect is as follows: the method and the system promote the user to actively trade, increase the trading activity of the platform and avoid the problem of platform currency scarcity caused by user trading to a certain extent.
Description
Technical Field
The invention relates to the technical field of block chains, in particular to a mining method based on block chain mortgage transaction.
Background
At present, with the development of the blockchain technology, the blockchain platform is applied more and more, and when the blockchain platform is applied, a user can obtain a corresponding transaction amount by mortgage of a corresponding platform coin on an intelligent contract of a trading exchange, but with the transaction of the user, the number of the platform coins circulating in the blockchain platform is reduced, so that the platform coins reach a scarcity degree, and the defects that the transaction frequency of the user is reduced and the transaction activity of the platform is reduced are generated.
Disclosure of Invention
The invention aims to provide a mining method based on block chain mortgage transaction, which prompts users to actively trade and increases the activity of platform transaction.
The embodiment of the invention provides a mining method based on block chain mortgage transaction, which comprises the following steps:
the intelligent contract of the exchange receives platform coin data transferred by a user side to complete the mortgage operation, wherein the platform coin data comprises the number of platform coins, a platform coin token symbol and a contract account name for issuing coins;
the intelligent contract of the exchange generates a corresponding mortgage transaction amount according to the platform coin data and the transaction amount corresponding to the single platform coin recorded in the linked contract table;
when a user places an order for a transaction, the intelligent contract of the exchange calculates the consumption transaction amount required by the order placing transaction according to the transaction data in the current order placing, and compares the consumption transaction amount with the mortgage transaction amount in the user account to determine whether the current order placing is successful;
if the order placing is successful, the order is stored in an order list in a trading platform, and the current state is waiting for trading;
the online matching service can automatically capture orders waiting for trading in an intelligent contract of a trading exchange and match the orders with matched prices;
the matching service pushes the order information which can be matched with matching to a contract matching transaction interface of a trading exchange on the chain, and the intelligent contract of the trading exchange transfers the corresponding transaction tokens of both parties and records the corresponding matching records and transaction consumption record data on the chain;
a plug-in the node program cleans the corresponding matching record and transaction consumption record data into a database;
the intelligent contract of the exchange distributes rewards once according to a preset time period, and the rewards are pushed to the upper chain and then are cleaned into the database through the plug-in;
and counting the proportion of the total consumption transaction amount of each account in the current block by each node in the block chain, so as to obtain the mineral digging reward which is supposed to be obtained by each account in each block interval and dispatch the mineral digging reward.
As a preferred technical solution of the present invention, the obtaining and dispatching the mine excavation reward due to each account in each block interval specifically includes: and calculating the mineral digging reward due to each transaction of each account according to the proportion of the consumption transaction amount record data of each account in the total consumption transaction amount of each account.
As a preferred technical solution of the present invention, the mortgage transaction amount is calculated by the following method:
and mortgage transaction amount is the number of the platform coins of 100X, wherein X is the real-time price of the USDT in the current exchange.
As a preferred technical solution of the present invention, the electronic voucher is displayed in the form of a barcode, and the manner of recording the corresponding matching records and transaction consumption record data on the chain is as follows: a null action is sent, which is recorded on the chain.
As a preferred technical scheme of the invention, the plug-in is a mongo cleaning plug-in.
As a preferred technical solution of the present invention, the database is a mongo database.
By adopting the technical scheme, the method has the following advantages: the invention provides a mine digging method based on block chain mortgage transaction, which utilizes a mortgage platform token to obtain a corresponding mortgage transaction amount, consumes a corresponding consumed transaction amount when a user conducts transaction, and a trading exchange intelligent contract distributes a corresponding mine digging reward according to the transaction amount consumed by the user in each next transaction, so that the user is prompted to conduct active transaction, and the transaction activity of the platform is increased.
Drawings
Fig. 1 is a flowchart of a mining method based on block chain mortgage transaction according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific examples, which are used for illustrating the present invention and are not intended to limit the scope of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a mining method based on blockchain mortgage transactions, where the method includes:
s101, the intelligent contract of the exchange receives platform coin data transferred by a user side to complete the mortgage operation, wherein the platform coin data comprises the platform coin number, the platform coin token symbols and the contract account name of issued coins.
Specifically, the platform currency includes various tokens or digital currencies corresponding to each exchange platform.
And S102, the intelligent contract of the exchange generates a corresponding mortgage transaction amount according to the platform coin data and the transaction amount single amount corresponding to the single platform coin recorded in the linked contract table to generate a corresponding mortgage transaction amount.
Specifically, the mortgage transaction amount of the current time is calculated according to the number of the platform coins and the type of the platform coins, and when the mortgage is applied, a user can carry out mortgage for multiple times, namely, the mortgage is continuously accumulated on the basis of the previous mortgage transaction amount, and the account transaction amount record corresponding to the exchange contract is updated; the mortgage transaction amount is calculated by the following method:
the number of the platform coins is mortgage 100X, wherein X is the real-time price of USDT (USDT for short) in the current exchange, the Chinese name is Tadaxin, and the appearance of USDT provides a channel for exchanging held tokens into French coins.
S103, when the user places an order for a transaction, the intelligent contract of the exchange calculates the consumption transaction amount required by the current order placing transaction according to the transaction data in the current order placing transaction, and compares the consumption transaction amount with the mortgage transaction amount in the user account to determine whether the current order placing is successful.
Specifically, the transaction data includes the token type (i.e. platform currency type) and the current transaction amount of the current transaction, and the consumed transaction amount required for the next transaction is calculated and compared with the remaining transaction amount of the account. The order placing is successful only when the remaining transaction amount of the current account is not less than the transaction amount required to be consumed by the current order placing.
And S104, if the order placing is successful, storing the order in an order list in the trading platform, wherein the current state is waiting for trading.
Specifically, the order placing includes a buy/sell order, the order list includes a buy/sell order queue, a buy queue and a sell queue order, the queues are arranged according to the principle of "price first" and "time-under-price first", the buy queue is arranged according to the order of "price from low to high" and the sell queue is arranged according to the order of "price from low to high", which is only an example and is not limited.
And S105, the offline matching service can automatically capture orders waiting for trading in the intelligent contract of the exchange and match the orders with matched prices.
Specifically, the matching specifically comprises:
when the order placing task is to buy an order, searching whether a sell order meeting the price rule exists at the head of the sell queue, and if the sell price is less than or equal to the buy price, taking the order out of the queue and matching into a transaction;
similarly, the sale order is the same, and will not be described herein.
And S106, the matching service pushes the order information which can be matched to a matched trading interface of a trading exchange contract on the chain, the intelligent contract of the trading exchange transfers the corresponding trading tokens of both parties, and the corresponding matching record and the corresponding trading consumption record data are recorded on the chain.
Specifically, the mode of recording the corresponding matching records and transaction consumption record data on the chain is as follows: the null action is sent and recorded on the uplink.
And S107, the plug-in the node program cleans the corresponding matching record and transaction consumption record data into a database.
Specifically, the plug-in is a mongo cleaning plug-in, and the database is a mongo database.
And S108, the intelligent contract of the exchange distributes rewards once according to a preset time period, and the rewards are pushed to the upper chain and then are cleaned into the database through the plug-in.
Specifically, the time period may be in the form of a reward being distributed every 10 minutes and the currently distributed reward is pushed onto the chain, also via the null, and flushed by the flush plug-in to the mongo database.
And S109, counting the proportion of the total consumption transaction amount of each account in the current block by each node in the block chain, and obtaining and distributing the ore digging reward due to each account in each block interval.
Specifically, the obtaining and dispatching the mine digging reward due to each account in each block interval specifically includes: calculating the ore digging reward due to each transaction of each account according to the proportion of the consumption transaction amount record data of each account in the total consumption transaction amount of each account; for example, if the total amount of consumed transaction amount of an account in a block accounts for 20% of the block, and the reward obtained by the block is 10 platform tokens, the reward due to mining by the account is 10 × 20% — 2; meanwhile, the account completes two transactions, wherein the amount of one consumed transaction accounts for 40% of the total consumption amount, and the mining reward obtained by the transaction is 2 x 40% to 0.8.
According to the embodiment of the invention, the corresponding mortgage transaction amount is obtained through the mortgage platform token, the corresponding consumed transaction amount is consumed when a user conducts transaction, the intelligent contract of the exchange distributes the corresponding mine digging reward according to the transaction amount consumed by the user in each next transaction, so that the user is prompted to conduct active transaction, the transaction activity of the platform is increased, and meanwhile, the problems that circulation platform coins are reduced and the platform coins are scarce due to user transaction are avoided to a certain extent, so that the platform coins are stable in price and have a certain value-added effect.
Finally, it should be noted that the above description is only a preferred embodiment of the present application and is illustrative of the technical principles applied. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the present application. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.
Claims (6)
1. A method of mining based on blockchain mortgage transactions, the method comprising:
the intelligent contract of the exchange receives platform coin data transferred by a user side to complete the mortgage operation, wherein the platform coin data comprises the number of platform coins, a platform coin token symbol and a contract account name for issuing coins;
the intelligent contract of the exchange generates a corresponding mortgage transaction amount according to the platform coin data and the transaction amount corresponding to the single platform coin recorded in the linked contract table;
when a user places an order for a transaction, the intelligent contract of the exchange calculates the consumption transaction amount required by the order placing transaction according to the transaction data in the current order placing, and compares the consumption transaction amount with the mortgage transaction amount in the user account to determine whether the current order placing is successful;
if the order placing is successful, the order is stored in an order list in a trading platform, and the current state is waiting for trading;
the online matching service can automatically capture orders waiting for trading in an intelligent contract of a trading exchange and match the orders with matched prices;
the matching service pushes the order information which can be matched with matching to a contract matching transaction interface of a trading exchange on the chain, and the intelligent contract of the trading exchange transfers the corresponding transaction tokens of both parties and records the corresponding matching records and transaction consumption record data on the chain;
a plug-in the node program cleans the corresponding matching record and transaction consumption record data into a database;
the intelligent contract of the exchange distributes rewards once according to a preset time period, and the rewards are pushed to the upper chain and then are cleaned into the database through the plug-in;
and counting the proportion of the total consumption transaction amount of each account in the current block by each node in the block chain, so as to obtain the mineral digging reward which is supposed to be obtained by each account in each block interval and dispatch the mineral digging reward.
2. The method of claim 1, wherein the step of obtaining and distributing the applicable mining reward for each account in each block section comprises: and calculating the mineral digging reward due to each transaction of each account according to the proportion of the consumption transaction amount record data of each account in the total consumption transaction amount of each account.
3. The method of claim 1, wherein the mortgage transaction amount is calculated by:
and mortgage transaction amount is the number of the platform coins of 100X, wherein X is the real-time price of the USDT in the current exchange.
4. The method of claim 1, wherein the corresponding match records and transaction consumption records are recorded on the chain by: a null action is sent, which is recorded on the chain.
5. The method of claim 1, wherein the plug-in is a mongo cleaning plug-in.
6. The method of claim 1, wherein the database is a mongo database.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010167655.3A CN111402049A (en) | 2020-03-11 | 2020-03-11 | Mining method based on block chain mortgage transaction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010167655.3A CN111402049A (en) | 2020-03-11 | 2020-03-11 | Mining method based on block chain mortgage transaction |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111402049A true CN111402049A (en) | 2020-07-10 |
Family
ID=71413332
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010167655.3A Pending CN111402049A (en) | 2020-03-11 | 2020-03-11 | Mining method based on block chain mortgage transaction |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111402049A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112950183A (en) * | 2021-02-23 | 2021-06-11 | 网易(杭州)网络有限公司 | Cross-link data interchange method, system, device and electronic equipment |
WO2022082548A1 (en) * | 2020-10-22 | 2022-04-28 | 贾胜 | Blockchain-based token exchange method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105931101A (en) * | 2016-04-19 | 2016-09-07 | 山西特信环宇信息技术有限公司 | Barter transaction platform generated by using transaction currency |
CN107292735A (en) * | 2017-05-27 | 2017-10-24 | 唐盛(北京)物联技术有限公司 | A kind of mortgage finance method and system based on block chain technology |
CN109255614A (en) * | 2018-08-31 | 2019-01-22 | 深圳付贝科技有限公司 | Digging mine method and device, digging mine machine and block catenary system based on block chain |
CN109636362A (en) * | 2018-11-14 | 2019-04-16 | 深圳前海达闼云端智能科技有限公司 | Virtual asset transaction method and device and block chain network node |
CN109978694A (en) * | 2019-04-02 | 2019-07-05 | 北京市天元网络技术股份有限公司 | A kind of credit method of commerce and device based on block chain |
CN110084593A (en) * | 2019-02-03 | 2019-08-02 | 杭州复杂美科技有限公司 | Stablize token exchanging method, method of commerce, equipment and storage medium |
CN110111108A (en) * | 2019-05-15 | 2019-08-09 | 袁园 | A kind of secure financial management system based on block chain technology |
CN110675259A (en) * | 2019-09-24 | 2020-01-10 | 北京艾摩瑞策科技有限公司 | Futures transaction data processing method and device based on block chain |
-
2020
- 2020-03-11 CN CN202010167655.3A patent/CN111402049A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105931101A (en) * | 2016-04-19 | 2016-09-07 | 山西特信环宇信息技术有限公司 | Barter transaction platform generated by using transaction currency |
CN107292735A (en) * | 2017-05-27 | 2017-10-24 | 唐盛(北京)物联技术有限公司 | A kind of mortgage finance method and system based on block chain technology |
CN109255614A (en) * | 2018-08-31 | 2019-01-22 | 深圳付贝科技有限公司 | Digging mine method and device, digging mine machine and block catenary system based on block chain |
CN109636362A (en) * | 2018-11-14 | 2019-04-16 | 深圳前海达闼云端智能科技有限公司 | Virtual asset transaction method and device and block chain network node |
CN110084593A (en) * | 2019-02-03 | 2019-08-02 | 杭州复杂美科技有限公司 | Stablize token exchanging method, method of commerce, equipment and storage medium |
CN109978694A (en) * | 2019-04-02 | 2019-07-05 | 北京市天元网络技术股份有限公司 | A kind of credit method of commerce and device based on block chain |
CN110111108A (en) * | 2019-05-15 | 2019-08-09 | 袁园 | A kind of secure financial management system based on block chain technology |
CN110675259A (en) * | 2019-09-24 | 2020-01-10 | 北京艾摩瑞策科技有限公司 | Futures transaction data processing method and device based on block chain |
Non-Patent Citations (1)
Title |
---|
张亮;刘百祥;张如意;江斌鑫;刘一江;: "区块链技术综述" * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022082548A1 (en) * | 2020-10-22 | 2022-04-28 | 贾胜 | Blockchain-based token exchange method and device |
CN112950183A (en) * | 2021-02-23 | 2021-06-11 | 网易(杭州)网络有限公司 | Cross-link data interchange method, system, device and electronic equipment |
CN112950183B (en) * | 2021-02-23 | 2023-06-30 | 网易(杭州)网络有限公司 | Cross-chain data interchange method, system, device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20100169170A1 (en) | Merchant offer program | |
US20140046757A1 (en) | Unified payment and return on investment system | |
US20020178056A1 (en) | Consumer loyalty marketing program based on multi-transaction platform that provides high rewards to members under a tiered reward scheme | |
US20120095897A1 (en) | System and method for trading of carbon units | |
WO2001088863A2 (en) | Electronic processing system | |
AU2001256518A1 (en) | Electronic processing system | |
CN107967594A (en) | Reconciliation settlement method and reconciliation settlement system | |
CN111402049A (en) | Mining method based on block chain mortgage transaction | |
TW201822087A (en) | Virtual currency system | |
CN111612511A (en) | Resource allocation method and device based on activity task and electronic equipment | |
CN111080340A (en) | System, method and related device for pushing marketing management message of financial product | |
CN109886676A (en) | Method of payment, calculating equipment, storage medium for block chain network | |
US20200193467A1 (en) | Method And Apparatus For Payment, Return On Investment, And Impact Reporting | |
US20210192522A1 (en) | Intelligent fraud rules | |
US20050165596A1 (en) | Method and apparatus for determining expected values in the presence of uncertainty | |
Angrisani et al. | The 2011–2012 Survey of Consumer Payment Choice: Technical Appendix | |
JP6681652B2 (en) | Coupon management system and coupon management method | |
JP3685801B2 (en) | Calculation device / method, point or coupon service system | |
Quartey et al. | Economic Sustainability of Mobile Money Payments in Ghana: Does a Tax on Transactions Matter? | |
US20110093325A1 (en) | Automated Financial Institution Customer Reward Program | |
JP2018055398A (en) | Point use compromise system and point use compromise method | |
CA2717206C (en) | Merchant offer program | |
CN112308471B (en) | Resource allocation method, device, system, equipment and computer readable storage medium | |
CN111028108B (en) | Credit mark system of real estate agent | |
KR20210109949A (en) | Method And System for Providing Marketing Platform for Sharing Customer Information |
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 |