Confirmation method for accelerating on-chain transaction, automatic selling method and system
By monitoring transfer events in the vending machine system and querying confirmation information from several nodes, and using preset thresholds to confirm the validity of transactions, the problem of low transaction confirmation efficiency is solved, enabling efficient and stable cross-border and cross-regional transactions, and improving the real-time performance and user experience of the vending machine system.
Patent Information
- Application Number
- CN202411026712.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-11-22
AI Technical Summary
When using encrypted credentials for transactions in vending machine systems, existing technologies suffer from low transaction confirmation efficiency, especially in cross-border and cross-regional transactions, where waiting for confirmation of multiple blocks results in low real-time performance.
By monitoring transfer events, query requests are sent to several blockchain nodes to obtain confirmation information. The validity of the transaction is confirmed by determining whether the number of confirmation messages exceeds a preset threshold, thereby reducing transaction confirmation time.
It significantly shortens transaction confirmation time, improves the real-time performance and transaction efficiency of the automated vending system, reduces the uncertainty and risk caused by fluctuations in the price of encrypted certificates, meets the need for immediacy, and enhances the user experience.
Smart Images

Figure CN119005970A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a confirmation method, an automatic vending method and a system for accelerating on-chain transactions. Background Art
[0002] Blockchain technology is a new distributed infrastructure and computing paradigm that uses block chain data structures to verify and store data, uses distributed node consensus algorithms to generate and update data, uses cryptography to ensure the security of data transmission and access, and uses smart contracts composed of automated script codes to program and operate data. The essence of blockchain technology is a distributed ledger technology, which is a database shared, replicated and synchronized among network members.
[0003] Cryptographic credentials are digital credentials based on encryption technology, and their essence is a shared ledger that only records transactions. The core idea of cryptographic credentials is to use distributed ledger technology, such as blockchain technology, to ensure that ledger records are not tampered with by using cryptography and block chain data structure to achieve decentralization, openness and security. Cryptographic credentials are designed to facilitate safe, fast and low-cost transactions. Among them, stablecoins are a special type of cryptographic credentials with less price fluctuations, and are usually linked to some legal certificates or other assets to achieve price stability.
[0004] At present, cross-border and cross-regional trade activities and exchanges are increasing. With the introduction of digital certificates, some vending machines have begun to support digital certificate payments. However, in the payment services of these vending machine systems, the following situations exist in the sales transactions using encrypted certificates:
[0005] Cryptographic vouchers include native vouchers and proxy vouchers. Native vouchers refer to products based on the main blockchain technology developed from scratch, while proxy vouchers are derivatives of the main blockchain technology. The sale of encrypted vouchers is based on distributed ledger technology. Due to its block chain structure, each transaction requires waiting for the majority of nodes to confirm that the transaction is secure and has not been tampered with after multiple blocks, resulting in low transaction efficiency. Therefore, in the sale of encrypted vouchers in the vending machine system, there is a problem of low real-time performance. Summary of the invention
[0006] The present invention provides a method for accelerating the confirmation of on-chain transactions, an automatic vending method and a system to solve the above-mentioned technical problems, improve the transaction efficiency of automatic vending, and improve the real-time performance of the automatic vending system.
[0007] In order to solve the above technical problems, the present invention provides a method for accelerating the confirmation of on-chain transactions, which may include the following steps:
[0008] Monitor transfer events;
[0009] Sending a query request to a plurality of nodes to enable the plurality of nodes to respond to the query request, thereby obtaining confirmation information corresponding to the plurality of nodes;
[0010] It is determined whether the number of confirmation information exceeds a preset threshold, and if so, the transaction is deemed valid.
[0011] The above-mentioned method for accelerating the confirmation of on-chain transactions can specifically be performed by setting a preset threshold, querying several blockchain nodes, and allowing several of the nodes to feedback confirmation information. As long as the number of confirmation information exceeds the preset threshold, the transaction confirmation can be achieved. Compared with the transaction confirmation method in the prior art that needs to wait for the confirmation of most nodes after multiple blocks, the transaction confirmation time is greatly reduced.
[0012] It should be noted that the preset threshold may be a preset minimum confirmation number, and the transaction confirmation can be achieved as long as the number of confirmation information exceeds the minimum confirmation number.
[0013] Furthermore, the present invention also provides an automatic vending method, which may include the following steps:
[0014] Generate order and payment information to be paid based on the selected product information;
[0015] Perform payment operations based on the payment information and generate transfer events on the blockchain;
[0016] Monitor the transfer events on the blockchain, and send query requests to several nodes on the blockchain, so that several of the nodes respond to the query requests, and then obtain confirmation information corresponding to the several nodes;
[0017] It is determined whether the number of confirmation information exceeds a preset threshold. If so, the transaction is deemed valid and the order to be paid is completed.
[0018] The above-mentioned automatic vending method is a specific application of a method for speeding up the confirmation of on-chain transactions, reducing transaction confirmation time, and improving order completion efficiency.
[0019] Furthermore, the payment operation is performed based on the payment information, and a transfer event is generated on the blockchain, specifically:
[0020] Based on the payment information, payment operations are performed through the preset stable voucher smart contract, and transfer events are generated on the blockchain. The steps are as follows:
[0021] Obtain stable certificates through the preset stable certificate smart contract;
[0022] Obtain the first payment address and payment amount based on the payment information;
[0023] Sending a stable certificate corresponding to the payment amount to the first payment address, and generating a transfer event on the blockchain;
[0024] Among them: the stable certificate refers to an asset in digital form.
[0025] In the above scheme, payment operations are performed through a preset stable smart contract, and the stable voucher is used as a means of payment. Due to the particularity of the stable voucher, the uncertainty and risk caused by the volatility of the encrypted voucher price in the current automatic selling process are reduced, providing consumers and operating platforms with a more stable payment environment.
[0026] It should be noted that stablecoins refer to assets in digital form, which are designed to keep their value relatively stable and are not easily affected by market fluctuations or inflation. Therefore, stablecoins can solve the problem of cross-border and cross-regional settlement in the automatic vending system, while significantly improving the economic risks brought by the price fluctuations of native certificates. It usually maintains its purchasing power through a series of mechanisms, such as algorithmic adjustment, binding a basket of stable asset support, market mechanism, etc. It is widely used as a tool for trading and storage.
[0027] Furthermore, the automatic vending method may further include:
[0028] The stable voucher is exchanged based on the preset stable voucher smart contract, specifically:
[0029] Acquire exchange information based on the exchange operation, the exchange information including the second payment address and amount information of the stable voucher;
[0030] In response to the exchange information, the stable certificate smart contract generates an entry event on the blockchain;
[0031] Monitor the account entry event, exchange the stable voucher for a legal voucher corresponding to the amount information of the stable voucher, and send the legal voucher to the second payment address.
[0032] Among them, legal certificates refer to certificates that rely on legal support to enable them to be used as legal currency, such as RMB and USD.
[0033] In the above scheme, the stable certificate is exchanged through the stable certificate smart contract, and the stable certificate is converted into a legal certificate through corresponding information, thereby realizing the circulation between the stable certificate and the legal certificate.
[0034] Correspondingly, the present invention further provides an automatic vending system, comprising an automatic vending module and an order processing module, wherein:
[0035] The automatic vending module is used to generate an order to be paid and payment information based on the selected commodity information, and forward the order to be paid to the order processing module; and to generate a transfer event on the blockchain in response to a payment operation based on the payment information;
[0036] The automatic vending module is used to provide a transaction basis for the automatic vending system and to display product information and order information.
[0037] The order processing module is used to monitor transfer events on the chain and send query requests to several nodes on the blockchain to enable several of the nodes to feedback the query requests, and then obtain confirmation information corresponding to the several nodes; and is used to determine whether the number of confirmation information exceeds a preset threshold. If so, the transaction is deemed valid and the order to be paid is completed.
[0038] The transaction confirmation function of the above-mentioned order processing module is a specific application of the method for speeding up the confirmation of on-chain transactions, reducing transaction confirmation time, improving order completion efficiency, and improving the transaction efficiency of the automatic vending system.
[0039] Furthermore, the automatic vending system further includes a stable voucher smart contract module, which is used to preset a stable voucher smart contract for performing payment operations based on the payment information and generating a transfer event on the blockchain, specifically:
[0040] Obtain stable certificates through the preset stable certificate smart contract;
[0041] Acquire a first payment address and a payment amount based on the payment information;
[0042] Responding to the stable certificate corresponding to the received amount, generating a transfer event on the blockchain;
[0043] Among them: the stable certificate refers to an asset in digital form.
[0044] In this embodiment, according to the stable voucher smart contract module, payment operations are performed on the stable voucher, and corresponding information is provided as the basis for using the stable voucher as automatic vending payment, so that users can use stable vouchers to transfer and trade on the blockchain.
[0045] Furthermore, the automatic vending system further includes a trading platform module; the stable voucher smart contract is also used for:
[0046] Based on the preset stable voucher smart contract, the stable voucher is exchanged using the trading platform module, specifically:
[0047] The stable voucher smart contract is used to obtain exchange information based on the exchange operation, wherein the exchange information includes the second payment address and the amount information of the stable voucher; in response to the exchange information, the stable voucher smart contract module generates an account entry event on the blockchain;
[0048] In response to the entry event generated on the blockchain, the trading platform exchanges the stable certificate for a legal certificate and sends a legal certificate based on the amount information of the stable certificate to the second payment address.
[0049] The trading platform module responds to the corresponding information provided by the stable certificate smart contract module to complete the conversion of the stable certificate into a legal certificate, thereby realizing the circulation between the stable certificate and the legal certificate.
[0050] In summary, the embodiments of the present invention provide a method for accelerating the confirmation of on-chain transactions, an automatic vending method and a system, which have the following beneficial effects:
[0051] Generally, the transaction confirmation on the chain needs to be confirmed by most nodes after multiple blocks before it is considered to be a safe and valid transaction. This will result in low real-time performance of the transaction. In this regard, the present invention provides a method for accelerating the confirmation of on-chain transactions. Specifically, by setting a preset threshold, several blockchain nodes are queried, and several of the nodes are asked to feedback confirmation information. As long as the number of confirmation information exceeds the preset threshold, the transaction confirmation can be achieved. Compared with the transaction confirmation method in the prior art that needs to wait for the confirmation of most nodes after multiple blocks, the transaction confirmation time is greatly reduced.
[0052] In the automatic vending method and system mentioned in the present invention, the above-mentioned method of accelerating on-chain confirmation is applied. By only querying a number of nodes and confirming that the amount of their feedback information is greater than a preset threshold, the transaction can be confirmed, which greatly shortens the transaction confirmation time, thereby improving the real-time performance of the automatic vending system. This makes the payment process faster, meets the immediacy requirements of automatic vending, and obtains efficient transactions; and significantly improves the user experience, making the automatic vending system more in line with consumer expectations.
[0053] Furthermore, although the number of block confirmations required by a single node is reduced, by integrating the confirmation results of multiple nodes, the automatic vending method and system provided by the present invention still ensure the security and effectiveness of the transaction.
[0054] In addition, in the automatic vending method and system mentioned in the present invention, stable vouchers are used as a means of payment, which reduces the uncertainty and risk caused by price fluctuations of encrypted vouchers, improves the stability of transactions in the automatic vending system, and solves the problem of cross-border and cross-regional payment and settlement in the automatic vending system. At the same time, it also significantly improves the economic risks brought about by price fluctuations of native vouchers. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 It is a flowchart of an embodiment of a method for accelerating the confirmation of on-chain transactions provided by the present invention;
[0056] Figure 2 It is a flow chart of another embodiment of the method for accelerating the confirmation of on-chain transactions provided by the present invention;
[0057] Figure 3 It is a flow chart of an embodiment of the automatic vending method provided by the present invention;
[0058] Figure 4 It is a structural schematic diagram of an embodiment of the automatic vending system provided by the present invention. DETAILED DESCRIPTION
[0059] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0060] Example 1
[0061] See also Figure 1 and Figure 2 , Figure 1 : is a flow chart of an embodiment of a method for accelerating the confirmation of on-chain transactions provided by the present invention, such as Figure 1 The method comprises steps S001-S003, each of which is as follows:
[0062] Step S001: monitor transfer events;
[0063] Step S002: sending a query request to a plurality of nodes to enable the plurality of nodes to respond to the query request, thereby obtaining confirmation information corresponding to the plurality of nodes;
[0064] Step S003: Determine whether the number of confirmation information exceeds a preset threshold, and if so, the transaction is deemed valid.
[0065] In this embodiment, before confirming the transaction on the chain, this method first sets a preset minimum confirmation number as a basis for determining whether the transaction is valid.
[0066] In this embodiment, a query request is sent to a plurality of nodes to enable the plurality of nodes to perform query request feedback, thereby obtaining confirmation information corresponding to the plurality of nodes.
[0067] Also, see Figure 2, yes Figure 1 Another specific example of accelerating on-chain transactions is shown as follows: monitor the transfer event on the blockchain, query the transaction details from the first node, wait for the first node to return the transaction details, and obtain information that the transaction has been confirmed by n1 blocks; further, query the transaction details from the second node, wait for the second node to return the transaction details, and obtain information that the transaction has been confirmed by n2 blocks; further, query the transaction details from the third node, wait for the third node to return the transaction details, and obtain information that the transaction has been confirmed by n3 blocks. In actual situations, query requests can be sent to more than three nodes to obtain confirmation information corresponding to the nodes. Finally, count the confirmation information fed back by all queried nodes to determine whether the number of transaction confirmation information exceeds the minimum number of confirmations. If not satisfied, repeat the query; if satisfied, the transaction is deemed valid and the payment is successful.
[0068] In this embodiment, a method for speeding up the confirmation of on-chain transactions is provided. This method presets a minimum confirmation number N. Assuming that in reality, querying a node requires waiting for M blocks to be considered safe and valid, this method is considered safe and valid by querying several unrelated nodes and waiting for N blocks, that is, the transaction can be confirmed. Compared with the transaction confirmation method in the prior art that needs to wait for the confirmation of most nodes after multiple blocks, the transaction confirmation time is greatly reduced.
[0069] It should be noted that the preset minimum number of confirmations may be a preset threshold value, and the transaction confirmation may be achieved as long as the number of confirmation information exceeds the threshold value. Preferably, the ratio of M to N is generally 5 to 10, and in actual application, the time may be controlled within 1 minute.
[0070] Example 2
[0071] See also Figure 3 , Figure 3 : is a flow chart of an embodiment of the automatic vending method provided by the present invention, the method includes two parts: a purchase operation and an exchange operation, which are as follows:
[0072] In this embodiment, the automatic vending system includes: an automatic vending module, an order processing module, a stable voucher smart contract module, and a trading platform module.
[0073] The purchase operation includes steps S101-S108, and the specific steps are as follows:
[0074] Step S101: Select a product;
[0075] Step S102: Generate an order to be paid based on the selected goods;
[0076] Step S103: generating payment information in response to the order to be paid, including the payment address and payment amount;
[0077] Step S104: Perform a payment operation based on the payment information and generate a transfer event on the blockchain.
[0078] In this embodiment, based on the payment information, a transfer event is generated on the blockchain, specifically:
[0079] Based on the payment information, the payment operation is performed through the preset stable voucher smart contract, and a transfer event is generated on the blockchain:
[0080] Obtain stable certificates through the preset stable certificate smart contract;
[0081] Get the payment address and payment amount based on the payment information;
[0082] Send the stable voucher corresponding to the payment amount to the payment address, and generate a transfer event on the blockchain. In this embodiment, the payment operation is performed through a preset stable smart contract, and the corresponding information is provided as the basis for using the stable voucher as an automatic vending payment, so that users can use the stable voucher to transfer and trade on the blockchain. Using the stable voucher as a means of payment, due to the particularity of the stable voucher, reduces the uncertainty and risk caused by the volatility of the encrypted voucher price in the current automatic vending process, and provides a more stable payment environment for consumers and operating platforms.
[0083] It should be noted that stablecoins refer to assets in digital form, which are designed to keep their value relatively stable and are not easily affected by market fluctuations or inflation. Therefore, stablecoins can solve the problem of cross-border and cross-regional settlement in the automatic vending system, while significantly improving the economic risks brought by the price fluctuations of native certificates. It usually maintains its purchasing power through a series of mechanisms, such as algorithmic adjustment, binding a basket of stable asset support, market mechanism, etc. It is widely used as a tool for trading and storage.
[0084] Step S105: Monitor the successful transfer events on the blockchain in real time.
[0085] In this embodiment, monitoring of successful transfer events on the blockchain is an application of the method for speeding up transaction confirmation provided in the previous embodiment.
[0086] Specifically:
[0087] Preset a threshold in advance, monitor the transfer events on the blockchain, and send query requests to several nodes on the blockchain to make several of the nodes respond to the query requests, and then obtain confirmation information corresponding to several of the nodes. Determine whether the number of confirmation information exceeds the preset threshold. If so, the transaction is deemed valid.
[0088] In the above scheme, by applying a method for accelerating transaction confirmation provided in Example 1, the transaction can be confirmed by only querying several nodes and confirming that the amount of their feedback information is greater than a preset threshold, which greatly shortens the transaction confirmation time and improves the order completion efficiency, thereby improving the real-time performance of the automatic vending system.
[0089] Step S106 completes the order.
[0090] Step S107 completes the order notification.
[0091] Step S108: Shipping.
[0092] In this embodiment, after monitoring the transfer success event and determining that the transaction is valid, the subsequent process of completing the order is carried out, including completing the order notification and subsequent product shipment.
[0093] The other part, the exchange operation, includes steps S201-S203, and the specific steps are as follows:
[0094] Step S201 generates exchange information based on the exchange operation.
[0095] Step S202 generates an account entry event on the blockchain in response to the exchange information.
[0096] In this embodiment, in response to the exchange information, an account entry event is generated on the blockchain, specifically: based on the preset stable certificate smart contract, the exchange information is obtained through the exchange operation, and the exchange information includes the payment address and the account entry amount; in response to the exchange information, the stable certificate smart contract module generates an account entry event on the blockchain.
[0097] Step S203 executes the redemption operation.
[0098] In this embodiment, executing the exchange operation specifically includes:
[0099] For the account entry events generated on the blockchain, the same transaction confirmation method is applied. After the number of confirmation messages of successful account entry events received exceeds the preset threshold, the exchange operation is performed. The stable voucher is exchanged for the legal voucher corresponding to the account entry amount and sent to the payment address to complete the exchange operation. Among them, the legal voucher refers to a voucher that relies on legal support to enable it to be legally circulated, such as RMB or USD.
[0100] In the above scheme, the stable certificate is exchanged through the stable certificate smart contract, and the stable certificate is converted into a legal certificate through corresponding information, thereby realizing the circulation between the stable certificate and the legal certificate.
[0101] Example 3
[0102] See also Figure 4 , Figure 4 The structural diagram of an embodiment of the automatic vending system provided by the present invention is a specific application of the automatic vending method mentioned above. The automatic vending system includes: an automatic vending module, an order processing module, a stable voucher smart contract module and a trading platform module.
[0103] The automatic vending module generates an order to be paid and payment information based on the selected commodity information, and forwards the order to be paid to the order processing module; and is used to generate a transfer event on the blockchain in response to a payment operation based on the payment information;
[0104] In this embodiment, the automatic vending module provides order information and displays product information, providing a basis for automatic vending transactions.
[0105] The order processing module is used to monitor the transfer events on the chain, and apply the confirmation method for accelerating the transaction on the chain mentioned in Example 1. Specifically, a threshold is preset in advance, and a query request is sent to several nodes on the blockchain to make several of the nodes respond to the query request, thereby obtaining confirmation information corresponding to several of the nodes; and it is used to determine whether the number of confirmation information exceeds the preset threshold. If so, the transaction is deemed valid and the order to be paid is completed.
[0106] In this embodiment, the transaction confirmation function of the order processing module is a specific application of a method for accelerating the confirmation of on-chain transactions, which can reduce transaction confirmation time, improve order completion efficiency, and improve the transaction efficiency of the automatic vending system.
[0107] The stable voucher smart contract module is used to preset a stable voucher smart contract, which is used for performing payment operations based on the payment information and generating transfer events on the blockchain, specifically:
[0108] Obtain stable certificates through the preset stable certificate smart contract;
[0109] Acquire a first payment address and a payment amount based on the payment information;
[0110] Responding to the stable certificate corresponding to the received amount, generating a transfer event on the blockchain;
[0111] Wherein: the stable credential is the same as the stable credential concept described in the previous embodiment.
[0112] In this embodiment, according to the stable voucher smart contract module, payment operations are performed on the stable voucher, and corresponding information is provided as the basis for using the stable voucher as automatic vending payment, so that users can use stable vouchers to transfer and trade on the blockchain.
[0113] Furthermore, the stable certificate smart contract module is also used to:
[0114] Based on the preset stable voucher smart contract, the stable voucher is exchanged using the trading platform module, specifically:
[0115] The stable voucher smart contract is used to obtain exchange information based on the exchange operation, wherein the exchange information includes the second payment address and the amount information of the stable voucher; in response to the exchange information, the stable voucher smart contract module generates an account entry event on the blockchain;
[0116] In response to the entry event generated on the blockchain, the trading platform exchanges the stable certificate for a legal certificate and sends a legal certificate based on the amount information of the stable certificate to the second payment address.
[0117] In this embodiment, the trading platform module monitors the entry events generated by the stable certificate smart contract on the blockchain, uses the method for accelerating transaction confirmation mentioned in Example 1 to reduce the transaction confirmation time, and uses the corresponding information provided by the stable certificate smart contract to complete the conversion of the stable certificate into a legal certificate, thereby realizing the circulation between the stable certificate and the legal certificate.
[0118] In summary, the embodiments of the present invention provide a method for speeding up the confirmation of transactions on the chain, an automatic vending method and a system. By applying the provided method for speeding up the confirmation of transactions, the transaction can be confirmed by only querying a number of nodes and confirming that the amount of their feedback information is greater than a preset threshold, which greatly shortens the transaction confirmation time, thereby improving the real-time performance of the automatic vending system. This makes the transaction process of the automatic vending system faster, meets the immediacy requirements of automatic vending, obtains efficient transactions, and significantly improves the user experience, making the automatic vending system more in line with consumers' expectations.
[0119] Furthermore, although the number of block confirmations required by a single node is reduced, by integrating the confirmation results of multiple nodes, the automatic vending method and system provided by the present invention still ensure the security and effectiveness of the transaction.
[0120] In addition, in the automatic vending method and system mentioned in the present invention, stable vouchers are used as a means of payment, which reduces the uncertainty and risk caused by price fluctuations of encrypted vouchers, makes the automatic vending transactions in the automatic vending system more stable, and solves the problem of cross-border and cross-regional payment and settlement in the automatic vending system, while also significantly improving the economic risks brought about by price fluctuations of native vouchers.
[0121] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
[0122] Those skilled in the art can understand that all or part of the processes in the above embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes in the above embodiments. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
Claims
1. A method for accelerating the confirmation of on-chain transactions, characterized in that: The following steps are involved: Monitor transfer events; Sending a query request to a plurality of nodes to enable the plurality of nodes to respond to the query request, thereby obtaining confirmation information corresponding to the plurality of nodes; It is determined whether the number of confirmation information exceeds a preset threshold, and if so, the transaction is deemed valid.
2. An automatic vending method, characterized in that: The following steps are involved: Generate order and payment information to be paid based on the selected product information; Perform payment operations based on the payment information and generate transfer events on the blockchain; Monitor the transfer events on the blockchain, and send query requests to several nodes on the blockchain, so that several of the nodes respond to the query requests, and then obtain confirmation information corresponding to the several nodes; It is determined whether the number of confirmation information exceeds a preset threshold. If so, the transaction is deemed valid and the order to be paid is completed.
3. An automatic vending method according to claim 2, characterized in that: The payment operation based on the payment information generates a transfer event on the blockchain, specifically: Based on the payment information, payment operations are performed through a preset stable voucher smart contract, and transfer events are generated on the blockchain.
4. An automatic vending method according to claim 3, characterized in that: The payment operation is performed based on the payment information through a preset stable voucher smart contract, and a transfer event is generated on the blockchain, specifically: Obtain stable certificates through the preset stable certificate smart contract; Obtain the first payment address and payment amount based on the payment information; Sending a stable certificate corresponding to the payment amount to the first payment address, and generating a transfer event on the blockchain; Among them: the stable certificate refers to an asset in digital form.
5. An automatic vending method according to claim 4, characterized in that: Also includes: The stable certificate is exchanged based on a preset stable certificate smart contract.
6. An automatic vending method according to claim 5, characterized in that: The exchange operation of the stable certificate based on the preset stable certificate smart contract is specifically as follows: Acquire exchange information based on the exchange operation, the exchange information including the second payment address and amount information of the stable voucher; In response to the exchange information, the stable certificate smart contract generates an entry event on the blockchain; Monitor the account entry event, exchange the stable voucher for a legal voucher corresponding to the amount information of the stable voucher, and send the legal voucher to the second payment address.
7. An automatic vending system, characterized in that: It includes automatic vending module and order processing module, among which: The automatic vending module is used to generate an order to be paid and payment information based on the selected commodity information, and forward the order to be paid to the order processing module; and to generate a transfer event on the blockchain in response to a payment operation based on the payment information; The order processing module is used to monitor transfer events on the chain and send query requests to several nodes on the blockchain to enable several of the nodes to feedback the query requests, and then obtain confirmation information corresponding to the several nodes; and is used to determine whether the number of confirmation information exceeds a preset threshold. If so, the transaction is deemed valid and the order to be paid is completed.
8. An automatic vending system according to claim 7, characterized in that: The system also includes a stable voucher smart contract module, which is used to preset a stable voucher smart contract for performing payment operations based on the payment information and generating a transfer event on the blockchain, specifically: Obtain stable certificates through the preset stable certificate smart contract; Acquire a first payment address and a payment amount based on the payment information; Responding to the stable certificate corresponding to the received amount, generating a transfer event on the blockchain; Among them: the stable certificate refers to an asset in digital form.
9. An automatic vending system according to claim 8, characterized in that: The system also includes a trading platform module; the stable certificate smart contract is also used to: Based on the preset stable certificate smart contract, the stable certificate is exchanged using the trading platform module.
10. An automatic vending system according to claim 9, characterized in that: Based on the preset stable certificate smart contract, the stable certificate is exchanged using the trading platform module, specifically: The stable voucher smart contract is used to obtain exchange information based on the exchange operation, wherein the exchange information includes the second payment address and the amount information of the stable voucher; in response to the exchange information, the stable voucher smart contract module generates an account entry event on the blockchain; In response to the entry event generated on the blockchain, the trading platform exchanges the stable certificate for a legal certificate and sends a legal certificate based on the amount information of the stable certificate to the second payment address.
