CN110288469A - A kind of token automatic distributing method, apparatus and computer equipment - Google Patents

A kind of token automatic distributing method, apparatus and computer equipment Download PDF

Info

Publication number
CN110288469A
CN110288469A CN201910381304.XA CN201910381304A CN110288469A CN 110288469 A CN110288469 A CN 110288469A CN 201910381304 A CN201910381304 A CN 201910381304A CN 110288469 A CN110288469 A CN 110288469A
Authority
CN
China
Prior art keywords
token
distribution
block chain
request
automatic distributing
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
CN201910381304.XA
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 Sangio Software Co Ltd
Original Assignee
Hangzhou Sangio Software 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 Sangio Software Co Ltd filed Critical Hangzhou Sangio Software Co Ltd
Priority to CN201910381304.XA priority Critical patent/CN110288469A/en
Publication of CN110288469A publication Critical patent/CN110288469A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • 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/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • 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)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of token automatic distributing method, apparatus and computer equipments, wherein token automatic distributing method includes the token distribution request at reception business end, it and is token distribution request setting identifier, the identifier is corresponding with block chain account, distributes request convenient for token all under the corresponding identifier of block chain account management;The token distribution request that will acquire is added in message queue, and the message queue is in listening state always, as long as there is token distribution request to enter, so that it may automatic to execute token distribution;Extract in the message queue a token distribution request, be sent to corresponding block chain account, convenient for block chain account according to preset parameter execute automatically token distribute.It solves to send in the distribution of current token or redemption process needs some progress, operating process is cumbersome, and error-prone, manpower transfers accounts energy consumption greatly, the problems such as low efficiency, complicated operation is encapsulated, realizes the automatic distributing of token, administrator is allowed easily to be that tens of millions of people provides token.

Description

