CN111028081A - Asset transfer method, device, electronic equipment and storage medium - Google Patents

Asset transfer method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111028081A
CN111028081A CN201911266880.6A CN201911266880A CN111028081A CN 111028081 A CN111028081 A CN 111028081A CN 201911266880 A CN201911266880 A CN 201911266880A CN 111028081 A CN111028081 A CN 111028081A
Authority
CN
China
Prior art keywords
transferred
asset
information
assets
service node
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
CN201911266880.6A
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.)
Yang Min
Original Assignee
Shenzhen Yiqu Technology 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 Shenzhen Yiqu Technology Co Ltd filed Critical Shenzhen Yiqu Technology Co Ltd
Priority to CN201911266880.6A priority Critical patent/CN111028081A/en
Publication of CN111028081A publication Critical patent/CN111028081A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the application provides an asset transfer method, an asset transfer device, electronic equipment and a storage medium. The method is applied to a transmitting end, and comprises the following steps: receiving an asset transfer request, wherein the asset transfer request comprises asset information to be transferred; responding to the asset transfer request, and sending asset information to be transferred and address information of a sending end to a block chain service node; acquiring identification information of the assets to be transferred, which is returned by the block chain service node, and acquiring state information of the assets to be transferred based on the identification information of the assets to be transferred; and when the state information of the assets to be transferred meets the preset state information, calling the intelligent contract so that the intelligent contract transfers the assets to be transferred to accounts of the multiple receiving ends respectively based on the asset information to be transferred. According to the embodiment of the application, when the state information of the assets to be transferred meets the preset state information, the intelligent contract is called, so that the assets to be transferred are transferred by the intelligent contract, the assets are transferred in batches, and the block chain overhead is saved.

Description

