Digital asset graph mutual conversion method based on block chain

By deploying smart contracts based on digital asset graph interchange protocol and NFT contract on the blockchain, the problem of not being able to seamlessly transfer different types of digital assets on the blockchain is solved, and seamless interchange between ERC20 and ERC721 assets is achieved, increasing the flexibility and convenience of blockchain transactions.

CN119599791APending Publication Date: 2025-03-11LINYI DAIMA BLOCKCHAIN NETWORK TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411640281.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

In the prior art, users cannot seamlessly transfer different types of digital assets on the blockchain, including homogeneous assets (ERC20) and non-homogeneous assets (ERC721).

Method used

By creating and deploying a smart contract based on the digital asset graph interchange protocol and NFT contract on the blockchain network, seamless interchange between ERC20 and ERC721 assets can be achieved. The method includes judging asset types, verifying user account permissions, and performing asset transfer operations on the blockchain.

Benefits of technology

It realizes seamless interchange between digital assets, provides more flexibility and convenience, and adds convenience to digital asset transactions on the blockchain network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119599791A_ABST
    Figure CN119599791A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of block chain application, in particular to a digital asset graph mutual conversion method based on a block chain. Comprising the following steps: if ERC20 assets are transferred and an integer number of NFTs are transferred at the same time, if verification of a user account is passed, deducting a corresponding number of ERC20 assets and NFT assets from the user account; and if the NFT is transferred, the ERC20 assets with the number of 10 * * declarations are also transferred at the same time, and if the verification of the user account is passed, the corresponding NFT and the corresponding number of ERC20 assets are deducted from the user account. According to the invention, seamless mutual conversion between digital assets, including transfer of homogenized assets and transfer of non-homogenized assets, is realized, so that more flexibility and convenience are provided for digital asset transactions on a block chain network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain application technology, and in particular to a digital asset graph conversion method based on blockchain. Background Art

[0002] Blockchain: Blockchain is a decentralized distributed database that records data in the form of blocks, forming a growing chain. Each block contains a certain amount of transaction information and is jointly verified and maintained by multiple nodes in the network. This decentralized feature makes blockchain highly secure and transparent.

[0003] ERC20 protocol: ERC20 is one of the most common asset standards on the Ethereum blockchain, which defines a set of specifications for issuing and trading assets on the Ethereum network. ERC20 assets are homogeneous, meaning that each asset is identical in function and value.

[0004] ERC721 protocol: ERC721 is another Ethereum asset standard. Unlike ERC20, it defines a standard for non-fungible assets (NFT). Each ERC721 asset is unique and has a unique identifier, so it can represent a unique item in digital assets, such as artwork, game props, etc.

[0005] Smart contracts: Smart contracts are automated contracts executed on the blockchain. They are written in code and perform specific actions under pre-determined conditions. Smart contracts can be deployed on the blockchain and executed by nodes on the blockchain network. They can implement various functions, including asset issuance, transfers, conditional transactions, etc.

[0006] In the prior art, users cannot seamlessly transfer different types of digital assets on the blockchain, including homogeneous assets (ERC20) and non-homogeneous assets (ERC721). To this end, the present invention proposes a digital asset graph conversion method based on blockchain. Summary of the invention

[0007] Based on this, it is necessary to propose a blockchain-based digital asset graph conversion method to address the problem that existing users cannot seamlessly transfer different types of digital assets on the blockchain.

[0008] The present invention is implemented by the following technical solution: a digital asset graph conversion method based on blockchain, the digital asset graph conversion method comprising the following method steps:

[0009] Create and deploy a digital asset graph transfer protocol and NFT contract on the blockchain network, with the precision of digital assets being decimals;

[0010] Receive a transfer request from a user, where the request includes a transfer amount and a receiving address to;

[0011] After receiving the transfer request, determine the type of assets to be transferred;

[0012] If the ERC20 asset is transferred, an integer number of NFTs (amount / 10**decimals) must also be transferred. If the user account is verified, the corresponding number of ERC20 assets and NFT assets will be deducted from the user account, and the ERC20 assets and NFTs will be transferred to the receiving address.

