CN114331408A - Digital asset transaction method, apparatus and storage medium - Google Patents

Digital asset transaction method, apparatus and storage medium Download PDF

Info

Publication number
CN114331408A
CN114331408A CN202111680800.9A CN202111680800A CN114331408A CN 114331408 A CN114331408 A CN 114331408A CN 202111680800 A CN202111680800 A CN 202111680800A CN 114331408 A CN114331408 A CN 114331408A
Authority
CN
China
Prior art keywords
transaction
asset
transferred
assets
type
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
CN202111680800.9A
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.)
Shanghai Zhongjian Financial Technology Co ltd
Zhejiang Geely Holding Group Co Ltd
Original Assignee
Shanghai Zhongjian Financial Technology Co ltd
Zhejiang Geely Holding Group 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 Shanghai Zhongjian Financial Technology Co ltd, Zhejiang Geely Holding Group Co Ltd filed Critical Shanghai Zhongjian Financial Technology Co ltd
Priority to CN202111680800.9A priority Critical patent/CN114331408A/en
Publication of CN114331408A publication Critical patent/CN114331408A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses a digital asset transaction method, a device and a storage medium, wherein the digital asset transaction method comprises the following steps: when the node of the native block chain detects the transaction information, acquiring the transaction type of the transaction information; when the transaction type is asset transfer, extracting a first transaction parameter corresponding to the asset transfer, wherein the first transaction parameter comprises an account address of the issuing terminal, the type of the asset to be transferred and the quantity of the asset to be transferred; and when the assets of the issuing terminal are found on the native block chain according to the account address of the issuing terminal, carrying out asset transfer transaction according to the types of the assets to be transferred and the quantity of the assets to be transferred. According to the method and the system, the digital asset transaction is carried out on the native block chain, the dependence of a contract virtual machine is avoided, the transaction efficiency of the digital asset is improved, and the resources of the block chain are saved.

Description