Asset transfer method, device, electronic equipment and storage medium
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to an asset transfer method, an asset transfer apparatus, an electronic device, and a storage medium.
Background
The blockchain technology is widely applied to the fields of electronic commerce, securities trading, internet of things and the like, and provides convenience for activities of users in payment clearing, financial trading and the like by means of the characteristics of decentralization, no tampering, traceability and the like. Meanwhile, the blockchain network can also realize the bulk transfer of assets. However, the existing method for transferring the bulk assets on the blockchain platform has the problem of high blockchain cost.
Disclosure of Invention
The embodiment of the application provides an asset transfer method, an asset transfer device, an electronic device and a storage medium, so as to solve the problems.
In a first aspect, an embodiment of the present application provides an asset transfer method, which is applied to a sending end, and the method includes: receiving an asset transfer request, wherein the asset transfer request comprises asset information to be transferred; responding to the asset transfer request, sending the asset information to be transferred and the address information of the sending end to a block chain service node so that the block chain service node stores the asset information to be transferred and the address information, and generating identification information of the asset to be transferred based on the asset information to be transferred and the address information; acquiring identification information of the assets to be transferred, which is returned by the blockchain service node, and acquiring state information of the assets to be transferred based on the identification information of the assets to be transferred; and when the state information of the assets to be transferred meets preset state information, calling an intelligent contract so that the intelligent contract transfers the assets to be transferred to accounts of a plurality of receiving ends respectively based on the assets to be transferred.
In a second aspect, an embodiment of the present application provides an asset transfer method, which is applied to an asset transfer system, where the asset transfer system includes a sending end, a blockchain service node, and an intelligent contract, where the sending end is connected in communication with the blockchain service node, and the intelligent contract is deployed on a blockchain, where the method includes: the sending end receives an asset transfer request, wherein the asset transfer request comprises asset information to be transferred; the sending end responds to the asset transfer request and sends the asset information to be transferred and the address information of the sending end to a block chain service node; the block chain service node stores the asset information to be transferred and the address information, and generates identification information of the asset to be transferred based on the asset information to be transferred and the address information; the sending end obtains the identification information of the assets to be transferred, which is returned by the block chain service node, and obtains the state information of the assets to be transferred based on the identification information of the assets to be transferred; when the state information of the assets to be transferred meets preset state information, the sending end calls the intelligent contract; and the intelligent contract transfers the assets to be transferred to accounts of a plurality of receiving ends respectively based on the asset information to be transferred.
In a third aspect, an embodiment of the present application provides an asset transfer device, which is applied to a sending end, and the asset transfer device includes: the system comprises a request receiving module, a transfer module and a transfer module, wherein the request receiving module is used for receiving an asset transfer request, and the asset transfer request comprises asset information to be transferred; an information sending module, configured to respond to the asset transfer request, send the asset information to be transferred and the address information of the sending end to the blockchain service node, so that the blockchain service node stores the asset information to be transferred and the address information, and generates identification information of the asset to be transferred based on the asset information to be transferred and the address information; the information acquisition module is used for acquiring the identification information of the assets to be transferred, which is returned by the block chain service node, and acquiring the state information of the assets to be transferred based on the identification information of the assets to be transferred; and the contract calling module is used for calling an intelligent contract when the state information of the assets to be transferred meets the preset state information so as to enable the intelligent contract to transfer the assets to be transferred to accounts of a plurality of receiving ends respectively based on the assets to be transferred.
In a fourth aspect, embodiments of the present application provide an electronic device, including a memory and a processor, the memory being coupled to the processor, the memory storing instructions that, when executed by the processor, the processor performs the above-mentioned method.
In a fifth aspect, embodiments of the present application provide a computer-readable storage medium, in which program code is stored, and the program code can be called by a processor to execute the method according to the first aspect.
The embodiment of the application provides an asset transfer method, an asset transfer device, electronic equipment and a storage medium. Receiving an asset transfer request, wherein the asset transfer request comprises asset information to be transferred; responding to the asset transfer request, and sending asset information to be transferred and address information of a sending end to a block chain service node; acquiring identification information of the assets to be transferred, which is returned by the block chain service node, and acquiring state information of the assets to be transferred based on the identification information of the assets to be transferred; and when the state information of the assets to be transferred meets the preset state information, calling the intelligent contract so that the intelligent contract transfers the assets to be transferred to accounts of the multiple receiving ends respectively based on the asset information to be transferred. Therefore, when the state information of the assets to be transferred meets the preset state information, the intelligent contract is called, so that the assets to be transferred are transferred by the intelligent contract, the assets are transferred in batches, and the block chain overhead is saved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an application environment suitable for use in embodiments of the present application;
FIG. 2 illustrates a timing diagram of an asset transfer method provided by an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram illustrating another asset transfer method provided by an embodiment of the present application;
FIG. 4 is a schematic flow chart diagram illustrating a further asset transfer method provided by an embodiment of the present application;
FIG. 5 is a schematic flow chart diagram illustrating yet another asset transfer method provided by an embodiment of the present application;
FIG. 6 is a schematic flow chart diagram illustrating yet another asset transfer method provided by an embodiment of the present application;
fig. 7 is a block diagram illustrating an asset transfer device according to an embodiment of the present disclosure;
FIG. 8 is a block diagram of an electronic device for performing an asset transfer method according to an embodiment of the present application;
fig. 9 illustrates a storage unit for storing or carrying program code implementing an asset transfer method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The blockchain technology is widely applied to the fields of electronic commerce, securities trading, internet of things and the like, and provides convenience for activities of users in payment clearing, financial trading and the like by means of the characteristics of decentralization, no tampering, traceability and the like. Meanwhile, the blockchain network can also realize the bulk transfer of assets.
At present, the asset batch transfer is carried out on a block chain platform, a mode of circularly initiating transfer requests by an application layer is mainly adopted, and when the number of the requests is too large, the cost of handling fees of users can be increased, so that the cost of the block chain is increased. Similarly, the operation performance of the blockchain has strong limitation, and the frequent initiation of the transfer request at the application layer can block the blockchain from arriving at the same time, thereby causing the problem of slow transfer confirmation.
In order to solve the above problems, the inventor proposes an asset transfer method, an asset transfer device, an electronic device, and a storage medium in the embodiments of the present application, and calls an intelligent contract when state information of an asset to be transferred satisfies preset state information, so that the intelligent contract transfers the asset to be transferred, thereby implementing batch transfer of the asset and saving block chain overhead.
In order to better understand the asset transfer method, device, electronic device, and storage medium provided in the embodiments of the present application, an application environment suitable for the embodiments of the present application will be described below.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating an application environment suitable for the embodiment of the present application. The asset transfer method provided by the embodiment of the application can be applied to the asset transfer system 10 shown in fig. 1. As shown in fig. 1, the asset transfer system 10 includes electronic equipment and a blockchain service node 130.
The electronic device may be any type of electronic device having the functionality desired for embodiments of the present application including, but not limited to, a desktop computer, a laptop computer, a notebook computer, a tablet computer, a cellular telephone, a smartphone, a smart watch, a smart television, an implantable computing device, a wearable electronic device, and the like.
The electronic device includes a transmitting end 110 and a receiving end 120. The sending end 110 and the receiving end 120 are named relatively only in one transaction process, and it can be understood that the sending end of the previous transaction in different transactions can also be used as the receiving end of the current transaction, and the receiving end of the previous transaction can also be used as the sending end of the current transaction. Specifically, taking a transfer transaction as an example for explanation, the electronic device that initiates the transaction request to transfer the amount may be denoted as the sending end 110, and the electronic device that receives the transferred amount may be denoted as the receiving end 120. Correspondingly, the user using the sender 110 is denoted as a sender user, and the user using the receiver 120 is denoted as a receiver user. In the embodiment of the present application, the number of the receiving ends 120 may be multiple. The sender 110 is communicatively coupled to the blockchain service node 130, and the receiver 120 is communicatively coupled to the blockchain service node 130 and the sender 110, respectively. Wherein, the intelligent contracts are deployed on the block chain network.
It should be noted that transactions conducted using blockchain techniques may include any type of electronic transaction, including transfers of digital currency (e.g., virtual amounts of bitcoin, legal currency, etc.) as well as other electronic transactions where there is a source address and a destination address, such as transfers of data. In other words, the asset transfer method, apparatus, electronic device, and storage medium provided by the embodiments of the present application may be applicable to various types of electronic transactions using a blockchain, and the asset transfer system 10 may be applicable to various types of electronic transactions, and is not limited to transactions of digital money. The following description will be made by taking the example of the transfer of digital money for convenience of description only.
In the asset transfer system 10, a sending end user may need to send a certain amount of digital currency or other digital, transferable data or digital assets to a receiving end user via a blockchain. The blockchain may be associated with a blockchain network, which may include a plurality of different blockchain service nodes 130, each blockchain service node 130 configured to receive a new transaction request, generate a blockchain, add a blockchain to the blockchain, and broadcast to the blockchain network, and may also authenticate a blockchain, and after a blockchain based on the transaction request is authenticated, the transaction corresponding to the transaction request is completed.
In one example, to perform an electronic transaction via a blockchain associated with a blockchain network, a sender user may initiate a transaction request using an electronic device (in this embodiment, the sender 110) associated with the sender user, where the transaction request is used to transfer a specified amount from a sending address of the sender 110 to a destination address, send a transaction record including the sending address, the destination address, and a transfer amount to the blockchain node 130, package the transaction record into blocks via the blockchain node 130, add a blockchain, broadcast to the blockchain network, and verify the transaction record via other blockchain nodes 130, and then complete a transaction corresponding to the transaction request, that is, transfer the specified amount from the sending address of the sender 110 to the destination address.
In some embodiments, the sender 110 may be a blockchain node in a blockchain network. In other embodiments, both the sender 110 and the receiver 120 may be a blockchain node in a blockchain network.
The above application environments are only examples for facilitating understanding, and it is to be understood that the embodiments of the present application are not limited to the above application environments.
The asset transfer method, device, electronic device and storage medium provided by the embodiments of the present application will be described in detail through specific embodiments.
Referring to fig. 2, fig. 2 is a timing diagram illustrating an asset transfer method according to an embodiment of the present application. The asset transfer method provided by the embodiment can be applied to the asset transfer system. The flow shown in fig. 2 will be described in detail below. The above-described asset transfer method may specifically comprise the steps of:
step S110: the sending terminal receives an asset transfer request, and the asset transfer request comprises asset information to be transferred.
In an embodiment of the present application, a sender may receive an asset transfer request. In some embodiments, a user at a sending end may operate in an interface of the sending end to input asset information to be transferred, and the sending end may generate an asset transfer request according to the asset information to be transferred input by the user. The asset information to be transferred may include asset information to be transferred, and the asset information to be transferred may include the amount of assets to be transferred, the number of transfers, the transfer mode, the type of assets to be transferred, social information, and the like. In some embodiments, the transfer number may refer to the number of assets to be transferred that the amount may be split. The transfer mode may include, for example, a uniform transfer or a random transfer, wherein the uniform transfer may mean that the amount of the asset received by each receiving end user is the same, and the random transfer may mean that the amount of the asset received by each receiving end user is randomly determined according to a predetermined rule. The social information may include message information of the sending-end user, and the message information may be used to provide some additional text messages to the receiving-end user, which is not limited herein.
In some embodiments, the assets to be transferred may be in digital currency. The type of the assets to be transferred may be a currency of digital currency, may be a native currency on a blockchain network, or may be a contract currency supported by the blockchain network, and may be at least one of an ethernet currency (ETH), a Bitcoin (BTC), a Bitcoin Cash (BCH), a leite currency (LTC), and a CoinEx token (CET), for example, but not limited thereto.
In one example, the asset transfer request may be a request for mass texting of a red packet, the amount of the asset to be transferred may be a total amount of the red packet, the transfer number may refer to the number of total amount splits of the red packet, i.e., the number of the red packet splits, the transfer manner may be a type of the red packet, such as a split red packet or a piecemeal red packet, the type of the asset to be transferred may be a currency of digital currency to be mass texted, and the social information may be remark information of the red packet.
In some embodiments, the sender may run a client of a trading platform, which may run in dependence on H5 pages, Applications (APPs), Decentralized applications (Dapp). The user at the sending end can input the asset transfer request through the transaction platform operated by the sending end, so that the sending end can acquire the asset transfer request. In one example, a trading platform may be developed based on the H5 page and may run in a social application. The social application program may be various application programs having a social function and realizing an inter-user information technique, and may be APP such as WeChat and Messenger.
In some embodiments, if the sending end determines that the account balance of the sending end user is less than the amount of the assets to be transferred, which is input by the sending end user, the sending end user may be provided with prompt information for response through an interface of the sending end.
Step S120: and the sending end responds to the asset transfer request and sends the asset information to be transferred and the address information of the sending end to the block chain service node.
In this embodiment of the present application, a sending end may send asset information to be transferred and address information of the sending end to a block chain service node in response to an asset transfer request. The address information of the sending end may be block chain address information corresponding to the sending end.
In some embodiments, the sending end, in response to the asset transfer request, may also send asset information to be transferred, address information of the sending end, and a user identifier of a user of the sending end to the block chain service node. The user identifier of the sending-end user can be authenticated by a decentralized online identity authentication system (i.e. OpenID), so that identity information of the sending-end user does not need to be authenticated by a central website.
Step S130: and the block chain service node stores the asset information to be transferred and the address information, and generates identification information of the asset to be transferred based on the asset information to be transferred and the address information.
After the sending end sends the asset information to be transferred and the address information of the sending end to the block chain service node, the block chain service node can store the asset information to be transferred and the address information, and can generate the identification information of the asset to be transferred based on the asset information to be transferred and the address information. In one example, the identification information of the asset to be transferred may be red-packed identification information.
Step S140: the sending end obtains identification information of the assets to be transferred, which is returned by the block chain service node, and obtains state information of the assets to be transferred based on the identification information of the assets to be transferred.
In the embodiment of the application, the sending end can obtain the identification information of the assets to be transferred, which is returned by the block chain service node, and obtain the state information of the assets to be transferred based on the identification information of the assets to be transferred. In some embodiments, the sending end may query the status information of the asset to be transferred according to the identification information of the asset to be transferred, or may send the identification information of the asset to be transferred and the query instruction to the blockchain service node, and the blockchain service node queries the status information of the current asset to be transferred. The status information of the asset to be transferred can be used to indicate whether the asset to be transferred has been transferred.
In an example, the asset to be transferred is a red packet sent in a group, then the sending end may obtain the state of the red packet according to the identification information of the red packet returned by the blockchain service node, and specifically, the blockchain service node may query whether the red packet is robbed up according to the identification information of the red packet.
In some embodiments, the sending end may poll to acquire the status information of the asset to be transferred based on the identification information of the asset to be transferred.
In some embodiments, after the sending end obtains the identification information of the asset to be transferred, which is returned by the blockchain service node, the following steps may also be performed:
step S141: and the sending end generates an asset transfer link based on the identification information of the asset to be transferred and the address information of the sending end.
After the sending end obtains the identification information of the assets to be transferred, which is returned by the block chain service node, the sending end can also generate an asset transfer link based on the identification information of the assets to be transferred and the address information of the sending end, wherein the asset transfer link at least comprises the identification information of the assets to be transferred and the address information of the sending end. In one example, the asset transfer link may be a red purse sharing link.
Step S142: the sending end sends the asset transfer link to the receiving end.
In an embodiment of the present application, a sending end may send an asset transfer link to a receiving end.
In one embodiment, a trading platform may be developed based on the H5 page and may run in a social application. Thus, the sender may send the generated asset transfer link to the receiver through the social application. In one example, the sending end may generate an asset transfer link (red packet sharing link) based on identification information of an asset to be transferred and address information of the sending end, and a user of the sending end sends the red packet sharing link to a wechat window corresponding to a user of the receiving end through a wechat message, or sends the red packet sharing link to a wechat window (e.g., a group chat window) including wechat windows corresponding to a plurality of users of the receiving end, so that the user of the receiving end may receive the asset transfer link and click the asset transfer link to realize asset transfer. Therefore, the block chain transaction can be completed without manually establishing a block chain address by a receiving end user and familiarizing the block chain technology, so that the user operation threshold and difficulty are greatly reduced, and the popularization range of the block chain technology is favorably expanded.
Step S143: and the receiving terminal acquires the identification information of the assets to be transferred based on the asset transfer link and generates a temporary address.
After the receiving end receives the asset transfer link, the receiving end can acquire the identification information of the asset to be transferred based on the asset transfer link and generate a temporary address. Wherein the temporary address is a block chain address.
In some embodiments, after the receiving end receives the asset transfer link, the receiving end user may click the asset transfer link, so that the receiving end may obtain the identification information of the asset to be transferred, and generate the temporary address. And the receiving end can send the identification information of the assets to be transferred to the block chain service node, and the block chain service node inquires the state information of the assets to be transferred according to the identification information of the assets to be transferred. In one example, a receiving end user can click the red packet sharing link, the receiving end obtains identification information of the red packet based on the red packet sharing link, sends the identification information of the red packet to the blockchain service node, and the blockchain service node inquires whether the red packet is robbed up according to the identification information of the red packet. Further, if the red packet is robbed up, the information that the red packet is robbed up can be displayed on the interface of the receiving end.
Step S144: and the receiving terminal sends the temporary address, the identification information of the asset to be transferred and the account information of the receiving terminal to the block chain service node.
In this embodiment of the application, the receiving end may send the generated temporary address, the identification information of the asset to be transferred, and the account information of the receiving end to the block chain service node.
In some embodiments, after the receiving end receives the asset transfer link, a user of the receiving end may click the asset transfer link, so that the receiving end may obtain the identification information of the asset to be transferred, and then the receiving end may send the identification information of the asset to be transferred to the blockchain service node, and the blockchain service node queries the state information of the asset to be transferred according to the identification information of the asset to be transferred. When the state information of the assets to be transferred does not meet the preset state information, the receiving end can generate a temporary address and send the temporary address, the identification information of the assets to be transferred and the account information of the receiving end to the block chain service node.
In one example, a receiving end user can click the red packet sharing link, the receiving end obtains identification information of the red packet based on the red packet sharing link, sends the identification information of the red packet to the blockchain service node, and the blockchain service node inquires whether the red packet is robbed up according to the identification information of the red packet. If the red packet is robbed, the information that the red packet is robbed can be displayed on the interface of the receiving end. If the red packet is not robbed up, the receiving end can generate a temporary address and send the temporary address, the identification information of the red packet and the account information of the receiving end to the block chain service node.
Step S145: and verifying the identification information of the assets to be transferred and the account information of the receiving end by the block chain service node to obtain a verification result.
In this embodiment of the application, the blockchain service node may check the identification information of the asset to be transferred and the account information of the receiving terminal to obtain a check result, so as to determine whether to transfer a part of the asset to be transferred to the account of the receiving terminal.
In some embodiments, the asset to be transferred information may include a validity period of the asset transfer request, and the receiving end may only receive a portion of the asset to be transferred within the validity period. For example, the validity period of the asset transfer request may be a red envelope validity period, and the receiving end user can only get the red envelope within the red envelope validity period. Therefore, after receiving the identification information of the assets to be transferred, the blockchain service node can obtain the validity period of the asset transfer request through the identification information of the assets to be transferred, so as to judge whether the asset transfer request is valid.
In some embodiments, the blockchain service node may check the account information of the receiving end to determine whether the receiving end has clicked on the asset transfer link. Specifically, the account information of the receiving end may be compared with the account information stored by the blockchain service node to determine whether the account information is already stored by the blockchain service node.
In an example, the account information of the receiving end may be checked, and whether the receiving end user has robbed the red packet of the current group transmission is determined. If the receiving end user snatches the red packet sent by the group, the account information of the receiving end is stored in the block chain service node.
Step S146: and when the verification result represents that the verification is correct, the block chain service node stores the temporary address and the account information of the receiving end.
In this embodiment of the application, when the verification result indicates that the verification is correct, the blockchain service node may store the temporary address and the account information of the receiving end.
In some embodiments, the verification may be performed through the above verification method, and when the verification result indicates that the verification is correct, the verification result may indicate that the asset transfer request is not expired, or the verification result indicates that the account information of the receiving end is not stored on the blockchain service node. The blockchain service node may then store the temporary address as well as the account information for the receiving end.
Step S150: and when the state information of the assets to be transferred meets the preset state information, the sending end calls the intelligent contract.
In the embodiment of the application, when the state information of the assets to be transferred meets the preset state information, the sending end can call the intelligent contract. The status information of the assets to be transferred can be used to indicate the number of the assets to be transferred that are picked up. The preset status information may be that the assets to be transferred have been fully picked up. When the state information of the assets to be transferred meets the preset state information, the sending end can call the intelligent contract when the assets to be transferred are all picked up.
In some embodiments, when the status information of the asset to be transferred meets the preset status information, a user of the sending end can send a request for forcibly sending the asset, and after receiving the request for forcibly sending the asset, the sending end can directly call the intelligent contract.
Step S160: and the intelligent contract transfers the assets to be transferred to the accounts of the multiple receiving ends respectively based on the asset information to be transferred.
In the embodiment of the application, the intelligent contract can respectively transfer the assets to be transferred to the accounts of the multiple receiving ends based on the asset information to be transferred.
In some embodiments, when the status information of the asset to be transferred meets the preset status information, the sending end may directly submit a transaction request to the smart contract to initiate the transfer transaction. And respectively transferring the assets to be transferred to accounts of a plurality of receiving ends by the intelligent contract based on the asset information to be transferred.
The transfer operation of the smart contract is slightly different due to the difference in the currency of the digital money. In some embodiments, when the asset to be transferred is stored in the account of the sending end, the transaction request may include a block chain address of the sending end, that is, address information of the sending end, asset information to be transferred, and account information of a plurality of receiving ends, so as to generate transaction records in which a part of the asset to be transferred is transferred from the address of the sending end to the plurality of receiving ends, and then the transaction records are verified through a block chain link point of a block chain network, and after the verification is passed, the part of the asset to be transferred can be transferred from the account of the sending end to the accounts of the plurality of receiving ends. Therefore, a plurality of account transfers are packaged into one transaction, and the expense of a block chain can be saved. For example, if the digital currency is one of Bitcoin (BTC), Bitcoin Cash (BCH), ledebut coin (LTC), the asset is stored in the sender's account when the asset is to be transferred.
In some embodiments, when the type of the asset to be transferred is a primary currency, such as Ethernet (ETH), and the asset to be transferred is stored in an account of the smart contract, the smart contract transfers the asset to be transferred from the account of the smart contract to the accounts of the multiple receiving ends respectively based on the transaction request, that is, the smart contract transmits the asset to be transferred in an internal loop.
In some embodiments, when the type of the asset to be transferred is ERC20 token, the asset to be transferred is transferred to the accounts of the multiple receiving ends respectively by circularly calling the transferFrom method inside the intelligent contract.
In some embodiments, when the sender initiates a transaction request, a corresponding Gas Fee (Gas Fee) needs to be paid to ensure that the transaction is normally performed. For example, when the sending end initiates a transaction request for transferring the asset to be transferred from the sending address to the receiving end address, a miner fee is paid for paying the computing resources consumed by miners for generating new blocks, adding uplink and the like. Where the miner fee may be stored in the sender's account.
In one example, when the user a wishes to send funds to a friend group, the user a may initiate an asset transfer request (red packet group sending request) through a Decentralized Application (Dapp) of the sending end, for example, the user a may select a chain of digital money to be sent in group at a group sending interface of the Dapp, enter a group sending information filling page, select a digital money type and a red packet mode at the group sending information filling page, and input a red packet amount, a red packet number and a remark. After the user A confirms the input mass red packet sending information, the block chain service node generates the identification information of the red packet according to the information, the sending end generates the red packet robbing link, and the user A can share the red packet robbing link to friends. And after receiving the red envelope robbing link at the Dapp client, the user B, the user C and the like click the link to enter the red envelope robbing interface, and then the block chain service node of the Dapp stores the client accounts of the red envelope robbing users of the user B, the user C and the like. After the friends participate in the credit, the user A can click to pay, and a certain amount of money is randomly allocated by the intelligent contract according to the input mass red packet sending information and transferred to client accounts of the user B, the user C and other users who grab the red packet. The user A and the user who robs the red envelope can check the account condition of the red envelope, the amount of the red envelope robbed by each person and the like through the red envelope detail page of the Dapp client.
In the asset transfer method provided by the above embodiment, the sending end receives an asset transfer request, where the asset transfer request includes asset information to be transferred; the sending end responds to the asset transfer request and sends the asset information to be transferred and the address information of the sending end to the block chain service node; the block chain service node stores the asset information to be transferred and the address information, and generates identification information of the asset to be transferred based on the asset information to be transferred and the address information; a sending end acquires identification information of assets to be transferred, which is returned by a block chain service node, and acquires state information of the assets to be transferred based on the identification information of the assets to be transferred; when the state information of the assets to be transferred meets the preset state information, the sending end calls an intelligent contract; and the intelligent contract transfers the assets to be transferred to the accounts of the multiple receiving ends respectively based on the asset information to be transferred. Therefore, when the state information of the assets to be transferred meets the preset state information, the intelligent contract is called, so that the assets to be transferred are transferred by the intelligent contract, the batch transfer of the assets is realized, the block chain overhead is saved, and the batch transfer of the assets is more rapid and convenient.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating another asset transfer method provided in this embodiment of the present application, where the asset transfer method provided in this embodiment may be applied to the sending end, and the method includes:
step S210: an asset transfer request is received, the asset transfer request including asset information to be transferred.
Step S220: responding to the asset transfer request, sending the asset information to be transferred and the address information of the sending end to the block chain service node so that the block chain service node stores the asset information to be transferred and the address information, and generating identification information of the asset to be transferred based on the asset information to be transferred and the address information.
Step S230: and acquiring identification information of the assets to be transferred, which is returned by the block chain service node, and acquiring state information of the assets to be transferred based on the identification information of the assets to be transferred.
Step S240: and when the state information of the assets to be transferred meets the preset state information, calling the intelligent contract so that the intelligent contract transfers the assets to be transferred to accounts of the multiple receiving ends respectively based on the asset information to be transferred.
For the detailed description of steps S210 to S240, refer to steps S110 to S160, which are not described herein again.
The asset transfer method provided by the above embodiment receives an asset transfer request, where the asset transfer request includes information of assets to be transferred; responding to the asset transfer request, and sending asset information to be transferred and address information of a sending end to a block chain service node; acquiring identification information of the assets to be transferred, which is returned by the block chain service node, and acquiring state information of the assets to be transferred based on the identification information of the assets to be transferred; and when the state information of the assets to be transferred meets the preset state information, calling the intelligent contract so that the intelligent contract transfers the assets to be transferred to accounts of the multiple receiving ends respectively based on the asset information to be transferred. According to the embodiment of the application, when the state information of the assets to be transferred meets the preset state information, the intelligent contract is called, so that the assets to be transferred are transferred by the intelligent contract, the assets are transferred in batches, and the block chain overhead is saved.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating a further asset transfer method provided by an embodiment of the present application, where the method includes:
step S310: an asset transfer request is received, the asset transfer request including asset information to be transferred.
Step S320: responding to the asset transfer request, sending the asset information to be transferred and the address information of the sending end to the block chain service node so that the block chain service node stores the asset information to be transferred and the address information, and generating identification information of the asset to be transferred based on the asset information to be transferred and the address information.
Step S330: and acquiring identification information of the assets to be transferred, which is returned by the block chain service node.
For the detailed description of steps S310 to S330, refer to steps S110 to S140, which are not described herein again.
Step S340: and generating an asset transfer link based on the identification information of the asset to be transferred and the address information of the sending end.
After the sending end obtains the identification information of the assets to be transferred, which is returned by the block chain service node, the sending end can also generate an asset transfer link based on the identification information of the assets to be transferred and the address information of the sending end, wherein the asset transfer link at least comprises the identification information of the assets to be transferred and the address information of the sending end. In one example, the asset transfer link may be a red purse sharing link.
Step S350: and respectively sending the asset transfer links to a plurality of receiving ends.
In this embodiment of the present application, a sending end may send asset transfer links to a plurality of receiving ends, respectively.
In one embodiment, a trading platform may be developed based on the H5 page and may run in a social application. Thus, the sender may send the generated asset transfer link to the receiver through the social application. In an example, the sending end may generate an asset transfer link (red packet sharing link) based on identification information of an asset to be transferred and address information of the sending end, and a user of the sending end sends the red packet sharing link to a wechat window corresponding to each of a plurality of receiving end users through wechat messages, or sends the red packet sharing link to a wechat window (e.g., a group chat window) including the wechat windows corresponding to the plurality of receiving end users.
The asset transfer method provided by the above embodiment receives an asset transfer request, where the asset transfer request includes information of assets to be transferred; responding to the asset transfer request, sending the asset information to be transferred and the address information of the sending end to the block chain service node so that the block chain service node stores the asset information to be transferred and the address information, and generating identification information of the asset to be transferred based on the asset information to be transferred and the address information; acquiring identification information of assets to be transferred, which is returned by a block chain service node; generating an asset transfer link based on the identification information of the asset to be transferred and the address information of the sending end; and respectively sending the asset transfer links to a plurality of receiving ends. According to the embodiment, the asset transfer links are generated based on the identification information of the assets to be transferred and the address information of the sending end, and the asset transfer links are respectively sent to the multiple receiving ends, so that batch processing of the assets to be transferred is faster and more convenient, meanwhile, a receiving end user does not need to manually create the block chain address by himself, block chain transaction can be completed without being familiar with the block chain technology, the operation threshold and difficulty of the user are greatly reduced, and the popularization range of the block chain technology is favorably expanded.
Referring to fig. 5, fig. 5 is a schematic flowchart illustrating a further asset transfer method provided in an embodiment of the present application, where the asset information to be transferred includes a transfer number, and the method includes:
step S410: an asset transfer request is received, the asset transfer request including asset information to be transferred.
Step S420: responding to the asset transfer request, sending the asset information to be transferred and the address information of the sending end to the block chain service node so that the block chain service node stores the asset information to be transferred and the address information, and generating identification information of the asset to be transferred based on the asset information to be transferred and the address information.
Step S430: and acquiring identification information of the assets to be transferred, which is returned by the block chain service node.
For detailed description of steps S410 to S430, please refer to steps S110 to S140, which are not described herein again.
Step S440: and acquiring the number of the addresses of the receiving ends stored by the block chain service node based on the identification information of the assets to be transferred.
In the embodiment of the application, the number of the addresses of the receiving ends stored by the block chain service node can be acquired based on the identification information of the assets to be transferred. Specifically, the address list of the addresses of the receiving ends stored by the blockchain service node may be checked according to the identification information of the assets to be transferred, so as to obtain the number of the addresses of the receiving ends stored by the blockchain service node.
Step S450: and judging whether the number of the addresses of the receiving ends stored by the block chain service node is equal to the transfer number.
After the number of the addresses of the receiving ends stored by the blockchain service node is obtained, whether the number of the addresses of the receiving ends stored by the blockchain service node is equal to the transfer number can be judged.
In some embodiments, after the receiving end clicks the asset transfer link, if the check result of the blockchain service node indicates that the check is correct, the address and the account information of the receiving end may be stored, that is, the receiving end may retrieve a part of the asset to be transferred. Therefore, whether all assets to be transferred are picked up can be determined by judging whether the number of the addresses of the receiving ends stored by the blockchain service node is equal to the transfer number. In an example, the number of addresses of the receiving end stored by the blockchain service node may indicate the number of red packets received, and the transfer number may be the number of red packets, and it is determined whether the red packets are robbed up by determining whether the number of red packets received is equal to the number of red packets.
Step S460: and when the number of the addresses of the receiving end stored by the block chain service node is equal to the transfer number, calling an intelligent contract.
In this embodiment of the present application, when the number of addresses of the receiving end stored by the blockchain service node is equal to the transfer number, the sending end may invoke an intelligent contract. Specifically, when the number of addresses of the receiving terminals stored in the blockchain service node is equal to the transfer number, it may be indicated that all assets to be transferred have been received, and then the sending terminal may invoke an intelligent contract, and the intelligent contract transfers the assets to be transferred to the multiple receiving terminals respectively according to the information of the assets to be transferred.
In some embodiments, when the number of the addresses of the receiving end stored by the blockchain service node is not equal to the transfer number, it may be determined whether the asset to be transferred satisfies a forced transfer condition. The mandatory transfer condition may be that a part of the assets to be transferred is picked up, that is, a part of the receivers click on the asset transfer link, and address information and account information of the part of the receivers are stored on the blockchain service node.
And when the assets to be transferred meet the forced transfer condition, calling an intelligent contract, wherein the intelligent contract can transfer the assets to be transferred to the accounts of the receiving ends stored by the block chain service nodes respectively based on the information of the assets to be transferred.
The asset transfer method provided by the above embodiment receives an asset transfer request, where the asset transfer request includes information of assets to be transferred; responding to the asset transfer request, sending the asset information to be transferred and the address information of the sending end to the block chain service node so that the block chain service node stores the asset information to be transferred and the address information, and generating identification information of the asset to be transferred based on the asset information to be transferred and the address information; acquiring identification information of assets to be transferred, which is returned by a block chain service node; acquiring the number of addresses of receiving ends stored by a block chain service node based on the identification information of the assets to be transferred; judging whether the number of the addresses of the receiving ends stored by the block chain service node is equal to the transfer number; and when the number of the addresses of the receiving end stored by the block chain service node is equal to the transfer number, calling an intelligent contract. In the embodiment, when the number of the addresses of the receiving end stored by the block chain service node is equal to the transfer number, the intelligent contract is called, so that the transfer of multiple assets can be confirmed at one time, and the user commission charge is further saved.
Referring to fig. 6, fig. 6 is a schematic flowchart illustrating a further asset transfer method according to an embodiment of the present application, where the method includes:
step S510: an asset recharge request is received, the asset recharge request including a particular quantity of assets.
Before the asset transfer request, that is, before the sending end user inputs the asset information to be transferred, the sending end user needs to pre-store the asset into the account of the intelligent contract. Specifically, a user at a sending end can operate in an interface of the sending end to input the quantity of assets to be recharged, so as to generate an asset recharging request, and the sending end can receive the asset recharging request, wherein the asset recharging request comprises a specific quantity of assets, and the specific quantity is the quantity input by the user. The asset transfer request may be to transfer assets that are pre-stored in an account of the smart contract.
Step S520: and acquiring the type of the asset corresponding to the asset recharging request.
In the embodiment of the application, the type of the asset corresponding to the asset recharging request can be further obtained. Wherein the type of asset may be the currency of the digital currency. The currency of the digital currency may be a native currency on the blockchain network, or may be a contract currency supported by the blockchain network, and may be at least one of an ethernet currency (ETH), a Bitcoin (BTC), a Bitcoin Currency (BCH), a leite currency (LTC), and a CoinEx token (CET), for example, but not limited thereto. When the user of the sending end inputs the quantity of the assets to be recharged, the user can firstly select the types of the assets, so that the sending end can obtain the types of the assets corresponding to the recharging request according to the asset recharging request.
Step S530: when the type of the asset is a primary currency of the main chain, a specific amount of the asset is charged to an account of the smart contract based on the asset charging request.
In an embodiment of the application, when the type of the asset is a primary currency of the main chain, a specific amount of the asset can be charged to an account of the smart contract based on the asset charging request. Specifically, when the type of the asset is a primary coin, a sending transaction can be directly initiated, and the sending transaction can include address information of a sending end, an asset recharging request and address information of an intelligent contract, so that a sending transaction record for transferring a specific number of assets from the address of the sending end to an account of the intelligent contract is generated, the sending transaction record is verified through a block chain link point of a block chain network, and the specific number of assets can be transferred from the account of the sending end to the account of the intelligent contract after the verification is passed.
In some embodiments, when the sender user inputs the amount of the asset to be recharged based on the sender, the miner fee is reserved in the account of the sender, that is, the commission fee paid to the miner for initiating the transaction in the blockchain network is used for paying the calculation resource consumed by the transfer. The method is characterized in that when the asset transfer is initiated to be completed, a miner of a block chain network is a block chain link point, the miner needs to pack and place the asset transfer transaction into a block chain to complete the asset transfer transaction, the operation resources of the block chain are consumed in the process, and meanwhile, when the asset transfer transaction is completed, the fee of the miner is deducted from an account of a sending end, so that when a user of the sending end inputs the quantity of assets to be recharged, the fee of the miner needs to be reserved, and the asset transfer transaction can be ensured to be normally carried out.
In some embodiments, when the type of asset is not a primary currency of the backbone, but an ERC20 token, the contract advance method of ERC20 token may be invoked to authorize the asset to be transferred so that the intelligent contract of the present application may conduct asset transfer transactions.
In some embodiments, the sender user may retrieve the asset that has been recharged at any time. Specifically, the extraction transaction request may be constructed, and if the type of the asset is the primary currency, the asset in the account of the intelligent contract may be extracted into the account of the sending end according to the extraction transaction request. If the asset type is ERC20 token, a transferFrom may be invoked to transfer the token to the sender's account based on the extract transaction request.
The asset transfer method provided by the above embodiment receives an asset recharging request, where the asset recharging request includes a specific number of assets; acquiring the type of the asset corresponding to the asset recharging request; when the type of the asset is a primary currency of the main chain, the asset of the characteristic quantity is charged to the account of the intelligent contract based on the asset charging request. In the embodiment, the assets are charged into the account of the intelligent contract, so that the assets to be transferred can be transferred from the account of the intelligent contract to a plurality of receiving ends when the assets to be transferred are transferred, and the overhead of the block chain is further reduced.
Referring to fig. 7, fig. 7 is a block diagram illustrating an asset transfer device 700 according to an embodiment of the present disclosure. As will be explained below with respect to the block diagram shown in fig. 7, the asset transfer device 700 comprises: a request receiving module 710, an information sending module 720, an information obtaining module 730, and a contract invoking module 740, wherein:
the request receiving module 710 is configured to receive an asset transfer request, where the asset transfer request includes information of an asset to be transferred.
And the information sending module 720 is configured to respond to the asset transfer request, send the asset information to be transferred and the address information of the sending end to the blockchain service node, so that the blockchain service node stores the asset information to be transferred and the address information, and generate the identification information of the asset to be transferred based on the asset information to be transferred and the address information.
The information obtaining module 730 is configured to obtain identification information of the asset to be transferred, which is returned by the block chain service node, and obtain state information of the asset to be transferred based on the identification information of the asset to be transferred.
Further, the asset information to be transferred includes the number of transfers, and the information obtaining module 730 includes: an address number obtaining submodule and a number judging submodule, wherein:
and the address number obtaining submodule is used for obtaining the number of the addresses of the receiving ends stored by the block chain service node based on the identification information of the assets to be transferred.
And the number judgment submodule is used for judging whether the number of the addresses of the receiving end stored by the block chain service node is equal to the transfer number.
Further, the information obtaining module 730 further includes: the condition judgment submodule and the first contract calling submodule, wherein:
and the condition judgment submodule is used for judging whether the assets to be transferred meet the forced transfer condition or not when the number of the addresses of the receiving ends stored by the block chain service node is not equal to the transfer number.
And the first contract calling submodule is used for calling the intelligent contract when the assets to be transferred meet the forced transfer condition so that the intelligent contract respectively transfers the assets to be transferred to the accounts of the receiving ends stored by the block chain service nodes based on the information of the assets to be transferred.
And the contract calling module 740 is configured to call the intelligent contract when the state information of the assets to be transferred meets the preset state information, so that the intelligent contract respectively transfers the assets to be transferred to the accounts of the multiple receiving ends based on the asset information to be transferred.
Further, the contract invoking module 740 includes: the second contract invokes a submodule in which:
and the second contract calling submodule is used for calling the intelligent contract when the number of the addresses of the receiving end stored by the block chain service node is equal to the transfer number.
Further, the asset transfer device 700 further comprises: link generation module and link sending module, wherein:
and the link generation module is used for generating the asset transfer link based on the identification information of the asset to be transferred and the address information of the sending end.
And the link sending module is used for sending the asset transfer links to a plurality of receiving ends.
Further, the asset transfer device 700 further comprises: a recharge request receiving module, a type obtaining module and an asset recharge module, wherein:
the charging request receiving module is used for receiving the asset charging request, and the asset charging request comprises a specific quantity of assets.
And the type acquisition module is used for acquiring the type of the asset corresponding to the asset recharging request.
And the asset recharging module is used for recharging a specific amount of assets to the account of the intelligent contract based on the asset recharging request when the type of the assets is the primary currency of the main chain.
As will be clear to those skilled in the art, the asset transfer device provided in the embodiment of the present application can implement each process in the foregoing method embodiment, and for convenience and brevity of description, the specific working processes of the device and the module described above may refer to corresponding processes in the foregoing method embodiment, and are not described herein again.
In the embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or modules may be in an electrical, mechanical or other form.
In addition, each functional module in the embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The embodiment of the present application further provides an asset transfer system, where the asset transfer system includes a sending end, a blockchain service node and an intelligent contract, the sending end is in communication connection with the blockchain service node, and the intelligent contract is deployed on a blockchain, where:
the sending terminal receives an asset transfer request, and the asset transfer request comprises asset information to be transferred.
And the sending end responds to the asset transfer request and sends the asset information to be transferred and the address information of the sending end to the block chain service node.
And the block chain service node stores the asset information to be transferred and the address information, and generates identification information of the asset to be transferred based on the asset information to be transferred and the address information.
The sending end obtains identification information of the assets to be transferred, which is returned by the block chain service node, and obtains state information of the assets to be transferred based on the identification information of the assets to be transferred.
And when the state information of the assets to be transferred meets the preset state information, the sending end calls the intelligent contract.
And the intelligent contract transfers the assets to be transferred to the accounts of the multiple receiving ends respectively based on the asset information to be transferred.
Further, the asset transfer system further comprises a receiving end, the receiving end is in communication connection with the blockchain service node and the transmitting end respectively, wherein:
and the sending end generates an asset transfer link based on the identification information of the asset to be transferred and the address information of the sending end.
The sending end sends the asset transfer link to the receiving end.
And the receiving terminal acquires the identification information of the assets to be transferred based on the asset transfer link and generates a temporary address.
And the receiving terminal sends the temporary address, the identification information of the asset to be transferred and the account information of the receiving terminal to the block chain service node.
And verifying the identification information of the assets to be transferred and the account information of the receiving end by the block chain service node to obtain a verification result.
And when the verification result represents that the performance is correct, the blockchain service node stores the temporary address and the account information of the receiving end.
Referring to fig. 8, a block diagram of an electronic device 800 according to an embodiment of the present disclosure is shown. The electronic device 800 may be a desktop computer, laptop computer, notebook computer, tablet computer, cellular telephone, smart phone, smart watch, smart television, implantable computing device, wearable electronic device, or the like capable of running an application. The electronic device 800 may be the transmitting end 110 or the receiving end 120, which is not limited herein. The electronic device 800 in the present application may include one or more of the following components: a processor 810, a memory 820, and one or more applications, wherein the one or more applications may be stored in the memory 820 and configured to be executed by the one or more processors 810, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 810 may include one or more processing cores. The processor 810 interfaces with various interfaces and circuitry throughout the electronic device 800 to perform various functions and process data of the electronic device 800 by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 820 and invoking data stored in the memory 820. Alternatively, the processor 810 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-programmable gate array (FPGA), and Programmable Logic Array (PLA). The processor 810 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 810, but may be implemented by a communication chip.
The memory 820 may include a Random Access Memory (RAM) or a read-only memory (ROM). The memory 820 may be used to store instructions, programs, code sets, or instruction sets. The memory 820 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The data storage area may also store data created during use by the electronic device 800 (e.g., phone books, audio-visual data, chat log data), and so forth.
Referring to fig. 9, a block diagram of a computer-readable storage medium according to an embodiment of the present disclosure is shown. The computer-readable storage medium 900 has stored therein program code that can be invoked by a processor to perform the methods described in the above-described method embodiments.
The computer-readable storage medium 900 may be an electronic memory such as a flash memory, an electrically-erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a hard disk, or a ROM. Alternatively, the computer-readable storage medium 900 includes a non-volatile computer-readable medium (non-transitory-readable storage medium). The computer readable storage medium 900 has storage space for program code 910 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 910 may be compressed, for example, in a suitable form.
To sum up, the asset transfer method, device, electronic device and storage medium provided in the embodiments of the present application include: receiving an asset transfer request, wherein the asset transfer request comprises asset information to be transferred; responding to the asset transfer request, and sending asset information to be transferred and address information of a sending end to a block chain service node; acquiring identification information of the assets to be transferred, which is returned by the block chain service node, and acquiring state information of the assets to be transferred based on the identification information of the assets to be transferred; and when the state information of the assets to be transferred meets the preset state information, calling the intelligent contract so that the intelligent contract transfers the assets to be transferred to accounts of the multiple receiving ends respectively based on the asset information to be transferred. Therefore, when the state information of the assets to be transferred meets the preset state information, the intelligent contract is called, so that the assets to be transferred are transferred by the intelligent contract, the assets are transferred in batches, and the block chain overhead is saved.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. An asset transfer method, applied to a transmitting end, the method comprising:
receiving an asset transfer request, wherein the asset transfer request comprises asset information to be transferred;
responding to the asset transfer request, sending the asset information to be transferred and the address information of the sending end to a block chain service node so that the block chain service node stores the asset information to be transferred and the address information, and generating identification information of the asset to be transferred based on the asset information to be transferred and the address information;
acquiring identification information of the assets to be transferred, which is returned by the blockchain service node, and acquiring state information of the assets to be transferred based on the identification information of the assets to be transferred;
and when the state information of the assets to be transferred meets preset state information, calling an intelligent contract so that the intelligent contract transfers the assets to be transferred to accounts of a plurality of receiving ends respectively based on the assets to be transferred.
2. The method according to claim 1, wherein after obtaining the identification information of the asset to be transferred, which is returned by the blockchain service node, further comprising:
generating an asset transfer link based on the identification information of the asset to be transferred and the address information of the sending end;
and respectively sending the asset transfer links to a plurality of receiving ends.
3. The method according to claim 1, wherein the information of the assets to be transferred includes a transfer number, and the obtaining the status information of the assets to be transferred based on the identification information of the assets to be transferred includes:
acquiring the number of addresses of receiving ends stored by the block chain service node based on the identification information of the assets to be transferred;
judging whether the number of the addresses of the receiving ends stored by the block chain service node is equal to the transfer number or not;
when the state information of the assets to be transferred meets the preset state information, calling an intelligent contract, wherein the intelligent contract comprises the following steps:
and when the number of the addresses of the receiving ends stored by the block chain service node is equal to the transfer number, calling an intelligent contract.
4. The method of claim 3, wherein after determining whether the number of addresses of the receiving end stored by the blockchain service node is equal to the number of transitions, the method further comprises:
when the number of the addresses of the receiving ends stored by the block chain service node is not equal to the transfer number, judging whether the assets to be transferred meet a forced transfer condition;
and when the assets to be transferred meet the forced transfer conditions, calling the intelligent contract so that the intelligent contract transfers the assets to be transferred to accounts of receiving ends stored by the block chain service nodes respectively based on the assets to be transferred information.
5. The method of claim 1, wherein prior to receiving the asset transfer request, further comprising:
receiving an asset recharge request, the asset recharge request including a particular quantity of assets;
acquiring the type of the asset corresponding to the asset recharging request;
when the type of the asset is a primary currency, the specific amount of the asset is charged to an account of the smart contract based on the asset charging request.
6. An asset transfer method is applied to an asset transfer system, the asset transfer system comprises a sending end, a blockchain service node and an intelligent contract, the sending end is connected with the blockchain service node in a communication mode, and the intelligent contract is deployed on a blockchain, and the method comprises the following steps:
the sending end receives an asset transfer request, wherein the asset transfer request comprises asset information to be transferred;
the sending end responds to the asset transfer request and sends the asset information to be transferred and the address information of the sending end to the block chain service node;
the block chain service node stores the asset information to be transferred and the address information, and generates identification information of the asset to be transferred based on the asset information to be transferred and the address information;
the sending end obtains the identification information of the assets to be transferred, which is returned by the block chain service node, and obtains the state information of the assets to be transferred based on the identification information of the assets to be transferred;
when the state information of the assets to be transferred meets preset state information, the sending end calls the intelligent contract;
and the intelligent contract transfers the assets to be transferred to accounts of a plurality of receiving ends respectively based on the asset information to be transferred.
7. The method according to claim 6, wherein the asset transfer system further includes a receiving end, the receiving end is respectively in communication connection with the blockchain service node and the sending end, and after the sending end obtains the identification information of the asset to be transferred, which is returned by the blockchain service node, the method further includes:
the sending end generates an asset transfer link based on the identification information of the asset to be transferred and the address information of the sending end;
the sending end sends the asset transfer link to a receiving end;
the receiving end acquires identification information of the assets to be transferred based on the asset transfer link and generates a temporary address;
the receiving end sends the temporary address, the identification information of the asset to be transferred and the account information of the receiving end to the block chain service node;
the block chain service node verifies the identification information of the assets to be transferred and the account information of the receiving end to obtain a verification result;
and when the verification result represents that the verification is correct, the block chain service node stores the temporary address and the account information of the receiving end.
8. An asset transfer device, applied to a transmitting end, the device comprising:
the system comprises a request receiving module, a transfer module and a transfer module, wherein the request receiving module is used for receiving an asset transfer request, and the asset transfer request comprises asset information to be transferred;
the information sending module is used for responding to the asset transfer request, sending the asset information to be transferred and the address information of the sending end to a block chain service node so that the block chain service node stores the asset information to be transferred and the address information, and generating identification information of the asset to be transferred based on the asset information to be transferred and the address information;
the information acquisition module is used for acquiring the identification information of the assets to be transferred, which is returned by the block chain service node, and acquiring the state information of the assets to be transferred based on the identification information of the assets to be transferred;
and the contract calling module is used for calling an intelligent contract when the state information of the assets to be transferred meets the preset state information so as to enable the intelligent contract to transfer the assets to be transferred to accounts of a plurality of receiving ends respectively based on the assets to be transferred.
9. An electronic device comprising a memory and a processor, the memory coupled to the processor, the memory storing instructions that, when executed by the processor, the processor performs the method of any of claims 1-7.
10. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 7.
CN201911266880.6A 2019-12-11 2019-12-11 Asset transfer method, device, electronic equipment and storage medium Pending CN111028081A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911266880.6A CN111028081A (en) 2019-12-11 2019-12-11 Asset transfer method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911266880.6A CN111028081A (en) 2019-12-11 2019-12-11 Asset transfer method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111028081A true CN111028081A (en) 2020-04-17

