CN112446787A - Resource transfer method, device, equipment and storage medium - Google Patents

Resource transfer method, device, equipment and storage medium Download PDF

Info

Publication number
CN112446787A
CN112446787A CN202011330849.7A CN202011330849A CN112446787A CN 112446787 A CN112446787 A CN 112446787A CN 202011330849 A CN202011330849 A CN 202011330849A CN 112446787 A CN112446787 A CN 112446787A
Authority
CN
China
Prior art keywords
resource
account
blockchain
management server
target
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
CN202011330849.7A
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.)
Hangzhou Qulian Technology Co Ltd
Original Assignee
Hangzhou Qulian 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 Hangzhou Qulian Technology Co Ltd filed Critical Hangzhou Qulian Technology Co Ltd
Priority to CN202011330849.7A priority Critical patent/CN112446787A/en
Priority to PCT/CN2020/138076 priority patent/WO2022110404A1/en
Publication of CN112446787A publication Critical patent/CN112446787A/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Abstract

The application discloses a resource transfer method, a resource transfer device, resource transfer equipment and a storage medium, and belongs to the technical field of block chains. The block chain system comprises: registering a corresponding first block chain account for a first resource account, and registering a corresponding second block chain account for a second resource account, wherein the first resource account and the second resource account are obtained by registering in different resource management servers; receiving a resource transfer request, wherein the resource transfer request carries a first resource quantity which needs to be transferred from a first resource account to a second resource account; determining the number of first coins corresponding to the first resource number; and transferring the tokens with the first number of the coins in the balance of the first blockchain account into the balance of the second blockchain account. The method and the device can accelerate the process processing speed, improve the resource transfer efficiency and simultaneously avoid exchange loss.

Description