Digital asset transaction method, apparatus and storage medium
Technical Field
The present application relates to the field of digital transaction technologies, and in particular, to a digital asset transaction method, apparatus, and storage medium.
Background
The financial assets are symmetrical to the physical assets, are generalized intangible assets, are assets owned by a unit or an individual in the form of value, are intangible rights for asking for the physical assets, can bring the immediate or long-term currency receiving and importing flow to a holder, and are a general term of all financial tools which can trade in an organized financial market and have actual price and future valuation.
At present, most of financial asset transactions of a blockchain are realized in an intelligent contract mode of an Ethernet, and cannot be executed when the financial asset transactions leave an execution environment of a virtual machine, but the execution overhead of the virtual machine is high, so that the transaction efficiency of digital assets is low.
Disclosure of Invention
The embodiment of the application aims to solve the problem of low transaction efficiency of the digital assets by providing a digital asset transaction method, a digital asset transaction device and a storage medium.
To achieve the above object, an aspect of the present application provides a digital asset transaction method applied to a native blockchain of a digital asset, the method including:
when the node of the native block chain detects transaction information, acquiring the transaction type of the transaction information;
when the transaction type is asset transfer, extracting a first transaction parameter corresponding to the asset transfer, wherein the first transaction parameter comprises an account address of an issuing terminal, the type of the asset to be transferred and the quantity of the asset to be transferred;
and when the assets of the issuing terminal are found on the native block chain according to the account address of the issuing terminal, carrying out asset transfer transaction according to the types of the assets to be transferred and the quantity of the assets.
Optionally, the step of performing an asset transfer transaction according to the type of the asset to be transferred and the quantity of the asset to be transferred includes:
determining the assets to be transferred according to the types of the assets to be transferred;
acquiring the price of the assets to be transferred;
and determining the amount of money to be paid according to the price of the assets to be transferred and the quantity of the assets to be transferred, and sending the amount of money to be paid to a purchasing terminal so that the purchasing terminal pays the amount of money to be paid.
Optionally, after the step of performing an asset transfer transaction according to the type of the asset to be transferred and the quantity of the asset to be transferred, the method further includes:
and updating the asset information stored in the first target database according to the type of the assets to be transferred and the quantity of the assets to be transferred after detecting that the transaction is successful.
Optionally, after the step of obtaining the transaction type of the transaction information when the node of the native blockchain detects the transaction information, the method includes:
when the transaction type is the issued asset, extracting a second transaction parameter corresponding to the issued asset, wherein the second transaction parameter comprises an account address of an issuing terminal, an issued asset type, an issued asset quantity and an issued asset price;
storing the second transaction parameters to a second target database.
Optionally, the step of storing the second transaction parameters to a second target database comprises:
determining index information and a mapping value associated with the index information according to the second transaction parameter;
and storing the second transaction parameter to a second target database according to the index information and the mapping value.
Optionally, before the step of obtaining the transaction type of the transaction information when the node of the native blockchain detects the transaction information, the method further includes:
verifying the transaction information;
and when the transaction information meets the uplink condition, executing the step of obtaining the transaction type of the transaction information.
In addition, to achieve the above object, another aspect of the present application further provides a digital asset transaction method applied to a terminal, the method including:
receiving a transaction request sent by a user;
acquiring transaction information according to the transaction request;
uploading the transaction information to a native blockchain to cause the native blockchain to perform a corresponding asset transaction based on the transaction information.
Optionally, the step of obtaining transaction information according to the transaction request includes:
acquiring a transaction type according to the transaction request, and displaying a corresponding transaction interface according to the transaction type;
receiving the transaction information input based on the transaction interface.
In addition, in order to achieve the above object, another aspect of the present application further provides a digital asset transaction device, which includes a memory, a processor and a digital asset transaction program stored on the memory and running on the processor, wherein the processor implements the steps of the digital asset transaction method as described above when executing the digital asset transaction program.
In addition, to achieve the above object, another aspect of the present application further provides a storage medium having a digital asset transaction program stored thereon, the digital asset transaction program, when executed by a processor, implementing the steps of the digital asset transaction method as described above.
The application provides a digital asset transaction method, which comprises the steps of acquiring a transaction type of transaction information when the transaction information is detected at a node of a native block chain; when the transaction type is asset transfer, extracting a first transaction parameter corresponding to the asset transfer, wherein the first transaction parameter comprises an account address of the issuing terminal, the type of the asset to be transferred and the quantity of the asset to be transferred; and when the assets of the issuing terminal are found on the native block chain according to the account address of the issuing terminal, carrying out asset transfer according to the types of the assets to be transferred and the quantity of the assets to be transferred. According to the method and the system, the digital asset transaction is carried out on the native block chain, the dependence of a contract virtual machine is avoided, the transaction efficiency of the digital asset is improved, and the resources of the block chain are saved.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram of a first embodiment of a digital asset transaction method of the present application;
FIG. 3 is a schematic flow chart of the first embodiment of the digital asset transaction method of the present application after step S10;
FIG. 4 is a schematic flow chart diagram of a second embodiment of a digital asset transaction method of the present application;
FIG. 5 is a schematic flow chart diagram illustrating one embodiment of a digital asset transaction method of the present application;
FIG. 6 is a schematic diagram of the classification design of transaction types of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
At present, most of financial asset transactions of a blockchain are realized in an intelligent contract manner of an ethernet, and cannot be executed if the financial asset transactions leave from an execution environment of a virtual machine, but the virtual machine has the defects of high execution overhead and low efficiency, so that at least the following problems exist:
first, the trading efficiency of digital assets is low;
second, the resource consumption of the blockchain is large.
Based on this, the present application proposes the following embodiments, when the node of the native block chain detects the transaction information, the transaction type of the transaction information is obtained; when the transaction type is asset transfer, extracting a first transaction parameter corresponding to the asset transfer, wherein the first transaction parameter comprises an account address of an issuing terminal, the type of the asset to be transferred and the quantity of the asset to be transferred; and when the assets of the issuing terminal are found on the native block chain according to the account address of the issuing terminal, carrying out asset transfer according to the types of the assets to be transferred and the quantity of the assets to be transferred. According to the method and the system, the digital asset transaction is carried out on the native block chain, the dependence of a contract virtual machine is avoided, the transaction efficiency of the digital asset is improved, and the resources of the block chain are saved.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a terminal device in a hardware operating environment according to an embodiment of the present application.
As shown in fig. 1, the terminal device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal device configuration shown in fig. 1 does not constitute a limitation of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a digital asset transaction program may be included in a memory 1005, which is a storage medium.
In the terminal device shown in fig. 1, the network interface 1004 is mainly used for data communication with the background server; the user interface 1003 is mainly used for data communication with a client (user side); at a terminal that is a native blockchain of digital assets, the processor 1001 may be configured to invoke a digital asset trading procedure in the memory 1005 and perform the following operations:
when the node of the native block chain detects transaction information, acquiring the transaction type of the transaction information;
when the transaction type is asset transfer, extracting a first transaction parameter corresponding to the asset transfer, wherein the first transaction parameter comprises an account address of an issuing terminal, the type of the asset to be transferred and the quantity of the asset to be transferred;
and when the assets of the issuing terminal are found on the native block chain according to the account address of the issuing terminal, carrying out asset transfer transaction according to the types of the assets to be transferred and the quantity of the assets.
When the terminal is a terminal, the processor 1001 may be configured to invoke a digital asset transaction procedure in the memory 1005 and perform the following operations:
receiving a transaction request sent by a user;
acquiring transaction information according to the transaction request;
uploading the transaction information to a native blockchain to cause the native blockchain to perform a corresponding asset transaction based on the transaction information.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the digital asset transaction method of the present application.
It should be noted that while a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different than that shown or described herein.
The digital asset transaction method of the embodiment is applied to a native block chain of a digital asset, and comprises the following steps:
step S10, when the node of the native block chain detects the transaction information, the transaction type of the transaction information is obtained;
it should be noted that the intelligent contract of the blockchain needs to run in an environment with isolated resources, which is usually run in a virtual machine, and the running platform of the virtual machine is the blockchain, where the native blockchain refers to the blockchain that does not run the intelligent contract, that is, the native blockchain does not run the virtual machine, and the issuing and selling of the digital assets can be performed on the native blockchain.
Alternatively, in a Block chain system, data is permanently recorded in the form of files, which may be referred to as blocks (blocks). A block may contain a set of transaction records that occurred over a period of time and that were not recorded by a previous block. The blocks created are linked in sequence, and typically a new block will load the end of the block chain and link to the previous block. Wherein, the Transaction (Transaction) represents one operation of the user in the Transaction system, which causes one change of the state of the ledger, and adds a corresponding Transaction record in the ledger; the block records the transaction and state results occurring within a period of time, which is a common consensus on the current account book state; the Chain (Chain) is formed by connecting blocks in series according to the creation time sequence and is a log record of the state change of the whole account book.
Optionally, a tile is a data structure that records transactions. Each block consists of a block head and a block body, the block body is responsible for recording transaction information in a previous period, and the block head records information for linking a parent block and verifying transaction data.
In this embodiment, when a user wants to issue and buy and sell a digital asset, corresponding transaction information may be uploaded to the native area fund chain, and when a node of the native area fund chain detects the transaction information uploaded by the user, the native area fund chain determines a transaction type, such as asset transfer, issued asset, transfer, and the like, based on the transaction information.
Optionally, when detecting that the transaction information uploaded by the user through the terminal is yes, the raw block chain needs to verify the transaction information to determine whether the transaction information satisfies an uplink condition, where the uplink condition includes an uplink mode, uplink content, uplink data size, and the like. And if the transaction information meets the uplink condition, the original block chain allows the transaction information to be uplink.
Step S20, when the transaction type is asset transfer, extracting a first transaction parameter corresponding to the asset transfer, wherein the first transaction parameter comprises an account address of an issuing terminal, the type of the asset to be transferred and the quantity of the asset to be transferred;
in this embodiment, after the transaction information is linked, the native blockchain performs a corresponding asset transaction based on the transaction type in the transaction information. When the transaction type is asset transfer, the native block chain extracts a first transaction parameter corresponding to the asset transfer from the transaction information, wherein the first transaction parameter comprises an account address of the issuing terminal, an asset type to be transferred and the quantity of the assets to be transferred, the asset type to be transferred refers to the assets which the user wants to purchase, and the quantity of the assets to be transferred refers to the purchase quantity of the assets.
Alternatively, assuming that the user wants to purchase funds, the user needs to determine which issuing terminals issue funds, and in general, the same issuing terminal may issue multiple types of funds, and in this case, after determining the issuing terminal, the type of funds to be purchased in the issuing terminal needs to be determined, and at the same time, the purchase amount of the funds needs to be determined. Based on this, the transaction information needs to include the above information, and the native blockchain can determine the fund information that the user needs to purchase based on the above information.
Step S30, when the asset of the issuing terminal is found on the native block chain according to the account address of the issuing terminal, carrying out asset transfer transaction according to the type of the asset to be transferred and the quantity of the asset to be transferred.
In this embodiment, after the native block chain determines the account address of the issuing terminal based on the first transaction information, the corresponding issuing terminal and the asset information of the issuing terminal are searched on the native chain based on the account address, and then the asset transfer transaction is performed according to the type of the asset to be transferred and the quantity of the asset to be transferred.
Optionally, the native block chain determines the assets to be transferred according to the types of the assets to be transferred, then obtains the prices of the assets to be transferred, determines the amount of money to be paid according to the prices of the assets to be transferred and the quantity of the assets to be transferred, and sends the amount of money to be paid to the purchasing terminal, so that the purchasing terminal pays the amount of money to be paid.
In one embodiment, after detecting that the transaction is successful, the native blockchain updates the asset information stored in the first target database according to the asset type and the quantity of the assets to be transferred. Optionally, each user corresponds to one account, and each account is created with a corresponding asset merkel tree for storing asset information corresponding to the account. When the asset information of the account changes, the asset information needs to be updated in time.
In the embodiment, when the node of the native block chain detects the transaction information, the transaction type of the transaction information is acquired; when the transaction type is asset transfer, extracting a first transaction parameter corresponding to the asset transfer, wherein the first transaction parameter comprises an account address of the issuing terminal, the type of the asset to be transferred and the quantity of the asset to be transferred; and when the assets of the issuing terminal are found on the native block chain according to the account address of the issuing terminal, carrying out asset transfer transaction according to the types of the assets to be transferred and the quantity of the assets to be transferred. According to the method and the device, the digital asset transaction is carried out on the native block chain, so that the dependence of a contract virtual machine is eliminated, the transaction efficiency of the digital asset is improved, and the resources of the block chain are saved.
Further, referring to fig. 3, fig. 3 is a schematic flow chart of a digital asset transaction method according to a second embodiment of the present application.
The second embodiment of the digital asset transaction method of the present embodiment is different from the first embodiment in that, after the step S10, it includes:
step S11, when the transaction type is the issued asset, extracting a second transaction parameter corresponding to the issued asset, wherein the second transaction parameter comprises an account address of an issuing terminal, an issued asset type, an issued asset quantity and an issued asset price;
step S12, storing the second transaction parameter in a second target database.
In this implementation, if the transaction type is an issued asset, the native blockchain extracts a second transaction parameter corresponding to the issued asset based on the transaction information, wherein the second transaction parameter includes an account address of the issuing terminal, an issued asset type, an issued asset quantity, and an issued asset price, and then stores the second transaction parameter in the second target database.
Optionally, the index information and the mapping value associated with the index information are determined according to the second transaction parameter, and then the second transaction parameter is stored in the second target database according to the index information and the mapping value. For example, the native blockchain stores transaction information into a KV database (i.e., Key-Value database), where the K Value is index information and the V Value is a mapping Value of the K Value, optionally, Key + account address + issuer + code, and Value is Asset serialized Value. Further, the assets of the KV database are used for creating an asset Merkle Tree (Merkle Tree) for an account in the form of the Merkle Tree, all the assets of the account are inserted into the Merkle Tree, and the Merkle Tree is stored. Where a merkel tree is a tree that stores hash values, the leaves of the merkel tree are the hash values of a block of data (e.g., a file or collection of files), and the non-leaf nodes are the hashes of their corresponding child node concatenation strings.
In the embodiment, when the transaction type is determined to be the issued asset, the transaction parameters corresponding to the issued asset are extracted, and then the transaction parameters are stored in the corresponding database, so that data chaining is realized, dependence on a contract virtual machine is eliminated, the transaction efficiency of the digital asset is improved, and resources of a block chain are saved.
Further, referring to fig. 4, fig. 4 is a schematic flow chart of a third embodiment of the digital asset transaction method of the present application.
The digital asset transaction method of the embodiment is applied to a terminal, and comprises the following steps:
step S40, receiving a transaction request sent by a user;
step S50, acquiring transaction information according to the transaction request;
and step S60, uploading the transaction information to a native block chain, so that the native block chain executes corresponding asset transaction based on the transaction information.
In this embodiment, when a terminal receives a transaction request sent by a user, the terminal obtains corresponding transaction information based on the transaction request, then calls an uplink condition of the transaction information, processes transaction data based on the uplink condition, uploads the processed transaction data to a native block chain, and then performs corresponding asset transaction by the native block chain based on a transaction type in the transaction information, for example, when the transaction type is an issued asset, performs the issued asset transaction on the chain; when the transaction type is asset transfer, performing asset transfer between the two accounts on the chain; when the transaction type is transfer, then the transfer is made on the chain.
Optionally, different transaction types and different transaction information to be filled in are different, based on which, after receiving a transaction request sent by a user, the native block chain acquires the transaction type based on the transaction request, and then displays a corresponding transaction interface based on the transaction type, so that the user can input different transaction information based on the transaction interface.
Optionally, the transaction information is information for performing digital transactions on different types of digital assets, the transaction information may be directly sent to a node in the blockchain network by the application client, or the transaction information may also be sent to a proxy server by the application client (for example, the proxy server may be a transaction platform), and then the transaction platform sends the transaction information to the node in the blockchain network, where the transaction platform may parse transaction contents in the transaction information and generate the transaction information conforming to the format of the blockchain system.
In the embodiment, after a transaction request sent by a user is received, a transaction type is obtained based on the transaction request, a corresponding transaction interface is displayed based on the transaction type, transaction information input by the user based on the transaction interface is received, and finally the transaction information is uploaded to the native block chain, and the native block chain executes corresponding asset transaction based on the transaction information.
To better illustrate the digital asset transaction method of the present application, reference is made to fig. 5, where fig. 5 is a schematic flow chart of an embodiment of the digital asset transaction method of the present application.
In this embodiment, the digital assets are issued and sold on the native block chain by adding transaction types, where the added transaction types include: an issued asset (IssueAsset) and a paid asset (PayAsset).
Alternatively, the classification design of Transaction types is shown in fig. 6, and the Transaction structure Transaction includes: source _ address is the transaction initiator, nonce is the transaction number, type is the transaction type (create account, transfer, issue asset, pay/transfer asset) and tx transaction body.
Issuing assets: when a user needs to ISSUE an ASSET, a Transaction structure Transaction needs to be filled, wherein source _ address is an account address of an issuing terminal, nonce is an account number with 1 added to a chain nonce of the account, type is assigned as ISSUE _ ASSET, tx is assigned as IssueAsset, and the IssueAsset has the following structure:
Figure BDA0003444231040000091
Figure BDA0003444231040000101
wherein, the code field is the asset id, the amount is the total amount of the asset issued, and the print is the price of the issued asset (i.e. the exchange ratio of the native block chain token).
After the user fills in the transaction information, the transaction information is sent to the original block chain through the terminal, and the original block chain processes transactions based on transaction type classification. If the transaction type is an issued asset, then transaction parameters are extracted based on the transaction information to populate the asset structure:
Figure BDA0003444231040000102
wherein, issuers are issuers and are filled with source _ address of the transaction; code is asset id and is filled by a code field of IssueAsset; the issue _ account is the total issue amount and is filled by the account field of the Issueasset; owner _ amount is the remaining amount after sale. Then, Asset structure is saved to KV database, where Key is Asset + account address + issuer + code and Value is Asset serialized Value. The saving of the assets is to create an asset Merck tree for the account number in the form of a Merck tree, insert all the assets of the account number into the tree, and store the tree.
Transferring the assets: in order to buy and sell ASSETs, a user also needs to fill Transaction structure transactions when initiating an ASSET purchasing behavior, wherein source _ address is an account address of a purchasing terminal, nonce is a nonce added with 1 on a chain of the account, type is PAY _ ASSET, tx is PayAsset, and PayAsset has the following structure:
Figure BDA0003444231040000103
wherein, the dest _ address is the account address of the issuing terminal, the code is the asset id, and the amount is the purchase amount.
After the user fills in the transaction information, the transaction information is sent to the original block chain through the terminal, and the original block chain processes transactions based on transaction type classification. If the transaction type is transferring assets, searching an issuer (issuing terminal) based on dest _ address in the transaction information, then inquiring user assets from the database according to the issuer and the code splicing Key, converting the quantity of the native token to be paid to the issuer according to the asset price and the purchase quantity, simultaneously obtaining the asset quantity amount by the issuer and storing the asset quantity amount into an owner _ amount, inserting the obtained assets into a Merck asset tree of the account, wherein the storage mode of the acquired assets is the same as that of the issued assets, and finally submitting the acquired assets into the database.
In the embodiment, two transaction types of issuing assets and payment assets are added, so that the issuing and buying and selling of the digital assets on the native block chain are realized, the dependence on a contract virtual machine is eliminated, the transaction efficiency of the digital assets is improved, and the resources of the block chain are saved.
In addition, the application also provides a digital asset transaction device, which comprises a memory, a processor and a digital asset transaction program, wherein the digital asset transaction program is stored on the memory and run on the processor; when the transaction type is asset transfer, extracting a first transaction parameter corresponding to the asset transfer, wherein the first transaction parameter comprises an account address of the issuing terminal, the type of the asset to be transferred and the quantity of the asset to be transferred; and when the assets of the issuing terminal are found on the native block chain according to the account address of the issuing terminal, carrying out asset transfer transaction according to the types of the assets to be transferred and the quantity of the assets to be transferred. According to the method and the system, the digital asset transaction is carried out on the native block chain, the dependence of a contract virtual machine is eliminated, the transaction efficiency of the digital asset is improved, and the resources of the block chain are saved.
In addition, the present application also provides a storage medium having a digital asset transaction method program stored thereon, which when executed by a processor, implements the steps of the above digital asset transaction method.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While alternative embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following appended claims be interpreted as including alternative embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A digital asset transaction method applied to a native blockchain of a digital asset, the method comprising:
when the node of the native block chain detects transaction information, acquiring the transaction type of the transaction information;
when the transaction type is asset transfer, extracting a first transaction parameter corresponding to the asset transfer, wherein the first transaction parameter comprises an account address of an issuing terminal, the type of the asset to be transferred and the quantity of the asset to be transferred;
and when the assets of the issuing terminal are found on the native block chain according to the account address of the issuing terminal, carrying out asset transfer transaction according to the types of the assets to be transferred and the quantity of the assets.
2. The digital asset transaction method according to claim 1, wherein said step of conducting an asset transfer transaction according to said type of asset to be transferred and said quantity of assets to be transferred comprises:
determining the assets to be transferred according to the types of the assets to be transferred;
acquiring the price of the assets to be transferred;
and determining the amount of money to be paid according to the price of the assets to be transferred and the quantity of the assets to be transferred, and sending the amount of money to be paid to a purchasing terminal so that the purchasing terminal pays the amount of money to be paid.
3. The digital asset transaction method according to claim 1, wherein said step of conducting an asset transfer transaction based on said type of asset to be transferred and said quantity of assets to be transferred is followed by further comprising:
and updating the asset information stored in the first target database according to the type of the assets to be transferred and the quantity of the assets to be transferred after detecting that the transaction is successful.
4. The digital asset transaction method of claim 1, wherein said step of obtaining a transaction type of transaction information upon detection of transaction information by a node of said native blockchain comprises, after said step of:
when the transaction type is the issued asset, extracting a second transaction parameter corresponding to the issued asset, wherein the second transaction parameter comprises an account address of an issuing terminal, an issued asset type, an issued asset quantity and an issued asset price;
storing the second transaction parameters to a second target database.
5. The digital asset transaction method of claim 4, wherein said step of storing said second transaction parameters to a second target database comprises:
determining index information and a mapping value associated with the index information according to the second transaction parameter;
and storing the second transaction parameter to a second target database according to the index information and the mapping value.
6. The digital asset transaction method of claim 1, wherein said step of obtaining a transaction type of transaction information upon detection of transaction information by a node of said native blockchain further comprises, prior to said step of:
verifying the transaction information;
and executing the step of obtaining the transaction type of the transaction information when the transaction information meets the uplink condition.
7. A digital asset transaction method, applied to a terminal, the method comprising:
receiving a transaction request sent by a user;
acquiring transaction information according to the transaction request;
uploading the transaction information to a native blockchain to cause the native blockchain to perform a corresponding asset transaction based on the transaction information.
8. The digital asset transaction method according to claim 7, wherein said step of obtaining transaction information according to said transaction request comprises:
acquiring a transaction type according to the transaction request, and displaying a corresponding transaction interface according to the transaction type;
receiving the transaction information input based on the transaction interface.
9. A digital asset transaction apparatus, comprising a memory, a processor and a digital asset transaction program stored on the memory and run on the processor, the processor when executing the digital asset transaction program implementing the steps of the method according to any one of claims 1 to 8.
10. A storage medium having stored thereon a digital asset transaction program which, when executed by a processor, implements the steps of the method of any one of claims 1 to 8.
CN202111680800.9A 2021-12-29 2021-12-29 Digital asset transaction method, apparatus and storage medium Pending CN114331408A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111680800.9A CN114331408A (en) 2021-12-29 2021-12-29 Digital asset transaction method, apparatus and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111680800.9A CN114331408A (en) 2021-12-29 2021-12-29 Digital asset transaction method, apparatus and storage medium