Family

ID=70208725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911266880.6A Pending CN111028081A (en) 2019-12-11 2019-12-11 Asset transfer method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111028081A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111583002A (en) * 2020-04-30 2020-08-25 财付通支付科技有限公司 Data processing method, data processing device, electronic equipment and storage medium
CN112541764A (en) * 2020-12-17 2021-03-23 成都知道创宇信息技术有限公司 Asset management method, device and system based on intelligent contract
CN112967041A (en) * 2021-02-26 2021-06-15 成都质数斯达克科技有限公司 Asset exchange method, electronic device and readable storage medium
TWI748490B (en) * 2020-05-29 2021-12-01 鴻海精密工業股份有限公司 Privacy protection method, blockchain node device and storage medium for blockchain transfer transactions
US11983713B2 (en) 2020-05-29 2024-05-14 Hon Hai Precision Industry Co., Ltd. Blockchain transaction privacy protection method and blockchain node device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107301536A (en) * 2017-06-12 2017-10-27 腾讯科技(深圳)有限公司 Resource transfers method and device
CN108921525A (en) * 2018-06-29 2018-11-30 北京金山安全软件有限公司 Processing method and device for block chain red packet, electronic equipment and medium
CN110517138A (en) * 2019-08-20 2019-11-29 深圳市网心科技有限公司 Intelligent contract processing method, device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107301536A (en) * 2017-06-12 2017-10-27 腾讯科技(深圳)有限公司 Resource transfers method and device
CN108921525A (en) * 2018-06-29 2018-11-30 北京金山安全软件有限公司 Processing method and device for block chain red packet, electronic equipment and medium
CN110517138A (en) * 2019-08-20 2019-11-29 深圳市网心科技有限公司 Intelligent contract processing method, device, computer equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111583002A (en) * 2020-04-30 2020-08-25 财付通支付科技有限公司 Data processing method, data processing device, electronic equipment and storage medium
TWI748490B (en) * 2020-05-29 2021-12-01 鴻海精密工業股份有限公司 Privacy protection method, blockchain node device and storage medium for blockchain transfer transactions
US11983713B2 (en) 2020-05-29 2024-05-14 Hon Hai Precision Industry Co., Ltd. Blockchain transaction privacy protection method and blockchain node device
CN112541764A (en) * 2020-12-17 2021-03-23 成都知道创宇信息技术有限公司 Asset management method, device and system based on intelligent contract
CN112541764B (en) * 2020-12-17 2023-11-28 成都知道创宇信息技术有限公司 Asset management method, device and system based on intelligent contract
CN112967041A (en) * 2021-02-26 2021-06-15 成都质数斯达克科技有限公司 Asset exchange method, electronic device and readable storage medium