Resource transfer method, device, equipment and storage medium
Technical Field
The present application relates to the field of block chaining technologies, and in particular, to a method, an apparatus, a device, and a storage medium for resource transfer.
Background
Along with the increasing closeness of global economic communication, the cross-border trade is increased, and the demand of on-line cross-border payment is also increased.
At present, banks in different countries jointly establish a block chain-based cross-border payment system, and agree to use the currency of any country as the intermediary currency. When cross-border payment is carried out, a certain bank calls a block chain intelligent contract to purchase the intermediary currency by using the currency of the country, and the intermediary currency is paid to the bank where the payee is located through the cross-border payment system. After the bank where the payee is located receives the intermediary currency, the bank where the payee is located calls the block chain intelligent contract to sell the intermediary currency to obtain the currency of the country where the bank is located, and the obtained currency is added into the account of the payee.
However, in the cross-border payment process, multiple exchanges between the currency and the intermediary currency in different countries are required, which is prone to cause exchange loss.
Disclosure of Invention
The embodiment of the application provides a resource transfer method, a resource transfer device, resource transfer equipment and a storage medium, and can avoid exchange loss. The technical scheme is as follows:
in a first aspect, a resource transfer method is provided, which is applied to a block chain system, and the method includes:
registering a corresponding first block chain account for a first resource account, and registering a corresponding second block chain account for a second resource account, wherein the first resource account and the second resource account are registered in different resource management servers;
receiving a resource transfer request, wherein the resource transfer request carries a first resource quantity which needs to be transferred from the first resource account to the second resource account;
determining the number of first coins corresponding to the first resource number;
transferring the tokens of the first number of tokens in the balance of the first blockchain account to the balance of the second blockchain account.
In the present application, when receiving a resource transfer request from a first resource account to a second resource account, a blockchain system transfers a token in the first blockchain account corresponding to the first resource account to the second blockchain account corresponding to the second resource account. As such, the resource transfer between resource accounts in different resource management servers is translated to a token transfer between different blockchain accounts in a blockchain system. On one hand, the method can accelerate the process processing speed, improve the resource transfer efficiency and simultaneously avoid the exchange loss problem in the related technology. On the other hand, the non-tamper property of the block chain can reduce the resource transfer risk, once a problem occurs, the tracing can be accurately tracked, the specific process point and responsible person of the problem can be positioned, and the method is safe and reliable.
Optionally, the method further comprises:
setting the balance of a block chain account corresponding to a resource account according to the resource transfer condition between the resource account and a corresponding target account, wherein the resource account is the first resource account or the second resource account, and the resource account and the corresponding target account are obtained by registering in the same resource management server.
Optionally, the setting, according to a resource transfer condition between a resource account and a corresponding target account, a balance of a blockchain account corresponding to the resource account includes:
receiving a token storage request, wherein the token storage request carries a second resource amount to be stored by the first resource account;
transferring the resources with the second resource quantity in the first resource account to a target account corresponding to the first resource account;
determining the number of second coins corresponding to the second resource number;
and transferring the tokens of the second token number in the balance of the target blockchain account into the balance of the first blockchain account.
Optionally, the setting, according to a resource transfer condition between a resource account and a corresponding target account, a balance of a blockchain account corresponding to the resource account includes:
receiving a resource extraction request, wherein the resource extraction request carries a third resource quantity to be extracted by the second resource account;
determining the number of third coins corresponding to the number of the third resources;
transferring the tokens with the third generation currency number in the balance of the second blockchain account into the balance of a target blockchain account;
and transferring the resources of the third resource quantity in the target account corresponding to the second resource account into the second resource account.
Optionally, the method further comprises:
generating a target account resource transfer record according to the resource transfer condition between the resource account and the corresponding target account;
and sending the target account resource transfer record to a target resource management server, wherein the target resource management server is a resource management server to which the target account belongs, and the target resource management server is a resource management server for registering the target block chain account in the block chain system.
Optionally, the registering a corresponding first blockchain account for the first resource account includes:
receiving a block chain account registration request, wherein the block chain account registration request carries a first resource account identifier;
generating the first blockchain account, the account data of the first blockchain account including an account address and a balance;
and correspondingly storing the first resource account identification and the account address of the first block chain account.
Optionally, the resource management server registered with the first resource account and the resource management server registered with the second resource account are located in different regions.
In a second aspect, there is provided a resource transfer apparatus applied to a block chain system, the apparatus including:
the system comprises a registration module, a resource management server and a resource management module, wherein the registration module is used for registering a corresponding first block chain account for a first resource account and registering a corresponding second block chain account for a second resource account, and the first resource account and the second resource account are obtained by registering in different resource management servers;
a receiving module, configured to receive a resource transfer request, where the resource transfer request carries a first resource amount that needs to be transferred from the first resource account to the second resource account;
the determining module is used for determining the number of the first coins corresponding to the first resource number;
the transfer module is used for transferring the tokens with the first number of the coins in the balance of the first blockchain account to the balance of the second blockchain account.
Optionally, the apparatus further comprises a setting module, the setting module is configured to:
setting the balance of a block chain account corresponding to a resource account according to the resource transfer condition between the resource account and a corresponding target account, wherein the resource account is the first resource account or the second resource account, and the resource account and the corresponding target account are obtained by registering in the same resource management server.
Optionally, the setting module is configured to:
receiving a token storage request, wherein the token storage request carries a second resource amount to be stored by the first resource account;
transferring the resources with the second resource quantity in the first resource account to a target account corresponding to the first resource account;
determining the number of second coins corresponding to the second resource number;
and transferring the tokens of the second token number in the balance of the target blockchain account into the balance of the first blockchain account.
Optionally, the setting module is configured to:
receiving a resource extraction request, wherein the resource extraction request carries a third resource quantity to be extracted by the second resource account;
determining the number of third coins corresponding to the number of the third resources;
transferring the tokens with the third generation currency number in the balance of the second blockchain account into the balance of a target blockchain account;
and transferring the resources of the third resource quantity in the target account corresponding to the second resource account into the second resource account.
Optionally, the apparatus further comprises:
the generation module is used for generating a target account resource transfer record according to the resource transfer condition between the resource account and the corresponding target account;
a sending module, configured to send the target account resource transfer record to a target resource management server, where the target resource management server is a resource management server to which the target account belongs, and the target resource management server is a resource management server that registers the target blockchain account in the blockchain system.
Optionally, the registration module is configured to:
receiving a block chain account registration request, wherein the block chain account registration request carries a first resource account identifier;
generating the first blockchain account, the account data of the first blockchain account including an account address and a balance;
and correspondingly storing the first resource account identification and the account address of the first block chain account.
Optionally, the resource management server registered with the first resource account and the resource management server registered with the second resource account are located in different regions.
In a third aspect, a computer device is provided, the computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the computer program, when executed by the processor, implementing the above-mentioned resource transfer method.
In a fourth aspect, a computer-readable storage medium is provided, which stores a computer program that, when executed by a processor, implements the resource transfer method described above.
In a fifth aspect, a computer program product is provided comprising instructions which, when run on a computer, cause the computer to perform the steps of the above-described resource transfer method.
It is to be understood that, for the beneficial effects of the second aspect, the third aspect, the fourth aspect and the fifth aspect, reference may be made to the description of the first aspect, and details are not described herein again.
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 structural diagram of a blockchain system according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a block chain according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a resource transfer system according to an embodiment of the present application;
fig. 4 is a flowchart of a resource transfer method provided in an embodiment of the present application;
FIG. 5 is a flow chart of another resource transfer method provided by an embodiment of the present application;
fig. 6 is a schematic structural diagram of a resource transfer apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that reference to "a plurality" in this application means two or more. In addition, for the convenience of clearly describing the technical solutions of the present application, the terms "first", "second", and the like are used to distinguish the same items or similar items having substantially the same functions and actions. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
Before explaining the embodiments of the present application, the related contents of the block chain will be described.
Fig. 1 is a schematic structural diagram of a blockchain system according to an embodiment of the present disclosure.
Referring to fig. 1, a blockchain system 100 refers to a system for performing data sharing between nodes, a plurality of nodes 101 may be included in the blockchain system 100, and the plurality of nodes 101 may refer to respective clients in the blockchain system 100. Each node 101 may receive input information and maintain shared data within the blockchain system 100 based on the received input information while operating normally. In order to ensure information intercommunication in the blockchain system 100, there may be an information connection between each node 101 in the blockchain system 100, and information transmission between the nodes 101 may be performed through the information connection. For example, when an input message is received by any node 101 in the blockchain system 100, other nodes 101 in the blockchain system 100 acquire the input message according to the consensus algorithm, and store the input message as data in the shared data, so that the data stored in all nodes 101 in the blockchain system 100 are consistent.
Each node 101 in the blockchain system 100 stores one identical blockchain. Referring to fig. 2, a block chain is composed of a plurality of blocks, a starting block includes a block header and a block main body, the block header stores an input information characteristic value, a version number, a timestamp and a difficulty value, and the block main body stores input information; the next block of the starting block takes the starting block as a parent block, the next block also comprises a block head and a block main body, the block head stores the input information characteristic value of the current block, the block head characteristic value of the parent block, the version number, the timestamp and the difficulty value, and the like, so that the block data stored in each block in the block chain is associated with the block data stored in the parent block, and the safety of the input information in the block is ensured.
The blockchain system 100 has computer technologies such as distributed data storage, point-to-point transmission, consensus mechanisms, encryption algorithms, etc. The blockchain system 100 is a distributed shared ledger and database, and has the characteristics of decentralization, non-tampering, whole-course trace-keeping, traceability, collective maintenance, public transparency and the like. The characteristics ensure that the block chain is shared openly, real and complete, safe and reliable.
The system architecture according to the embodiments of the present application is described below.
Fig. 3 is a schematic diagram of a resource transfer system according to an embodiment of the present application. Referring to fig. 3, the resource transfer system includes: a plurality of resource management servers 301 and a blockchain system 302.
The blockchain system 302 may be the blockchain system 100 described above in the embodiments of fig. 1-2. Each resource management server 301 of the plurality of resource management servers 301 and the blockchain system 302 may communicate over a wired network or a wireless network. That is, each resource management server 301 of the plurality of resource management servers 301 may access the blockchain system 302.
Each resource management server 301 of the plurality of resource management servers 301 is for performing resource management. The resource may be a resource having a value of circulation, for example, the resource may be money, in which case the plurality of resource management servers 301 may be servers of respective financial institutions (e.g., banks).
In one possible scenario, any two resource management servers 301 in the plurality of resource management servers 301 are located in different regions, and the resources used in different regions are different. For example, any two resource management servers 301 in the plurality of resource management servers 301 are located in different organizations or countries, and the currencies of the different organizations or countries are different. In this case, the resource transfer between any two resource management servers 301 among the plurality of resource management servers 301 belongs to cross-border payment.
For any one resource management server 301 of the plurality of resource management servers 301, a user may register a resource account in this resource management server 301, and the user may deposit a resource to the resource account or withdraw a resource from the resource account. For example, the user may register a bank account with a server of a bank, and the user may deposit money into the bank account or withdraw money from the bank account. Each resource management server 301 may register a corresponding blockchain account for its resource accounts at blockchain system 302.
The plurality of resource management servers 301 include a target resource management server 3011 and other resource management servers 3012 other than the target resource management server 3011, and the number of the other resource management servers 3012 may be greater than or equal to 2. The target resource management server 3011 may be a resource management server of a token issuer. The other resource management server 3012 may be a resource management server that is not a token issuer. In the embodiment of the present application, the target resource management server 3011 may be deployed in a region qualified for issuing tokens, another resource management server 3012 may be deployed in another region, and a different resource management server 3012 may be deployed in a different region.
The target resource management server 3011 may register a resource account, which may be referred to as a target account and may also be referred to as a clearing account, in each of the other resource management servers 3012. That is, the target resource management server 3011 has a plurality of target accounts. Target resource management server 3011 may register a blockchain account with blockchain system 302, which may be referred to as a target blockchain account.
Blockchain accounts are accounts that exist on a blockchain that blockchain system 302 configures. That is, account data for blockchain accounts is stored in blockchains configured by blockchain system 302. The account data of the blockchain account may include an account address, a balance, a state variable, and the like, where the balance of the blockchain account indicates the number of tokens (tokens) owned by the blockchain account.
The other resource management servers 3012 include a first resource management server and a second resource management server. The first resource management server, the second resource management server, the target resource management server 3011 and the blockchain system 302 may execute the resource transfer method described in the embodiment of fig. 4 below to implement resource transfer between resource accounts in different resource management servers.
The resource transfer method provided in the embodiments of the present application is explained in detail below.
Fig. 4 is a flowchart of a resource transfer method according to an embodiment of the present application. Referring to fig. 4, the method includes the following steps.
The resource management server may register a corresponding blockchain account for the resource account at the blockchain system. The following description will take the first resource management server and the second resource management server as an example to describe the blockchain account registration process, which may include the following steps 401 to 404. In step 401 and step 402, the first resource management server registers a corresponding blockchain account for the first resource account in the blockchain system, and in step 403 and step 404, the second resource management server registers a corresponding blockchain account for the second resource account in the blockchain system.
Step 401: the first resource management server sends a blockchain account registration request to the blockchain system, wherein the blockchain account registration request carries the first resource account identifier.
The blockchain account registration request is used for requesting registration of a blockchain account corresponding to the first resource account.
The first resource account identifier is used to identify the first resource account, for example, the first resource account identifier may be a number of the first resource account. The first resource account is a resource account that the user is registered with in the first resource management server. For example, when the first resource management server is a server of a bank, the first resource account may be a bank account registered in the server of the bank by the user, and the first resource account identifier may be an account number of the bank account.
The user can initiate a block chain account registration application to the first resource management server through the first resource management client, wherein the block chain account registration application comprises a first resource account identifier and user information.
After receiving the blockchain account registration request, the first resource management server may send the blockchain account registration request to a blockchain system. Optionally, after receiving the blockchain account registration application, the first resource management server may first perform an audit on the blockchain account registration application, and after the audit is passed, send the blockchain account registration request to the blockchain system.
The first resource management server may automatically check the blockchain account registration application, for example, the first resource management server may check the blockchain account registration application according to a preset registration condition, where the registration condition may be preset according to a specific service requirement. If the block chain account registration application meets the registration condition, the first resource management server determines that the block chain account registration application is approved; if the blockchain account registration application does not meet the registration condition, the first resource management server determines that the blockchain account registration application is not approved.
Alternatively, the review of the blockchain account registration request by the first resource management server may be performed manually, for example, the review of the blockchain account registration request may be performed by a staff member of the first resource management server. When the staff determines that the block chain account registration application has no problem, an audit passing instruction can be triggered, and after the first resource management server detects the audit passing instruction, the first resource management server determines that the block chain account registration application is approved; when the staff determines that the block chain account registration application has a problem, an auditing failure instruction can be triggered, and after the first resource management server detects the auditing failure instruction, the first resource management server determines that the block chain account registration application is not approved.
Step 402: the blockchain system registers a corresponding first blockchain account for the first resource account.
Specifically, after receiving a blockchain account registration request sent by a first resource management server, a blockchain system may generate a first blockchain account, where account data of the first blockchain account includes an account address and a balance; and correspondingly storing the first resource account identifier carried by the block chain account registration request and the account address of the first block chain account.
After the first resource account identifier is stored in correspondence with the account address of the first blockchain account, the first resource account is bound to the first blockchain account.
The operation of generating the first blockchain account by the blockchain system is similar to the operation of generating a certain blockchain account by the blockchain system in the related art, which is not described in detail in the embodiments of the present application.
Step 403: and the second resource management server sends a block chain account registration request to the block chain system, wherein the block chain account registration request carries a second resource account identifier.
The blockchain account registration request is used for requesting registration of a blockchain account corresponding to the second resource account. The second resource management server is a different resource management server than the first resource management server. Optionally, the first resource management server and the second resource management server are located in different regions. For example, the first resource management server and the second resource management server may be deployed in different organizations or countries, and the resource transfer between the resource account in the first resource management server and the resource account in the second resource management server is cross-border payment.
The second resource account identifier is used to identify the second resource account, for example, the second resource account identifier may be a number of the second resource account. The second resource account is a resource account that the user is registered with in the second resource management server. For example, when the second resource management server is a server of a bank, the second resource account may be a bank account registered in the server of the bank by the user, and the second resource account identifier may be an account number of the bank account.
The user can initiate a block chain account registration application to the second resource management server through the second resource management client, wherein the block chain account registration application comprises a second resource account identifier and user information.
After receiving the blockchain account registration application, the second resource management server may send the blockchain account registration request to the blockchain system. Optionally, after receiving the blockchain account registration application, the second resource management server may first perform an audit on the blockchain account registration application, and after the audit is passed, send the blockchain account registration request to the blockchain system.
The second resource management server may automatically check the blockchain account registration application, for example, the second resource management server may check the blockchain account registration application according to a preset registration condition, and the registration condition may be preset according to a specific service requirement. If the block chain account registration application meets the registration condition, the second resource management server determines that the block chain account registration application is approved; and if the block chain account registration application does not meet the registration condition, the second resource management server determines that the block chain account registration application is not approved.
Alternatively, the second resource management server may perform the review of the blockchain account registration request manually, for example, a worker of the second resource management server may perform the review of the blockchain account registration request. When the staff determines that the block chain account registration application has no problem, an audit passing instruction can be triggered, and after the second resource management server detects the audit passing instruction, the second resource management server determines that the block chain account registration application is approved; when the staff determines that the block chain account registration application has a problem, an auditing failure instruction can be triggered, and after the second resource management server detects the auditing failure instruction, the second resource management server determines that the block chain account registration application is not approved.
Step 404: the blockchain system registers a corresponding second blockchain account for the second resource account.
Specifically, after receiving a blockchain account registration request sent by a second resource management server, the blockchain system may generate a second blockchain account, where account data of the second blockchain account includes an account address and a balance; and correspondingly storing the second resource account identifier carried by the block chain account registration request and the account address of the second block chain account.
After the second resource account identifier is stored in correspondence with the account address of the second blockchain account, the second resource account is bound to the second blockchain account.
The operation of generating the second blockchain account by the blockchain system is similar to the operation of generating a certain blockchain account by the blockchain system in the related art, which is not described in detail in the embodiments of the present application.
Further, after the blockchain system registers the corresponding blockchain account for the resource account in the resource management server, the blockchain system may also set the balance of the blockchain account corresponding to the resource account according to the resource transfer condition between the resource account and the corresponding target account. The resource account is a first resource account or a second resource account.
The resource account and the corresponding target account are registered in the same resource management server. The resource account is obtained by registering a user in a resource management server, and the target account corresponding to the resource account is obtained by registering a target resource management server in the resource management server. All resource accounts in one resource management server correspond to one target account in the resource management server, that is, the target account corresponding to a certain resource account is the target account in the resource management server to which the resource account belongs. Resource transfer can be directly carried out between the resource account and the target account which belong to the same resource management server. For example, transfers may be made directly between multiple bank accounts belonging to the same bank's server.
In a possible case, the operation of setting the balance of the blockchain account corresponding to the resource account by the blockchain system according to the resource transfer condition between the resource account and the corresponding target account may be an operation of charging the blockchain account by the user to which the resource account belongs through the resource account. Recharging the blockchain account stores tokens in the blockchain account.
Taking the example that the user to which the first resource account belongs charges the corresponding blockchain account through the first resource account as an example, the specific process may include the following steps 405 to 407. The process of recharging the corresponding blockchain account by the user to which the second resource account belongs through the second resource account is similar, and details of this embodiment are not repeated.
Step 405: the first resource management server sends a token storage request to the blockchain system.
The token storage request carries a second amount of resources to be stored by the first resource account. In particular, the token store request may include a first resource account identification and a second resource amount.
The user can initiate a token storage application to the first resource management server through the first resource management client, wherein the token storage application comprises a first resource account identifier, user information and a second resource quantity to be stored.
The first resource management server may send the token storage request to the blockchain system after receiving the token storage request. Optionally, after receiving the token storage application, the first resource management server may perform an audit on the token storage application, and send the token storage request to the block chain system after the audit is passed.
The checking of the token storage application by the first resource management server may be performed automatically, for example, the first resource management server may check the token storage application according to a preset storage condition, and the storage condition may be preset according to a specific business requirement. If the token storage application meets the storage condition, the first resource management server determines that the token storage application passes the verification; if the token storage application does not meet the storage condition, the first resource management server determines that the token storage application is not approved.
Alternatively, the audit of the token storage application by the first resource management server may be performed manually, for example, the audit of the token storage application may be performed by a staff member of the first resource management server. When the staff determines that the token storage application has no problem, an audit passing instruction can be triggered, and after the first resource management server detects the audit passing instruction, the first resource management server determines that the token storage application is approved; when the staff determines that the token storage application has a problem, an auditing failure instruction can be triggered, and after the first resource management server detects the auditing failure instruction, the staff determines that the token storage application auditing failure occurs.
Step 406: and after receiving the token storage request sent by the first resource management server, the block chain system transfers the resources with the second resource quantity in the first resource account to the target account corresponding to the first resource account.
In this case, the resource in the first resource account is transferred to the target account in the same resource management server as the first resource account.
Specifically, after receiving a token storage request sent by a first resource management server, a block chain system calls a resource transfer interface provided by the first resource management server according to a first resource account identifier, a second resource amount and a target account identifier corresponding to the first resource management server carried in the token storage request, so as to transfer the resource of the second resource amount in the first resource account to the target account in the first resource management server, that is, to transfer the resource to the target account corresponding to the first resource account.
Each resource management server has a target account registered therein. The blockchain system may pre-store the target account id corresponding to each resource management server. For a certain resource management server, the target account identifier corresponding to the resource management server is used to identify the target account in the resource management server, for example, the target account identifier may be a number of the target account. The target account in the resource management server is the target account corresponding to the resource account in the resource management server.
Step 407: and the blockchain system determines the number of second coins corresponding to the second resource quantity, and transfers the tokens of the second coins in the balance of the target blockchain account into the balance of the first blockchain account.
In this case, the token in the target blockchain account is transferred to the first blockchain account.
There may be a conversion rate between the number of resources and the number of tokens, for example a conversion rate that may be set to 1:1, in which case the number of resources and the number of tokens are the same. Of course, other conversion rates may also be set, and the setting may be specifically performed according to business requirements, which is not limited in this application embodiment.
After receiving a token storage request sent by a first resource management server, the block chain system may determine an account address corresponding to a first resource account identifier carried in the token storage request, and use a block chain account to which the acquired account address belongs as a first block chain account corresponding to the first resource account.
The operation of transferring the tokens of the second token number in the balance of the target blockchain account to the balance of the first blockchain account by the blockchain system is to reduce the tokens of the second token number in the balance of the target blockchain account and increase the tokens of the second token number in the balance of the first blockchain account.
The target blockchain account is registered in the blockchain system by the target resource management server. The target resource management server, as a resource management server of a token issuer, may pre-store a large number of tokens in the target block chain account for use in resource transfer between resource accounts of different resource management servers.
In this embodiment, the block chain system may transfer the resource in the first resource account to a target account in a resource management server that belongs to the same resource account as the first resource account, and then transfer the token in the target block chain account to the first block chain account corresponding to the first resource account. Therefore, the effect of using the resources in the first resource account and storing the token in the first block chain account corresponding to the first resource account is achieved, and the recharging of the first block chain account is realized.
Further, after the user to which the resource account belongs recharges the blockchain account corresponding to the resource account through the resource account, the balance in the blockchain account can be used for resource transfer operation.
Taking the example of transferring resources from the first resource account to the second resource account as an example, the specific process may include the following steps 408 to 409. The process of transferring resources from the second resource account to the first resource account is similar, and details of this embodiment are not repeated.
Step 408: the first resource management server sends a resource transfer request to the blockchain system.
The resource transfer request is used to request a resource transfer. The resource transfer request carries a first resource amount that the first resource account needs to transfer to the second resource account. Specifically, the resource transfer request may carry a resource account identifier of the payer (i.e., a first resource account identifier), a resource account identifier of the payee (i.e., a second resource account identifier), and a quantity of the first resource to be transferred.
The user can initiate a resource transfer application to the first resource management server through the first resource management client, wherein the resource transfer application comprises a first resource account identifier, a second resource account identifier, user information and the quantity of the first resource to be transferred.
After receiving the resource transfer application, the first resource management server may send the resource transfer request to the blockchain system. Optionally, after receiving the resource transfer application, the first resource management server may first perform an audit on the resource transfer application, and after the audit is passed, send the resource transfer request to the blockchain system.
The first resource management server may automatically check the resource transfer application, for example, the first resource management server may check the resource transfer application according to a preset transfer condition, and the transfer condition may be preset according to a specific service requirement. If the resource transfer application meets the transfer condition, the first resource management server determines that the resource transfer application is approved; and if the resource transfer application does not meet the transfer condition, the first resource management server determines that the resource transfer application is not approved.
Alternatively, the auditing of the resource transfer application by the first resource management server may be performed manually, for example, the auditing of the resource transfer application may be performed by a worker of the first resource management server. When the staff determines that the resource transfer application has no problem, an audit passing instruction can be triggered, and after the first resource management server detects the audit passing instruction, the first resource management server determines that the resource transfer application is approved; when the staff determines that the resource transfer application has a problem, an auditing failure instruction can be triggered, and after the first resource management server detects the auditing failure instruction, the first resource management server determines that the resource transfer application auditing failure.
Step 409: after receiving a resource transfer request sent by a first resource management server, the block chain system determines the number of first coins corresponding to the first resource number, and transfers the tokens of the first coin number in the balance of the first block chain account to the balance of a second block chain account.
After receiving the resource transfer request sent by the first resource management server, the blockchain system may determine an account address corresponding to the first resource account identifier carried in the resource transfer request, and use the blockchain account to which the acquired account address belongs as the first blockchain account corresponding to the first resource account. And the blockchain system can determine an account address corresponding to the second resource account identifier carried by the resource transfer request, and take the blockchain account to which the acquired account address belongs as the second blockchain account corresponding to the second resource account.
The operation of transferring the tokens of the first number of the tokens in the balance of the first blockchain account to the balance of the second blockchain account by the blockchain system is to reduce the tokens of the first number of the tokens in the balance of the first blockchain account and increase the tokens of the first number of the tokens in the balance of the second blockchain account.
Furthermore, after the block chain system receives the resource transfer request sent by the first resource management server, before determining the number of the first coins corresponding to the first resource quantity and transferring the tokens of the first coin number in the balance of the first block chain account to the balance of the second block chain account, the block chain system may also check the resource transfer request; after the resource transfer request is checked, determining the number of first coins corresponding to the first resource number, and transferring the tokens with the number of the first coins in the balance of the first block chain account into the balance of the second block chain account; and ending the operation after the resource transfer request is not approved.
For example, when the blockchain system performs an audit on the resource transfer request, the state of the resource transfer request may be set to be audited, and the resource transfer request may be stored in the database. Then, the blockchain system may store the resource transfer request to a blockchain configured by the blockchain system, and after obtaining an uplink transaction execution result, send the resource transfer request to an operation server, where the operation server performs an audit on the resource transfer request. After the resource transfer request is approved by the operation server, the state of the resource transfer request can be modified to be approved, and then the resource transfer request is sent to the block chain system. After receiving the resource transfer request, the blockchain system may modify the status of the resource transfer request stored in the database to be checked.
When the block chain system sends the resource transfer request to the operation server, the resource transfer request may be sent to the operation server through MQ (Message Queuing) Message middleware. Of course, the blockchain system may also send the resource transfer request to the operation server in other manners, which is not limited in this embodiment of the present application.
The operation server may be a server of a third party regulatory agency, and may be responsible for auditing resource transfer between resource accounts in different resource management servers to determine that resource transfer between resource accounts in different resource management servers is normal and safe.
When the operation server audits the resource transfer request, the operation server can perform primary audit on the resource transfer request by staff of the operation server, after the primary audit is passed, the operation server can send the resource transfer request to the second resource management server, the second resource management server performs secondary audit on the resource transfer request, and after the secondary audit is passed, the operation server can determine that the resource transfer request is approved.
For example, when the blockchain system transfers the tokens of the first number of tokens in the balance of the first blockchain account to the balance of the second blockchain account, it may be determined whether the resource transfer request has been processed before, and if it is determined that the resource transfer request has not been processed, the tokens of the first number of tokens in the balance of the first blockchain account may be transferred to the balance of the second blockchain account. Then, if the token of the first number of tokens in the balance of the first blockchain account is successfully transferred to the balance of the second blockchain account, the blockchain system may modify the status of the resource transfer request to be processing completion.
If the transfer of the tokens of the first number of coins in the balance of the first blockchain account to the balance of the second blockchain account is not successful, the blockchain system may determine a transaction failure reason (e.g., transaction timeout), and retry the transfer of the tokens of the first number of coins in the balance of the first blockchain account to the balance of the second blockchain account according to the transaction failure reason.
In the embodiment of the present application, when receiving a resource transfer request from a first resource account to a second resource account, a blockchain system transfers a token in the first blockchain account corresponding to the first resource account to the second blockchain account corresponding to the second resource account. As such, the resource transfer between resource accounts in different resource management servers is translated to a token transfer between different blockchain accounts in a blockchain system. On one hand, the method can accelerate the process processing speed, improve the resource transfer efficiency and simultaneously avoid the exchange loss problem in the related technology. On the other hand, the non-tamper property of the block chain can reduce the resource transfer risk, once a problem occurs, the tracing can be accurately tracked, the specific process point and responsible person of the problem can be positioned, and the method is safe and reliable.
In a possible case, the operation of setting the balance of the blockchain account corresponding to the resource account by the blockchain system according to the resource transfer condition between the resource account and the corresponding target account may be an operation of bringing up the user to which the resource account belongs from the blockchain account to the resource account. The withdrawal to the resource account is the transfer of the resource to the resource account.
Taking the example that the user to which the second resource account belongs withdraws from the blockchain account corresponding to the second resource account, the specific process may include the following steps 410 to 412. The process of presenting the user to which the first resource account belongs from the blockchain account corresponding to the first resource account is similar, and details of the process are not repeated in this embodiment of the application.
Step 410: the second resource management server sends a resource extraction request to the blockchain system.
The resource extraction request carries a third resource quantity to be extracted by the second resource account. In particular, the resource extraction request may include a second resource account identification and a third resource quantity.
The user can initiate a resource extraction application to the second resource management server through the second resource management client, wherein the resource extraction application comprises a second resource account identifier, user information and the number of third resources to be extracted.
The second resource management server may send the resource extraction request to the blockchain system after receiving the resource extraction request. Optionally, after receiving the resource extraction application, the second resource management server may first perform an audit on the resource extraction application, and after the audit is passed, send the resource extraction request to the block chain system.
The second resource management server may automatically check the resource extraction application, for example, the second resource management server may check the resource extraction application according to a preset extraction condition, and the extraction condition may be preset according to a specific service requirement. If the resource extraction application meets the extraction condition, the second resource management server determines that the resource extraction application is approved; and if the resource extraction application does not meet the extraction condition, the second resource management server determines that the resource extraction application is not approved.
Alternatively, the second resource management server may perform the review of the resource extraction application manually, for example, the second resource management server may perform the review of the resource extraction application by a worker. When the staff determines that the resource extraction application has no problem, an audit passing instruction can be triggered, and after the second resource management server detects the audit passing instruction, the second resource management server determines that the resource extraction application is approved; when the staff determines that the resource extraction application has a problem, an auditing failure instruction can be triggered, and after the second resource management server detects the auditing failure instruction, the staff determines that the resource extraction application auditing failure occurs.
Step 411: and after receiving the resource extraction request sent by the second resource management server, the block chain system determines the number of third coins corresponding to the third resource quantity, and transfers the tokens of the third coins in the balance of the second block chain account to the balance of the target block chain account.
In this case, the token in the second blockchain account is transferred to the target blockchain account.
After receiving the resource extraction request sent by the second resource management server, the blockchain system may determine an account address corresponding to a second resource account identifier carried in the resource extraction request, and use a blockchain account to which the acquired account address belongs as a second blockchain account corresponding to the second resource account.
The operation of transferring the tokens of the third generation of coins in the balance of the second block chain account to the balance of the target block chain account by the block chain system is to reduce the tokens of the third generation of coins in the balance of the third block chain account and increase the tokens of the second generation of coins in the balance of the target block chain account.
Step 412: and the block chain system transfers the resources of the third resource quantity in the target account corresponding to the second resource account.
In this case, the resource in the target account belonging to the same resource management server as the second resource account is transferred to the second resource account.
Specifically, the block chain system calls a resource transfer interface provided by the second resource management server according to the target account identifier corresponding to the second resource management server, the second resource account identifier carried in the resource extraction request, and the third resource quantity, so as to transfer the target account in the second resource management server, that is, the resource of the third resource quantity in the target account corresponding to the second resource account.
In this embodiment, the blockchain system may transfer the token in the second blockchain account to the target blockchain account, and then transfer the resource in the target account in the resource management server that belongs to the same resource account as the second resource account to the second resource account. Therefore, the effect of extracting the token in the second block chain account corresponding to the second resource account as the resource in the second resource account is achieved, namely the cash withdrawal to the second resource account is realized.
Further, since the target account is a resource account registered by the target resource management server in each of the other resource management servers, that is, the target resource management server is a resource management server to which the target account belongs, in this embodiment of the application, the resource transfer record related to the target account may also be notified to the target resource management server, so that the target resource management server can perform subsequent reconciliation conveniently. Specifically, steps 413 to 414 may be included as follows.
Step 413: and the block chain system generates a target account resource transfer record according to the resource transfer condition between the resource account and the corresponding target account.
The target account resource transfer record is used for recording the resource transfer-out condition and the resource transfer-in condition in the target account. For example, the target account resource transfer record may record the above-mentioned situation of transferring the resource in the first resource account to the target account, or the target account resource transfer record may record the above-mentioned situation of transferring the resource in the target account to the second resource account. When the target account has resource transfer (including resource transfer-out or resource transfer-in) once, the block chain system can generate a target account resource transfer record according to the current resource transfer condition of the target account.
Step 414: and the block chain system sends the target account resource transfer record to the target resource management server.
Specifically, the blockchain system may send the target account resource transfer records to accounting accounts (including but not limited to ib (internbank) accounts, etc.) in the target resource management service. The accounting account comprises all resource transfer records of all target accounts corresponding to the target resource management server, so that the target resource management server can know the resource transfer records in the accounting account according to all resource transfer records in the accounting account.
In this embodiment, when receiving a resource transfer request from a first resource account to a second resource account, the blockchain system transfers a token in the first blockchain account corresponding to the first resource account to the second blockchain account corresponding to the second resource account. As such, the resource transfer between resource accounts in different resource management servers is translated to a token transfer between different blockchain accounts in a blockchain system. On one hand, the method can accelerate the process processing speed, improve the resource transfer efficiency and simultaneously avoid the exchange loss problem in the related technology. On the other hand, the non-tamper property of the block chain can reduce the resource transfer risk, once a problem occurs, the tracing can be accurately tracked, the specific process point and responsible person of the problem can be positioned, and the method is safe and reliable.
Fig. 5 is a flowchart of a resource transfer method according to an embodiment of the present application. The method is applied to a blockchain system, which may be the blockchain system 100 described above in the embodiments of fig. 1-2. Referring to fig. 5, the method may include the steps of:
step 501: a corresponding first blockchain account is registered for the first resource account and a corresponding second blockchain account is registered for the second resource account.
The first resource account and the second resource account are registered in different resource management servers.
The relevant content of step 501 has already been explained in detail in steps 401 to 404, which is not described again in this embodiment of the present application.
Step 502: a resource transfer request is received.
The resource transfer request carries a first resource amount that the first resource account needs to transfer to the second resource account.
The related content of step 502 is explained in detail in step 408, and is not described again in this embodiment of the present application.
Step 503: and determining the first number of coins corresponding to the first resource quantity, and transferring the tokens with the first number of coins in the balance of the first blockchain account into the balance of the second blockchain account.
The related content of step 503 has already been explained in detail in step 409, and this is not described again in this embodiment of the present application.
In this embodiment, when receiving a resource transfer request from a first resource account to a second resource account, the blockchain system transfers a token in the first blockchain account corresponding to the first resource account to the second blockchain account corresponding to the second resource account. As such, the resource transfer between resource accounts in different resource management servers is translated to a token transfer between different blockchain accounts in a blockchain system. On one hand, the method can accelerate the process processing speed, improve the resource transfer efficiency and simultaneously avoid the exchange loss problem in the related technology. On the other hand, the non-tamper property of the block chain can reduce the resource transfer risk, once a problem occurs, the tracing can be accurately tracked, the specific process point and responsible person of the problem can be positioned, and the method is safe and reliable.
Fig. 6 is a schematic structural diagram of a resource transfer apparatus according to an embodiment of the present application, which may be applied to a blockchain system, such as the blockchain system 100 described in the embodiments of fig. 1-2. Referring to fig. 6, the apparatus includes: a registration module 601, a receiving module 602, a determination module 603, and a transfer module 604.
A registration module 601, configured to register a corresponding first blockchain account for a first resource account and register a corresponding second blockchain account for a second resource account, where the first resource account and the second resource account are obtained by registering in different resource management servers;
a receiving module 602, configured to receive a resource transfer request, where the resource transfer request carries a first resource amount that needs to be transferred from a first resource account to a second resource account;
a determining module 603, configured to determine a first number of coins corresponding to the first resource number;
the transferring module 604 is configured to transfer the tokens of the first number of coins in the balance of the first blockchain account to the balance of the second blockchain account.
Optionally, the apparatus further comprises a setting module, the setting module is configured to:
setting the balance of a block chain account corresponding to a resource account according to the resource transfer condition between the resource account and the corresponding target account, wherein the resource account is a first resource account or a second resource account, and the resource account and the corresponding target account are obtained by registering in the same resource management server.
Optionally, the setting module is configured to:
receiving a token storage request, wherein the token storage request carries a second resource quantity to be stored in the first resource account;
transferring the resources with the second resource quantity in the first resource account to a target account corresponding to the first resource account;
determining the number of second coins corresponding to the second resource number;
and transferring the tokens of the second currency number in the balance of the target blockchain account into the balance of the first blockchain account.
Optionally, the setting module is configured to:
receiving a resource extraction request, wherein the resource extraction request carries a third resource quantity to be extracted by the second resource account;
determining the number of third coins corresponding to the number of the third resources;
transferring the tokens with the third generation currency number in the balance of the second block chain account into the balance of the target block chain account;
and transferring the resources of the third resource quantity in the target account corresponding to the second resource account into the second resource account.
Optionally, the apparatus further comprises:
the generation module is used for generating a target account resource transfer record according to the resource transfer condition between the resource account and the corresponding target account;
and the sending module is used for sending the target account resource transfer record to a target resource management server, wherein the target resource management server is a resource management server to which the target account belongs, and the target resource management server is a resource management server for registering the target blockchain account in the blockchain system.
Optionally, the registration module 601 is configured to:
receiving a block chain account registration request, wherein the block chain account registration request carries a first resource account identifier;
generating a first blockchain account, wherein account data of the first blockchain account comprises an account address and a balance;
and correspondingly storing the first resource account identification and the account address of the first block chain account.
Optionally, the resource management server registered with the first resource account and the resource management server registered with the second resource account are located in different regions.
In this embodiment, when receiving a resource transfer request from a first resource account to a second resource account, the blockchain system transfers a token in the first blockchain account corresponding to the first resource account to the second blockchain account corresponding to the second resource account. As such, the resource transfer between resource accounts in different resource management servers is translated to a token transfer between different blockchain accounts in a blockchain system. On one hand, the method can accelerate the process processing speed, improve the resource transfer efficiency and simultaneously avoid the exchange loss problem in the related technology. On the other hand, the non-tamper property of the block chain can reduce the resource transfer risk, once a problem occurs, the tracing can be accurately tracked, the specific process point and responsible person of the problem can be positioned, and the method is safe and reliable.
It should be noted that: in the resource transfer device provided in the foregoing embodiment, only the division of the functional modules is illustrated in the foregoing, and in practical applications, the function allocation may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above.
Each functional unit and module in the above embodiments may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present application.
The resource transfer device and the resource transfer method provided in the above embodiments belong to the same concept, and the specific working processes and technical effects brought by the units and modules in the above embodiments can be referred to the method embodiments, and are not described herein again.
Fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 7, the computer device 7 includes: a processor 70, a memory 71 and a computer program 72 stored in the memory 71 and operable on the processor 70, the steps in the resource transfer method described in the embodiment of fig. 5 being implemented when the computer program 72 is executed by the processor 70.
The computer device 7 may be a general purpose computer device or a special purpose computer device. In a particular implementation, the computer device 7 may be a server cluster consisting of a plurality of servers. Those skilled in the art will appreciate that fig. 7 is only an example of the computer device 7, and does not constitute a limitation to the computer device 7, and may include more or less components than those shown, or combine some components, or different components, such as input and output devices, network access devices, etc.
The Processor 70 may be a Central Processing Unit (CPU), and the Processor 70 may also be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or any conventional processor.
The storage 71 may in some embodiments be an internal storage unit of the computer device 7, such as a hard disk or a memory of the computer device 7. The memory 71 may also be an external storage device of the computer device 7 in other embodiments, such as a plug-in hard disk provided on the computer device 7, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 71 may also include both an internal storage unit of the computer device 7 and an external storage device. The memory 71 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of a computer program. The memory 71 may also be used to temporarily store data that has been output or is to be output.
An embodiment of the present application further provides a computer device, where the computer device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application also provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when run on a computer causes the computer to perform the steps of the above-described method embodiments.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the above method embodiments may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the above method embodiments. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or apparatus capable of carrying computer program code to a photographing apparatus/terminal device, a recording medium, computer Memory, ROM (Read-Only Memory), RAM (Random Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk, optical data storage device, etc. The computer-readable storage medium referred to herein may be a non-volatile storage medium, in other words, a non-transitory storage medium.
It should be understood that all or part of the steps for implementing the above embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer instructions may be stored in the computer-readable storage medium described above.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/computer device and method may be implemented in other ways. For example, the above-described apparatus/computer device embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should 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 substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A resource transfer method applied to a block chain system includes:
registering a corresponding first block chain account for a first resource account, and registering a corresponding second block chain account for a second resource account, wherein the first resource account and the second resource account are registered in different resource management servers;
receiving a resource transfer request, wherein the resource transfer request carries a first resource quantity which needs to be transferred from the first resource account to the second resource account;
determining the number of first coins corresponding to the first resource number;
transferring the tokens of the first number of tokens in the balance of the first blockchain account to the balance of the second blockchain account.
2. The method of claim 1, wherein the method further comprises:
setting the balance of a block chain account corresponding to a resource account according to the resource transfer condition between the resource account and a corresponding target account, wherein the resource account is the first resource account or the second resource account, and the resource account and the corresponding target account are obtained by registering in the same resource management server.
3. The method of claim 2, wherein the setting the balance of the blockchain account corresponding to the resource account according to the resource transfer condition between the resource account and the corresponding target account comprises:
receiving a token storage request, wherein the token storage request carries a second resource amount to be stored by the first resource account;
transferring the resources with the second resource quantity in the first resource account to a target account corresponding to the first resource account;
determining the number of second coins corresponding to the second resource number;
and transferring the tokens of the second token number in the balance of the target blockchain account into the balance of the first blockchain account.
4. The method of claim 2, wherein the setting the balance of the blockchain account corresponding to the resource account according to the resource transfer condition between the resource account and the corresponding target account comprises:
receiving a resource extraction request, wherein the resource extraction request carries a third resource quantity to be extracted by the second resource account;
determining the number of third coins corresponding to the number of the third resources;
transferring the tokens with the third generation currency number in the balance of the second blockchain account into the balance of a target blockchain account;
and transferring the resources of the third resource quantity in the target account corresponding to the second resource account into the second resource account.
5. The method of claim 3 or 4, further comprising:
generating a target account resource transfer record according to the resource transfer condition between the resource account and the corresponding target account;
and sending the target account resource transfer record to a target resource management server, wherein the target resource management server is a resource management server to which the target account belongs, and the target resource management server is a resource management server for registering the target block chain account in the block chain system.
6. The method of any of claims 1-5, wherein registering the corresponding first blockchain account for the first resource account comprises:
receiving a block chain account registration request, wherein the block chain account registration request carries a first resource account identifier;
generating the first blockchain account, the account data of the first blockchain account including an account address and a balance;
and correspondingly storing the first resource account identification and the account address of the first block chain account.
7. The method of any of claims 1-5, wherein the resource management server registered with the first resource account and the resource management server registered with the second resource account are located in different regions.
8. A resource transfer apparatus, applied to a block chain system, the apparatus comprising:
the system comprises a registration module, a resource management server and a resource management module, wherein the registration module is used for registering a corresponding first block chain account for a first resource account and registering a corresponding second block chain account for a second resource account, and the first resource account and the second resource account are obtained by registering in different resource management servers;
a receiving module, configured to receive a resource transfer request, where the resource transfer request carries a first resource amount that needs to be transferred from the first resource account to the second resource account;
the determining module is used for determining the number of the first coins corresponding to the first resource number;
the transfer module is used for transferring the tokens with the first number of the coins in the balance of the first blockchain account to the balance of the second blockchain account.
9. A computer device, characterized in that the computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, which computer program, when executed by the processor, implements the method according to any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the method of any one of claims 1 to 7.
CN202011330849.7A 2020-11-24 2020-11-24 Resource transfer method, device, equipment and storage medium Pending CN112446787A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011330849.7A CN112446787A (en) 2020-11-24 2020-11-24 Resource transfer method, device, equipment and storage medium
PCT/CN2020/138076 WO2022110404A1 (en) 2020-11-24 2020-12-21 Resource transfer method and apparatus, and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011330849.7A CN112446787A (en) 2020-11-24 2020-11-24 Resource transfer method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112446787A true CN112446787A (en) 2021-03-05

Family

ID=74737607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011330849.7A Pending CN112446787A (en) 2020-11-24 2020-11-24 Resource transfer method, device, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN112446787A (en)
WO (1) WO2022110404A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11843546B1 (en) * 2023-01-17 2023-12-12 Capital One Services, Llc Determining resource usage metrics for cloud computing systems

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107392584A (en) * 2017-07-24 2017-11-24 中国银行股份有限公司 Cross-border payment system and the cross-border method of payment based on block chain payment system
CN111815309A (en) * 2020-08-28 2020-10-23 支付宝(杭州)信息技术有限公司 Block chain-based cross-currency settlement method and device and electronic equipment
CN111861440A (en) * 2020-08-06 2020-10-30 中国银行股份有限公司 Bank transfer method and system based on block chain network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019118173A1 (en) * 2017-12-11 2019-06-20 Global Mobile Finance, Inc. Methodology and system for a blockchain-based mobile money gateway
CN111340468B (en) * 2020-02-26 2021-04-13 腾讯科技(深圳)有限公司 Resource data processing method and device, computer equipment and storage medium
CN111899008B (en) * 2020-09-17 2021-02-19 支付宝(杭州)信息技术有限公司 Resource transfer method, device, equipment and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107392584A (en) * 2017-07-24 2017-11-24 中国银行股份有限公司 Cross-border payment system and the cross-border method of payment based on block chain payment system
CN111861440A (en) * 2020-08-06 2020-10-30 中国银行股份有限公司 Bank transfer method and system based on block chain network
CN111815309A (en) * 2020-08-28 2020-10-23 支付宝(杭州)信息技术有限公司 Block chain-based cross-currency settlement method and device and electronic equipment

Also Published As

Publication number Publication date
WO2022110404A1 (en) 2022-06-02

Similar Documents

Publication Publication Date Title
JP2019523495A (en) Digital goods management in a distributed transaction consensus network
CN110582790A (en) system and method for restricted transaction processing
CN108229926B (en) Service settlement method and related device
CN108701305A (en) Digital asset is converted
CN108197944A (en) Resource transaction method and device based on block chain technology
US11443307B2 (en) Cross-border resource transfer authenticity verification method, device and electronic equipment
RU2011154492A (en) SYSTEM OF PAYMENT OF ELECTRONIC CHECKS AND METHODS OF ISSUE, TRANSFER OF PAYMENT AND VERIFICATION OF ELECTRONIC CHECKS
CN110599323A (en) Resource processing method and processing equipment
US20040034597A1 (en) System and method for managing micropayment transactions, corresponding client terminal and trader equipment
JP2022519438A (en) Online and offline cryptocurrency transfer methods and their systems
KR20190108666A (en) Apparatus and method for automated deposit and withdrawal of funds for cryptocurrency transactions and computer program for the same
CN108229954B (en) Coin storage method and system based on digital currency wallet
KR101863612B1 (en) Apparatus, method and computer program for verifying real name transaction through comparing deposit and withdrawal history
CN115456773A (en) Payment control method, device, equipment and medium based on block chain
CN110378693B (en) Distributed energy weak centralized transaction management system based on alliance block chain
CN112446787A (en) Resource transfer method, device, equipment and storage medium
CN113034275A (en) Management system and method based on block chain network and terminal equipment
EP3489875A1 (en) Device for payment of vehicle based costs, a respective vehicle and a respective method
US20230298038A1 (en) A computer implemented method and system for requesting consent from a consumer to complete an action
CN112053232B (en) Self-service equipment business accounting consistency processing method and device
KR20210117731A (en) The blockchain-based transaction history confirmation system
CN112085607A (en) Resource transfer method, device and equipment
KR102207653B1 (en) System and method for deposit and withdrawal service using automated teller machine and computer program for the same
CN111127003B (en) Wallet account payment method, device and storage medium
CN111915421B (en) Exchange processing method and system for internal transaction of banking system

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