[0013] If an NFT is transferred, 10**decimals of ERC20 assets must also be transferred. If the user account is verified, the corresponding NFT and the corresponding number of ERC20 assets will be deducted from the user account, and the NFT and the corresponding number of ERC20 assets will be transferred to the receiving address.

[0014] Furthermore, the digital asset graph transfer protocol uses smart contracts on the blockchain network to issue and manage assets.

[0015] Furthermore, the digital asset graph transfer protocol and NFT contract are implemented through smart contract programming languages, including but not limited to Solidity.

[0016] Furthermore, the transfer request is initiated through a user interface for interacting with the contract.

[0017] Furthermore, the ERC721 NFT identifier included in the transfer request is a unique identifier used to identify a specific non-fungible asset owned by a user.

[0018] Furthermore, the verification step in the transfer request includes checking whether the user account has a sufficient amount of ERC20 assets and whether the user owns the specified ERC721 NFT asset.

[0019] Compared with the prior art, the present invention has the following beneficial effects:

[0020] The present invention realizes seamless conversion between digital assets, including the transfer of homogeneous assets and non-homogeneous assets, thereby providing more flexibility and convenience for digital asset transactions on the blockchain network. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a flowchart illustrating the present invention.

[0022] Figure 2 This is a logical flow diagram for the ERC20 asset transfer execution of the present invention

[0023] Figure 3 This is a diagram illustrating the logic of NFT asset transfer execution of the present invention. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "or / and" used herein includes any and all combinations of one or more of the related listed items.

[0026] See also Figure 1-Figure 3 This embodiment provides a digital asset graph conversion method based on blockchain, and the digital asset graph conversion method includes the following method steps:

[0027] Create and deploy a digital asset graph transfer protocol and NFT contract on the blockchain network, with the precision of digital assets being decimals;

[0028] Receive a transfer request from a user, where the request includes a transfer amount and a receiving address to;

[0029] After receiving the transfer request, determine the type of assets to be transferred;

[0030] If the ERC20 asset is transferred, an integer number of NFTs (amount / 10**decimals) must also be transferred. If the user account is verified, the corresponding number of ERC20 assets and NFT assets will be deducted from the user account, and the ERC20 assets and NFTs will be transferred to the receiving address.

[0031] If an NFT is transferred, 10**decimals of ERC20 assets must also be transferred. If the user account is verified, the corresponding NFT and the corresponding number of ERC20 assets will be deducted from the user account, and the NFT and the corresponding number of ERC20 assets will be transferred to the receiving address.

[0032] In a specific embodiment of the present invention, the digital asset graph transfer protocol uses smart contracts on the blockchain network to issue and manage assets.

[0033] In a specific embodiment of the present invention, the digital asset graph conversion protocol and NFT contract are implemented through smart contract programming languages, including but not limited to Solidity.

[0034] In a specific embodiment of the present invention, the transfer request is initiated through a user interface for interacting with the contract.

[0035] In a specific embodiment of the present invention, the ERC721 NFT identifier included in the transfer request is a unique identifier used to identify a specific non-fungible asset owned by a user.

[0036] In a specific embodiment of the present invention, the verification step in the transfer request includes checking whether the user account has a sufficient amount of ERC20 assets and whether the user owns the specified ERC721 NFT assets.

[0037] Example 1: Assume that there is a blockchain digital asset trading platform called "DigiExchange", which implements a digital asset graph conversion method based on a digital asset graph conversion protocol.

[0038] 1. Create a digital asset graph transfer protocol contract: DigiExchange deploys a digital asset graph transfer protocol contract called "DigiToken" on the blockchain, which manages all digital assets on the platform, including ERC20 assets and ERC721 NFT assets.

[0039] 2. User transfer request: User Alice wants to transfer 100 DigiToken assets to user Bob, and transfer the corresponding number of NFT assets at the same time. Alice initiates a transfer request on the DigiExchange platform, specifies the transfer amount as 100 DigiToken, and provides Bob's receiving address.