Similar Documents

Publication Publication Date Title
CN111028081A (en) Asset transfer method, device, electronic equipment and storage medium
JP6770063B2 (en) Methods and devices for implementing service functions
CN109146437B (en) Virtual resource processing method, client and storage medium
CN105814591A (en) Verification information transmission method and terminal
US9948645B2 (en) Techniques for call-based user verification
CN104618101A (en) Data processing method, intermediate server and data processing system
WO2019034159A1 (en) Method, system, and apparatus for information processing
WO2021120868A1 (en) Resource settlement method and apparatus, electronic device and storage medium
CN104601712A (en) Resource push method and system
CN106470391B (en) Method and device for group sending of service data
CN106385516B (en) A kind of method, apparatus and terminal of the transfer of setting business
WO2024016619A1 (en) Payment method, apparatus and system based on 5g messaging application, and device and medium
CN105577621B (en) Business operation verification method, device and system
CN108156206B (en) Data transfer method, server, client and system
CN113362064B (en) Multiple signature method, computer device, and storage medium
US9402178B2 (en) Paid instant message system and method for authenticating identities using a mobile telephone network
CN104899730B (en) Mobile terminal data processing method, terminal and system
CN114710482A (en) File detection method and device, electronic equipment and storage medium
US10917244B1 (en) Blockchain network communication management
CN111476562A (en) Virtual resource transfer method, device, electronic equipment and storage medium
CN110912974A (en) Resource processing method and device, electronic equipment and computer readable storage medium
CN111415245A (en) Account opening method and device
CN110430256B (en) Method, device and computer system for pushing transaction message
CN104917730A (en) Authentication method, system and authentication server
US20100057891A1 (en) System and method for providing internet services by a portal device

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210412

Address after: 518000 High-tech Building, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Yang Min

Address before: 518000 room 1201, 12th floor, science and technology industrial building, science and Technology Park, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen Yiqu Technology Co.,Ltd.

RJ01 Rejection of invention patent application after publication

Application publication date: 20200417