Digital asset calling method, system, electronic device and readable storage medium based on blockchain
By using smart contracts on the blockchain, multiple demanders are allowed to call digital assets in the initiator's blocks in turn, and the initiator charges the call fee after the call contract is executed, which solves the problem that assets cannot bring benefits during the transfer of blockchain digital assets, and realizes efficient utilization of digital assets and increase returns.
Patent Information
- Application Number
- CN202111338395.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-12
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2041-11-12
AI Technical Summary
During the transfer of blockchain digital assets, the assets to be transferred cannot bring benefits during the new block forming cycle, resulting in the inability to realize value reproduction.
By using smart contracts on the blockchain, multiple demanders are allowed to call digital assets in the initiator's blocks in turn, and the initiator charges a call fee after the call contract is executed to ensure the normal progress of asset transfer activities.
It realizes efficient utilization of digital assets on the blockchain, allowing other demanding parties in the block to solve the capital demand problem, and at the same time provides more profits to the initiators of digital assets, thereby promoting the cross-regional flow of digital assets.
Smart Images

Figure CN114331425B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain intelligent application technology, and specifically discloses a blockchain-based digital asset calling method, an electronic device, and a readable storage medium. Background Art
[0002] At present, blockchain technology is developing rapidly. As a new decentralized distributed computing paradigm, blockchain provides technical support for the operation of various digital assets on distributed networks. These digital assets run on the distributed network of blockchain, and do not rely on a specific third party or central party to keep accounts. Instead, they use a shared ledger to perform global multi-node consensus accounting, and realize a technically guaranteed security system through encryption algorithms.
[0003] In the prior art, a typical transaction model of digital assets based on blockchain is as follows: an initiator initiates a transaction and transfers a certain amount of digital assets corresponding to its asset ledger address to the asset ledger address of another block receiver, forming a UTXO (Unspent Transaction Output) transaction request; after the consensus node of the blockchain reaches a network-wide consensus on the UTXO transaction request and verifies the initiator's public key and signature, it records the UTXO transaction on the chain, thereby realizing the transfer of digital assets from the initiator to the receiver.
[0004] In the execution process of the existing technology, there are at least the following problems: in the process of digital asset transfer, during the formation cycle of the new block associated with the digital asset transfer transaction, the digital asset to be transferred cannot bring benefits to the user, and there is a problem of inability to regenerate value. Summary of the invention
[0005] In view of the above-mentioned defects in the prior art, the present invention provides a blockchain-based digital asset calling method, an electronic device and a readable storage medium. Specifically, in the first aspect of the present application, a blockchain-based digital asset calling method is provided, which specifically includes:
[0006] In the process of the initiator initiating a digital asset transfer activity to the cross-blockchain recipient through the blockchain, this method includes:
[0007] The initiator writes the digital asset information, transfer time setting information and recipient address information required for the digital asset transfer activity into the initiator's corresponding smart contract;
[0008] In the same block where the initiator is located, several demanders initiate call requests to the digital asset information in the smart contract according to the preset order and generate corresponding call contracts;
[0009] When at least one demander completes the call contract, the initiator obtains the call fee corresponding to the call contract;
[0010] If the digital asset call operation corresponding to the demander is not fully completed, the execution status of the smart contract will be rolled back / reverted to a state where the smart contract can continue to execute the digital asset transfer activity to ensure the normal implementation of the digital asset transfer activity. The transfer time setting information is similar to a promissory note. The initiator sets a relatively long time for the recipient to withdraw.
[0011] In a possible implementation of the first aspect, the process of initiating a digital asset transfer activity from the initiator's own block to the cross-block recipient through the blockchain includes:
[0012] The smart contract is transmitted to the block corresponding to the recipient based on the address information and broadcasts the smart contract.
[0013] In a possible implementation of the first aspect, in the block where the initiator is located, at least two demanders initiate a digital asset call request to the smart contract based on the information of the digital assets in the smart contract:
[0014] Generate a plurality of first call contracts according to a first preset rule;
[0015] Based on the call execution priority of the first preset rule, the first call contract is executed in sequence;
[0016] Among them, digital asset call operations include:
[0017] The previous demander obtains digital assets;
[0018] The previous demander returns the digital assets and pays the call fee to the initiator. The next demander starts to execute the corresponding subsequent first call contract.
[0019] In a possible implementation of the first aspect above, when the call contract corresponding to any demand party is not completed, the execution status of the smart contract is rolled back or reverted to the state of the previous demand party completing the call contract according to the first call execution priority.
[0020] In a possible implementation of the first aspect above, when the call contract corresponding to any demander is not completed, the demander generates an assistance contract based on its call contract and broadcasts it, seeking a responder who can assist the demander in completing the call contract and initiating an assistance contract. The assistance contract contains new call fee information and usage time information. Other responders in the block can respond according to the set conditions of the assistance contract. If they respond, the assistance contract is established and begins to execute, and the original call contract is executed. If the call contract is the last contract in the previous smart contract time period, the entire smart contract is executed, and the cross-block transfer of digital assets is successfully completed. During this period, the initial initiator received multiple batches of usage fees or call fees. Let the initiator of the digital asset transfer, which originally had no income, obtain income from the digital transfer process, thereby promoting the cross-region flow of digital assets. It also meets the asset demanders in the same area who have short-term demand for digital assets.
[0021] In a possible implementation of the first aspect, in the block where the initiator is located, at least two demanders initiate digital asset call requests to the smart contract based on digital assets:
[0022] Split and generate a plurality of second call contracts according to the second preset rule;
[0023] Based on the call execution priority of the second preset rule, the second call contract is executed in the same batch;
[0024] Among them, digital asset call operations include:
[0025] Acquire digital assets based on demand;
[0026] The demander returns the digital assets and pays the call fee to the initiator.
[0027] In a possible implementation of the first aspect above, if any demander fails to complete all digital asset call operations, the execution status of the smart contract is rolled back to the last state that satisfied the smooth execution of the smart contract.
[0028] In a possible implementation of the first aspect, the situation where the digital asset call operation corresponding to the demander is not fully completed includes:
[0029] The demander cannot return all digital assets to the smart contract or calling contract and / or pay the calling fee to the initiator.
[0030] A second aspect of the present application provides an electronic device, including:
[0031] A memory, the memory is used to store the processing program;
[0032] A processor, when executing a processing program, implements the blockchain-based digital asset calling method provided in the first aspect.
[0033] The third aspect of the present application provides a readable storage medium, on which a processing program is stored. When the processing program is executed by a processor, the blockchain-based digital asset calling method provided in the first aspect is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0035] Figure 1 According to an embodiment of the present application, a flowchart of a blockchain-based digital asset calling method is shown. DETAILED DESCRIPTION
[0036] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0037] In order to solve the problem that the blockchain in the prior art can only simply complete the operation of transferring digital assets on the chain, and the digital assets on the chain cannot realize the value generation, this application proposes a digital asset calling method based on blockchain, an electronic device and a readable storage medium. Through this blockchain-based digital asset calling method, it is possible to initiate the transfer of digital assets between different blocks, while ensuring the security of digital assets and realizing the efficient use of assets, which not only facilitates other demand parties in the block to solve their own funding needs, but also can collect more income for the digital asset initiator.
[0038] Specifically, Figure 1 According to some embodiments of the present application, a blockchain-based digital asset calling method is provided in the first aspect of the present application. The blockchain-based digital asset calling method specifically includes:
[0039] In the process of the initiator initiating a digital asset transfer activity to the cross-blockchain recipient through the blockchain, this method includes:
[0040] Step 100: The initiator writes the digital assets required for the digital asset transfer activity into the smart contract of the block corresponding to the initiator.
[0041] Step 200: In the block corresponding to the initiator, at least one demander initiates a digital asset call request to the smart contract based on the digital asset information of the smart contract.
[0042] Step 300: Determine whether the digital asset call operation corresponding to the demander is completed: if it is completed, go to step 400; if it is not completed, go to step 500.
[0043] Step 400: When the digital asset call operation corresponding to the demander is completed, the initiator obtains the digital asset call interest corresponding to the digital asset call request. The digital asset call interest refers to the fund usage fee that the demander needs to pay to the initiator during the digital asset call process.
[0044] Step 500: When the digital asset call operation corresponding to the demander is not fully completed, the execution state of the smart contract rolls back to the state where the smart contract contains all digital assets.
[0045] It is understandable that in the above embodiment, the initiator and the receiver belong to different blocks in the blockchain, and the block where the receiver is located needs to be established according to the continuous process of digital asset transfer activities. In the process of establishing the above blockchain, although the time required for establishment is often short, other fund demanders in the same blockchain as the initiator can borrow the digital assets to be transferred during this establishment time to complete their required transactions, which greatly improves the profit generation rate of the digital assets in the transfer process.
[0046] In some embodiments of the present application, the process of an initiator initiating a digital asset transfer activity to a recipient through a blockchain includes:
[0047] The initiator writes the digital assets required for the digital asset transfer activity into the smart contract of the block corresponding to the initiator;
[0048] The initiator writes the recipient's address by calling the corresponding method of the smart contract;
[0049] The smart contract generates the block corresponding to the digital asset received by the recipient based on the address to complete the digital asset transfer activity.
[0050] It is understandable that the asset efficient use method provided by this application occurs in the same block, which is an event within a block, and does not delay the time for the digital asset to be transferred from the initiator to the receiver of a different block. For example, assuming that the current block is B100 and the next block is B101, the fund transfer occurs in the interval from B100 to B101, that is, the occurrence (large) time period of the above-mentioned asset efficient use method is in the formation time of the 101st block.
[0051] In some embodiments of the present application, in the block corresponding to the initiator, at least two demanders initiate a digital asset call request to the smart contract based on the digital asset:
[0052] Generate a first call contract of the demander according to the first preset rule;
[0053] Based on the execution priority of the first preset rule, the digital asset call operation of the demander is executed in sequence;
[0054] Among them, digital asset call operations include:
[0055] Acquire digital assets based on demand;
[0056] The demander returns the digital assets to the initiator and pays the interest on the digital asset call.
[0057] It can be understood that the above embodiment proposes a method for implementing borrowing for fund demanders. When the execution order is determined, the previous fund demander needs to pay the digital assets and the corresponding digital asset call interest to the transaction initiator when completing the entire borrowing process. The next fund demander continues to propose to the smart contract initiated by the transaction initiator to execute the same borrowing process.
[0058] In one possible implementation of the above embodiment, the first preset rule may be determined according to the order in which the digital asset call requests are initiated, or the digital asset call requests of the demander may be sorted according to other existing blockchain rules, or a complete digital asset may be split into parts and then called, which is not limited here.
[0059] In one possible implementation of the above embodiment, when the call contract corresponding to any demander is not completed, the demander generates an assistance contract based on its call contract and broadcasts it to this block, seeking a responder who can assist the demander in completing the call contract and initiates an assistance contract. The assistance contract includes the amount of digital assets in the original demander's call contract, the assistance agreement response time setting information, and the assistance fee.
[0060] In some embodiments of the present application, if any demander has not completed all digital asset call operations, the execution status of the smart contract will roll back to the state where the previous demander has completed all digital asset call operations based on the execution priority of the digital asset call request to ensure that the cross-region transfer of digital assets is completed normally.
[0061] In some embodiments of the present application, in the block corresponding to the initiator, at least two demanders initiate a digital asset call request to the smart contract based on the digital asset:
[0062] Split and generate a plurality of second call contracts according to the second preset rule;
[0063] Based on the call execution priority of the second preset rule, the second call contract is executed in the same batch;
[0064] Among them, digital asset call operations include:
[0065] Acquire digital assets based on demand;
[0066] The demander pays the digital asset call interest to the initiator.
[0067] It is understandable that another method for implementing borrowing for fund demanders is proposed in the above embodiment. When the execution order is determined, the previous fund demander does not need to return the digital assets to the transaction initiator when completing the entire borrowing process, but continues to lend them to the next fund demander.
[0068] In some embodiments of the present application, if any demander fails to complete all digital asset call operations, the execution status of the smart contract will roll back to the state where the previous demander completed the call to the contract.
[0069] In some embodiments of the present application, the situation where the digital asset call operation corresponding to the demander is not fully completed includes: the demander cannot return the digital asset. It is understandable that if the fund demander cannot return the digital asset, the blockchain can perform a state rollback to ensure the security of the digital asset.
[0070] In some embodiments of the present application, an electronic device is also provided. The electronic device includes a memory and a processor, wherein the memory is used to store a processing program, and the processor executes the processing program according to instructions. When the processor executes the processing program, the digital asset calling method based on blockchain in the above-mentioned embodiment is implemented.
[0071] In some embodiments of the present application, a readable storage medium is also provided, which can be a non-volatile readable storage medium or a volatile readable storage medium. The readable storage medium stores instructions, and when the instructions are executed on a computer, an electronic device containing the readable storage medium executes the aforementioned blockchain-based digital asset calling method.
[0072] It is understandable that, for the aforementioned blockchain-based digital asset calling methods, if they are all implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0073] Computer readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program codes contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.
[0074] The program code involved in executing the technical solution disclosed in the present application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also conventional procedural programming languages such as C language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0075] The embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings, but the present disclosure is not limited to the above embodiments. Even if various changes are made to the present disclosure, if these changes fall within the scope of the claims of the present disclosure and their equivalent technologies, they still fall within the protection scope of the present disclosure.
[0076] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims
1. A digital asset calling method based on blockchain, characterized in that: In the process of an initiator initiating a digital asset transfer activity to a cross-blockchain recipient through a blockchain, the method includes: The initiator writes the digital asset information, transfer time setting information and address information of the recipient required for the digital asset transfer activity into the smart contract corresponding to the initiator; In the same block where the initiator is located, several demanders initiate a call request to the digital asset information in the smart contract according to a preset order based on the digital asset information in the smart contract, and generate a corresponding call contract; When at least one of the demanders completes the execution of the calling contract, the initiator obtains the calling fee corresponding to the calling contract; In the event that the digital asset call operation corresponding to the demander is not fully completed, the execution status of the smart contract is rolled back to a state where the smart contract can satisfy the continued execution of the digital asset transfer activity.
2. The blockchain-based digital asset calling method according to claim 1, characterized in that: The process of the initiator initiating a digital asset transfer activity to the cross-blockchain recipient through the blockchain includes: The smart contract is transmitted to the block corresponding to the recipient according to the address information, and the smart contract is broadcast.
3. The blockchain-based digital asset calling method according to claim 1, characterized in that: In the block where the initiator is located, at least two of the demanders initiate a digital asset call request to the smart contract based on the information of the digital asset in the smart contract: Generate a plurality of first call contracts according to a first preset rule; Based on the call execution priority of the first preset rule, execute the first call contract in sequence; The digital asset calling operation includes: The demander mentioned above obtains the digital asset; The former demander returns the digital asset and pays the call fee to the initiator; the latter demander starts to execute the corresponding subsequent first call contract.
4. The blockchain-based digital asset calling method according to claim 3, characterized in that: In the case that the calling contract corresponding to any one of the demand parties is not completed, according to the calling execution priority of the first preset rule, the execution status of the smart contract is rolled back to the status of the previous demand party completing the calling contract.
5. The blockchain-based digital asset calling method according to claim 4, characterized in that: In the case that the calling contract corresponding to any of the demand parties is not completed, the demand party generates an assistance contract based on its calling contract and broadcasts it, seeking a responder who can assist the demand party in completing the calling contract and initiating an assistance contract.
6. The blockchain-based digital asset calling method according to claim 1, characterized in that: In the block where the initiator is located, at least two of the demanders initiate digital asset call requests to the smart contract based on the digital asset: Split and generate a plurality of second call contracts according to the second preset rule; Based on the call execution priority of the second preset rule, executing the second call contract in the same batch; The digital asset calling operation includes: The demander obtains the digital asset; The demander returns the digital asset and pays the call fee to the initiator.
7. The blockchain-based digital asset calling method according to claim 6, characterized in that: In the event that any of the demanders fails to complete all of the digital asset call operations, the execution status of the smart contract will be rolled back to the last state that satisfied the smooth execution of the smart contract.
8. The blockchain-based digital asset calling method according to any one of claims 1 to 7, characterized in that: The situations where the digital asset call operation corresponding to the demander is not fully completed include: A certain demander is unable to return all of the digital assets to the smart contract or the calling contract and / or pay the calling fee to the initiator.
9. An electronic device, characterized in that: include: A memory, the memory being used to store a processing program; A processor, wherein when executing the processing program, the processor implements the blockchain-based digital asset calling method as described in any one of claims 1 to 7.
10. A readable storage medium, characterized in that: The readable storage medium stores a processing program, and when the processing program is executed by the processor, the blockchain-based digital asset calling method as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Digital asset transaction method and device based on block chain, and storage medium
CN111538784A
Digital service asset transaction and transfer method based on blockchain smart contract
CN111915433A