TWI795645B - A currency trading method、a device based on a block chain and an electronic device - Google Patents
A currency trading method、a device based on a block chain and an electronic device Download PDFInfo
- Publication number
- TWI795645B TWI795645B TW109119359A TW109119359A TWI795645B TW I795645 B TWI795645 B TW I795645B TW 109119359 A TW109119359 A TW 109119359A TW 109119359 A TW109119359 A TW 109119359A TW I795645 B TWI795645 B TW I795645B
- Authority
- TW
- Taiwan
- Prior art keywords
- transaction
- token
- exchange rate
- exchange
- smart contract
- Prior art date
Links
Images
Landscapes
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
本發明涉及區塊鏈技術領域,具體涉及一種基於區塊鏈的貨幣交易方法、裝置及電子設備。 The present invention relates to the technical field of blockchain, in particular to a currency transaction method, device and electronic equipment based on blockchain.
各類資產的便捷交易、貨幣的自由流通是現代商業社會的基石。資產交易和貨幣流通的共同基礎都是對於價值、交易雙方和交易規則的信任。然而,為了建立信任,尤其是陌生的交易雙方之間的信任,對資產可靠性的信任,社會付出的代價相當的高昂,建立了各種中心化的大型組織、以及政府的各類監管機構。藉由對大機構及政府的公信力的信任,來實現自由便捷的資產交易。例如,各類股票和大宗商品交易市場、大型商業銀行、中央銀行、房管局等等。這些組織和機構為了達到信任要求,組織龐大,流程細緻複雜,導致運作費用高而效率有限。更重要的是,中心化的組織帶來了權力和資訊向組織本身的集中,導致組織本身的利益可能和社會利益不一致,或者組織本身的疏忽或者惡意違規操作可能帶來後果嚴重。 The convenient transaction of various assets and the free circulation of currency are the cornerstones of modern commercial society. The common basis of asset transactions and currency circulation is trust in value, transaction parties and transaction rules. However, in order to build trust, especially the trust between unfamiliar transaction parties and the trust in the reliability of assets, the society has paid a very high price, and various centralized large-scale organizations and various government regulatory agencies have been established. Free and convenient asset transactions are realized through trust in the credibility of large institutions and governments. For example, various stock and commodity trading markets, large commercial banks, central banks, housing management bureaus, etc. In order to meet the trust requirements, these organizations and institutions have huge organizations and detailed and complicated processes, resulting in high operating costs and limited efficiency. More importantly, the centralized organization brings power and information to the organization itself, which may cause the organization's own interests to be inconsistent with social interests, or the organization's own negligence or malicious violations may have serious consequences.
鑒於以上內容,有必要提出一種基於區塊鏈的貨幣交易方法、裝置及電子設備,以消除人工作業的失誤,避免現有貨幣交易複雜的設定和審批流程。 In view of the above, it is necessary to propose a blockchain-based currency transaction method, device, and electronic equipment to eliminate manual errors and avoid the complicated setting and approval process of existing currency transactions.
本申請的第一方面提供一種基於區塊鏈的貨幣交易方法,所述方法包括:區塊鏈上的智慧合約接收交易發送方發送的第一設定指令,其中所述第一設定指令用於設定第一代幣兌換第二代幣的第一兌換匯率;所述智慧合約接收所述交易發送方發送的兌換所述第一代幣的第一交易數量;所述智慧合約接收交易接收方發送的第二設定指令,其中所述第二設定指令用於設定所述第二代幣兌換所述第一代幣的第二兌換匯率;所述智慧合約接收所述交易接收方發送的兌換所述第二代幣的第二交易數量;所述智慧合約根據所述第一兌換匯率、第一交易數量、第二兌換匯率及第二交易數量生成交易,並將所述交易發送給第三方系統以通知所述第三方系統對所述交易進行媒合;所述智慧合約接收所述第三方系統發送的兌換指令;及所述智慧合約接收到所述兌換指令時,根據所述第一交易數量及所述第一兌換匯率發放與所述第一交易數量對應的第二代幣給所述交易發送方,及根據所述第二交易數量及所述第二兌換匯率發放與所述第二交易數量對應的第一代幣給所述交易接收方。 The first aspect of the present application provides a blockchain-based currency transaction method, the method comprising: the smart contract on the blockchain receives the first setting instruction sent by the transaction sender, wherein the first setting instruction is used to set The first exchange rate for exchanging the first token for the second token; the smart contract receives the first transaction quantity for exchanging the first token sent by the transaction sender; the smart contract receives the first transaction amount sent by the transaction receiver The second setting instruction, wherein the second setting instruction is used to set the second exchange rate for exchanging the second token for the first token; the smart contract receives the exchange rate sent by the transaction receiver to exchange the first token The second transaction quantity of two tokens; the smart contract generates a transaction according to the first exchange rate, the first transaction quantity, the second exchange rate and the second transaction quantity, and sends the transaction to a third-party system for notification The third-party system matches the transaction; the smart contract receives the exchange instruction sent by the third-party system; and when the smart contract receives the exchange instruction, according to the first transaction amount and the The first exchange rate issues a second token corresponding to the first transaction amount to the transaction sender, and issues a token corresponding to the second transaction amount according to the second transaction amount and the second exchange rate of the first token to the transaction recipient.
優選地,所述第三方系統對所述交易進行媒合包括:所述第三方系統檢查所述交易是否滿足媒合條件,並在所述交易滿足所述媒合條件時確定所述交易成立。 Preferably, the third-party system matching the transaction includes: the third-party system checking whether the transaction meets a matching condition, and determining that the transaction is established when the transaction meets the matching condition.
優選地,所述方法還包括:所述第三方系統判斷所述交易發送方的帳戶中的第一代幣是否滿足第二交易數量的需求,及所述交易接收方的帳號中的第二代幣是否滿足第一交易數量的需求,及判斷所述第一兌換匯率是否在第一閾值範圍內,及所述第二兌換匯率是否在第二閾值範圍內; 在所述交易發送方的帳戶中的第一代幣滿足第二交易數量的需求、所述交易接收方的帳號中的第二代幣滿足第一交易數量的需求、所述第一兌換匯率在第一閾值範圍及所述第二兌換匯率在第二閾值範圍內時確定所述交易成立;及在確定所述交易成立時向所述智慧合約發送兌換指令。 Preferably, the method further includes: the third-party system judging whether the first token in the account of the transaction sender meets the requirement of the second transaction amount, and the second token in the account of the transaction receiver Whether the currency meets the requirement of the first transaction quantity, and judge whether the first exchange rate is within the first threshold range, and whether the second exchange rate is within the second threshold range; The first token in the account of the transaction sender meets the requirement of the second transaction quantity, the second token in the account of the transaction receiver meets the requirement of the first transaction quantity, and the first exchange rate is at determining that the transaction is established when the first threshold range and the second exchange rate are within the second threshold range; and sending an exchange instruction to the smart contract when determining that the transaction is established.
優選地,所述方法還包括:所述智慧合約接收到所述兌換指令時判斷所述交易發送方的帳戶中的所述第一代幣是否滿足所述第二交易數量的需求,及所述交易接收方的帳號中的所述第二代幣是否滿足所述第一交易數量的需求;判斷所述第一兌換匯率是否在第一閾值範圍內,及所述第二兌換匯率是否在第二閾值範圍內;當所述交易發送方的帳戶中的所述第一代幣滿足所述第二交易數量的需求、所述交易接收方的帳號中的第二代幣滿足所述第一交易數量的需求、所述第一兌換匯率在所述第一閾值範圍內及所述第二兌換匯率在第二閾值範圍內時,根據所述第一交易數量及所述第一兌換匯率發放與所述第一交易數量對應的第二代幣給所述交易發送方,及根據所述第二交易數量及所述第二兌換匯率發放與所述第二交易數量對應的第以代幣給所述交易接收方。 Preferably, the method further includes: when the smart contract receives the exchange instruction, it is judged whether the first token in the account of the transaction sender meets the requirement of the second transaction quantity, and the Whether the second token in the account of the transaction recipient meets the requirement of the first transaction amount; determine whether the first exchange rate is within the first threshold range, and whether the second exchange rate is within the second Within the threshold range; when the first token in the account of the transaction sender meets the requirements of the second transaction amount, and the second token in the account of the transaction receiver meets the first transaction amount demand, the first exchange rate is within the first threshold range, and the second exchange rate is within the second threshold range, according to the first transaction quantity and the first exchange rate, the The second token corresponding to the first transaction amount is given to the transaction sender, and the second token corresponding to the second transaction amount is issued to the transaction according to the second transaction amount and the second exchange rate receiver.
優選地,所述方法還包括:計算所述第一兌換匯率與所述第二兌換匯率之間的匯差;根據所述匯差及所述第一交易數量計算得到目標第二代幣或根據所述匯差及所述第二交易數量計算得到目標第一代幣;及將所述目標第一代幣或所述目標第二代幣發送給所述第三方系統。 Preferably, the method further includes: calculating the exchange rate difference between the first exchange rate and the second exchange rate; calculating the target second token according to the exchange rate difference and the first transaction quantity or according to calculating the exchange difference and the second transaction amount to obtain a target first token; and sending the target first token or the target second token to the third-party system.
優選地,所述方法還包括:所述智慧合約接收所述交易發送方發送的建立交易單指令,並根據所述建立交易單指令建立所述第一代幣兌換所述第二代幣的交易單。 Preferably, the method further includes: the smart contract receiving an instruction to create a transaction order sent by the transaction sender, and establishing a transaction in which the first token is exchanged for the second token according to the instruction to establish a transaction order one.
本申請的第二方面提供一種基於區塊鏈的貨幣交易裝置,所述裝置包括:第一匯率設定模組,用於藉由區塊鏈上的智慧合約接收交易發送方發送的第一設定指令,其中所述第一設定指令用於設定第一代幣兌換第二代幣的第一兌換匯率;第一交易數量設定模組,用於藉由所述智慧合約接收所述交易發送方發送的兌換所述第一代幣的第一交易數量;第二匯率設定模組,用於藉由所述智慧合約接收交易接收方發送的第二設定指令,其中所述第二設定指令用於設定所述第二代幣兌換所述第一代幣的第二兌換匯率;第二交易數量設定模組,用於藉由所述智慧合約接收所述交易接收方發送的兌換所述第二代幣的第二交易數量;通知模組,用於藉由所述智慧合約根據所述第一兌換匯率、第一交易數量、第二兌換匯率及第二交易數量生成交易,並將所述交易發送給第三方系統以通知所述第三方系統對所述交易進行媒合;接收模組,用於藉由所述智慧合約接收所述第三方系統發送的兌換指令;及兌換模組,用於藉由所述智慧合約接收到所述兌換指令時,根據所述第一交易數量及所述第一兌換匯率發放與所述第一交易數量對應的第二代幣給所述交易發送方,及根據所述第二交易數量及所述第二兌換匯率發放與所述第二交易數量對應的第一代幣給所述交易接收方。 The second aspect of the present application provides a block chain-based currency transaction device, the device includes: a first exchange rate setting module, used to receive the first setting instruction sent by the transaction sender through the smart contract on the block chain , wherein the first setting instruction is used to set the first exchange rate of the first token to the second token; the first transaction quantity setting module is used to receive the transaction sender sent by the smart contract Exchange the first transaction quantity of the first token; the second exchange rate setting module is used to receive the second setting instruction sent by the transaction receiver through the smart contract, wherein the second setting instruction is used to set the The second exchange rate for exchanging the second token for the first token; the second transaction quantity setting module is used to receive the exchange rate for the second token sent by the transaction receiver through the smart contract The second transaction quantity; a notification module, used to generate a transaction according to the first exchange rate, the first transaction quantity, the second exchange rate and the second transaction quantity through the smart contract, and send the transaction to the second transaction quantity The three-party system is used to notify the third-party system to match the transaction; the receiving module is used to receive the exchange instruction sent by the third-party system through the smart contract; and the exchange module is used to use the smart contract. When the smart contract receives the exchange instruction, it issues a second token corresponding to the first transaction amount to the transaction sender according to the first transaction amount and the first exchange rate, and according to the The second transaction quantity and the second exchange rate issue the first token corresponding to the second transaction quantity to the transaction receiver.
優選地,所述第三方系統對所述交易進行媒合包括:所述第三方系統檢查所述交易是否滿足媒合條件,並在所述交易滿足所述媒合條件時確定所述交易成立。 Preferably, the third-party system matching the transaction includes: the third-party system checking whether the transaction meets a matching condition, and determining that the transaction is established when the transaction meets the matching condition.
優選地,所述兌換模組還用於: 藉由所述智慧合約接收到所述兌換指令時判斷所述交易發送方的帳戶中的所述第一代幣是否滿足所述第二交易數量的需求,及所述交易接收方的帳號中的所述第二代幣是否滿足所述第一交易數量的需求;判斷所述第一兌換匯率是否在第一閾值範圍內,及所述第二兌換匯率是否在第二閾值範圍內;當所述交易發送方的帳戶中的所述第一代幣滿足所述第二交易數量的需求、所述交易接收方的帳號中的第二代幣滿足所述第一交易數量的需求、所述第一兌換匯率在所述第一閾值範圍內及所述第二兌換匯率在第二閾值範圍內時,根據所述第一交易數量及所述第一兌換匯率發放與所述第一交易數量對應的第二代幣給所述交易發送方,及根據所述第二交易數量及所述第二兌換匯率發放與所述第二交易數量對應的第以代幣給所述交易接收方。 Preferably, the exchange module is also used for: When the smart contract receives the exchange instruction, it is judged whether the first token in the account of the transaction sender satisfies the requirement of the second transaction quantity, and whether the token in the account of the transaction receiver Whether the second token satisfies the requirement of the first transaction quantity; judging whether the first exchange rate is within the first threshold range, and whether the second exchange rate is within the second threshold range; when the The first token in the account of the transaction sender satisfies the requirement of the second transaction quantity, the second token in the account of the transaction receiver meets the requirement of the first transaction quantity, and the first When the exchange rate is within the first threshold range and the second exchange rate is within the second threshold range, according to the first transaction amount and the first exchange rate, a second exchange rate corresponding to the first transaction amount is issued. The second token is given to the transaction sender, and the second token corresponding to the second transaction amount is issued to the transaction receiver according to the second transaction amount and the second exchange rate.
本申請的第三方面提供一種電子設備,所述電子設備包括處理器,所述處理器用於執行記憶體中存儲的電腦程式時實現所述基於區塊鏈的貨幣交易方法。 A third aspect of the present application provides an electronic device, the electronic device includes a processor, and the processor is configured to implement the blockchain-based currency transaction method when executing a computer program stored in a memory.
本案中的智慧合約接收到所述兌換指令時,根據所述第一交易數量及所述第一兌換匯率發放與所述第一交易數量對應的第二代幣給所述交易發送方,及根據所述第二交易數量及所述第二兌換匯率發放與所述第二交易數量對應的第一代幣給所述交易接收方保證了兌換邏輯的嚴格正確執行,消除了人工作業的失誤。此外,採用本案,任何願意提供兌換服務的個人和組織只要有足夠的資金即可以再區塊鏈上部署兌換合約、經營兌換服務,不需要複雜的設定和審批,並且區塊鏈上更多的服務節點保證了兌換服務的可靠性和價格的合理性。 When the smart contract in this case receives the exchange instruction, it issues the second token corresponding to the first transaction amount to the transaction sender according to the first transaction amount and the first exchange rate, and according to The second transaction quantity and the second exchange rate issue the first token corresponding to the second transaction quantity to the transaction recipient to ensure the strict and correct execution of the exchange logic and eliminate manual work errors. In addition, using this case, any individual or organization willing to provide exchange services can deploy exchange contracts and operate exchange services on the blockchain as long as they have sufficient funds, without complicated settings and approvals, and more on the blockchain The service node guarantees the reliability of the exchange service and the rationality of the price.
30:基於區塊鏈的貨幣交易裝置 30: Blockchain-based currency transaction device
301:第一匯率設定模組 301: The first exchange rate setting module
302:第一交易數量設定模組 302: The first transaction quantity setting module
303:第二匯率設定模組 303: Second exchange rate setting module
304:第二交易數量設定模組 304: The second transaction quantity setting module
305:通知模組 305: Notification module
306:接收模組 306: Receiving module
307:兌換模組 307: exchange module
308:終止模組 308: terminate the module
6:電子設備 6: Electronic equipment
61:記憶體 61: Memory
62:處理器 62: Processor
63:電腦程式 63: Computer program
圖1為本發明一實施方式中基於區塊鏈的貨幣交易方法的流程圖。 Fig. 1 is a flowchart of a blockchain-based currency transaction method in an embodiment of the present invention.
圖2為本發明一實施方式中基於區塊鏈的貨幣交易裝置的結構圖。 Fig. 2 is a structural diagram of a currency transaction device based on blockchain in an embodiment of the present invention.
圖3為本發明一實施方式中電子設備的示意圖。 FIG. 3 is a schematic diagram of an electronic device in an embodiment of the present invention.
為了能夠更清楚地理解本發明的上述目的、特徵和優點,下面結合附圖和具體實施例對本發明進行詳細描述。需要說明的是,在不衝突的情況下,本發明的實施例及實施例中的特徵可以相互組合。 In order to more clearly understand the above objects, features and advantages of the present invention, the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other.
在下面的描述中闡述了很多具體細節以便於充分理解本發明,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員在沒有做出創造性勞動前提下所獲得的所有其他實施例,都屬於本發明保護的範圍。 Many specific details are set forth in the following description to facilitate a full understanding of the present invention, and the described embodiments are only some of the embodiments of the present invention, rather than all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
除非另有定義,本文所使用的所有的技術和科學術語與屬於本發明的技術領域的技術人員通常理解的含義相同。本文中在本發明的說明書中所使用的術語只是為了描述具體的實施例的目的,不是旨在於限制本發明。 Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field of the invention. The terms used herein in the description of the present invention are for the purpose of describing specific embodiments only, and are not intended to limit the present invention.
優選地,本發明基於區塊鏈的貨幣交易方法應用在一個或者複數電子設備中。所述電子設備是一種能夠按照事先設定或存儲的指令,自動進行數值計算和/或資訊處理的設備,其硬體包括但不限於微處理器、專用積體電路(Application Specific Integrated Circuit,ASIC)、可程式設計閘陣列(Field-Programmable Gate Array,FPGA)、數文書處理器(Digital Signal Processor,DSP)、嵌入式設備等。 Preferably, the blockchain-based currency transaction method of the present invention is applied to one or a plurality of electronic devices. The electronic device is a device that can automatically perform numerical calculations and/or information processing according to pre-set or stored instructions, and its hardware includes but not limited to microprocessors, Application Specific Integrated Circuits (ASIC) , Programmable Gate Array (Field-Programmable Gate Array, FPGA), Digital Signal Processor (Digital Signal Processor, DSP), embedded devices, etc.
所述電子設備可以是桌上型電腦、筆記型電腦、平板電腦及雲端伺服器等計算設備。所述設備可以與使用者藉由鍵盤、滑鼠、遙控器、觸控板或聲控設備等方式進行人機交互。 The electronic device may be a computing device such as a desktop computer, a notebook computer, a tablet computer, or a cloud server. The device can perform human-computer interaction with the user through keyboard, mouse, remote controller, touch panel or voice control device.
實施例1 Example 1
圖1是本發明一實施方式中基於區塊鏈的貨幣交易方法的流程圖。 根據不同的需求,所述流程圖中步驟的順序可以改變,某些步驟可以省略。 Fig. 1 is a flowchart of a currency transaction method based on blockchain in an embodiment of the present invention. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.
參考圖1,所述基於區塊鏈的貨幣交易方法具體包括以下步驟: Referring to Fig. 1, the currency transaction method based on block chain specifically includes the following steps:
步驟S11,區塊鏈上的智慧合約接收交易發送方發送的第一設定指令,其中所述第一設定指令用於設定第一代幣兌換第二代幣的第一兌換匯率。 Step S11, the smart contract on the block chain receives the first setting instruction sent by the transaction sender, wherein the first setting instruction is used to set the first exchange rate for exchanging the first token with the second token.
本實施方式中,所述區塊鏈上包括複數區塊鏈節點,每個區塊鏈節點上包含所述智能合約。所述交易發送方與所述區塊鏈上的一個區塊鏈節點連接。本實施方式中,藉由與所述交易發送方對應的區塊鏈節點上的智慧合約接收所述交易發送方發送的第一設定指令。本實施方式中,所述交易發送方為一終端裝置,例如,所述終端裝置可以為筆記型電腦,智慧手機,平板電腦等設備,或者所述交易發送方為一帳戶地址。 In this embodiment, the block chain includes a plurality of block chain nodes, and each block chain node includes the smart contract. The transaction sender is connected to a blockchain node on the blockchain. In this embodiment, the first setting instruction sent by the transaction sender is received by the smart contract on the blockchain node corresponding to the transaction sender. In this embodiment, the transaction sender is a terminal device, for example, the terminal device may be a notebook computer, a smart phone, a tablet computer, etc., or the transaction sender is an account address.
步驟S12,所述智慧合約接收所述交易發送方發送的兌換所述第一代幣的第一交易數量。 In step S12, the smart contract receives the first transaction quantity for exchanging the first token sent by the transaction sender.
步驟S13,所述智慧合約接收交易接收方發送的第二設定指令,其中所述第二設定指令用於設定第二代幣兌換第一代幣的第二兌換匯率。 Step S13, the smart contract receives a second setting instruction sent by the transaction recipient, wherein the second setting instruction is used to set a second exchange rate for exchanging the second token with the first token.
本實施方式中,所述交易接收方與所述區塊鏈上的一個區塊鏈節點連接。本實施方式中,藉由與所述交易接收方對應的區塊鏈節點上的智慧合約接收所述交易發送方發送的第二設定指令。本實施方式中,所述交易接收方為與交易發送方不同的終端裝置或帳戶位址。 In this embodiment, the transaction receiver is connected to a blockchain node on the blockchain. In this embodiment, the second setting instruction sent by the transaction sender is received by the smart contract on the block chain node corresponding to the transaction receiver. In this embodiment, the transaction receiver is a terminal device or an account address different from the transaction sender.
步驟S14,所述智慧合約接收所述交易接收方發送的兌換所述第二代幣的第二交易數量。 In step S14, the smart contract receives a second transaction quantity for exchanging the second token sent by the transaction recipient.
步驟S15,所述智慧合約根據所述第一兌換匯率、第一交易數量、第二兌換匯率及第二交易數量生成交易,並將所述交易發送給第三方系統以通知所述第三方系統對所述交易進行媒合。 Step S15, the smart contract generates a transaction according to the first exchange rate, the first transaction amount, the second exchange rate and the second transaction amount, and sends the transaction to a third-party system to notify the third-party system of The transactions are matched.
本實施方式中,生成的所述交易包括所述第一設定指令、第一交 易數量、第二設定指令及第二交易數量。本實施方式中,所述第三方系統與所述區塊鏈上的一個區塊鏈節點連接。本實施方式中,藉由與所述第三方系統對應的區塊鏈節點上的智慧合約發送給所述第三方系統以通知所述第三方系統對所述交易進行媒合。本實施方式中,所述第三方系統對所述交易進行媒合包括:所述第三方系統檢查所述交易是否滿足媒合條件,並在所述交易滿足所述媒合條件時確定所述交易成立。具體的,所述第三方系統判斷所述交易發送方的帳戶中的第一代幣是否滿足第二交易數量的需求,及所述交易接收方的帳號中的第二代幣是否滿足第一交易數量的需求,及判斷所述第一兌換匯率是否在第一閾值範圍內,及所述第二兌換匯率是否在第二閾值範圍內;在所述交易發送方的帳戶中的第一代幣滿足第二交易數量的需求、所述交易接收方的帳號中的第二代幣滿足第一交易數量的需求、所述第一兌換匯率在第一閾值範圍及所述第二兌換匯率在第二閾值範圍內時確定所述交易成立;在確定所述交易成立時向所述智慧合約發送兌換指令。本實施方式中,所述第三方系統還用於記錄所述交易。 In this embodiment, the generated transaction includes the first setting instruction, the first transaction transaction quantity, second setting order and second transaction quantity. In this embodiment, the third-party system is connected to a blockchain node on the blockchain. In this embodiment, the smart contract on the block chain node corresponding to the third-party system is sent to the third-party system to notify the third-party system to match the transaction. In this embodiment, the matching of the transaction by the third-party system includes: the third-party system checks whether the transaction satisfies the matching condition, and determines the transaction when the transaction satisfies the matching condition established. Specifically, the third-party system judges whether the first token in the account of the transaction sender meets the requirements of the second transaction quantity, and whether the second token in the account of the transaction receiver meets the requirements of the first transaction amount. Quantity requirements, and judging whether the first exchange rate is within the first threshold range, and whether the second exchange rate is within the second threshold range; the first token in the account of the transaction sender satisfies The requirement of the second transaction amount, the second token in the account of the transaction recipient meets the requirement of the first transaction amount, the first exchange rate is within the first threshold range and the second exchange rate is within the second threshold When it is within the range, it is determined that the transaction is established; when it is determined that the transaction is established, an exchange instruction is sent to the smart contract. In this embodiment, the third-party system is also used to record the transaction.
步驟S16,所述智慧合約接收所述第三方系統發送的兌換指令。 Step S16, the smart contract receives the exchange instruction sent by the third-party system.
步驟S17,所述智慧合約接收到所述兌換指令時,根據所述第一交易數量及所述第一兌換匯率發放與所述第一交易數量對應的第二代幣給所述交易發送方,及根據所述第二交易數量及所述第二兌換匯率發放與所述第二交易數量對應的第一代幣給所述交易接收方。 Step S17, when the smart contract receives the exchange instruction, issue a second token corresponding to the first transaction amount to the transaction sender according to the first transaction amount and the first exchange rate, and issuing the first token corresponding to the second transaction amount to the transaction recipient according to the second transaction amount and the second exchange rate.
本實施方式中,所述智慧合約接收到所述兌換指令時判斷所述交易發送方的帳戶中的第一代幣是否滿足第二交易數量的需求,及所述交易接收方的帳號中的第二代幣是否滿足第一交易數量的需求;判斷所述第一兌換匯率是否在第一閾值範圍內,及所述第二兌換匯率是否在第二閾值範圍內;當所述交易發送方的帳戶中的第一代幣滿足第二交易數量的需求、所述交易接收方的 帳號中的第二代幣滿足第一交易數量的需求、所述第一兌換匯率在第一閾值範圍及所述第二兌換匯率在第二閾值範圍內時,所述智慧合約根據所述第一交易數量及所述第一兌換匯率發放與所述第一交易數量對應的第二代幣給所述交易發送方,及根據所述第二交易數量及所述第二兌換匯率發放與所述第二交易數量對應的第以代幣給所述交易接收方。 In this embodiment, when the smart contract receives the exchange instruction, it judges whether the first token in the account of the transaction sender meets the requirement of the second transaction amount, and whether the first token in the account of the transaction receiver satisfies the requirement of the second transaction quantity. Whether the second token meets the requirement of the first transaction amount; judge whether the first exchange rate is within the first threshold range, and whether the second exchange rate is within the second threshold range; when the account of the transaction sender The first token in satisfies the requirement of the second transaction amount, and the transaction recipient’s When the second token in the account meets the requirement of the first transaction quantity, the first exchange rate is within the first threshold range, and the second exchange rate is within the second threshold range, the smart contract according to the first The transaction amount and the first exchange rate issue a second token corresponding to the first transaction amount to the transaction sender, and issue the second token corresponding to the second exchange rate according to the second transaction amount and the second exchange rate The first token corresponding to the second transaction quantity is given to the transaction receiver.
本實施方式中,所述方法還包括:計算所述第一兌換匯率與所述第二兌換匯率之間的匯差;根據所述匯差及所述第一交易數量計算得到目標第二代幣或根據所述匯差及所述第二交易數量計算得到目標第一代幣,及將所述目標第一代幣或所述目標第二代幣發送給所述第三方系統。 In this embodiment, the method further includes: calculating the exchange rate difference between the first exchange rate and the second exchange rate; calculating the target second token according to the exchange rate difference and the first transaction quantity Or calculate the target first token according to the exchange difference and the second transaction amount, and send the target first token or the target second token to the third-party system.
本實施方式中,所述方法還包括步驟:所述智慧合約接收所述交易發送方發送的建立交易單指令,並根據所述建立交易單指令建立第一代幣兌換第二代幣的交易單。 In this embodiment, the method further includes the step of: the smart contract receives the transaction order creation instruction sent by the transaction sender, and creates a transaction order for exchanging the first token for the second token according to the establishment transaction order instruction .
本實施方式中,所述方法還包括步驟:所述智慧合約接收所述交易發送方發送的終止兌換指令,並根據所述中止兌換指令將剩餘的第一代幣退回給所述交易發送方,及將所述剩餘的第二代幣退回給所述交易接收方。 In this embodiment, the method further includes the step of: the smart contract receiving the exchange termination instruction sent by the transaction sender, and returning the remaining first tokens to the transaction sender according to the exchange termination instruction, and returning the remaining second token to the transaction recipient.
本案中的智慧合約接收到所述兌換指令時,根據所述第一交易數量及所述第一兌換匯率發放與所述第一交易數量對應的第二代幣給所述交易發送方,及根據所述第二交易數量及所述第二兌換匯率發放與所述第二交易數量對應的第一代幣給所述交易接收方保證了兌換邏輯的嚴格正確執行,消除了人工作業的失誤。此外,採用本案,任何願意提供兌換服務的個人和組織只要有足夠的資金即可以再區塊鏈上部署兌換合約、經營兌換服務,不需要複雜的設定和審批,並且區塊鏈上更多的服務節點保證了兌換服務的可靠性和價格的合理性。 When the smart contract in this case receives the exchange instruction, it issues the second token corresponding to the first transaction amount to the transaction sender according to the first transaction amount and the first exchange rate, and according to The second transaction quantity and the second exchange rate issue the first token corresponding to the second transaction quantity to the transaction recipient to ensure the strict and correct execution of the exchange logic and eliminate manual work errors. In addition, using this case, any individual or organization willing to provide exchange services can deploy exchange contracts and operate exchange services on the blockchain as long as they have sufficient funds, without complicated settings and approvals, and more on the blockchain The service node guarantees the reliability of the exchange service and the rationality of the price.
實施例2 Example 2
圖2為本發明一實施方式中基於區塊鏈的貨幣交易裝置30的結構圖。
FIG. 2 is a structural diagram of a
在一些實施例中,所述基於區塊鏈的貨幣交易裝置30運行於電子設備中。所述基於區塊鏈的貨幣交易裝置30可以包括複數由程式碼段所組成的功能模組。所述基於區塊鏈的貨幣交易裝置30中的各個程式段的程式碼可以存儲於記憶體中,並由至少一個處理器所執行,以執行基於區塊鏈的貨幣交易功能。
In some embodiments, the blockchain-based
本實施例中,所述基於區塊鏈的貨幣交易裝置30根據其所執行的功能,可以被劃分為複數功能模組。參閱圖2所示,所述基於區塊鏈的貨幣交易裝置30可以包括第一匯率設定模組301、第一交易數量設定模組302、第二匯率設定模組303、第二交易數量設定模組304、通知模組305、接收模組306兌換模組307及終止模組308。本發明所稱的模組是指一種能夠被至少一個處理器所執行並且能夠完成固定功能的一系列電腦程式段,其存儲在記憶體中。所述在一些實施例中,關於各模組的功能將在後續的實施例中詳述。
In this embodiment, the blockchain-based
所述第一匯率設定模組301用於藉由區塊鏈上的智慧合約接收交易發送方發送的第一設定指令,其中所述第一設定指令用於設定第一代幣兌換第二代幣的第一兌換匯率。
The first exchange
本實施方式中,所述區塊鏈上包括複數區塊鏈節點,每個區塊鏈節點上包含所述智能合約。所述交易發送方與所述區塊鏈上的一個區塊鏈節點連接。本實施方式中,藉由與所述交易發送方對應的區塊鏈節點上的智慧合約接收所述交易發送方發送的第一設定指令。本實施方式中,所述交易發送方為一終端裝置,例如,所述終端裝置可以為筆記型電腦,智慧手機,平板電腦等設備,或者所述交易發送方為一帳戶地址。 In this embodiment, the block chain includes a plurality of block chain nodes, and each block chain node includes the smart contract. The transaction sender is connected to a blockchain node on the blockchain. In this embodiment, the first setting instruction sent by the transaction sender is received by the smart contract on the blockchain node corresponding to the transaction sender. In this embodiment, the transaction sender is a terminal device, for example, the terminal device may be a notebook computer, a smart phone, a tablet computer, etc., or the transaction sender is an account address.
所述第一交易數量設定模組302藉由所述智慧合約接收所述交易發送方發送的兌換所述第一代幣的第一交易數量。
The first transaction
所述第二匯率設定模組303用於藉由所述智慧合約接收交易接收方發送的第二設定指令,其中所述第二設定指令用於設定第二代幣兌換第一代幣的第二兌換匯率。
The second exchange
本實施方式中,所述交易接收方與所述區塊鏈上的一個區塊鏈節點連接。本實施方式中,藉由與所述交易接收方對應的區塊鏈節點上的智慧合約接收所述交易發送方發送的第二設定指令。本實施方式中,所述交易接收方為與交易發送方不同的終端裝置或帳戶位址。 In this embodiment, the transaction receiver is connected to a blockchain node on the blockchain. In this embodiment, the second setting instruction sent by the transaction sender is received by the smart contract on the block chain node corresponding to the transaction receiver. In this embodiment, the transaction receiver is a terminal device or an account address different from the transaction sender.
所述第二交易數量設定模組304用於藉由所述智慧合約接收所述交易接收方發送的兌換所述第二代幣的第二交易數量。
The second transaction
所述通知模組305藉由所述智慧合約根據所述第一兌換匯率、第一交易數量、第二兌換匯率及第二交易數量生成交易,並將所述交易發送給第三方系統以通知所述第三方系統對所述交易進行媒合。
The
本實施方式中,生成的所述交易包括所述第一兌換匯率、第一交易數量、第二兌換匯率及第二交易數量。本實施方式中,所述第三方系統與所述區塊鏈上的一個區塊鏈節點連接。本實施方式中,藉由與所述第三方系統對應的區塊鏈節點上的智慧合約發送給所述第三方系統以通知所述第三方系統對所述交易進行媒合。本實施方式中,所述第三方系統對所述交易進行媒合包括:所述第三方系統檢查所述交易是否滿足媒合條件,並在所述交易滿足所述媒合條件時確定所述交易成立。具體的,所述第三方系統判斷所述交易發送方的帳戶中的第一代幣是否滿足第二交易數量的需求,及所述交易接收方的帳號中的第二代幣是否滿足第一交易數量的需求,及判斷所述第一兌換匯率是否在第一閾值範圍內,及所述第二兌換匯率是否在第二閾值範圍內;在所述交易發送方的帳戶中的第一代幣滿足第二交易數量的需求、所述交易接收方的帳號中的第二代幣滿足第一交易數量的需求、所述第一兌換匯率在第一閾值範圍及所述第 二兌換匯率在第二閾值範圍內時確定所述交易成立;在確定所述交易成立時向所述智慧合約發送兌換指令。本實施方式中,所述第三方系統還用於記錄所述交易。 In this embodiment, the generated transaction includes the first exchange rate, the first transaction amount, the second exchange rate, and the second transaction amount. In this embodiment, the third-party system is connected to a blockchain node on the blockchain. In this embodiment, the smart contract on the block chain node corresponding to the third-party system is sent to the third-party system to notify the third-party system to match the transaction. In this embodiment, the matching of the transaction by the third-party system includes: the third-party system checks whether the transaction satisfies the matching condition, and determines the transaction when the transaction satisfies the matching condition established. Specifically, the third-party system judges whether the first token in the account of the transaction sender meets the requirements of the second transaction quantity, and whether the second token in the account of the transaction receiver meets the requirements of the first transaction amount. Quantity requirements, and judging whether the first exchange rate is within the first threshold range, and whether the second exchange rate is within the second threshold range; the first token in the account of the transaction sender satisfies The requirement of the second transaction quantity, the second token in the account of the transaction recipient meets the requirement of the first transaction quantity, the first exchange rate is within the first threshold range and the second 2. When the exchange rate is within the second threshold range, it is determined that the transaction is established; when it is determined that the transaction is established, an exchange instruction is sent to the smart contract. In this embodiment, the third-party system is also used to record the transaction.
所述接收模組306藉由所述智慧合約接收所述第三方系統發送的兌換指令。
The receiving
所述兌換模組307藉由所述智慧合約接收到所述兌換指令時,根據所述第一交易數量及所述第一兌換匯率發放與所述第一交易數量對應的第二代幣給所述交易發送方,及根據所述第二交易數量及所述第二兌換匯率發放與所述第二交易數量對應的第一代幣給所述交易接收方。
When the
本實施方式中,所述智慧合約接收到所述兌換指令時判斷所述交易發送方的帳戶中的第一代幣是否滿足第二交易數量的需求,及所述交易接收方的帳號中的第二代幣是否滿足第一交易數量的需求;判斷所述第一兌換匯率是否在第一閾值範圍內,及所述第二兌換匯率是否在第二閾值範圍內;當所述交易發送方的帳戶中的第一代幣滿足第二交易數量的需求、所述交易接收方的帳號中的第二代幣滿足第一交易數量的需求、所述第一兌換匯率在第一閾值範圍及所述第二兌換匯率在第二閾值範圍內時,所述智慧合約根據所述第一交易數量及所述第一兌換匯率發放與所述第一交易數量對應的第二代幣給所述交易發送方,及根據所述第二交易數量及所述第二兌換匯率發放與所述第二交易數量對應的第以代幣給所述交易接收方。 In this embodiment, when the smart contract receives the exchange instruction, it judges whether the first token in the account of the transaction sender meets the requirement of the second transaction amount, and whether the first token in the account of the transaction receiver satisfies the requirement of the second transaction quantity. Whether the second token meets the requirement of the first transaction amount; judge whether the first exchange rate is within the first threshold range, and whether the second exchange rate is within the second threshold range; when the account of the transaction sender The first token in the account meets the requirement of the second transaction amount, the second token in the account of the transaction recipient meets the requirement of the first transaction amount, the first exchange rate is within the first threshold range and the second When the second exchange rate is within the second threshold range, the smart contract issues a second token corresponding to the first transaction amount to the transaction sender according to the first transaction amount and the first exchange rate, and distributing a token corresponding to the second transaction quantity to the transaction receiver according to the second transaction quantity and the second exchange rate.
本實施方式中,所述兌換模組307還用於計算所述第一兌換匯率與所述第二兌換匯率之間的匯差;根據所述匯差及所述第一交易數量計算得到目標第二代幣或根據所述匯差及所述第二交易數量計算得到目標第一代幣,及將所述目標第一代幣或所述目標第二代幣發送給所述第三方系統。
In this embodiment, the
本實施方式中,所述兌換模組307還用於藉由所述智慧合約接收所
述交易發送方發送的建立交易單指令,並根據所述建立交易單指令建立第一代幣兌換第二代幣的交易單。
In this embodiment, the
本實施方式中,所述終止模組308用於藉由所述智慧合約接收所述交易發送方發送的終止兌換指令,並根據所述中止兌換指令將剩餘的第一代幣退回給所述交易發送方,及將所述剩餘的第二代幣退回給所述交易接收方。
In this embodiment, the
本案中的智慧合約接收到所述兌換指令時,根據所述第一交易數量及所述第一兌換匯率發放與所述第一交易數量對應的第二代幣給所述交易發送方,及根據所述第二交易數量及所述第二兌換匯率發放與所述第二交易數量對應的第一代幣給所述交易接收方保證了兌換邏輯的嚴格正確執行,消除了人工作業的失誤。此外,採用本案,任何願意提供兌換服務的個人和組織只要有足夠的資金即可以再區塊鏈上部署兌換合約、經營兌換服務,不需要複雜的設定和審批,並且區塊鏈上更多的服務節點保證了兌換服務的可靠性和價格的合理性。 When the smart contract in this case receives the exchange instruction, it issues the second token corresponding to the first transaction amount to the transaction sender according to the first transaction amount and the first exchange rate, and according to The second transaction quantity and the second exchange rate issue the first token corresponding to the second transaction quantity to the transaction recipient to ensure the strict and correct execution of the exchange logic and eliminate manual work errors. In addition, using this case, any individual or organization willing to provide exchange services can deploy exchange contracts and operate exchange services on the blockchain as long as they have sufficient funds, without complicated settings and approvals, and more on the blockchain The service node guarantees the reliability of the exchange service and the rationality of the price.
實施例3 Example 3
圖3為本發明一實施方式中電子設備6的示意圖。
FIG. 3 is a schematic diagram of an
所述電子設備6包括記憶體61、處理器62以及存儲在所述記憶體61中並可在所述處理器62上運行的電腦程式63。所述處理器62執行所述電腦程式63時實現上述基於區塊鏈的貨幣交易方法實施例中的步驟,例如圖1所示的步驟S11~S17。或者,所述處理器62執行所述電腦程式63時實現上述基於區塊鏈的貨幣交易裝置實施例中各模組/單元的功能,例如圖2中的模組301~308。
The
示例性的,所述電腦程式63可以被分割成一個或複數模組/單元,所述一個或者複數模組/單元被存儲在所述記憶體61中,並由所述處理器62執行,以完成本發明。所述一個或複數模組/單元可以是能夠完成特定功能的一系列電腦程式指令段,所述指令段用於描述所述電腦程式63在所述電子設備6中的執行
過程。例如,所述電腦程式63可以被分割成圖2中的第一匯率設定模組301、第一交易數量設定模組302、第二匯率設定模組303、第二交易數量設定模組304、通知模組305、接收模組306兌換模組307及中止模組308,各模組具體功能參見實施例2。
Exemplarily, the
本實施方式中,所述電子設備6為伺服器,終端裝置或雲端伺服器。本領域技術人員可以理解,所述示意圖僅僅是電子設備6的示例,並不構成對電子設備6的限定,可以包括比圖示更多或更少的部件,或者組合某些部件,或者不同的部件,例如所述電子設備6還可以包括輸入輸出設備、網路接入設備、匯流排等。
In this embodiment, the
所稱處理器62可以是中央處理模組(Central Processing Unit,CPU),還可以是其他通用處理器、數位訊號處理器(Digital Signal Processor,DSP)、專用積體電路(Application Specific Integrated Circuit,ASIC)、現場可程式設計閘陣列(Field-Programmable Gate Array,FPGA)或者其他可程式設計邏輯器件、分立門或者電晶體邏輯器件、分立硬體元件等。通用處理器可以是微處理器或者所述處理器62也可以是任何常規的處理器等,所述處理器62是所述電子設備6的控制中心,利用各種介面和線路連接整個電子設備6的各個部分。
The so-called
所述記憶體61可用於存儲所述電腦程式63和/或模組/單元,所述處理器62藉由運行或執行存儲在所述記憶體61內的電腦程式和/或模組/單元,以及調用存儲在記憶體61內的資料,實現所述電子設備6的各種功能。所述記憶體61可主要包括存儲程式區和存儲資料區,其中,存儲程式區可存儲作業系統、至少一個功能所需的應用程式(比如聲音播放功能、圖像播放功能等)等;存儲資料區可存儲根據電子設備6的使用所創建的資料(比如音訊資料、電話本等)等。此外,記憶體61可以包括高速隨機存取記憶體,還可以包括非易失性記憶體,例如硬碟、記憶體、插接式硬碟,智慧存儲卡(Smart Media Card,SMC),
安全數位(Secure Digital,SD)卡,快閃記憶體卡(Flash Card)、至少一個磁碟記憶體件、快閃記憶體器件、或其他易失性固態記憶體件。
The
所述電子設備6集成的模組/單元如果以軟體功能模組的形式實現並作為獨立的產品銷售或使用時,可以存儲在一個電腦可讀取存儲介質中。基於這樣的理解,本發明實現上述實施例方法中的全部或部分流程,也可以藉由電腦程式來指令相關的硬體來完成,所述的電腦程式可存儲於一電腦可讀存儲介質中,所述電腦程式在被處理器執行時,可實現上述各個方法實施例的步驟。其中,所述電腦程式包括電腦程式代碼,所述電腦程式代碼可以為原始程式碼形式、物件代碼形式、可執行檔或某些中間形式等。所述電腦可讀介質可以包括:能夠攜帶所述電腦程式代碼的任何實體或裝置、記錄介質、U盤、移動硬碟、磁碟、光碟、電腦記憶體、唯讀記憶體(ROM,Read-Only Memory)、隨機存取記憶體(RAM,Random Access Memory)、電載波信號、電信信號以及軟體分發介質等。需要說明的是,所述電腦可讀介質包含的內容可以根據司法管轄區內立法和專利實踐的要求進行適當的增減,例如在某些司法管轄區,根據立法和專利實踐,電腦可讀介質不包括電載波信號和電信信號。
If the integrated module/unit of the
在本發明所提供的幾個實施例中,應該理解到,所揭露的電子設備和方法,可以藉由其它的方式實現。例如,以上所描述的電子設備實施例僅僅是示意性的,例如,所述模組的劃分,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式。 In the several embodiments provided by the present invention, it should be understood that the disclosed electronic devices and methods can be implemented in other ways. For example, the electronic device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
另外,在本發明各個實施例中的各功能模組可以集成在相同處理模組中,也可以是各個模組單獨物理存在,也可以兩個或兩個以上模組集成在相同模組中。上述集成的模組既可以採用硬體的形式實現,也可以採用硬體加軟體功能模組的形式實現。 In addition, each functional module in each embodiment of the present invention may be integrated into the same processing module, or each module may exist separately physically, or two or more modules may be integrated into the same module. The above-mentioned integrated modules can be implemented in the form of hardware, or in the form of hardware plus software function modules.
對於本領域技術人員而言,顯然本發明不限於上述示範性實施例 的細節,而且在不背離本發明的精神或基本特徵的情況下,能夠以其他的具體形式實現本發明。因此,無論從哪一點來看,均應將實施例看作是示範性的,而且是非限制性的,本發明的範圍由所附請求項而不是上述說明限定,因此旨在將落在請求項的等同要件的含義和範圍內的所有變化涵括在本發明內。不應將請求項中的任何附圖標記視為限制所涉及的請求項。此外,顯然“包括”一詞不排除其他模組或步驟,單數不排除複數。電子設備請求項中陳述的複數模組或電子設備也可以由同一個模組或電子設備藉由軟體或者硬體來實現。第一,第二等詞語用來表示名稱,而並不表示任何特定的順序。 For those skilled in the art, it is obvious that the present invention is not limited to the exemplary embodiments described above details, and the present invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the present invention. Therefore, no matter from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, so it is intended to All changes within the meaning and range of equivalents of the elements are embraced in the present invention. Any reference sign in a claim should not be construed as limiting the claim to which it relates. Furthermore, it is clear that the word "comprising" does not exclude other modules or steps, and the singular does not exclude the plural. The multiple modules or electronic devices stated in the electronic device claim can also be realized by the same module or electronic device through software or hardware. The words first, second, etc. are used to denote names and do not imply any particular order.
最後應說明的是,以上實施例僅用以說明本發明的技術方案而非限制,儘管參照較佳實施例對本發明進行了詳細說明,本領域的普通技術人員應當理解,可以對本發明的技術方案進行修改或等同替換,而不脫離本發明技術方案的精神和範圍。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention without limitation. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be Modifications or equivalent replacements can be made without departing from the spirit and scope of the technical solutions of the present invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW109119359A TWI795645B (en) | 2020-06-09 | 2020-06-09 | A currency trading method、a device based on a block chain and an electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW109119359A TWI795645B (en) | 2020-06-09 | 2020-06-09 | A currency trading method、a device based on a block chain and an electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
TW202147226A TW202147226A (en) | 2021-12-16 |
TWI795645B true TWI795645B (en) | 2023-03-11 |
Family
ID=80783759
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW109119359A TWI795645B (en) | 2020-06-09 | 2020-06-09 | A currency trading method、a device based on a block chain and an electronic device |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI795645B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20110051380A (en) * | 2009-11-10 | 2011-05-18 | 주식회사 하나은행 | Method for internet foreign exchanging |
US8301533B1 (en) * | 2010-03-11 | 2012-10-30 | Ruccolo Michael A | Automated fulfilling of currency exchange requests over a computer network |
TW202004632A (en) * | 2018-06-01 | 2020-01-16 | 互慧國際股份有限公司 | Legal currency wallet and a cryptocurrency wallet service integration platform |
US20200027067A1 (en) * | 2017-01-08 | 2020-01-23 | Bprotocol Foundation | Methods for exchanging and evaluating virtual currency |
-
2020
- 2020-06-09 TW TW109119359A patent/TWI795645B/en active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20110051380A (en) * | 2009-11-10 | 2011-05-18 | 주식회사 하나은행 | Method for internet foreign exchanging |
US8301533B1 (en) * | 2010-03-11 | 2012-10-30 | Ruccolo Michael A | Automated fulfilling of currency exchange requests over a computer network |
US20200027067A1 (en) * | 2017-01-08 | 2020-01-23 | Bprotocol Foundation | Methods for exchanging and evaluating virtual currency |
TW202004632A (en) * | 2018-06-01 | 2020-01-16 | 互慧國際股份有限公司 | Legal currency wallet and a cryptocurrency wallet service integration platform |
Also Published As
Publication number | Publication date |
---|---|
TW202147226A (en) | 2021-12-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020155789A1 (en) | Blockchain-based certificate storage method and apparatus | |
TWI709868B (en) | Data storage method and device based on blockchain | |
US20180113752A1 (en) | Inter-ledger messaging in a blockchain | |
CN109377216B (en) | Transaction method and system based on centralized settlement and block chain deposit certificate | |
WO2020125299A1 (en) | Method and device for data processing based on blockchain | |
TWI754133B (en) | Dual transaction method and system based on centralization and decentralization | |
WO2020125218A1 (en) | Claim settlement method and apparatus employing blockchain technology | |
CN112184154A (en) | Business approval method and device | |
TW202026997A (en) | Blockchain-based product purchase method and apparatus | |
CN108009818B (en) | Online payment method and system based on distributed network | |
CN110866753B (en) | Third party settlement control method and device, electronic equipment and storage medium | |
CN113034274A (en) | Supply chain financial service system and method based on block chain and terminal equipment | |
WO2020078095A1 (en) | Method and apparatus for issuing digital assets, method and apparatus for transferring digital assets, and method and apparatus for realizing online financing | |
CN109933626B (en) | Financial business data processing method and device and financial transaction terminal | |
TW201901541A (en) | Method and device for realizing resource transfer, method and device for realizing payment and payment | |
WO2023040531A1 (en) | Account authorization method and apparatus, device, storage medium, and computer program product | |
CN113034275B (en) | Management system and method based on block chain network and terminal equipment | |
CN110532810B (en) | Information processing method and device, electronic equipment and readable storage medium | |
TWI795645B (en) | A currency trading method、a device based on a block chain and an electronic device | |
CN113781043A (en) | Block chain-based currency transaction method and device and electronic equipment | |
WO2024077780A1 (en) | Transaction account data management method and apparatus, electronic device, and storage medium | |
KR20210068039A (en) | Context-based filtering within a subset of network nodes implementing the trading system | |
WO2022134184A1 (en) | Transaction risk warning method and apparatus based on blockchain, and related device | |
CN114066451A (en) | Method and system for managing fund transaction and electronic equipment | |
CN112507395A (en) | Information verification method, system, device, server and medium |