[0040] 3. Determine the asset type: After receiving Alice’s transfer request, the DigiExchange system checks the type of the asset being transferred. Since it is an ERC20 asset transfer request, the system determines that the transferred asset is an ERC20 asset.

[0041] 4. Processing ERC20 asset transfers: According to the digital asset graph transfer protocol, the DigiExchange system determines the corresponding number of NFTs to be transferred according to the precision (decimals) of the asset. Assuming that decimals is 2, for every 100 DigiToken assets transferred, 2 NFTs will be transferred. After the system verifies that there are sufficient DigiToken assets and NFT assets in Alice's account, it deducts 100 DigiTokens and 2 NFTs from Alice's account and transfers them to Bob's receiving address.

[0042] 5. Smart contract implementation: Transfer requests are implemented through the DigiExchange platform’s smart contract programming language Solidity. Smart contracts execute all asset issuance and transfer operations, ensuring the security and transparency of assets.

[0043] 6. User interface interaction: Alice initiated a transfer request through the user interface provided by the DigiExchange platform, filled in information such as the transfer amount and receiving address, and then submitted the request.

[0044] 7. Unique identifier and verification steps: The ERC721 NFT identifier included in the transfer request is a unique identifier used to identify the specific non-fungible asset owned by the user. During the transfer process, the DigiExchange system verifies whether Alice's account has sufficient DigiTokens and whether it owns the specified NFT.

[0045] Through the above steps, Alice successfully transferred 100 DigiToken assets to Bob, and transferred 2 NFTs accordingly, realizing seamless transfer between digital assets. After receiving the transferred assets, Bob can freely manage and trade these digital assets on the DigiExchange platform.

[0046] Embodiment 2: The following is an embodiment of the invention in the field of real estate:

[0047] 1. Create a real estate digital asset contract: Assume there is a digital asset graph transfer protocol contract called "RealEstateToken" that is used to manage real estate digital assets. Each real estate digital asset is assigned a unique identifier that can represent a specific property or real estate project.

[0048] 2. User transfer request: Assume Alice is a real estate investor who owns a piece of real estate digital asset and wants to transfer it to Bob.

[0049] 3. Determine the asset type: After receiving Alice’s transfer request, the RealEstateToken system checks the type of the asset being transferred. Since it is a transfer request for real estate digital assets, the system determines that the transferred asset is ERC721 NFT.

[0050] 4. Processing NFT transfer: The system verifies that Alice owns the real estate digital asset in her account and deducts the corresponding NFT from her account. At the same time, the system will also transfer a certain amount of ERC20 assets to Bob as transfer fees. Assume that in this implementation, the transfer fee is a certain amount of encrypted assets, representing transaction fees and handling fees.

[0051] 5. Smart contract implementation: The transfer request is implemented through the smart contract programming language of the RealEstateToken platform, such as Solidity. The smart contract is responsible for verifying the validity of the transfer request and ensuring that only the legitimate owner can transfer assets.

[0052] 6. User Interface Interaction: Alice fills out the transfer request through the user interface provided by the RealEstateToken platform, including the address of the target recipient (Bob) and the real estate digital asset identifier to be transferred.

[0053] 7. Unique identifier and verification steps: The ERC721 NFT identifier included in the transfer request is a unique identifier used to identify the specific real estate digital asset owned by the user. During the transfer process, the RealEstateToken system verifies whether Alice's account has sufficient assets and whether it owns the specified NFT.

[0054] Through the above steps, Alice successfully transferred her real estate digital assets to Bob. Bob became the new owner of the property and can view and manage the property information on the RealEstateToken platform and has the right to conduct related transactions and transfers.

[0055] Embodiment 3: The following is an embodiment of the invention in the field of picture purchase and sale:

[0056] 1. Create a digital asset contract for images: Deploy a digital asset image transfer protocol contract called "ImageToken" on the blockchain network, which is used to manage digital assets for images and corresponding NFTs. Each image is assigned a unique identifier that represents a specific image or work of art.