A kind of token automatic distributing method, apparatus and computer equipment
Technical field
The present invention, which discloses, is related to block chain field more particularly to a kind of token automatic distributing method, apparatus and computer is set It is standby.
Background technique
Block chain is the novel of the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm Application model, it is substantially the database of a decentralization, while the Floor layer Technology as bit coin, is a string using close Code learns the associated data block generated of method, contains the information of a batch bit coin network trading in each data block, uses In the validity (anti-fake) for verifying its information and generate next block.Block chain includes publicly-owned chain, privately owned chain and alliance's chain, In publicly-owned chain refer to the whole world anyone all can be read, send transaction and transaction can obtain it is effectively confirming, it can also be participated in The block chain of middle common recognition process.
The project side of publicly-owned chain be frequently necessary to give user send token, or by user by original accumulated point exchanging at generation Coin, the at present distribution of token have that many such as transmission or redemption process need some progress, and operating process is cumbersome, also It is easy error;It needs often to update the current value of money of service charge state, token, and needs conversion exchange proportion in real time;Operation There is very big difficulty for the financial staff for not knowing about block chain in complexity;User base number of transferring accounts is big, and manpower is transferred accounts essence Power consumption is big, in addition also needing to pay close attention to whether service charge state, token current market value, money transfer transactions terminate in real time, efficiency is very It is low.
Summary of the invention
The embodiment of the present invention is in order to solve in the prior art, the problems such as token distribution procedure is complicated cumbersome, existing by integrating There is computer technology, realize token automatic distributing, complicated operation is encapsulated, is easily thousands of use convenient for administrator Distribute token in family.
One embodiment of the invention provides a kind of token automatic distributing method, comprising:
The token at reception business end distributes request, and is token distribution request setting identifier, identifier and block chain account Family is corresponding, i.e., all tokens distribute request under the corresponding identifier of block chain account management;
The token distribution request that will acquire is added in message queue, and message queue is in listening state always, mainly There is token distribution request to enter, so that it may execute the automatic granting of token;
The token extracted in message queue distributes request, be sent to corresponding block chain account, convenient for block chain account Family executes the automatic distributing of token according to parameter is preset.
It further, further include judging whether token is distributed in token automatic distributing method provided in an embodiment of the present invention It completes, token distribution is completed then to extract a token distribution request again;Judge the method whether token granting is completed, comprising:
Order information in timing acquisition database, order information are that block chain automatically generates when executing token granting, Include stateful transaction, transaction related information;
Whether detection order information generates receipts of transactions, if so, showing that token granting is completed.
Further, in token automatic distributing method provided in an embodiment of the present invention, block chain administrator is executed into token Distribution, comprising:
Periodically asynchronous acquisition estimation information is recorded in database and local cache, and estimation information includes service charge, current Token price;
Newest estimation information in reading database or local cache deducts service charge, and root according to estimation information automatically Go out the token value that should be provided according to current token calculation of price;
Execute the granting of token automatically according to the calculated token value that should be provided.
Further, the order information that will be completed after the completion of the suspended state of token distribution beginning, token distribution, records In the database, whether distribute successfully and order details convenient for inquiry token.
One embodiment of the invention provides a kind of token automatic distributing device, comprising:
Receiving module, the token for receiving business end distribute request, and are token distribution request setting identifier, mark Symbol is corresponding with block chain account, asks convenient for token distribution all under the corresponding identifier of block chain account management It asks;
Message queue adding module, the token distribution request for will acquire are added in message queue, message queue Always it is in listening state, mainly has token distribution request to enter, so that it may execute the automatic granting of token;
Token distribution module is sent to and corresponding block chain for extracting the distribution request of a token in message queue Account, convenient for block chain account according to the automatic distributing for presetting parameter execution token.
It further, further include judgment module, for judging whether token distributes completion, token distribution is completed then to take out again Take a token distribution request;Judgment module judges the method whether token granting is completed, comprising:
Order information in timing acquisition database, order information are that block chain automatically generates when executing token granting, Include stateful transaction, transaction related information;
Whether detection order information generates receipts of transactions, if so, showing that token granting is completed.
Further, block chain administrator is executed token distribution by token distribution module, comprising:
Periodically asynchronous acquisition estimation information is recorded in database and local cache, and estimation information includes service charge, current Token price;
Newest estimation information in reading database or local cache deducts service charge, and root according to estimation information automatically Go out the token value that should be provided according to current token calculation of price.
Further, token distribution module executes token distribution and completes the status information of token distribution, is recorded in data In library, whether distribute successfully and order details convenient for inquiry token.
One embodiment of the invention additionally provides a kind of electronic equipment, including memory and processor, and memory is for storing One or more computer instruction, wherein one or more computer instruction is executed by processor to realize such as any of the above-described Token automatic distributing method.
One embodiment of the invention additionally provides a kind of computer readable storage medium for being stored with computer program, computer Any of the above-described token automatic distributing method is realized when program executes computer.
A kind of token automatic distributing method that one embodiment of the invention provides, by distributing request setting and block for token The corresponding identifier of chain account, while self-timing being cooperated to obtain service charge, current token price etc., it is automatic to calculate token point Hair value realizes that block chain account executes token distribution automatically.It solves to send in the distribution of current token or redemption process needs one Pen carries out, and operating process is cumbersome, and error-prone, manpower is transferred accounts the problems such as energy consumption is big, and efficiency is very low, and complicated operation is sealed Dress, realizes the automatic distributing of token, and administrator is allowed easily to be that tens of millions of people provides token.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the flow diagram that the present invention implements a kind of token automatic distributing method that one provides;
Fig. 2 is the flow diagram that the present invention implements a kind of token automatic distributing method that two provide;
Fig. 3 is the flow diagram that the present invention implements a kind of token automatic distributing method that three provide;
Fig. 4 is the flow diagram that the present invention implements a kind of token automatic distributing method that three provide;
Fig. 5 is the schematic diagram that the present invention implements a kind of token automatic distributing device that four provide.
Specific embodiment
For technical problem to be solved of the embodiment of the present invention, technical solution and beneficial effect is more clearly understood, with Lower combination accompanying drawings and embodiments, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein It is only used to explain the present invention, be not intended to limit the present invention.
In being described below, for illustration and not for limitation, the tool of such as specific internal program, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate the technical solution of the embodiment of the present invention, the following is a description of specific embodiments.
Embodiment one
The embodiment of the present invention one provides a kind of token automatic distributing method, and Fig. 1 is the generation that the embodiment of the present invention one provides The flow diagram of coin automatic distributing method.As shown in Figure 1, the method for the present embodiment may include:
Step 101, the token for receiving business end distributes request, and is token distribution request setting identifier, described Identifier is corresponding with block chain account, convenient for token distribution all under the corresponding identifier of block chain account management Request;
Step 102, the token distribution request that will acquire is added in message queue, and the message queue is in prison always State is listened, as long as there is token distribution request to enter, so that it may automatic to execute token distribution;
Step 103, extract in the message queue a token distribution request, be sent to corresponding block chain account, Token distribution is executed automatically according to parameter is preset convenient for block chain account.
Method in the present embodiment can be applied to the token distribution of public chain project.
The token distribution method of the present embodiment is illustrated below by a simply example.
In the present embodiment, the business end of public chain project side can generate the request of token distribution at any time, we term it One transaction, we add an identifier (channel identifier), each channel identifier corresponding one to this transaction A administrator's block chain account, it is assumed that we possess n administrator's block chain account, then can define n channel mark Symbol, that is to say, that the All Activity under one channel identifier of each account management.
The token distribution request of the channel identifier subordinate of definition is added in message queue one by one, one Channel identifier corresponds to a message queue, and wherein message queue can choose nsq kafka component, can also basis It needs that other message queues is selected to realize.The message queue is in real-time listening state, as long as guaranteeing there is generation in message queue Coin distribution request, so that it may automatic to carry out token distribution.
A transaction is taken out from message queue, and the state of the transaction at this time is recorded in the database in detail, it will The transaction is sent to block chain account, and token is issued to request account automatically according to pre-set parameter by block chain account Family.
A kind of token automatic distributing method of the present embodiment, it is opposite with block chain account by distributing request setting for token The identifier answered cooperates message queue, realizes that block chain account executes token distribution automatically.It solves to send out in the distribution of current token It send or redemption process needs some progress, operating process is cumbersome, and error-prone, manpower is transferred accounts, and energy consumption is big, and efficiency is very low Problem.
Embodiment two
Second embodiment of the present invention provides a kind of token automatic distributing method, Fig. 2 is generation provided by Embodiment 2 of the present invention The flow diagram of coin automatic distributing method.As shown in Fig. 2, the method for the present embodiment may include:
Step 201, the token for receiving business end distributes request, and is token distribution request setting identifier, described Identifier is corresponding with block chain account, convenient for token distribution all under the corresponding identifier of block chain account management Request;
Step 202, the token distribution request that will acquire is added in message queue, and the message queue is in prison always State is listened, as long as there is token distribution request to enter, so that it may automatic to execute token distribution;
Step 203, extract in the message queue a token distribution request, be sent to corresponding block chain account, Token distribution is executed automatically according to parameter is preset convenient for block chain account;
Step 204, the order information in timing acquisition database, the order information are that the block chain executes token point It is automatically generated when hair;
Step 205, it detects whether the order information generates receipts of transactions, detects receipts of transactions, show that token is distributed It completes, the token distribution request re-executeing the steps in 203 extraction message queues, until being asked in message queue without token distribution It asks.
Method in the present embodiment can be applied to the token distribution of public chain project.
The token distribution method of the present embodiment is illustrated below by a simply example, wherein step 201~203 As in the first embodiment, the present embodiment mainly illustrates to judge token distributes the method whether completed.
It in the present embodiment, after token is issued to user by block chain account, trades as suspended state, while this transaction produces The order number of a raw block chain, the state of the data-base recording order.
The process of exchange of block chain is a common recognition process, completes the waiting period that transaction needs a period of time.During this period, Using order number timing interactive query, detect whether the order generates receipt information.When detecting receipt information, it is meant that this Secondary token granting is completed, and transaction terminates.Again the token extracted in message queue distributes request, executes the distribution of token.
It should be noted that when, detect receipt information, can only show to complete the request of this token distribution, and cannot say Whether the distribution of Ming Dynasty's coin succeeds, it is therefore desirable to record the state at the end of this order starts and trades simultaneously in the database. It, can be with the Transaction Information in called data library when needing to check the details transferred accounts such as user at the end of transferring accounts.
A kind of token automatic distributing method of the present embodiment periodically inquires the order number by giving transaction setting order number Receipt information whether is generated to judge whether transaction is completed, when inquiring receipt information, automatically begins to handle new token point Hair request improves the distribution efficiency of token, reduces labor workload to realize automatic token distribution.
Embodiment three
The embodiment of the present invention three provides a kind of token automatic distributing method, and Fig. 3 is the generation that the embodiment of the present invention three provides The flow diagram of coin automatic distributing method.As shown in figure 3, the method for the present embodiment may include:
Step 301, the token for receiving business end distributes request, and is token distribution request setting identifier, described Identifier is corresponding with block chain account, convenient for token distribution all under the corresponding identifier of block chain account management Request;
Step 302, the token distribution request that will acquire is added in message queue, and the message queue is in prison always State is listened, as long as there is token distribution request to enter, so that it may automatic to execute token distribution;
Step 303, extract in the message queue a token distribution request, be sent to corresponding block chain account, Token distribution is executed automatically according to parameter is preset convenient for block chain account;
Step 304, the newest estimation information in reading database or local cache, the estimation information includes service charge Valuation, rate, token value, the estimation information is to be stored in database or local cache after obtaining and parse by third party In;
Step 305, the service charge for needing to deduct is calculated automatically according to the estimation information read, and according to current token valence Lattice calculate the token value that should distribute;
Step 306, the distribution of token is executed automatically according to the token value that should distribute being calculated;
Step 307, the order information in timing acquisition database, the order information are that the block chain executes token point It is automatically generated when hair;
Step 308, detect whether the order information generates receipts of transactions.
Method in the present embodiment can be applied to the token distribution of public chain project.
The token distribution method of the present embodiment is illustrated below by a simply example, wherein step 301~303 As in the first embodiment, the present embodiment mainly illustrates the method that block chain account executes token distribution according to parameter is preset automatically.
In the present embodiment, block chain timing obtains service charge, waiting time, block from third party (such as different websites) The valuations information such as chain essential information, token current market value, can be set acquisition time, obtain once within such as every 10 minutes, work as market When fluctuating larger, it suitably can shorten or extend the period obtained;The information got, by parsing and being added patrolling for oneself Volume, then result is saved in the database in the form being inserted into.It is that data can be divided when adding up a certain amount of data It is used after analysis.
When block chain account executes token distribution, newest valuation information is obtained, according to the valuation information got, setting The service charge for needing this transaction to need to deduct proportionally calculates further according to the current market value of token and needs to send out to user The token value put, block chain account execute the granting of token.
A kind of token automatic distributing method of the present embodiment by obtaining valuation information from third party, and is parsed and is edited After save in the database, acquisition time can be adjusted according to market fluctuation, guarantee timely updating and effectively for data.Area When block chain account executes token distribution, the practical band coin provided to user can be calculated and set according to the valuation information of acquisition Value, avoids manual search data and calculating, realizes the function of automatic token distribution.
Example IV
The embodiment of the present invention three provides a kind of token automatic distributing method, and Fig. 4 is the generation that the embodiment of the present invention four provides The flow diagram of coin automatic distributing method.As shown in figure 4, the method for the present embodiment may include:
Step 401, the token for receiving business end distributes request, and is token distribution request setting identifier, described Identifier is corresponding with block chain account, convenient for token distribution all under the corresponding identifier of block chain account management Request;
Step 402, the token distribution request that will acquire is added in message queue, and the message queue is in prison always State is listened, as long as there is token distribution request to enter, so that it may automatic to execute token distribution;
Step 403, extract in the message queue a token distribution request, be sent to corresponding block chain account, Token distribution is executed automatically according to parameter is preset convenient for block chain account;
Step 404, the newest estimation information in reading database or local cache, the estimation information includes service charge Valuation, rate, token value, the estimation information is to be stored in database or local cache after obtaining and parse by third party In;
Step 405, the service charge for needing to deduct is calculated automatically according to the estimation information read, and according to current token valence Lattice calculate the token value that should distribute;
Step 406, the distribution of token is executed automatically according to the token value that should distribute being calculated;
Step 407, the order information in timing acquisition database, the order information are that the block chain executes token point It is automatically generated when hair;
Step 408, detect whether the order information generates receipts of transactions;
Step 409, token distribution will be executed and completes the status information of token distribution, be recorded in database, convenient for looking into Ask whether token is distributed successfully and order details
Method in the present embodiment can be applied to the token distribution of public chain project.
The token distribution method of the present embodiment is illustrated below by a simply example, wherein step 401~408 With embodiment three, after the present embodiment mainly illustrates that token distribution is completed, inquiry token whether at the project side for being issued to request, And the details of token distribution process.
In the present embodiment, when block chain account executes token distribution, suspended state is carried out first, while generating block chain and ordering Odd numbers, in the database by state recording at this time;When detecting that token distribution is completed and generates receipt information, again by order Information is recorded in database.After transferring accounts, when user needs to check details of transferring accounts, or when unsuccessful needs of transferring accounts are checked Where when something goes wrong, can be inquired in data.
When being connection directly into block chain when inquiry, efficiency is very low, and one layer of cache layer, the result of inquiry can be added thus It can also be with long-term preservation in the buffer.Later when user initiates inquiry request again, the partial data directly is read from caching, Improve search efficiency.
Embodiment five
The embodiment of the present invention five provides a kind of token automatic distributing device.Fig. 5 is the generation that the embodiment of the present invention four provides The structural block diagram of coin automatic distributing device.As shown in figure 5, the device in the present embodiment, may include:
Receiving module 501: the token for receiving business end distributes request, and is token distribution request setting mark Symbol, the identifier is corresponding with block chain account, convenient for all under the corresponding identifier of block chain account management Token distribution request;
Message queue adding module 502: the token distribution request for will acquire is added in message queue, described to disappear Breath queue is in listening state always, mainly has token distribution request to enter, so that it may automatic to execute token distribution;
Token distribution module 503, for extract a token in the message queue distribution request, be sent to it is corresponding Block chain account executes token distribution according to parameter is preset convenient for block chain account automatically.
It further, further include judgment module, for judging whether token distributes completion, token distribution is completed then to take out again Take a token distribution request;The judgment module judges token distributes the method whether completed, comprising:
Order information in timing acquisition database, the order information are automatic when being block chain execution token distribution It generates;
Detect whether the order information generates receipts of transactions, if so, showing that token distribution is completed.
Further, the token distribution module executes the automatic of token according to parameter is preset for block chain account Distribution, comprising:
Newest estimation information in reading database or local cache, the estimation information includes service charge valuation, speed Rate, token value, the estimation information is stored in database or local cache after obtaining and parse by third party;
It calculates the service charge for needing to deduct automatically according to the estimation information read, and is answered according to current token calculation of price The token value of distribution;
Execute the distribution of token automatically according to the token value that should distribute being calculated.
Further, the token distribution module executes token distribution and completes the status information of token distribution, is recorded in In database, whether distribute successfully and order details convenient for inquiry token.
Embodiment six
The embodiment of the present invention six provides a kind of electronic equipment, including memory and processor storage for storing one Or a plurality of computer instruction, wherein one or more computer instruction is executed by the processor to realize any of the above-described implementation Token automatic distributing method described in example.
The embodiment of the invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage There is computer program, token described in any of the above-described embodiment may be implemented in the computer program when executing computer automatic Distribution method.It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description Specific work process, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
Illustratively, computer program can be divided into one or more module/units, and one or more module/ Unit is stored in memory, and is executed by processor, to complete the present invention.One or more module/units can be energy The series of computation machine program instruction section of specific function is enough completed, the instruction segment is for describing computer program in computer equipment In implementation procedure.
Computer equipment can be desktop PC, notebook, palm PC and cloud server etc. and calculate equipment.Meter Calculating machine equipment may include, but be not limited only to, processor, memory.It will be understood by those skilled in the art that the present embodiment is only The example of computer equipment does not constitute the restriction to computer equipment, may include components more more or fewer than diagram, or Person combines certain components or different components, such as computer equipment can also be set including input-output equipment, network insertion Standby, bus etc..
Processor can be central processing unit (Central Processing Unit, CPU), can also be that other are logical With processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
Memory can be the internal storage unit of computer equipment, such as the hard disk or memory of computer equipment.Storage Device is also possible to the External memory equipment of computer equipment, such as the plug-in type hard disk being equipped in computer equipment, intelligent storage Block (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc.. Further, memory can also both including computer equipment internal storage unit and also including External memory equipment.Memory For storing other programs and data needed for computer program and computer equipment.Memory can be also used for temporarily depositing Store up the data that has exported or will export.
The embodiment of the invention also provides a kind of computer readable storage medium for being stored with computer program, computer journeys The token automatic distributing method of any of the above-described is realized when sequence executes computer.
Specific embodiments of the present invention are described in detail above.It should be appreciated that those skilled in the art are without wound The property made labour, which according to the present invention can conceive, makes many modifications and variations.Therefore, all technician in the art Pass through the available technology of logical analysis, reasoning, or a limited experiment on the basis of existing technology under this invention's idea Scheme, all should be within the scope of protection determined by the claims.

Claims (10)

1. a kind of token automatic distributing method characterized by comprising
The token at reception business end distributes request, and is token distribution request setting identifier, the identifier and block Chain account is corresponding, distributes request convenient for token all under the corresponding identifier of block chain account management;
The token distribution request that will acquire is added in message queue, and the message queue is in listening state always, as long as There is token distribution request to enter, so that it may automatic to execute token distribution;
Extract the token distribution request in the message queue, be sent to corresponding block chain account, convenient for block chain account Family executes token distribution according to parameter is preset automatically.
2. token automatic distributing method according to claim 1, which is characterized in that the token automatic distributing method is also wrapped It includes and judges whether token distributes completion, token distribution is completed then to extract a token distribution request again;The judgement token point The method whether hair is completed, comprising:
Order information in timing acquisition database, the order information are that the block chain automatically generates when executing token distribution 's;
Detect whether the order information generates receipts of transactions, if so, showing that token distribution is completed.
3. token automatic distributing method according to claim 1, which is characterized in that the block chain account according to setting in advance It sets parameter and executes token distribution automatically, comprising:
Newest estimation information in reading database or local cache, the estimation information includes service charge valuation, rate, generation Coin value, the estimation information is stored in database or local cache after obtaining and parse by third party;
It calculates the service charge for needing to deduct automatically according to the estimation information read, and should be distributed according to current token calculation of price Token value;
Execute the distribution of token automatically according to the token value that should distribute being calculated.
4. token automatic distributing method according to claim 2, which is characterized in that the hang-up shape for starting token distribution State, token distribution after the completion of complete order information, record in the database, convenient for inquiry token whether distribute successfully and Order details.
5. a kind of token automatic distributing device characterized by comprising
Receiving module, the token for receiving business end distribute request, and are token distribution request setting identifier, described Identifier is corresponding with block chain account, convenient for token distribution all under the corresponding identifier of block chain account management Request;
Message queue adding module, the token distribution request for will acquire are added in message queue, the message queue Always it is in listening state, mainly has token distribution request to enter, so that it may automatic to execute token distribution;
Token distribution module is sent to and corresponding block chain for extracting the distribution request of a token in the message queue Account executes token distribution according to parameter is preset convenient for block chain account automatically.
6. token automatic distributing device according to claim 5, which is characterized in that further include judgment module, for judging Whether token distributes completion, and token distribution is completed then to extract a token distribution request again;The judgment module judges token The method whether distribution is completed, comprising:
Order information in timing acquisition database, the order information are that the block chain automatically generates when executing token distribution 's;
Detect whether the order information generates receipts of transactions, if so, showing that token distribution is completed.
7. token automatic distributing device according to claim 5, which is characterized in that the token distribution module is used for block Chain account executes the automatic distributing of token according to parameter is preset, comprising:
Newest estimation information in reading database or local cache, the estimation information includes service charge valuation, rate, generation Coin value, the estimation information is stored in database or local cache after obtaining and parse by third party;
It calculates the service charge for needing to deduct automatically according to the estimation information read, and should be distributed according to current token calculation of price Token value;
Execute the distribution of token automatically according to the token value that should distribute being calculated.
8. token automatic distributing device according to claim 6, which is characterized in that the token distribution module executes token Whether distribution and the status information for completing token distribution, are recorded in database, distribute successfully and order convenient for inquiry token Details.
9. a kind of electronic equipment, which is characterized in that including memory and processor, the memory is for storing one or more Computer instruction, wherein one or more computer instruction is executed by the processor to realize as in claim 1-4 Described in any item token automatic distributing methods.
10. a kind of computer readable storage medium for being stored with computer program, which is characterized in that the computer program makes to count Such as token automatic distributing method of any of claims 1-4 is realized when calculation machine executes.
CN201910381304.XA 2019-05-08 2019-05-08 A kind of token automatic distributing method, apparatus and computer equipment Pending CN110288469A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910381304.XA CN110288469A (en) 2019-05-08 2019-05-08 A kind of token automatic distributing method, apparatus and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910381304.XA CN110288469A (en) 2019-05-08 2019-05-08 A kind of token automatic distributing method, apparatus and computer equipment

Publications (1)

Publication Number Publication Date
CN110288469A true CN110288469A (en) 2019-09-27

Family

ID=68002154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910381304.XA Pending CN110288469A (en) 2019-05-08 2019-05-08 A kind of token automatic distributing method, apparatus and computer equipment

Country Status (1)

Country Link
CN (1) CN110288469A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078745A (en) * 2019-12-20 2020-04-28 京东数字科技控股有限公司 Data uplink method and device based on block chain technology

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107240018A (en) * 2017-07-25 2017-10-10 成都励睿德企业管理有限公司 A kind of method and system for being used to pay tranaction costs in block chain network
CN109409953A (en) * 2018-10-22 2019-03-01 联动优势科技有限公司 A kind of marketing cost settlement system and method based on block chain
CN109510860A (en) * 2018-08-31 2019-03-22 深圳市元征科技股份有限公司 A kind of data processing method, relevant device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107240018A (en) * 2017-07-25 2017-10-10 成都励睿德企业管理有限公司 A kind of method and system for being used to pay tranaction costs in block chain network
CN109510860A (en) * 2018-08-31 2019-03-22 深圳市元征科技股份有限公司 A kind of data processing method, relevant device and system
CN109409953A (en) * 2018-10-22 2019-03-01 联动优势科技有限公司 A kind of marketing cost settlement system and method based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈贵: ""解构ICO融资:区块链数字货币何去何从——兼析《关于防范代币发型融资风险的公告》"", 《互联网金融法律评论》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078745A (en) * 2019-12-20 2020-04-28 京东数字科技控股有限公司 Data uplink method and device based on block chain technology

Similar Documents

Publication Publication Date Title
Golab et al. Analyzing consistency properties for fun and profit
CN107644340A (en) Risk Identification Method, client device and risk recognition system
CN109559228B (en) Resource transfer method, device, computer equipment and readable storage medium
CN107992543A (en) Question and answer exchange method and device, computer equipment and computer-readable recording medium
CN109242500A (en) Block chain transaction validation verification method, apparatus and storage medium
CN109658050A (en) A kind of management method and equipment of wage report
CN112215663A (en) User point currency method, equipment and medium
CN110060139A (en) Accounting processing method and device
CN110019194A (en) Verification of data method, apparatus, computer equipment and storage medium
CN110557276A (en) Block chain computer room management system based on Fabric architecture
CN109785055A (en) A kind of internet ticketing service commercialization mode
CN101853476B (en) A kind of financial circles automatic network verification system of customer identity and method
CN113590718B (en) Trusted data chain crossing system based on block chain all-in-one machine
CN110288469A (en) A kind of token automatic distributing method, apparatus and computer equipment
CN114186975A (en) Configuration method, device, equipment and storage medium of approval process
CN109325615A (en) A kind of Intelligent worker assigning method and device
CN112907372A (en) Distributed power supply end-to-end transaction method and system based on intelligent contract
CN116934061A (en) Block chain-based carbon emission management method, system, equipment and storage medium
CN110060163A (en) Method of commerce, system, medium and the device of podcast chain based on ether mill
CN109544323A (en) A kind of intelligent management system of credit card number
CN112651700A (en) Payroll bonus dispensing system based on blockchain technology and central bank digital currency
CN104715421A (en) Method and device for processing electric charge data
CN113240147A (en) Foreign currency and zero note reserved exchange method, device and system based on block chain
CN109118191A (en) The method and block chain node device of property fees management
CN110349357A (en) Remote auto checking system, device and method based on end command forwarding

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190927

RJ01 Rejection of invention patent application after publication