Method, device, system and equipment for storing stable currency on physical card
By storing stablecoins on a physical card and connecting it to a blockchain network via an NFC communication interface, the limitations of stablecoin trading scenarios and security risks have been addressed, enabling convenient and secure stablecoin transactions and promoting its application in payment scenarios.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-15
- Publication Date
- 2026-04-10
AI Technical Summary
Stablecoins have limited trading scenarios, and cross-chain transactions are inefficient and pose security risks, increasing operational complexity and costs, which limits their widespread application in payment scenarios.
Stablecoins are stored on physical cards and interconnected with blockchain networks via NFC communication interfaces. Stablecoin transactions can be conducted using wallet devices or electronic devices, including processing card addresses and deposit amounts, to determine and store balances.
This has improved the storage security and transaction convenience of stablecoins, and promoted their widespread application in real life.
Smart Images

Figure CN121836712A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of computer technology, and specifically to a method, apparatus, system, and device for storing stablecoins on a physical card. Background Technology
[0002] Currently, stablecoin payments and transfers are only conducted on centralized or decentralized exchanges. Typically, stablecoins are purchased with fiat currency to enter the crypto market, or sold for fiat currency to exit the market. This limited transaction scenario, coupled with the reliance on bridging protocols for cross-chain transactions, leads to inefficient fund transfers and security risks. Furthermore, this current transaction method increases operational complexity and cost, thus restricting the widespread adoption of stablecoins in payment scenarios. Summary of the Invention
[0003] This disclosure provides a method, apparatus, system, and device for storing stablecoins on a physical card.
[0004] In a first aspect, this disclosure provides a method for storing stablecoins on a physical card, comprising:
[0005] In response to a physical card top-up request for stablecoins, obtain the first card address entered by the user and the corresponding first blockchain network;
[0006] Get the recharge amount entered by the user;
[0007] Broadcast a first stablecoin transaction corresponding to the physical card top-up request to the first blockchain network. The first stablecoin transaction carries the first card address and stablecoins corresponding to the top-up amount.
[0008] After receiving the confirmation message from the first blockchain network corresponding to the first stablecoin transaction, the final balance corresponding to the first card address of the physical card is determined;
[0009] The final balance is stored in the local cache of the physical card via the NFC communication interface. Further, determining the final balance corresponding to the first card address of the physical card includes:
[0010] After detecting the NFC signal of the physical card, power is supplied to the physical card through the NFC communication interface to activate the physical card;
[0011] A balance read request is sent to the physical card via the NFC communication interface; the balance read request carries at least the address of the first card.
[0012] Receive the cache balance corresponding to the first card address stored in the local cache of the physical card, returned by the physical card;
[0013] The final balance is determined based on the recharge amount and the cache balance.
[0014] Further, determining the final balance corresponding to the first card address of the physical card includes:
[0015] After detecting the NFC signal of the physical card, power is supplied to the physical card through the NFC communication interface to activate the physical card;
[0016] Read the second card address and the second blockchain network corresponding to the second card address from the local cache of the physical card;
[0017] Call the RPC node corresponding to the second blockchain network to query the actual balance of the second card address stored on the second blockchain network;
[0018] The final balance is determined based on the actual balance.
[0019] Further, the process involves calling the RPC node corresponding to the second blockchain network to query the actual balance of the second card address stored on the second blockchain network, including:
[0020] Obtain the stablecoin contract address corresponding to the second blockchain network;
[0021] Based on the stablecoin contract address and the second card address, construct a second stablecoin transaction to query the actual balance;
[0022] The second stablecoin transaction is broadcast to the second blockchain network via the RPC node;
[0023] The system receives the query results returned by the RPC node and parses the query results to obtain the actual balance.
[0024] Furthermore, the second card address includes multiple second card addresses corresponding to multiple second blockchain networks stored on the physical card; querying the actual balance of the second card address stored on the second blockchain network by calling the RPC node corresponding to the second blockchain network includes one of the following:
[0025] Query the actual balance of each of the multiple second card addresses stored on the corresponding second blockchain network;
[0026] Query the actual balance stored on the corresponding second blockchain network for the second card address that matches the first card address;
[0027] The query shows the actual balance stored on the corresponding second blockchain network for the second card address whose amount has changed.
[0028] Furthermore, querying the actual balance stored on the corresponding second blockchain network for the second card address whose amount has changed includes:
[0029] Choose a frequently used card address from multiple secondary card addresses;
[0030] Query the actual balance of the commonly used card address stored in the corresponding second blockchain network;
[0031] Obtain the cache balance corresponding to the commonly used card address stored in the local cache of the physical card;
[0032] If the actual balance is the same as the cached balance, the actual balance corresponding to the commonly used card address is returned. If the actual balance is different from the cached balance, the actual balances of other second card addresses besides the commonly used card address stored on the corresponding second blockchain network are queried, and the actual balances corresponding to all second card addresses are returned.
[0033] Secondly, this disclosure provides a method for storing stablecoins on a physical card, comprising:
[0034] The wallet device responds to a physical card deposit request for stablecoins by obtaining the first card address entered by the user and the corresponding first blockchain network;
[0035] The wallet device obtains the recharge amount entered by the user;
[0036] The wallet device broadcasts a first stablecoin transaction corresponding to the physical card top-up request to the first blockchain network. The first stablecoin transaction carries the first card address and stablecoins corresponding to the top-up amount.
[0037] After receiving the broadcast message, the first blockchain network records the transaction based on the first stablecoin transaction and returns a confirmation message after the transaction is successfully recorded.
[0038] After receiving the confirmation message, the wallet device determines the final balance corresponding to the first card address of the physical card;
[0039] The wallet device stores the final balance in the local cache of the physical card via the NFC communication interface.
[0040] Further, determining the final balance corresponding to the first card address of the physical card includes:
[0041] After the wallet device detects the NFC signal of the physical card, it provides power to the physical card through the NFC communication interface;
[0042] The physical card activates the security chip when powered by the power supply.
[0043] The wallet device sends a balance read request to the physical card via the NFC communication interface; the balance read request carries at least the address of the first card.
[0044] After receiving the balance read request, the security chip of the physical card reads the first card address and its corresponding cache balance stored in the local cache, and returns it to the wallet device through the NFC communication interface.
[0045] The wallet device determines the final balance based on the recharge amount and the cached balance returned by the physical card.
[0046] Further, determining the final balance corresponding to the first card address of the physical card includes:
[0047] After the wallet device detects the NFC signal of the physical card, it provides power to the physical card through the NFC communication interface;
[0048] The physical card activates the security chip when powered by the power supply.
[0049] The wallet device sends a request to the physical card to read the second card address and the corresponding second blockchain network;
[0050] After receiving the request from the wallet device, the security chip of the physical card reads the second card address and the second blockchain network corresponding to the second card address from the local cache, and returns them to the wallet device.
[0051] The wallet device calls the RPC node corresponding to the second blockchain network to query the actual balance of the second card address stored on the second blockchain network;
[0052] The wallet device determines the final balance based on the actual balance.
[0053] Further, the wallet device calls the RPC node corresponding to the second blockchain network to query the actual balance of the second card address stored on the second blockchain network, including:
[0054] The wallet device obtains the stablecoin contract address corresponding to the second blockchain network;
[0055] The wallet device constructs a second stablecoin transaction to query the actual balance based on the stablecoin contract address and the second card address;
[0056] The wallet device broadcasts the second stablecoin transaction to the second blockchain network via the RPC node;
[0057] After receiving the broadcast message, the second blockchain network executes the second stablecoin transaction and returns the query result obtained from the execution to the wallet device through the RPC node;
[0058] The wallet device parses the query results to obtain the actual balance.
[0059] Furthermore, the second card address includes multiple second card addresses corresponding to multiple second blockchain networks stored on the physical card; the wallet device calls the RPC node corresponding to the second blockchain network to query the actual balance of the second card address stored on the second blockchain network, including one of the following:
[0060] The wallet device queries the actual balances of the multiple second card addresses stored on the corresponding second blockchain network one by one;
[0061] The wallet device queries the actual balance stored on the corresponding second blockchain network for a second card address that matches the first card address.
[0062] The wallet device queries the actual balance of the second card address whose amount has changed, stored on the corresponding second blockchain network.
[0063] Furthermore, the wallet device queries the actual balance stored on the corresponding second blockchain network for the second card address whose amount has changed, including:
[0064] The wallet device selects a frequently used card address from a plurality of second card addresses;
[0065] The wallet device broadcasts a message to the commonly used card address on the corresponding second blockchain network to query the actual balance;
[0066] After receiving the broadcast message, the second blockchain network returns the actual balance corresponding to the second card address to the wallet device;
[0067] The wallet device obtains the cache balance corresponding to the commonly used card address stored in the local cache of the physical card;
[0068] The wallet device compares the actual balance corresponding to the frequently used card address with the cached balance. If the actual balance and the cached balance are the same, the actual balance corresponding to the frequently used card address is returned. If the actual balance and the cached balance are different, the device continues to query the actual balances of other second card addresses besides the frequently used card address stored on the corresponding second blockchain network, and returns the actual balances corresponding to all second card addresses.
[0069] Thirdly, this disclosure provides an apparatus for storing stablecoins on a physical card, comprising:
[0070] The first acquisition module is configured to, in response to a stablecoin physical card top-up request, acquire the first card address entered by the user and the corresponding first blockchain network;
[0071] The second acquisition module is configured to acquire the recharge amount input by the user;
[0072] The broadcast module is configured to broadcast a first stablecoin transaction corresponding to the recharge request of the physical card to the first blockchain network. The first stablecoin transaction carries the first card address and stablecoins corresponding to the recharge amount.
[0073] The determination module is configured to determine the final balance corresponding to the first card address of the physical card after receiving a confirmation message from the first blockchain network corresponding to the first stablecoin transaction;
[0074] The storage module is configured to store the final balance in the local cache of the physical card via an NFC communication interface.
[0075] Furthermore, the determining module includes:
[0076] The first detection submodule is configured to, upon detecting the NFC signal of the physical card, provide power to the physical card through the NFC communication interface to activate the physical card;
[0077] The sending submodule is configured to send a balance read request to the physical card via the NFC communication interface; the balance read request carries at least the address of the first card.
[0078] The receiving submodule is configured to receive the cache balance corresponding to the first card address stored in the local cache of the physical card, which is returned by the physical card.
[0079] The determination submodule is configured to determine the final balance based on the recharge amount and the cache balance.
[0080] Furthermore, the determining module includes:
[0081] The second detection submodule is configured to, upon detecting the NFC signal of the physical card, provide power to the physical card through the NFC communication interface to activate the physical card;
[0082] The reading submodule is configured to read the second card address and the second blockchain network corresponding to the second card address from the local cache of the physical card;
[0083] The calling submodule is configured to call the RPC node corresponding to the second blockchain network to query the actual balance of the second card address stored on the second blockchain network;
[0084] The second determining submodule is configured to determine the final balance based on the actual balance.
[0085] Furthermore, the calling submodule includes:
[0086] The first acquisition submodule is configured to acquire the stablecoin contract address corresponding to the second blockchain network;
[0087] The construction submodule is configured to construct a second stablecoin transaction to query the actual balance based on the stablecoin contract address and the second card address;
[0088] The broadcast submodule is configured to broadcast the second stablecoin transaction to the second blockchain network via the RPC node;
[0089] The parsing submodule is configured to receive the query results returned by the RPC node, parse the query results to obtain the actual balance.
[0090] Furthermore, the second card address includes multiple second card addresses corresponding to multiple second blockchain networks stored on the physical card; the calling submodule includes one of the following:
[0091] The first query submodule is configured to query the actual balances of the multiple second card addresses stored on the corresponding second blockchain network one by one.
[0092] The second query submodule is configured to query the actual balance stored on the corresponding second blockchain network for a second card address that matches the first card address.
[0093] The third query submodule is configured to query the actual balance of the second card address whose amount has changed, stored on the corresponding second blockchain network.
[0094] Furthermore, the third query submodule includes:
[0095] The selection submodule is configured to select a frequently used card address from multiple second card addresses;
[0096] The fourth query submodule is configured to query the actual balance of the commonly used card address stored in the corresponding second blockchain network;
[0097] The second acquisition submodule is configured to acquire the cache balance corresponding to the commonly used card address stored in the local cache of the physical card;
[0098] The return submodule is configured to return the actual balance corresponding to the commonly used card address if the actual balance is the same as the cached balance, and to continue querying the actual balances of other second card addresses besides the commonly used card address on the corresponding second blockchain network, and return the actual balances corresponding to all second card addresses.
[0099] Fourthly, this disclosure provides a system for storing stablecoins on a physical card, comprising: a wallet device, a first blockchain network, and a physical card; wherein,
[0100] The wallet device responds to a physical card top-up request for stablecoins by obtaining the first card address entered by the user and the corresponding first blockchain network;
[0101] The wallet device obtains the recharge amount entered by the user;
[0102] The wallet device broadcasts a first stablecoin transaction corresponding to the physical card top-up request to the first blockchain network. The first stablecoin transaction carries the first card address and stablecoins corresponding to the top-up amount.
[0103] After receiving the broadcast message, the first blockchain network records the transaction based on the first stablecoin transaction and returns a confirmation message after the transaction is successfully recorded.
[0104] After receiving the confirmation message, the wallet device determines the final balance corresponding to the first card address of the physical card;
[0105] The wallet device stores the final balance in the local cache of the physical card via the NFC communication interface.
[0106] Furthermore, after the wallet device detects the NFC signal of the physical card, it provides power to the physical card through the NFC communication interface;
[0107] The physical card activates the security chip when powered by the power supply.
[0108] The wallet device sends a balance read request to the physical card via the NFC communication interface; the balance read request carries at least the address of the first card.
[0109] After receiving the balance read request, the security chip of the physical card reads the first card address and its corresponding cache balance stored in the local cache, and returns it to the wallet device through the NFC communication interface.
[0110] The wallet device determines the final balance based on the recharge amount and the cached balance returned by the physical card.
[0111] Furthermore, after the wallet device detects the NFC signal of the physical card, it provides power to the physical card through the NFC communication interface;
[0112] The physical card activates the security chip when powered by the power supply.
[0113] The wallet device sends a request to the physical card to read the second card address and the corresponding second blockchain network;
[0114] After receiving the request from the wallet device, the security chip of the physical card reads the second card address and the second blockchain network corresponding to the second card address from the local cache, and returns them to the wallet device.
[0115] The wallet device calls the RPC node corresponding to the second blockchain network to query the actual balance of the second card address stored on the second blockchain network;
[0116] The wallet device determines the final balance based on the actual balance.
[0117] Furthermore, the wallet device obtains the stablecoin contract address corresponding to the second blockchain network;
[0118] The wallet device constructs a second stablecoin transaction to query the actual balance based on the stablecoin contract address and the second card address;
[0119] The wallet device broadcasts the second stablecoin transaction to the second blockchain network via the RPC node;
[0120] After receiving the broadcast message, the second blockchain network executes the second stablecoin transaction and returns the query result obtained from the execution to the wallet device through the RPC node;
[0121] The wallet device parses the query results to obtain the actual balance.
[0122] Furthermore, the second card address includes multiple second card addresses corresponding to multiple second blockchain networks stored on the physical card; the wallet device queries the actual balance of the second card address stored on the second blockchain network in one of the following ways:
[0123] The wallet device queries the actual balances of the multiple second card addresses stored on the corresponding second blockchain network one by one;
[0124] The wallet device queries the actual balance stored on the corresponding second blockchain network for a second card address that matches the first card address.
[0125] The wallet device queries the actual balance of the second card address whose amount has changed, stored on the corresponding second blockchain network.
[0126] Furthermore, the wallet device selects a frequently used card address from a plurality of second card addresses;
[0127] The wallet device broadcasts a message to the commonly used card address on the corresponding second blockchain network to query the actual balance;
[0128] After receiving the broadcast message, the second blockchain network returns the actual balance corresponding to the second card address to the wallet device;
[0129] The wallet device obtains the cache balance corresponding to the commonly used card address stored in the local cache of the physical card;
[0130] The wallet device compares the actual balance corresponding to the frequently used card address with the cached balance. If the actual balance and the cached balance are the same, the device returns the actual balance corresponding to the frequently used card address. If the actual balance and the cached balance are different, the device continues to query the actual balances of other second card addresses (excluding the frequently used card address) stored on their respective second blockchain networks, and returns the actual balances corresponding to all second card addresses. This function can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above function.
[0131] In one possible design, the above-described device includes a memory and a processor. The memory stores one or more computer instructions that support the device in performing the corresponding methods described above, and the processor is configured to execute the computer instructions stored in the memory. The device may also include a communication interface for communicating with other devices or communication networks.
[0132] Fifthly, embodiments of this disclosure provide an electronic device, including a memory and a processor. The memory stores one or more computer instructions that support any of the aforementioned devices in executing the corresponding methods described above. The processor is configured to execute the computer instructions stored in the memory. Any of the aforementioned devices may further include a communication interface for communicating with other devices or communication networks.
[0133] In a sixth aspect, embodiments of this disclosure provide a computer-readable storage medium for storing computer instructions used by any of the above-described devices, including computer instructions for performing any of the above-described methods.
[0134] In a seventh aspect, embodiments of this disclosure provide a computer program product comprising computer instructions which, when executed by a processor, are used to implement the steps of the methods described in any of the preceding aspects.
[0135] The technical solutions provided in this disclosure may have the following beneficial effects:
[0136] This disclosure utilizes an embedded secure element to store stablecoins in a physical card, facilitating stablecoin transactions such as POS machine card swiping or mobile phone NFC tap-to-pay. This solution enhances the storage security and transaction convenience of stablecoins, contributing to the wider application of stablecoins in real life.
[0137] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the embodiments of this disclosure. Attached Figure Description
[0138] Other features, objects, and advantages of embodiments of this disclosure will become more apparent from the following detailed description of non-limiting implementations, taken in conjunction with the accompanying drawings. In the drawings:
[0139] Figure 1 A flowchart illustrating a method for storing stablecoins on a physical card according to an embodiment of the present disclosure is shown.
[0140] Figure 2 A flowchart illustrating a method for storing stablecoins on a physical card according to another embodiment of this disclosure is shown.
[0141] Figure 3 A structural block diagram of an apparatus for storing stablecoins on a physical card according to an embodiment of the present disclosure is shown.
[0142] Figure 4 A structural block diagram of a system for storing stablecoins on a physical card according to an embodiment of the present disclosure is shown.
[0143] Figure 5 This is a schematic diagram of the structure of a computer system suitable for implementing a method for storing stablecoins on a physical card according to an embodiment of the present disclosure. Detailed Implementation
[0144] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings to enable those skilled in the art to readily implement them. Furthermore, for clarity, portions unrelated to the description of the exemplary embodiments have been omitted from the drawings.
[0145] In embodiments disclosed herein, it should be understood that terms such as “comprising” or “having” are intended to indicate the presence of features, numbers, steps, behaviors, components, portions or combinations thereof disclosed herein, and are not intended to exclude the possibility that one or more other features, numbers, steps, behaviors, components, portions or combinations thereof are present or added.
[0146] It should also be noted that, unless otherwise specified, the embodiments and features described in this disclosure can be combined with each other. The embodiments of this disclosure will now be described in detail with reference to the accompanying drawings and examples.
[0147] This disclosure utilizes an embedded secure element to store stablecoins in a physical card, facilitating stablecoin transactions such as POS machine card swiping or mobile phone NFC tap-to-pay. This solution enhances the storage security and transaction convenience of stablecoins, contributing to the wider application of stablecoins in real life.
[0148] Figure 1 A flowchart illustrating a method for storing stablecoins on a physical card according to an embodiment of the present disclosure is shown, as follows: Figure 1 As shown, the method for storing stablecoins on a physical card includes the following steps:
[0149] In step S101, the first card address of the physical card and the corresponding first blockchain network are obtained;
[0150] In step S102, the recharge amount input by the user is obtained;
[0151] In step S103, a first stablecoin transaction corresponding to the recharge request of the physical card is broadcast to the first blockchain network. The first stablecoin transaction carries the first card address and stablecoins corresponding to the recharge amount.
[0152] In step S104, after receiving the confirmation message from the first blockchain network corresponding to the first stablecoin transaction, the final balance corresponding to the first card address of the physical card is determined;
[0153] In step S105, the final balance is stored in the local cache of the physical card via the NFC communication interface.
[0154] As mentioned above, stablecoin payments and transfers are currently only conducted on centralized or decentralized exchanges. Typically, stablecoins are purchased with fiat currency to enter the crypto market, or sold for fiat currency to exit the market. This limited transaction scenario, coupled with the reliance on bridging protocols for cross-chain transactions, results in inefficient fund transfers and security risks. Furthermore, this current transaction method increases operational complexity and costs, thus restricting the widespread adoption of stablecoins in payment scenarios.
[0155] Therefore, this disclosure proposes storing stablecoins on physical cards, which can at least reduce the complexity of user operations and increase convenience, thereby enabling stablecoins to be more widely used in people's lives.
[0156] In this embodiment, the physical card storing stablecoins can be a passive card, which mainly includes four parts: a security chip, an NFC chip, an e-ink screen, and physical buttons. The security chip is used to store keys, cache stablecoin balances, perform signatures during payments, and read / write to the local cache; the NFC chip is used to communicate and transmit data with electronic devices via the NFC communication interface; the e-ink screen displays the balance; and the buttons are used for user input operations, such as confirming, canceling, or entering a password.
[0157] Since stablecoins are cryptocurrencies based on blockchain technology, their value stabilization mechanism and operation rely on technologies such as distributed ledgers and smart contracts provided by the blockchain. Therefore, the solution in this embodiment also involves a blockchain network. The blockchain network serves as the platform for the issuance and circulation of stablecoins, including blockchain platforms such as Ethereum, BSC (Binance Smart Chain, now part of the BNB Chain ecosystem), and Tron. This blockchain network supports smart contracts and decentralized applications.
[0158] Furthermore, to achieve interconnection between the physical card and the blockchain network, this embodiment utilizes an NFC-enabled electronic device, such as a POS machine or mobile phone, as a relay. The electronic device reads and writes the physical card and broadcasts stablecoin-related information, such as stablecoin deposit information, to the blockchain network. This allows the relevant information to be recorded in the blockchain network, enabling stablecoin accounting. In some embodiments, the electronic device can access the blockchain network by calling the corresponding RPC node. Different blockchain networks correspond to different RPC nodes. The electronic device can pre-store the correspondence between blockchain networks and their corresponding RPC node addresses, so that the corresponding RPC node address can be determined when the blockchain network is known.
[0159] When storing stablecoins on a physical card, a user can initiate a physical card top-up request through a stablecoin wallet app installed on an electronic device. In response to this top-up request, an input box is displayed on the user interface displaying the first card address and its corresponding first blockchain network. The user can manually enter the first card address and corresponding first blockchain network in the input box or select them from dropdown menus. It should be noted that different blockchain networks can be represented by different identifiers. This first card address corresponds to the card address of the physical card to be topped up. It should also be noted that in some embodiments, the physical card top-up request can also be initiated through the stablecoin user trading center. Both the wallet app and the user trading center run on an electronic device; for ease of description, this electronic device is referred to as a wallet device in this disclosure.
[0160] After the wallet device obtains the user's input of the first card address and the corresponding first blockchain network, it can display a recharge amount input box on the user interface. The user can manually enter the amount of stablecoin to be reset through this input box. Based on the user's input recharge amount, the first card address, and the first blockchain network, a corresponding first stablecoin transaction can be constructed and then broadcast to the first blockchain network. It should be noted that the construction method of the first stablecoin transaction may differ depending on the blockchain network, and may also differ depending on the requested transaction (such as a transfer transaction, a query transaction, etc.). This disclosure does not impose any restrictions based on the specific circumstances. It should be noted that the first stablecoin transaction can carry the first card address and stablecoins corresponding to the recharge amount, which comes from the user's transaction center or wallet app. After the first stablecoin transaction is broadcast to the first blockchain network, the first blockchain network can record the first stablecoin transaction on a block, and each block will return a confirmation message after successfully recording the transaction. It should also be noted that the wallet device needs to access the first blockchain network by calling the corresponding RPC node. Therefore, the interaction between the wallet device and the first blockchain network in the above process is completed through the RPC node.
[0161] After receiving the confirmation message from the first blockchain network, the wallet device can first determine the final balance of the first card address of the physical card, and then write the final balance into the local cache of the physical card. It is understood that the final balance may include the stablecoin balance of the first card address before the deposit and the current deposit amount. The stablecoin balance of the first card address before the deposit can be obtained by accessing the first blockchain network, or it can directly use the cached balance stored in the local cache of the physical card.
[0162] When using the cache balance stored in the physical card's local cache as the stablecoin balance of the first card address before recharge, determining the final balance corresponding to the first card address of the physical card includes:
[0163] After detecting the NFC signal of the physical card, power is supplied to the physical card through the NFC communication interface to activate the physical card;
[0164] A balance read request is sent to the physical card via the NFC communication interface; the balance read request carries at least the address of the first card.
[0165] Receive the cache balance corresponding to the first card address stored in the local cache of the physical card, returned by the physical card;
[0166] The final balance is determined based on the recharge amount and the cache balance.
[0167] In this embodiment, after receiving a confirmation message from the first blockchain network, the wallet device can prompt the user to bring the physical card to be recharged close to the wallet device and detect the NFC signal of the physical card. After detecting the NFC signal of the physical card, power is supplied to the physical card through the NFC communication interface to activate the security chip on the physical card. The wallet device then constructs a balance read request to read the local cache of the physical card and sends this balance read request to the physical card through the NFC communication interface. Upon receiving the balance read request, the security chip of the physical card parses it and executes corresponding commands based on the parsing result, thereby returning the read data to the wallet device. This balance read request may include the first card address. Based on this balance read request, the security chip reads the cached balance corresponding to the first card address from the local cache and returns it to the wallet device. It should be noted that the physical card may include multiple different card addresses, each card address corresponding to a different blockchain network, and the relationship between the card address and the blockchain network can be one-to-one. That is, a physical card can include a maximum number of card addresses equal to the number of blockchain networks supported by the stablecoin. The stablecoin included in each card address exists independently, and the first card address is one of the multiple card addresses included in the physical card.
[0168] After reading the cache balance corresponding to the first card address stored in the local cache of the physical card, the sum of the cache balance and the recharge amount is the final balance corresponding to the first card address. This final balance can be written into the local cache of the physical card by the wallet device, thereby completing the stablecoin storage process on the physical card.
[0169] Another implementation, namely, determining the final balance corresponding to the first card address of the physical card when the final balance is determined by querying the first blockchain network, includes:
[0170] After detecting the NFC signal of the physical card, power is supplied to the physical card through the NFC communication interface to activate the physical card;
[0171] Read the second card address and the second blockchain network corresponding to the second card address from the local cache of the physical card;
[0172] Call the RPC node corresponding to the second blockchain network to query the actual balance of the second card address stored on the second blockchain network;
[0173] The final balance is determined based on the actual balance.
[0174] This implementation is equivalent to initiating a balance inquiry process for a physical card. During this process, the wallet device prompts the user to bring the physical card to be recharged close to the wallet device and detects the card's NFC signal. After detecting the card's NFC signal, power is supplied to the card via the NFC communication interface to activate its security chip. The wallet device then constructs a card address read request from the card's local cache and sends this request to the card via the NFC communication interface. Upon receiving the card address read request, the card's security chip parses it and executes corresponding commands based on the parsing result, returning the data the wallet device needs to read. Specifically, the card's security chip stores all card addresses and their corresponding blockchain networks in its local cache. Therefore, the second card address and its corresponding second blockchain network can be any of the card addresses and their corresponding blockchain networks stored in the card's local cache, while the first card address and its corresponding first blockchain network are one of the second card address and its corresponding second blockchain network.
[0175] After reading the second card address and the second blockchain network, the wallet device can query the actual balance of the second card address on the second blockchain network by calling the RPC node corresponding to the second blockchain network. This actual balance is the real balance of the second card address, so the final balance is this actual balance.
[0176] In some implementations, calling the RPC node corresponding to the second blockchain network to query the actual balance of the second card address stored on the second blockchain network includes:
[0177] Obtain the stablecoin contract address corresponding to the second blockchain network;
[0178] Based on the stablecoin contract address and the second card address, construct a second stablecoin transaction to query the actual balance;
[0179] The second stablecoin transaction is broadcast to the second blockchain network via the RPC node;
[0180] The system receives the query results returned by the RPC node and parses the query results to obtain the actual balance.
[0181] In this implementation, the wallet device can pre-store stablecoin contract addresses corresponding to different blockchain networks. Based on the second blockchain network corresponding to the second card address to be queried, the corresponding stablecoin contract address can be obtained. Then, a second stablecoin transaction corresponding to the stablecoin contract address and the second card address can be constructed to query the actual balance. The second stablecoin transaction is broadcast to the second blockchain network by calling the RPC node corresponding to the second blockchain network. The second blockchain network returns the corresponding data based on the received second stablecoin transaction. The wallet device can parse the actual balance of the stablecoin corresponding to the second card address from the returned data.
[0182] It should be noted that during the balance query process, the wallet device can query the actual balance corresponding to all second card addresses according to pre-set parameters. This involves broadcasting second stablecoin transactions for the second card addresses to multiple second blockchain networks. After obtaining the actual balances of stablecoins corresponding to multiple second card addresses, the wallet device can batch-write these actual balances to the local cache of the physical card. Alternatively, the wallet device can also query only the actual balance corresponding to the first card address, or query the actual balance corresponding to the second card address whose amount has changed.
[0183] In some implementations, querying the actual balance of the second card address whose amount has changed on the corresponding second blockchain network includes:
[0184] Choose a frequently used card address from multiple secondary card addresses;
[0185] Query the actual balance of the commonly used card address stored in the corresponding second blockchain network;
[0186] Obtain the cache balance corresponding to the commonly used card address stored in the local cache of the physical card;
[0187] If the actual balance is the same as the cached balance, the actual balance corresponding to the commonly used card address is returned. If the actual balance is different from the cached balance, the actual balances of other second card addresses besides the commonly used card address stored on the corresponding second blockchain network are queried, and the actual balances corresponding to all second card addresses are returned.
[0188] In this implementation, frequently used card addresses can be queried first. These addresses can be marked by the physical card's security chip based on the number of times they have been accessed, or specified by the user. When the physical card returns a second card address to the wallet device, the frequently used card address can be marked. The wallet device first reads the cached balance corresponding to all second card addresses from the physical card, and then queries the second blockchain network corresponding to the frequently used card address to find the actual balance stored on the second blockchain network. The cached balance and the actual balance are compared. If they are different, it means that the cached balance corresponding to the frequently used card address on the physical card is not the actual balance. The cached balance corresponding to other second card addresses besides the frequently used card address may also not be the actual balance. Therefore, the actual balance corresponding to other second card addresses can be queried one by one from the corresponding second blockchain network, and the actual balance is written to the physical card. If the cached balance and the actual balance of the frequently used card address are the same, then the cached balance of other second card addresses besides the frequently used card address is likely the same as the actual balance. Therefore, the cached balance of other second card addresses is not updated, thereby improving efficiency and saving resources.
[0189] Figure 2 A flowchart illustrating a method for storing stablecoins on a physical card according to another embodiment of this disclosure is shown, such as... Figure 2 As shown, the method for storing stablecoins on a physical card includes the following steps:
[0190] In step S201, the wallet device responds to the physical card top-up request for stablecoins by obtaining the first card address entered by the user and the corresponding first blockchain network;
[0191] In step S202, the wallet device obtains the recharge amount input by the user;
[0192] In step S203, the wallet device broadcasts a first stablecoin transaction corresponding to the physical card top-up request to the first blockchain network. The first stablecoin transaction carries the first card address and stablecoins corresponding to the top-up amount.
[0193] In step S204, after receiving the broadcast message, the first blockchain network records the transaction based on the first stablecoin transaction and returns a confirmation message after the transaction is successfully recorded.
[0194] In step S205, after receiving the confirmation message, the wallet device determines the final balance corresponding to the first card address of the physical card;
[0195] In step S206, the wallet device stores the final balance in the local cache of the physical card via the NFC communication interface.
[0196] Further, determining the final balance corresponding to the first card address of the physical card includes:
[0197] After the wallet device detects the NFC signal of the physical card, it provides power to the physical card through the NFC communication interface;
[0198] The physical card activates the security chip when powered by the power supply.
[0199] The wallet device sends a balance read request to the physical card via the NFC communication interface; the balance read request carries at least the address of the first card.
[0200] After receiving the balance read request, the security chip of the physical card reads the first card address and its corresponding cache balance stored in the local cache, and returns it to the wallet device through the NFC communication interface.
[0201] The wallet device determines the final balance based on the recharge amount and the cached balance returned by the physical card.
[0202] Further, determining the final balance corresponding to the first card address of the physical card includes:
[0203] After the wallet device detects the NFC signal of the physical card, it provides power to the physical card through the NFC communication interface;
[0204] The physical card activates the security chip when powered by the power supply.
[0205] The wallet device sends a request to the physical card to read the second card address and the corresponding second blockchain network;
[0206] After receiving the request from the wallet device, the security chip of the physical card reads the second card address and the second blockchain network corresponding to the second card address from the local cache, and returns them to the wallet device.
[0207] The wallet device calls the RPC node corresponding to the second blockchain network to query the actual balance of the second card address stored on the second blockchain network;
[0208] The wallet device determines the final balance based on the actual balance.
[0209] Further, the wallet device calls the RPC node corresponding to the second blockchain network to query the actual balance of the second card address stored on the second blockchain network, including:
[0210] The wallet device obtains the stablecoin contract address corresponding to the second blockchain network;
[0211] The wallet device constructs a second stablecoin transaction to query the actual balance based on the stablecoin contract address and the second card address;
[0212] The wallet device broadcasts the second stablecoin transaction to the second blockchain network via the RPC node;
[0213] After receiving the broadcast message, the second blockchain network executes the second stablecoin transaction and returns the query result obtained from the execution to the wallet device through the RPC node;
[0214] The wallet device parses the query results to obtain the actual balance.
[0215] Furthermore, the second card address includes multiple second card addresses corresponding to multiple second blockchain networks stored on the physical card; the wallet device calls the RPC node corresponding to the second blockchain network to query the actual balance of the second card address stored on the second blockchain network, including one of the following:
[0216] The wallet device queries the actual balances of the multiple second card addresses stored on the corresponding second blockchain network one by one;
[0217] The wallet device queries the actual balance stored on the corresponding second blockchain network for a second card address that matches the first card address.
[0218] The wallet device queries the actual balance of the second card address whose amount has changed, stored on the corresponding second blockchain network.
[0219] Furthermore, the wallet device queries the actual balance stored on the corresponding second blockchain network for the second card address whose amount has changed, including:
[0220] The wallet device selects a frequently used card address from a plurality of second card addresses;
[0221] The wallet device broadcasts a message to the commonly used card address on the corresponding second blockchain network to query the actual balance;
[0222] After receiving the broadcast message, the second blockchain network returns the actual balance corresponding to the second card address to the wallet device;
[0223] The wallet device obtains the cache balance corresponding to the commonly used card address stored in the local cache of the physical card;
[0224] The wallet device compares the actual balance corresponding to the frequently used card address with the cached balance. If the actual balance and the cached balance are the same, the actual balance corresponding to the frequently used card address is returned. If the actual balance and the cached balance are different, the device continues to query the actual balances of other second card addresses besides the frequently used card address stored on the corresponding second blockchain network, and returns the actual balances corresponding to all second card addresses.
[0225] The following are embodiments of the apparatus disclosed herein, which can be used to execute embodiments of the method disclosed herein.
[0226] Figure 3 This diagram illustrates a structural block diagram of an apparatus for storing stablecoins on a physical card according to an embodiment of the present disclosure. This apparatus can be implemented as part or all of a wallet device through software, hardware, or a combination of both. Figure 3 As shown, the device for storing stablecoins on a physical card includes:
[0227] The first acquisition module 301 is configured to, in response to a physical card recharge request for stablecoins, acquire the first card address input by the user and the corresponding first blockchain network;
[0228] The second acquisition module 302 is configured to acquire the recharge amount input by the user;
[0229] Broadcast module 303 is configured to broadcast a first stablecoin transaction corresponding to the recharge request of the physical card to the first blockchain network. The first stablecoin transaction carries the first card address and stablecoins corresponding to the recharge amount.
[0230] The determining module 304 is configured to determine the final balance corresponding to the first card address of the physical card after receiving a confirmation message from the first blockchain network corresponding to the first stablecoin transaction;
[0231] Storage module 305 is configured to store the final balance in the local cache of the physical card via an NFC communication interface.
[0232] Furthermore, the determining module includes:
[0233] The first detection submodule is configured to, upon detecting the NFC signal of the physical card, provide power to the physical card through the NFC communication interface to activate the physical card;
[0234] The sending submodule is configured to send a balance read request to the physical card via the NFC communication interface; the balance read request carries at least the address of the first card.
[0235] The receiving submodule is configured to receive the cache balance corresponding to the first card address stored in the local cache of the physical card, which is returned by the physical card.
[0236] The determination submodule is configured to determine the final balance based on the recharge amount and the cache balance.
[0237] Furthermore, the determining module includes:
[0238] The second detection submodule is configured to, upon detecting the NFC signal of the physical card, provide power to the physical card through the NFC communication interface to activate the physical card;
[0239] The reading submodule is configured to read the second card address and the second blockchain network corresponding to the second card address from the local cache of the physical card;
[0240] The calling submodule is configured to call the RPC node corresponding to the second blockchain network to query the actual balance of the second card address stored on the second blockchain network;
[0241] The second determining submodule is configured to determine the final balance based on the actual balance.
[0242] Furthermore, the calling submodule includes:
[0243] The first acquisition submodule is configured to acquire the stablecoin contract address corresponding to the second blockchain network;
[0244] The construction submodule is configured to construct a second stablecoin transaction to query the actual balance based on the stablecoin contract address and the second card address;
[0245] The broadcast submodule is configured to broadcast the second stablecoin transaction to the second blockchain network via the RPC node;
[0246] The parsing submodule is configured to receive the query results returned by the RPC node, parse the query results to obtain the actual balance.
[0247] Furthermore, the second card address includes multiple second card addresses corresponding to multiple second blockchain networks stored on the physical card; the calling submodule includes one of the following:
[0248] The first query submodule is configured to query the actual balances of the multiple second card addresses stored on the corresponding second blockchain network one by one.
[0249] The second query submodule is configured to query the actual balance stored on the corresponding second blockchain network for a second card address that matches the first card address.
[0250] The third query submodule is configured to query the actual balance of the second card address whose amount has changed, stored on the corresponding second blockchain network.
[0251] Furthermore, the third query submodule includes:
[0252] The selection submodule is configured to select a frequently used card address from multiple second card addresses;
[0253] The fourth query submodule is configured to query the actual balance of the commonly used card address stored in the corresponding second blockchain network;
[0254] The second acquisition submodule is configured to acquire the cache balance corresponding to the commonly used card address stored in the local cache of the physical card;
[0255] The return submodule is configured to return the actual balance corresponding to the commonly used card address if the actual balance is the same as the cached balance, and to continue querying the actual balances of other second card addresses besides the commonly used card address on the corresponding second blockchain network, and return the actual balances corresponding to all second card addresses.
[0256] Figure 4 This diagram illustrates a system block diagram for storing stablecoins on a physical card according to an embodiment of the present disclosure, such as... Figure 4 As shown, the system for storing stablecoins on a physical card includes: a wallet device, a first blockchain network, and a physical card; wherein,
[0257] The wallet device responds to a physical card top-up request for stablecoins by obtaining the first card address entered by the user and the corresponding first blockchain network;
[0258] The wallet device obtains the recharge amount entered by the user;
[0259] The wallet device broadcasts a first stablecoin transaction corresponding to the physical card top-up request to the first blockchain network. The first stablecoin transaction carries the first card address and stablecoins corresponding to the top-up amount.
[0260] After receiving the broadcast message, the first blockchain network records the transaction based on the first stablecoin transaction and returns a confirmation message after the transaction is successfully recorded.
[0261] After receiving the confirmation message, the wallet device determines the final balance corresponding to the first card address of the physical card;
[0262] The wallet device stores the final balance in the local cache of the physical card via the NFC communication interface.
[0263] Furthermore, after the wallet device detects the NFC signal of the physical card, it provides power to the physical card through the NFC communication interface;
[0264] The physical card activates the security chip when powered by the power supply.
[0265] The wallet device sends a balance read request to the physical card via the NFC communication interface; the balance read request carries at least the address of the first card.
[0266] After receiving the balance read request, the security chip of the physical card reads the first card address and its corresponding cache balance stored in the local cache, and returns it to the wallet device through the NFC communication interface.
[0267] The wallet device determines the final balance based on the recharge amount and the cached balance returned by the physical card.
[0268] Furthermore, after the wallet device detects the NFC signal of the physical card, it provides power to the physical card through the NFC communication interface;
[0269] The physical card activates the security chip when powered by the power supply.
[0270] The wallet device sends a request to the physical card to read the second card address and the corresponding second blockchain network;
[0271] After receiving the request from the wallet device, the security chip of the physical card reads the second card address and the second blockchain network corresponding to the second card address from the local cache, and returns them to the wallet device.
[0272] The wallet device calls the RPC node corresponding to the second blockchain network to query the actual balance of the second card address stored on the second blockchain network;
[0273] The wallet device determines the final balance based on the actual balance.
[0274] Furthermore, the wallet device obtains the stablecoin contract address corresponding to the second blockchain network;
[0275] The wallet device constructs a second stablecoin transaction to query the actual balance based on the stablecoin contract address and the second card address;
[0276] The wallet device broadcasts the second stablecoin transaction to the second blockchain network via the RPC node;
[0277] After receiving the broadcast message, the second blockchain network executes the second stablecoin transaction and returns the query result obtained from the execution to the wallet device through the RPC node;
[0278] The wallet device parses the query results to obtain the actual balance.
[0279] Furthermore, the second card address includes multiple second card addresses corresponding to multiple second blockchain networks stored on the physical card; the wallet device queries the actual balance of the second card address stored on the second blockchain network in one of the following ways:
[0280] The wallet device queries the actual balances of the multiple second card addresses stored on the corresponding second blockchain network one by one;
[0281] The wallet device queries the actual balance stored on the corresponding second blockchain network for a second card address that matches the first card address.
[0282] The wallet device queries the actual balance of the second card address whose amount has changed, stored on the corresponding second blockchain network.
[0283] Furthermore, the wallet device selects a frequently used card address from a plurality of second card addresses;
[0284] The wallet device broadcasts a message to the commonly used card address on the corresponding second blockchain network to query the actual balance;
[0285] After receiving the broadcast message, the second blockchain network returns the actual balance corresponding to the second card address to the wallet device;
[0286] The wallet device obtains the cache balance corresponding to the commonly used card address stored in the local cache of the physical card;
[0287] The wallet device compares the actual balance corresponding to the frequently used card address with the cached balance. If the actual balance and the cached balance are the same, the device returns the actual balance corresponding to the frequently used card address. If the actual balance and the cached balance are different, the device continues to query the actual balances of other second card addresses (excluding the frequently used card address) stored on their respective second blockchain networks, and returns the actual balances corresponding to all second card addresses. This function can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above function.
[0288] The technical features and their corresponding explanations and descriptions involved in the above-described device and system embodiments are the same as, corresponding to, or similar to the technical features and their corresponding explanations and descriptions involved in the above-described method embodiments. For the technical features and their corresponding explanations and descriptions involved in the above-described device and system embodiments, please refer to the technical features and their corresponding explanations and descriptions involved in the above-described method embodiments. This disclosure will not repeat them here.
[0289] This disclosure also discloses an electronic device, which includes a memory and a processor; wherein...
[0290] The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement any of the above method steps.
[0291] Figure 5 This is a schematic diagram of the structure of a computer system suitable for implementing a method for storing stablecoins on a physical card according to an embodiment of the present disclosure.
[0292] like Figure 5 As shown, the computer system 500 includes a processing unit 501, which can execute various processes described above based on a program stored in a read-only memory (ROM) 502 or a program loaded from a storage section 508 into a random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the computer system 500. The processing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0293] The following components are connected to I / O interface 505: an input section 506 including a keyboard, mouse, etc.; an output section 507 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to I / O interface 505 as needed. A removable medium 511, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 510 as needed so that computer programs read from it can be installed into storage section 508 as needed. The processing unit 501 can be implemented as a CPU, GPU, TPU, FPGA, NPU, etc.
[0294] In particular, according to embodiments of this disclosure, the methods described above can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program tangibly embodied on a readable medium thereof, the computer program containing program code for performing the data transmission method. In such embodiments, the computer program can be downloaded and installed from a network via communication section 509, and / or installed from removable medium 511.
[0295] This disclosure also discloses a computer program product, which includes a computer program / instructions that, when executed by a processor, implement any of the above-described method steps.
[0296] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0297] The units or modules described in the embodiments of this disclosure can be implemented in software or hardware. The described units or modules can also be located in a processor, and the names of these units or modules do not necessarily constitute a limitation on the unit or module itself.
[0298] In another aspect, embodiments of this disclosure also provide a computer-readable storage medium, which may be a computer-readable storage medium included in the apparatus described in the above embodiments; or it may be a standalone computer-readable storage medium not assembled into a device. The computer-readable storage medium stores one or more programs, which are used by one or more processors to perform the methods described in embodiments of this disclosure.
[0299] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in the embodiments of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the inventive concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in the embodiments of this disclosure.
Claims
1. A method for storing stablecoins on a physical card, wherein, include: In response to a physical card top-up request for stablecoins, obtain the first card address entered by the user and the corresponding first blockchain network; Get the recharge amount entered by the user; Broadcast a first stablecoin transaction corresponding to the physical card top-up request to the first blockchain network. The first stablecoin transaction carries the first card address and stablecoins corresponding to the top-up amount. After receiving the confirmation message from the first blockchain network corresponding to the first stablecoin transaction, the final balance corresponding to the first card address of the physical card is determined; The final balance is stored in the local cache of the physical card via the NFC communication interface.
2. The method according to claim 1, wherein, Determining the final balance corresponding to the first card address of the physical card includes: After detecting the NFC signal of the physical card, power is supplied to the physical card through the NFC communication interface to activate the physical card; A balance read request is sent to the physical card via the NFC communication interface; the balance read request carries at least the address of the first card. Receive the cache balance corresponding to the first card address stored in the local cache of the physical card, returned by the physical card; The final balance is determined based on the recharge amount and the cache balance.
3. The method according to claim 1, wherein, Determining the final balance corresponding to the first card address of the physical card includes: After detecting the NFC signal of the physical card, power is supplied to the physical card through the NFC communication interface to activate the physical card; Read the second card address and the second blockchain network corresponding to the second card address from the local cache of the physical card; Call the RPC node corresponding to the second blockchain network to query the actual balance of the second card address stored on the second blockchain network; The final balance is determined based on the actual balance.
4. The method according to claim 3, wherein, Calling the RPC node corresponding to the second blockchain network to query the actual balance of the second card address stored on the second blockchain network includes: Obtain the stablecoin contract address corresponding to the second blockchain network; Based on the stablecoin contract address and the second card address, construct a second stablecoin transaction to query the actual balance; The second stablecoin transaction is broadcast to the second blockchain network via the RPC node; The system receives the query results returned by the RPC node and parses the query results to obtain the actual balance.
5. A method for storing stablecoins on a physical card, wherein, include: The wallet device responds to a physical card deposit request for stablecoins by obtaining the first card address entered by the user and the corresponding first blockchain network; The wallet device obtains the recharge amount entered by the user; The wallet device broadcasts a first stablecoin transaction corresponding to the physical card top-up request to the first blockchain network. The first stablecoin transaction carries the first card address and stablecoins corresponding to the top-up amount. After receiving the broadcast message, the first blockchain network records the transaction based on the first stablecoin transaction and returns a confirmation message after the transaction is successfully recorded. After receiving the confirmation message, the wallet device determines the final balance corresponding to the first card address of the physical card; The wallet device stores the final balance in the local cache of the physical card via the NFC communication interface.
6. A device for storing stablecoins on a physical card, wherein, include: The first acquisition module is configured to, in response to a stablecoin physical card top-up request, acquire the first card address entered by the user and the corresponding first blockchain network; The second acquisition module is configured to acquire the recharge amount input by the user; The broadcast module is configured to broadcast a first stablecoin transaction corresponding to the recharge request of the physical card to the first blockchain network. The first stablecoin transaction carries the first card address and stablecoins corresponding to the recharge amount. The determination module is configured to determine the final balance corresponding to the first card address of the physical card after receiving a confirmation message from the first blockchain network corresponding to the first stablecoin transaction; The storage module is configured to store the final balance in the local cache of the physical card via an NFC communication interface.
7. A system for storing stablecoins on a physical card, comprising: Wallet devices, the first blockchain network, and physical cards; among them, The wallet device responds to a physical card top-up request for stablecoins by obtaining the first card address entered by the user and the corresponding first blockchain network; The wallet device obtains the recharge amount entered by the user; The wallet device broadcasts a first stablecoin transaction corresponding to the physical card top-up request to the first blockchain network. The first stablecoin transaction carries the first card address and stablecoins corresponding to the top-up amount. After receiving the broadcast message, the first blockchain network records the transaction based on the first stablecoin transaction and returns a confirmation message after the transaction is successfully recorded. After receiving the confirmation message, the wallet device determines the final balance corresponding to the first card address of the physical card; The wallet device stores the final balance in the local cache of the physical card via the NFC communication interface.
8. An electronic device comprising a memory and a processor; wherein, The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the steps of the method according to any one of claims 1-5.
9. A computer-readable storage medium having computer instructions stored thereon, wherein, When executed by a processor, the computer instructions implement the steps of the method according to any one of claims 1-5.
10. A computer program product comprising a computer program / instructions that, when executed by a processor, implement the steps of the method according to any one of claims 1-5.