Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Token transaction method and device based on blockchain, electronic equipment and storage medium

A transaction method and block chain technology, applied in the field of block chain-based token transaction methods, devices, electronic equipment and storage media, can solve the problems of complicated transactions, inability to automate transactions, high transaction costs, etc. Equality, avoiding monopoly, and improving data stability

Pending Publication Date: 2021-03-02
CHINA CITIC BANK
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, for a market maker with a large centralized institution, it needs to be operated by a professional institution. In this regard, its institutional operation and transaction costs are high; and transactions between assets need to be completed through a centralized market maker trading system, which cannot be automated transaction, complicated transaction

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Token transaction method and device based on blockchain, electronic equipment and storage medium
  • Token transaction method and device based on blockchain, electronic equipment and storage medium
  • Token transaction method and device based on blockchain, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment 1

[0081] The currency is issued based on a unified standard, and the ERC-20 standard is selected in this application. The following steps are the token issuance process:

[0082] User A builds a token smart contract:

[0083] The functions of the AllOfToken smart contract are as follows:

[0084] Define the ERC-20 standard interface;

[0085] The AllOfToken smart contract implements the standard interface of ERC-20:

[0086] Initialization attributes: specify the token name name: AllOfToken, token abbreviation symbol: AOT, the smallest unit of the token that can be traded with decimal places 0.000000000000000001decimals-18 digits, the total supply of tokens issued totalSupply-100000000, initialize the account of the token will own all tokens;

[0087] Token transfer transaction transfer, used to transfer tokens from one address to another:

[0088] Check whether the receiver's to address is legal;

[0089] Check whether the sender's from balance is sufficient;

[0090] Ch...

specific Embodiment 2

[0166] User A creates a token pool by himself to provide token liquidity and obtain the benefits of transaction fees paid by traders for each transaction.

[0167] First, user A associates his wallet account with 0x1016f75c54c607f082ae6b0881fac0abeda21781;

[0168] User A creates a token pool:

[0169] Set the value function algorithm:

[0170]

[0171] Select VBI, ESC, WESH, UIK, WFT five tokens to add to the token pool;

[0172] And calculate the weight of each token in the token pool (can be added according to any ratio), as follows:

[0173]

[0174] Calculate the value function V according to the value function definition, and V is a constant value after initialization:

[0175] V=14.02 6.00% *14.02 6.00% *100.48 43.00% *39.72 17.00% *65.43 28.00%

[0176] ≈1.171669*1.171669*7.259292*1.869957*3.224167

[0177] ≈60.083233

[0178] Set the fee rate of the token pool to 0.07%. This parameter determines the additional transaction cost that the trader needs to...

specific Embodiment 3

[0211] Token transactions are as follows:

[0212]

[0213] After user B selects the currency to sell, the quantity to sell, and the currency to buy, he sends a request to buy tokens to the market maker smart contract in the blockchain: transaction ID, buy tokens, sell tokens, sell tokens Number of coins {0135366759, VBI, WESH, 2.003005220767003784};

[0214] When the market maker smart contract parses the request and user B sends the token WESH to obtain the token VBI, all other token balances remain unchanged. Calculate the number of VBI tokens that can be purchased by 2.003005220767003784 WESH tokens;

[0215] Knowing that the value function after the transaction should be the same as before the transaction, the formula is derived as follows:

[0216]

[0217]

[0218]

[0219]

[0220]

[0221] The selling volume of token WESH sold by Ai: Ai=2.003005220767003784

[0222] Bo is the current balance of the sold token WESH: Bo=100.48

[0223] Bi is the cu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the technical field of online transaction, in particular to a token transaction method and device based on a block chain, electronic equipment and a storage medium. The tokentransaction method based on the block chain comprises the following steps: receiving a token transaction request of a user; analyzing the token transaction request, and obtaining token transaction content carried in the token transaction request; performing transaction processing on the token transaction content based on the market maker intelligent contract accessed to the blockchain network to obtain a corresponding token transaction result; and sending the token transaction result to the user. According to the token transaction method and device, automatic transaction of tokens is achieved,decentralization is achieved through introduction and combination of the blockchain network, centralized monopoly is avoided, the transaction peers and data stability are improved, and the transaction safety is improved.

Description

technical field [0001] The present application relates to the technical field of online transactions, in particular to a blockchain-based token transaction method, device, electronic equipment, and storage medium. Background technique [0002] At present, in the trading of various commodities, a centralized large institution generally assumes the role of a market maker, and ordinary users conduct transactions with market makers through a centralized trading system. However, for a market maker with a large centralized institution, it needs to be operated by a professional institution. In this regard, its institutional operation and transaction costs are high; and transactions between assets need to be completed through a centralized market maker trading system, which cannot be automated Transactions, transactions are complicated. Based on this, how to realize the automated trading of tokens has become a technical problem that needs to be solved urgently. Contents of the in...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06Q40/04G06Q20/38H04L29/06
CPCG06Q40/04G06Q20/3829H04L63/0428H04L9/50
Inventor 陈志明姜鹏陈晨
Owner CHINA CITIC BANK
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products