Publications (1)

Publication Number Publication Date
CN114331408A true CN114331408A (en) 2022-04-12

Family

ID=81022906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111680800.9A Pending CN114331408A (en) 2021-12-29 2021-12-29 Digital asset transaction method, apparatus and storage medium

Country Status (1)

Country Link
CN (1) CN114331408A (en)

Similar Documents

Publication Publication Date Title
KR102569751B1 (en) Computer-implemented systems and methods for determining the state of machine-executable contracts implemented using blockchains
CN109933593B (en) Asset data recording method, device and equipment
CN107230092B (en) Accounting processing method and device and server
KR20200062640A (en) Method for managing artwork transaction inforamtion based on blockchain and node apparatus of blockchain
WO2020088104A1 (en) Method and apparatus for performing block chain record-keeping on webpage by means of file acquisition
US20230132804A1 (en) Method and apparatus for establishing association between virtual and real vehicles in blockchain network
KR20200041173A (en) Product information batch registration system and method for a plurality of open markets
CN109886676A (en) Method of payment, calculating equipment, storage medium for block chain network
US20120143712A1 (en) Secondary purchase method for online auction over a communications network
US20200104735A1 (en) Systems and methods for fuzzy symbol mapping and architecture
CN114331408A (en) Digital asset transaction method, apparatus and storage medium
CN114219589B (en) Virtual entity object generation and page display method and device and electronic equipment
CN108564354A (en) settlement method, service platform and server
CN110706051B (en) Order data aggregation method and device and server
CN111488353B (en) Intelligent contract implementation method and device for business data block chain
CN108961039B (en) Transaction processing method, device and system
KR20220135521A (en) Online trading method for investable goods
CN113592470A (en) Service processing method and device, electronic equipment and storage medium
CN107818483B (en) Network card and ticket recommendation method and system
CN111488343A (en) E-commerce data uplink method and device based on business data block chain
CN116228381B (en) Money issuing method, money issuing device, computer equipment and readable storage medium
CN112418878B (en) Rights service data processing method, device, equipment and storage medium
KR102576674B1 (en) Method, device and system for providing nft transaction mediation platform service based on attribute value in game environment
CN112199213B (en) Data interaction method and server for hanging bill interaction data
CN116894729A (en) Bank product transaction method, device, computer 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