[0057] 2. User purchase request: Suppose Alice is an art collector who is interested in purchasing a digital artwork. She finds a picture she likes on the ImageToken platform and wants to purchase it.

[0058] 3. Determine the asset type: After the ImageToken system receives Alice’s purchase request, it checks the type of asset being purchased. Since it is a request to purchase a digital asset image, the system determines that the transferred asset is ERC721NFT.

[0059] 4. Processing NFT transfer: The system verifies that Alice has enough crypto assets in her account to pay for the picture, and deducts the corresponding assets from her account. Then, the system transfers the corresponding NFT to Alice's account, indicating that she has purchased the picture.

[0060] 5. Smart contract implementation: The transfer request is implemented through the smart contract programming language of the ImageToken platform, such as Solidity. The smart contract is responsible for verifying the validity of the purchase request, ensuring that only legitimate buyers can purchase digital asset images, and ensuring the correct processing of purchase fees.

[0061] 6. User Interface Interaction: Alice fills out a purchase request through the user interface provided by the ImageToken platform, including the identifier of the image she wants to purchase and the amount of the purchase price.

[0062] 7. Unique identifier and verification steps: The ERC721 NFT identifier included in the purchase request is a unique identifier that identifies the specific digital asset image that the user wants to purchase. During the purchase process, the ImageToken system verifies whether Alice's account has sufficient assets and whether it owns the specified NFT.

[0063] 8. Image sale request: Assume that Bob is a digital artist who owns a digital artwork and wants to sell it on the ImageToken platform. He posts a request to sell the image on the platform and specifies the price and transfer address of the image.

[0064] 9. Processing NFT transfer and asset transfer: When a user purchases a picture posted by Bob, the system will deduct the corresponding assets from the user's account and transfer the NFT assets to the buyer. At the same time, the system will transfer the assets obtained from the sale to Bob's designated address.

[0065] Through the above steps, Alice successfully purchased the digital asset picture she liked, and Bob successfully sold his digital artwork to interested buyers. This example demonstrates the process of buying and selling digital asset pictures on the blockchain, and achieves a safe, transparent and convenient transaction experience through smart contracts.

[0066] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0067] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A digital asset graph conversion method based on blockchain, characterized in that: The digital asset graph conversion method comprises the following steps: Create and deploy a digital asset graph transfer protocol and NFT contract on the blockchain network, with the precision of digital assets being decimals; Receive a transfer request from a user, where the request includes a transfer amount and a receiving address to; After receiving the transfer request, determine the type of assets to be transferred; If the ERC20 asset is transferred, an integer number of NFTs (amount / 10**decimals) must also be transferred. If the user account is verified, the corresponding number of ERC20 assets and NFT assets will be deducted from the user account, and the ERC20 assets and NFTs will be transferred to the receiving address. If an NFT is transferred, 10**decimals of ERC20 assets must also be transferred. If the user account is verified, the corresponding NFT and the corresponding number of ERC20 assets will be deducted from the user account, and the NFT and the corresponding number of ERC20 assets will be transferred to the receiving address.

2. A blockchain-based digital asset graph conversion method according to claim 1, characterized in that: The digital asset graph transfer protocol uses smart contracts on the blockchain network to issue and manage assets.

3. A blockchain-based digital asset graph conversion method according to claim 2, characterized in that: The digital asset graph transfer protocol and NFT contract are implemented through smart contract programming languages, including but not limited to Solidity.

4. A blockchain-based digital asset graph conversion method according to claim 3, characterized in that: The transfer request is initiated through the user interface for interacting with the contract.

5. A blockchain-based digital asset graph conversion method according to claim 4, characterized in that: The ERC721 NFT identifier included in the transfer request is a unique identifier used to identify a specific non-fungible asset owned by a user.

6. A blockchain-based digital asset graph conversion method according to claim 5, characterized in that: The verification step in the transfer request includes checking whether the user account has sufficient ERC20 assets and whether the user owns the specified ERC721 NFT assets.