CN111835929A - Blockchain-based call charge transaction method and system - Google Patents
Blockchain-based call charge transaction method and system Download PDFInfo
- Publication number
- CN111835929A CN111835929A CN202010674363.9A CN202010674363A CN111835929A CN 111835929 A CN111835929 A CN 111835929A CN 202010674363 A CN202010674363 A CN 202010674363A CN 111835929 A CN111835929 A CN 111835929A
- Authority
- CN
- China
- Prior art keywords
- node
- operator
- buyer
- seller
- transaction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M15/00—Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
- H04M15/70—Administration or customization aspects; Counter-checking correct charges
- H04M15/78—Redistributing amount between accounts
- H04M15/783—Redistributing amount between accounts by user request
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M15/00—Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
- H04M15/70—Administration or customization aspects; Counter-checking correct charges
- H04M15/77—Administration or customization aspects; Counter-checking correct charges involving multiple accounts per user
- H04M15/772—Administration or customization aspects; Counter-checking correct charges involving multiple accounts per user per service, e.g. prepay or post-pay
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Technology Law (AREA)
- Strategic Management (AREA)
- Marketing (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明提供一种基于区块链的话费交易方法,包括:买方通过买方节点与卖方通过卖方节点共同签署智能合约,所述智能合约包括买方和卖方的电话号码、交易金额;将所述智能合约在区块链中广播;卖方账户所属的第二运营商对应的第二运营商节点根据所述智能合约在卖方账户中扣除与所述交易金额等额的话费,买方账户所属的第一运营商对应的第一运营商节点根据所述智能合约在买方账户中充入与交易金额等额的话费,其中,第一运营商和第二运营商为同一运营商或不同运营商。相应地,还提供基于区块链的话费交易系统。可实现不同运营商或同一运营商的账户之间的话费交易。
The present invention provides a blockchain-based call charge transaction method, comprising: a buyer signing a smart contract through a buyer node and a seller through a seller node, the smart contract includes the phone numbers and transaction amount of the buyer and the seller; Broadcast in the blockchain; the second operator node corresponding to the second operator to which the seller's account belongs will deduct the call charge equal to the transaction amount in the seller's account according to the smart contract, and the first operator to which the buyer's account belongs corresponds to The first operator node of , charges the buyer's account with the call charge equal to the transaction amount according to the smart contract, wherein the first operator and the second operator are the same operator or different operators. Correspondingly, a blockchain-based call charge transaction system is also provided. Call charge transactions between accounts of different operators or the same operator can be realized.
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种基于区块链的话费交易方法及系统。The present invention relates to the field of communication technologies, and in particular, to a method and system for a call charge transaction based on a blockchain.
背景技术Background technique
现有的电信业务中,当用户的话费欠费需要代缴时,代缴人只能通过给欠费用户充值的方式来实现代缴业务,而不能用自己的账户余额对欠费用户进行话费代缴。此外,当用户向其他用户赠送或者交易话费,也无法通过账户间的交易实现,用户体验不佳。In the existing telecommunications services, when the user needs to pay the arrears of the bill, the payer can only realize the payment service by recharging the arrears user, and cannot use his own account balance to pay the arrears user. Pay on your behalf. In addition, when a user presents or trades phone bills to other users, it cannot be realized through transactions between accounts, and the user experience is not good.
发明内容SUMMARY OF THE INVENTION
本发明所要解决的技术问题是针对现有技术的上述不足,提供一种基于区块链的话费交易方法及系统,实现账户之间的话费交易。The technical problem to be solved by the present invention is to aim at the above-mentioned deficiencies of the prior art, and to provide a method and system for a call charge transaction based on a blockchain to realize a call charge transaction between accounts.
本发明实施例提供一种基于区块链的话费交易方法,包括:买方通过买方节点与卖方通过卖方节点共同签署智能合约,所述智能合约包括买方和卖方的电话号码、交易金额;将所述智能合约在区块链中广播;卖方账户所属的第二运营商对应的第二运营商节点根据所述智能合约在卖方账户中扣除与所述交易金额等额的话费,买方账户所属的第一运营商对应的第一运营商节点根据所述智能合约在买方账户中充入与交易金额等额的话费,其中,第一运营商和第二运营商为同一运营商或不同运营商。An embodiment of the present invention provides a method for a call charge transaction based on a blockchain, including: a buyer through a buyer node and a seller through a seller node jointly sign a smart contract, where the smart contract includes the phone numbers and transaction amount of the buyer and the seller; The smart contract is broadcast in the blockchain; the second operator node corresponding to the second operator to which the seller's account belongs, deducts the call charge equal to the transaction amount in the seller's account according to the smart contract, and the first operator's node to which the buyer's account belongs is deducted from the seller's account. The first operator node corresponding to the operator charges the buyer's account with a call charge equal to the transaction amount according to the smart contract, wherein the first operator and the second operator are the same operator or different operators.
优选地,在所述买方通过买方节点与卖方通过卖方节点共同签署智能合约之前,方法还包括:卖方通过卖方节点向第二运营商节点查询卖方账户的剩余话费或信用额度,以确定可交易的最大话费额度,其中,可交易的最大话费额度为剩余话费与预设的第二阈值的差值,或者可交易的最大话费额度为信用额度与预设的第二阈值的差值。Preferably, before the buyer jointly signs the smart contract with the seller through the seller node through the buyer node, the method further includes: the seller inquires the second operator node through the seller node for the remaining call charge or credit limit of the seller's account to determine the tradable Maximum call charge amount, where the tradable maximum call charge amount is the difference between the remaining call charge and the preset second threshold, or the tradable maximum call charge amount is the difference between the credit limit and the preset second threshold.
优选地,在所述卖方通过卖方节点向第二运营商节点查询卖方账户的剩余话费或信用额度之前,方法还包括:买方通过买方节点向第一运营商节点查询买方账户的欠费情况,以确定是否可进行话费交易;在欠费时长小于预设的第一阈值时,确定买方账户可进行话费交易;在欠费时长大于或等于预设的第一阈值时,确定买方账户不可进行话费交易。Preferably, before the seller queries the second operator node for the remaining call charges or credit limit of the seller's account through the seller node, the method further includes: the buyer queries the first operator node for the arrears of the buyer's account through the buyer node, so as to Determine whether the call charge transaction can be performed; when the arrears duration is less than the preset first threshold, determine that the buyer's account can conduct call charge transactions; when the arrears duration is greater than or equal to the preset first threshold, determine that the buyer's account cannot conduct call charge transactions .
优选地,所述买方通过买方节点与卖方通过卖方节点共同签署智能合约,具体包括:买方节点和卖方节点分别接收话费交易设备节点下发的智能合约模板的买方部分和卖方部分,智能合约模板的买方部分/卖方部分包括待填的买方/卖方的电话号码、交易金额、交易时间,买方通过买方节点将填好的智能合约模板的买方部分上传给话费交易设备节点,卖方通过卖方节点将填好的智能合约模板的卖方部分上传给话费交易设备节点,话费交易设备节点根据填好的智能合约模板的买方部分和卖方部分生成所述智能合约。Preferably, the buyer and the seller jointly sign a smart contract through the seller node through the buyer node, which specifically includes: the buyer node and the seller node respectively receive the buyer part and the seller part of the smart contract template issued by the call charge transaction device node, and the smart contract template. The buyer part/seller part includes the phone number, transaction amount, and transaction time of the buyer/seller to be filled in. The buyer uploads the buyer part of the filled smart contract template to the call charge transaction device node through the buyer node, and the seller will fill in the completed through the seller node. The seller part of the smart contract template is uploaded to the call charge transaction device node, and the call charge transaction device node generates the smart contract according to the buyer part and the seller part of the filled smart contract template.
或者,所述买方通过买方节点与卖方通过卖方节点共同签署智能合约,具体包括:买方通过买方节点和卖方通过卖方节点分别向话费交易设备节点上传通过协商确定好的初始合约,所述初始合约包括买方和卖方的电话号码、交易金额、交易时间,话费交易设备节点根据所述初始合约生成所述智能合约。Alternatively, the buyer, through the buyer's node, and the seller, through the seller's node, jointly sign a smart contract, which specifically includes: the buyer, through the buyer's node and the seller, through the seller's node, respectively uploading an initial contract determined through negotiation to the call charge transaction device node, where the initial contract includes The phone numbers, transaction amount, and transaction time of the buyer and seller, and the call charge transaction device node generates the smart contract according to the initial contract.
优选地,卖方账户所属的第二运营商对应的第二运营商节点根据所述智能合约在卖方账户中扣除与所述交易金额等额的话费,买方账户所属的第一运营商对应的第一运营商节点根据所述智能合约在买方账户中充入与交易金额等额的话费,具体包括:第二运营商节点的计费系统根据智能合约在卖方账户中扣除与所述交易金额等额的话费;第一运营商节点的计费系统根据智能合约在买方账户中充入与所述交易金额等额的话费。Preferably, the second operator node corresponding to the second operator to which the seller's account belongs, deducts the call charge equal to the transaction amount in the seller's account according to the smart contract, and the first operator corresponding to the first operator to which the buyer's account belongs. The merchant node charges the buyer's account with a call charge equal to the transaction amount according to the smart contract, which specifically includes: the billing system of the second operator node deducts the call charge equal to the transaction amount in the seller's account according to the smart contract; The billing system of an operator node charges the buyer's account with a call charge equal to the transaction amount according to the smart contract.
或者,卖方账户所属的第二运营商对应的第二运营商节点根据所述智能合约在卖方账户中扣除与所述交易金额等额的话费,买方账户所属的第一运营商对应的第一运营商节点根据所述智能合约在买方账户中充入与交易金额等额的话费,具体包括:话费交易设备节点将所述智能合约中的买方和卖方的电话号码、交易金额、交易时间同时发送给第一运营商节点的营业系统和第二运营商节点的营业系统,以分别形成第一营业业务记录和第二营业业务记录,第二运营商节点的营业系统根据第二营业业务记录向第二运营商节点的计费系统发送扣费指令,以使第二运营商节点的计费系统在卖方账户中扣除与所述交易金额等额的话费,第一运营商节点的营业系统根据第一营业业务记录向第一运营商节点的计费系统发送充值指令,以使第一运营商节点的计费系统在买方账户中充入与所述交易金额等额的话费。Alternatively, the node of the second operator corresponding to the second operator to which the seller's account belongs, deducts the call charge equal to the transaction amount in the seller's account according to the smart contract, and the first operator corresponding to the first operator to which the buyer's account belongs. The node charges the call charge equal to the transaction amount in the buyer's account according to the smart contract, which specifically includes: the call charge transaction device node sends the phone numbers, transaction amount, and transaction time of the buyer and the seller in the smart contract to the first. The business system of the operator node and the business system of the second operator node respectively form the first business business record and the second business business record, and the business system of the second operator node reports to the second operator according to the second business business record. The billing system of the node sends a charge deduction instruction, so that the billing system of the second operator node deducts the call charge equal to the transaction amount in the seller's account, and the business system of the first operator node reports to the seller according to the first business business record. The charging system of the first operator node sends a recharging instruction, so that the charging system of the first operator node recharges the call charge equal to the transaction amount in the buyer's account.
相应地,本发明实施例还提供一种基于区块链的话费交易系统,包括买方节点、卖方节点、话费交易设备节点、第一运营商节点,第二运营商节点。买方节点和卖方节点,用于使买方通过所述买方节点与卖方通过所述卖方节点共同签署智能合约,所述智能合约包括买方和卖方的电话号码、交易金额;话费交易设备节点,与买方节点和卖方节点连接,用于将所述智能合约在区块链中广播;第二运营商节点,与话费交易设备节点连接,为卖方账户所属的第二运营商对应的节点,用于根据所述智能合约在卖方账户中扣除与所述交易金额等额的话费,第一运营商节点,与话费交易设备节点连接,为买方账户所属的第一运营商对应的节点,用于根据所述智能合约在买方账户中充入与交易金额等额的话费,其中,第一运营商和第二运营商为同一运营商或不同运营商。Correspondingly, an embodiment of the present invention also provides a blockchain-based call charge transaction system, including a buyer node, a seller node, a call charge transaction device node, a first operator node, and a second operator node. The buyer node and the seller node are used to enable the buyer to sign a smart contract with the seller through the seller node through the buyer node. connected with the seller node, used to broadcast the smart contract in the blockchain; the second operator node, connected with the call charge transaction device node, is the node corresponding to the second operator to which the seller account belongs, and is used for according to the The smart contract deducts the call charge equal to the transaction amount in the seller's account, and the first operator node, which is connected to the call charge transaction device node, is the node corresponding to the first operator to which the buyer's account belongs, and is used in the smart contract according to the smart contract. A call charge equal to the transaction amount is charged into the buyer's account, wherein the first operator and the second operator are the same operator or different operators.
优选地,卖方节点包括第二查询模块。第二查询模块,用于向第二运营商节点查询卖方账户的剩余话费或信用额度,以确定可交易的最大话费额度,其中,可交易的最大话费额度为剩余话费与预设的第二阈值的差值,或者可交易的最大话费额度为信用额度与预设的第二阈值的差值。Preferably, the seller node includes a second query module. The second query module is configured to query the second operator node for the remaining call charge or credit limit of the seller's account to determine the maximum tradable call charge amount, where the tradable maximum call charge amount is the remaining call charge and a preset second threshold The difference, or the maximum tradable call charge limit is the difference between the credit limit and the preset second threshold.
优选地,买方节点包括第一查询模块。第一查询模块,用于向第一运营商节点查询买方账户的欠费情况,以确定是否可进行话费交易;在欠费时长小于预设的第一阈值时,确定买方账户可进行话费交易;在欠费时长大于或等于预设的第一阈值时,确定买方账户不可进行话费交易。Preferably, the buyer node includes a first query module. a first query module, configured to query the first operator node about the arrears of the buyer's account to determine whether a call charge transaction can be performed; when the arrears duration is less than a preset first threshold, determine that the buyer's account can perform a call charge transaction; When the duration of the arrears is greater than or equal to the preset first threshold, it is determined that the account of the buyer cannot perform a call charge transaction.
优选地,话费交易设备节点还包括合约生成模块。合约生成模块,与买方节点和卖方节点连接,用于分别向买方节点和卖方节点下发智能合约模板的买方部分和卖方部分,智能合约模板的买方部分/卖方部分包括待填的买方/卖方的电话号码、交易金额、交易时间,并用于接收买方通过买方节点上传的已填好的智能合约模板的买方部分,和卖方通过卖方节点上传的已填好的智能合约模板的卖方部分,以及,用于根据填好的智能合约模板的买方部分和卖方部分生成所述智能合约。Preferably, the call charge transaction device node further includes a contract generation module. The contract generation module is connected to the buyer node and the seller node, and is used to deliver the buyer part and the seller part of the smart contract template to the buyer node and the seller node respectively. The buyer part/seller part of the smart contract template includes the buyer/seller's Phone number, transaction amount, transaction time, and is used to receive the buyer part of the completed smart contract template uploaded by the buyer through the buyer node, and the seller part of the completed smart contract template uploaded by the seller through the seller node, and, with to generate the smart contract according to the buyer part and the seller part of the filled smart contract template.
或者,合约生成模块,与买方节点和卖方节点连接,用于接收买方通过买方节点和卖方通过卖方节点分别上传的通过协商确定好的初始合约,所述初始合约包括买方和卖方的电话号码、交易金额、交易时间,并用于根据所述初始合约生成所述智能合约。Alternatively, the contract generation module is connected to the buyer node and the seller node, and is configured to receive the initial contract determined through negotiation uploaded by the buyer through the buyer node and the seller through the seller node, where the initial contract includes the phone numbers of the buyer and the seller, and the transaction Amount, transaction time, and used to generate the smart contract based on the initial contract.
优选地,第一运营商节点包括第一运营商计费系统,第二运营商节点包括第二运营商计费系统,第一运营商计费系统和第二运营商计费系统分别与话费交易设备节点连接。第二运营商节点的第二运营商计费系统根据智能合约在卖方账户中扣除与所述交易金额等额的话费;第一运营商节点的第一运营商计费系统根据智能合约在买方账户中充入与所述交易金额等额的话费。Preferably, the first operator node includes a first operator billing system, the second operator node includes a second operator billing system, and the first operator billing system and the second operator billing system respectively conduct phone bill transactions Device node connection. The second operator billing system of the second operator node deducts the call charge equal to the transaction amount in the seller's account according to the smart contract; the first operator billing system of the first operator node deducts the call charge in the buyer's account according to the smart contract Charge the phone bill equal to the transaction amount.
或者,第一运营商节点包括第一运营商计费系统和第一运营商营业系统,第二运营商节点包括第二运营商计费系统和第二运营商营业系统,第一运营商计费系统和第二运营商计费系统分别通过各自的营业系统与话费交易设备节点连接。话费交易设备节点,还用于将所述智能合约中的买方和卖方的电话号码、交易金额、交易时间同时发送给第一运营商营业系统和第二运营商营业系统,以分别形成第一营业业务记录和第二营业业务记录,第二运营商营业系统根据第二营业业务记录向第二运营商计费系统发送扣费指令,以使第二运营商计费系统在卖方账户中扣除与所述交易金额等额的话费,第一运营商营业系统根据第一营业业务记录向第一运营商计费系统发送充值指令,以使第一运营商计费系统在买方账户中充入与所述交易金额等额的话费。Alternatively, the first operator node includes a first operator billing system and a first operator business system, the second operator node includes a second operator billing system and a second operator business system, and the first operator bills The system and the second operator's billing system are respectively connected with the call charge transaction equipment node through their respective business systems. The call charge transaction equipment node is also used to send the phone numbers, transaction amount, and transaction time of the buyer and the seller in the smart contract to the first operator's business system and the second operator's business system at the same time, so as to form the first business system respectively. The business record and the second business business record, the second operator's business system sends a charge deduction instruction to the second operator's billing system according to the second business business record, so that the second operator's billing system deducts the same amount from the seller's account. The first operator's business system sends a recharge instruction to the first operator's billing system according to the first business business record, so that the first operator's billing system recharges the buyer's account with the transaction amount. The same amount of call charges.
本发明实施例提供的一种基于区块链的话费交易方法及系统中,买方通过买方节点与卖方通过卖方节点共同签署智能合约,其中,智能合约包括买方和卖方的电话号码、交易金额,并将签署的智能合约在区块链中广播,卖方账户所属的第二运营商对应的第二运营商节点根据所述智能合约在卖方账户中扣除与所述交易金额等额的话费,买方账户所属的第一运营商对应的第一运营商节点根据所述智能合约在买方账户中充入与交易金额等额的话费,从而实现不同运营商或同一运营商的账户之间的话费交易。In a blockchain-based call charge transaction method and system provided by the embodiments of the present invention, the buyer signs a smart contract with the seller through the seller node through the buyer node, wherein the smart contract includes the phone numbers of the buyer and the seller, the transaction amount, and The signed smart contract is broadcast in the blockchain, and the second operator node corresponding to the second operator to which the seller's account belongs will deduct the call charge equal to the transaction amount in the seller's account according to the smart contract, and the buyer's account belongs to the second operator's node. The first operator node corresponding to the first operator fills the buyer's account with a call charge equal to the transaction amount according to the smart contract, thereby realizing call charge transactions between accounts of different operators or the same operator.
附图说明Description of drawings
图1:为本发明实施例1的一种基于区块链的话费交易方法的流程图;Fig. 1 is a flowchart of a blockchain-based call charge transaction method according to Embodiment 1 of the present invention;
图2:为本发明实施例3的一种基于区块链的话费交易系统的结构图;Figure 2 is a structural diagram of a blockchain-based call charge transaction system according to Embodiment 3 of the present invention;
图3:为本发明实施例3的另一种基于区块链的话费交易系统的结构图。FIG. 3 is a structural diagram of another blockchain-based call charge transaction system according to Embodiment 3 of the present invention.
具体实施方式Detailed ways
为使本领域技术人员更好地理解本发明的技术方案,下面结合附图和实施例对本发明的一种基于区块链的话费交易方法及系统作进一步详细描述。In order for those skilled in the art to better understand the technical solutions of the present invention, a method and system for a call charge transaction based on a blockchain of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments.
实施例1:Example 1:
如图1所示,本实施例提供一种基于区块链的话费交易方法,应用于买方和卖方,其中买方和卖方为事先约定的双方,买方和卖方可以是同一运营商的用户或不同运营商的用户。本实施例中以买方为第一运营商所属用户,卖方为第二运营商所属用户为例,基于区块链的话费交易方法包括:As shown in Figure 1, this embodiment provides a blockchain-based call charge transaction method, which is applied to a buyer and a seller, where the buyer and the seller are pre-agreed parties, and the buyer and the seller can be users of the same operator or different operators users of the business. In this embodiment, taking the buyer as a user of the first operator and the seller as a user of the second operator as an example, the blockchain-based call charge transaction method includes:
步骤101,买方通过买方节点与卖方通过卖方节点共同签署智能合约,其中,智能合约包括买方和卖方的电话号码、交易金额。
本实施例中,交易金额为买方和卖方约定交易的话费额度。在另一种实施方式中,智能合约还包括买方和卖方的身份信息、和/或交易时间,其中,身份信息包括姓名、身份证号码、地址、性别、工作单位信息。交易时间为买方和卖方签署智能合约的时间。In this embodiment, the transaction amount is the call charge amount agreed upon by the buyer and the seller. In another embodiment, the smart contract further includes identity information of the buyer and seller, and/or transaction time, wherein the identity information includes name, ID number, address, gender, and work unit information. The transaction time is the time when the buyer and seller sign the smart contract.
具体地,买方通过买方节点与卖方通过卖方节点共同签署智能合约有两种不同的方式。一种方式为,买方节点和卖方节点分别接收话费交易设备节点下发的智能合约模板的买方部分和卖方部分,智能合约模板的买方部分/卖方部分包括待填的买方/卖方的电话号码、交易金额、交易时间;买方通过买方节点将填好的智能合约模板的买方部分上传给话费交易设备节点,卖方通过卖方节点将填好的智能合约模板的卖方部分上传给话费交易设备节点;话费交易设备节点根据填好的智能合约模板的买方部分和卖方部分生成智能合约。另一种方式为,买方通过买方节点和卖方通过卖方节点分别向话费交易设备节点上传通过协商确定好的初始合约,其中,初始合约包括买方和卖方的电话号码、交易金额、交易时间,话费交易设备节点根据双方协商确定好的初始合约生成智能合约。Specifically, there are two different ways for the buyer to jointly sign the smart contract through the buyer node and the seller through the seller node. One way is that the buyer node and the seller node respectively receive the buyer part and the seller part of the smart contract template issued by the call charge transaction device node, and the buyer part/seller part of the smart contract template Amount, transaction time; the buyer uploads the buyer part of the filled smart contract template to the call charge transaction equipment node through the buyer node, and the seller uploads the filled part of the smart contract template to the call charge transaction equipment node through the seller node; call charge transaction equipment Nodes generate smart contracts based on the buyer and seller parts of the filled smart contract template. Another way is that the buyer uploads the initial contract determined through negotiation to the call charge transaction device node through the buyer node and the seller respectively through the seller node, wherein the initial contract includes the phone number, transaction amount, transaction time, and call charge transaction of the buyer and the seller. The device node generates a smart contract based on the initial contract negotiated by both parties.
本实施例中,区块链网络包括买方节点、卖方节点、话费交易设备节点,其中,话费交易设备节点分别与买方节点和卖方节点连接。在一种方式中,话费交易设备节点根据填好的智能合约模板的买方部分和卖方部分生成智能合约,方法还包括:话费交易设备节点判断买方填写的交易金额与卖方填写的交易金额大小,在判断结果为买方填写的交易金额小于或等于卖方填写的交易金额时,生成的智能合约中的交易金额为买方填写的交易金额数值;在判断结果为买方填写的交易金额大于卖方填写的交易金额时,生成的智能合约中的交易金额为卖方填写的交易金额数值。在另一种方式中,初始合约中的交易金额为买方和卖方根据双方实际需要和条件协商确定的数值。需要说明的是,两种方式中话费交易设备节点生成的智能合约最终需包括买方和卖方的签名。In this embodiment, the blockchain network includes a buyer node, a seller node, and a call charge transaction device node, wherein the call charge transaction device node is respectively connected to the buyer node and the seller node. In one way, the call charge transaction device node generates a smart contract according to the buyer part and the seller part of the filled smart contract template, and the method further includes: the call charge transaction device node judges the transaction amount filled in by the buyer and the transaction amount filled in by the seller, and in the When the judgment result is that the transaction amount filled in by the buyer is less than or equal to the transaction amount filled in by the seller, the transaction amount in the generated smart contract is the transaction amount filled in by the buyer; when the judgment result is that the transaction amount filled in by the buyer is greater than the transaction amount filled in by the seller , the transaction amount in the generated smart contract is the transaction amount value filled in by the seller. In another way, the transaction amount in the initial contract is a value negotiated by the buyer and the seller according to the actual needs and conditions of both parties. It should be noted that in the two methods, the smart contract generated by the call charge transaction device node must eventually include the signatures of the buyer and the seller.
可选地,在买方通过买方节点与卖方通过卖方节点共同签署智能合约之前,方法还包括:卖方通过卖方节点向第二运营商节点查询卖方账户的剩余话费或信用额度,以确定可交易的最大话费额度,其中,可交易的最大话费额度为剩余话费与预设的第二阈值的差值,或者可交易的最大话费额度为信用额度与预设的第二阈值的差值。Optionally, before the buyer jointly signs the smart contract with the seller through the seller node through the buyer node, the method further includes: the seller inquires the second operator node through the seller node for the remaining call charge or credit limit of the seller's account to determine the maximum tradable amount. Call credit limit, where the tradable maximum call credit limit is the difference between the remaining call charge and the preset second threshold, or the tradable maximum call credit limit is the difference between the credit limit and the preset second threshold.
本实施例中,区块链网络还包括第一运营商节点、第二运营商节点,其中,话费交易设备节点分别连接第一运营商节点和第二运营商节点。卖方通过卖方节点向话费交易设备节点发送查询卖方账户的剩余话费或信用额度的请求,话费交易设备节点将该请求发送给第二运营商节点。确定可交易的最大话费额度包括两种情况,一种情况为卖方为预付费用户(即提前向自身账户充入足够多的话费用户)时,可交易的最大话费额度为卖方账户的剩余话费与预设的第二阈值的差值。预设的第二阈值可根据卖方用户需求由卖方节点进行预先设定,或者由卖方所属的第二运营商节点预先设定。例如,第二阈值的数值设定为100元,则卖方可交易的最大话费额度为卖方账户的剩余话费减去100元所获得的额度。第二种情况为卖方为后付费用户(即用户具有透支一定信用额度的话费用户)时,可交易的最大话费额度为卖方账户的可透支额度话费(信用额度)与预设的第二阈值的差值。In this embodiment, the blockchain network further includes a first operator node and a second operator node, wherein the call charge transaction device node is respectively connected to the first operator node and the second operator node. The seller sends, through the seller node, a request for querying the remaining call charge or credit limit of the seller's account to the call charge transaction device node, and the call charge transaction device node sends the request to the second operator node. There are two cases to determine the maximum tradable call charge amount. One is that when the seller is a prepaid user (that is, when the user has charged enough call charge users to its own account in advance), the maximum tradable call charge amount is the remaining call charge in the seller's account and The difference between the preset second thresholds. The preset second threshold value may be preset by the seller node according to the user requirements of the seller, or may be preset by the second operator node to which the seller belongs. For example, if the value of the second threshold is set to 100 yuan, the maximum call credit limit that the seller can trade is the limit obtained by subtracting 100 yuan from the remaining call cost of the seller's account. The second case is that when the seller is a postpaid user (that is, the user has overdrafted a certain credit limit), the maximum tradable call charge amount is the difference between the overdraft limit call charge (credit limit) of the seller's account and the preset second threshold. difference.
可选地,在卖方通过卖方节点向第二运营商节点查询卖方账户的剩余话费或信用额度之前,方法还包括:买方通过买方节点向第一运营商节点查询买方账户的欠费情况,以确定是否可进行话费交易;在欠费时长小于预设的第一阈值时,确定买方账户可进行话费交易;在欠费时长大于或等于预设的第一阈值时,确定买方账户不可进行话费交易。Optionally, before the seller queries the second operator node through the seller node for the remaining call charges or credit limit of the seller's account, the method further includes: the buyer queries the first operator node through the buyer node for the arrears of the buyer's account to determine Whether the call credit transaction can be performed; when the arrears duration is less than the preset first threshold, it is determined that the buyer's account can conduct call credit transactions; when the arrears duration is greater than or equal to the preset first threshold, it is determined that the buyer's account cannot conduct call credit transactions.
本实施例中,买方通过买方节点向话费交易设备节点发送查询买方账户的欠费情况的请求,话费交易设备节点将该请求发送给第一运营商节点。其中,预设的第一阈值可由买方所属的第一运营商节点根据需求预先设定。例如,第一阈值的数值设定为6个月,当买方账户的欠费时长大于或等于6个月时,即买方账户欠费停机已大于或等于6个月时,则确定买方账户不可进行话费交易。In this embodiment, the buyer sends a request for querying the arrears of the buyer's account to the call charge transaction device node through the buyer node, and the call charge transaction device node sends the request to the first operator node. The preset first threshold may be preset by the first operator node to which the buyer belongs according to requirements. For example, the value of the first threshold is set to 6 months. When the period of arrears on the buyer's account is greater than or equal to 6 months, that is, when the buyer's account has been suspended for more than or equal to 6 months, it is determined that the buyer's account cannot be processed. call transaction.
步骤102,将智能合约在区块链中广播。
本实施例中,在话费交易设备节点生成智能合约后,话费交易设备节点将买方和卖方签名后的智能合约写入区块,并在区块链网络中进行广播,区块链网络中各节点根据共识机制完成对智能合约的验证及存储。其中,区块信息包括区块链头和区块主体,区块链头包括默克尔根、前块哈希、时间戳;区块主体包括买方和卖方的电话号码、交易金额、交易时间。In this embodiment, after the call charge transaction device node generates the smart contract, the call charge transaction device node writes the smart contract signed by the buyer and the seller into the block, and broadcasts it in the blockchain network. Each node in the blockchain network The verification and storage of smart contracts are completed according to the consensus mechanism. Among them, the block information includes the block chain header and the block body, the block chain header includes the Merkel root, the previous block hash, and the timestamp; the block body includes the phone numbers of the buyer and seller, transaction amount, and transaction time.
步骤103,卖方账户所属的第二运营商对应的第二运营商节点根据智能合约在卖方账户中扣除与所述交易金额等额的话费,买方账户所属的第一运营商对应的第一运营商节点根据智能合约在买方账户中充入与交易金额等额的话费,其中,第一运营商和第二运营商为同一运营商或不同运营商。
本实施例中,若买方和卖方为不同运营商的用户,由于区块链网络中各节点存储有买方和卖方共同签署的智能合约,卖方账户所属的第二运营商节点根据智能合约在卖方账户中扣除与交易金额等额的话费,买方账户所属的第一运营商节点根据智能合约在买方账户中充入与交易金额等额的话费。需要说明的是,话费交易后,第二运营商与第一运营商之间再根据该笔交易定期进行结算(例如按日结算),由于不同运营商之间的结算可采用现有技术,此处不再赘述。若买方和卖方为同一运营商的用户,则该运营商节点根据智能合约在卖方账户中扣除与交易金额等额的话费,然后在买方账户中充入与交易金额等额的话费。需要说明的是,买方和卖方为同一运营商的用户情况,在话费交易后不涉及运营商之间的结算。以上基于区块链的话费交易方法能实现不同运营商或同一运营商的账户之间的话费交易,且使得账户间的话费交易快捷方便,不仅提升电信运营商的服务质量,还能提升用户的消费感知。且该方法采用了区块链技术,从而形成不可篡改的交易记录,以便于交易后进行查询和确认。In this embodiment, if the buyer and the seller are users of different operators, since each node in the blockchain network stores a smart contract jointly signed by the buyer and the seller, the second operator node to which the seller's account belongs is stored in the seller's account according to the smart contract. The first operator node to which the buyer's account belongs will charge the buyer's account with a call fee equal to the transaction amount according to the smart contract. It should be noted that, after the call charge transaction, the second operator and the first operator conduct regular settlement (for example, daily settlement) according to the transaction. Since the settlement between different operators can use the existing technology, this It is not repeated here. If the buyer and the seller are users of the same operator, the operator node deducts the call charge equal to the transaction amount from the seller's account according to the smart contract, and then charges the call charge equal to the transaction amount in the buyer's account. It should be noted that, in the case where the buyer and the seller are users of the same operator, settlement between operators is not involved after the call charge transaction. The above blockchain-based call charge transaction method can realize the call charge transaction between accounts of different operators or the same operator, and make the call charge transaction between accounts fast and convenient, which not only improves the service quality of telecom operators, but also improves the user's experience. consumption perception. And this method adopts blockchain technology to form a transaction record that cannot be tampered with, so as to facilitate query and confirmation after the transaction.
具体地,卖方账户所属的第二运营商对应的第二运营商节点根据智能合约在卖方账户中扣除与所述交易金额等额的话费,买方账户所属的第一运营商对应的第一运营商节点根据智能合约在买方账户中充入与交易金额等额的话费,包括两种不同的方式。一种方式为:第一运营商节点包括第一运营商计费系统,第二运营商节点包括第二运营商计费系统。不同运营商的计费系统之间相互独立,话费交易设备节点分别与第一运营商计费系统和第二运营商计费系统连接,由于区块链网络中各节点存储有智能合约,因此,第二运营商节点的计费系统根据智能合约在卖方账户中扣除与交易金额等额的话费,第一运营商节点的计费系统根据智能合约在买方账户中充入与交易金额等额的话费,从而实现账户之间的话费交易。若买方和卖方为同一运营商的用户,则该运营商节点的计费系统相应进行扣费和充值操作。本实施例中的第一运营商计费系统和第二运营商计费系统能根据区块链网络中广播的智能合约内容实现相应的扣费或充值操作,需要对各运营商的计费系统进行改造,才能实现账户之间的话费交易。Specifically, the second operator node corresponding to the second operator to which the seller's account belongs deducts the call charge equal to the transaction amount in the seller's account according to the smart contract, and the first operator node corresponding to the first operator to which the buyer's account belongs. According to the smart contract, the buyer's account is charged with the amount of the call charge equal to the transaction amount, including two different ways. One way is as follows: the first operator node includes a first operator billing system, and the second operator node includes a second operator billing system. The billing systems of different operators are independent of each other, and the call charge transaction equipment nodes are respectively connected to the first operator billing system and the second operator billing system. Since each node in the blockchain network stores smart contracts, therefore, The billing system of the second operator node deducts the call charge equal to the transaction amount in the seller's account according to the smart contract, and the billing system of the first operator node charges the call charge equal to the transaction amount in the buyer's account according to the smart contract, thereby Realize call charge transactions between accounts. If the buyer and the seller are users of the same operator, the billing system of the operator node will deduct and recharge accordingly. The first operator billing system and the second operator billing system in this embodiment can implement corresponding deduction or recharge operations according to the content of the smart contract broadcast in the blockchain network. Only through transformation can the transaction of call charges between accounts be realized.
另一种方式为:第一运营商节点还包括第一运营商营业系统,第二运营商节点还包括第二运营商营业系统。不同运营商的营业系统之间相互独立,话费交易设备节点分别与第一运营商营业系统和第二运营商营业系统连接,第一运营商营业系统与第一运营商计费系统连接,第二运营商营业系统与第二运营商计费系统连接。话费交易设备节点将智能合约中的买方和卖方的电话号码、交易金额、交易时间同时发送给第一运营商节点的营业系统和第二运营商节点的营业系统,以分别形成第一营业业务记录和第二营业业务记录,第二运营商节点的营业系统根据第二营业业务记录向第二运营商节点的计费系统发送扣费指令,以使第二运营商节点的计费系统在卖方账户中扣除与交易金额等额的话费,第一运营商节点的营业系统根据第一营业业务记录向第一运营商节点的计费系统发送充值指令,以使第一运营商节点的计费系统在买方账户中充入与交易金额等额的话费。从而实现账户之间的话费交易。若买方和卖方为同一运营商的用户,则该运营商节点的营业系统根据相应的营业业务记录向该运营商节点的计费系统发送扣费指令和充值指令,以使该运营商节点的计费系统进行扣费和充值操作。本实施例中的第一运营商节点的计费系统和营业系统,以及第二运营商节点的计费系统和营业系统无需进行改造,且能实现不同运营商或同一运营商的账户之间的话费交易,成本较低,容易实现。Another way is: the first operator node further includes the first operator's business system, and the second operator node further includes the second operator's business system. The business systems of different operators are independent of each other, and the call charge transaction equipment nodes are respectively connected with the business system of the first operator and the business system of the second operator, the business system of the first operator is connected with the billing system of the first operator, and the business system of the second operator is connected to the billing system of the second operator. The operator's business system is connected to the second operator's billing system. The phone bill transaction equipment node sends the phone numbers, transaction amount, and transaction time of the buyer and seller in the smart contract to the business system of the first operator node and the business system of the second operator node at the same time, so as to form the first business business record respectively and the second business service record, the business system of the second operator node sends a charge deduction instruction to the billing system of the second operator node according to the second business business record, so that the billing system of the second operator node is in the seller's account. After deducting the call charge equal to the transaction amount, the business system of the first operator node sends a recharge instruction to the billing system of the first operator node according to the first business business record, so that the billing system of the first operator node is in the buyer's The account is charged with a call charge equal to the transaction amount. In this way, the call charge transaction between accounts is realized. If the buyer and the seller are users of the same operator, the business system of the operator node sends a charge deduction instruction and a recharge instruction to the billing system of the operator node according to the corresponding business service record, so that the operator node's accounting system The fee system performs deduction and recharge operations. In this embodiment, the billing system and the business system of the first operator node and the billing system and business system of the second operator node do not need to be modified, and can realize the connection between accounts of different operators or the same operator. Call bill transaction, low cost and easy to implement.
本实施例提供的基于区块链的话费交易方法中,卖方账户所属的第二运营商节点根据区块链中广播的买卖双方签署的智能合约在卖方账户中扣除与智能合约中的交易金额等额的话费,买方账户所属的第一运营商节点根据区块链中广播的买卖双方签署的智能合约在买方账户中充入与交易金额等额的话费,从而快捷方便地实现账户间的话费交易,解决用户赠送话费或代缴话费的需求,提升用户感知。此外,采用区块链技术存储买卖双方签署的智能合约,能够形成不可篡改的交易记录,以备交易后查询。若采用话费交易设备节点与运营商节点的计费系统连接的方式实现账户之间的话费交易,需要对运营商的计费系统进行改造。若采用话费交易设备节点与运营商节点的营业系统连接的方式实现账户之间的话费交易,则无需对各运营商的计费系统和营业系统进行改造,成本较低,容易实现。In the blockchain-based call charge transaction method provided in this embodiment, the second operator node to which the seller's account belongs, deducts an amount equal to the transaction amount in the smart contract from the seller's account according to the smart contract signed by the buyer and seller broadcasted in the blockchain Call charges, the first operator node to which the buyer's account belongs, according to the smart contract signed by the buyer and the seller broadcasted in the blockchain, will charge the buyer's account with a call charge equal to the transaction amount, so as to quickly and easily realize the call charge transaction between accounts. The demand of users to give away or pay for calls improves user perception. In addition, the use of blockchain technology to store smart contracts signed by buyers and sellers can form immutable transaction records for post-transaction query. If the call charge transaction between accounts is realized by connecting the call charge transaction device node and the billing system of the operator node, the billing system of the operator needs to be transformed. If the call charge transaction between accounts is realized by connecting the call charge transaction device node and the business system of the operator node, there is no need to modify the billing system and business system of each operator, and the cost is low and easy to implement.
实施例2:Example 2:
本实施例提供一种基于区块链的话费交易方法,应用于买方和卖方为互不相识的双方,买方和卖方可以是同一运营商的用户或不同运营商的用户。本实施例中以买方为第一运营商所属用户,卖方为第二运营商所属用户为例,其中,区块链网络包括买方节点、卖方节点、话费交易设备节点、第一运营商节点、第二运营商节点,话费交易设备节点分别与买方节点、卖方节点、第一运营商节点,以及第二运营商节点连接,基于区块链的话费交易方法包括:This embodiment provides a blockchain-based call charge transaction method, which is applied when the buyer and the seller are two parties who do not know each other, and the buyer and the seller may be users of the same operator or users of different operators. In this embodiment, the buyer is a user belonging to the first operator and the seller is a user belonging to the second operator as an example, wherein the blockchain network includes a buyer node, a seller node, a call charge transaction device node, a first operator node, a third Two operator nodes, the call charge transaction device node is respectively connected with the buyer node, the seller node, the first operator node, and the second operator node, and the call charge transaction method based on the blockchain includes:
步骤201,买方通过买方节点与卖方通过卖方节点共同签署智能合约,智能合约包括买方和卖方的电话号码、交易金额。Step 201, the buyer signs a smart contract with the seller through the seller node through the buyer node, and the smart contract includes the phone numbers and transaction amount of the buyer and the seller.
可选地,在步骤201之前,基于区块链的话费交易方法还包括:买方通过买方节点向第一运营商节点查询买方账户的欠费情况,以确定是否可进行话费交易;在欠费时长小于预设的第一阈值时,确定买方账户可进行话费交易;在欠费时长大于或等于预设的第一阈值时,确定买方账户不可进行话费交易。在确定买方账户可进行话费交易时,买方通过买方节点向话费交易设备节点发送话费交易请求。话费交易请求包括买方电话号码、交易金额。Optionally, before step 201, the blockchain-based call charge transaction method further includes: the buyer inquires, through the buyer's node, the arrears of the buyer's account to the first operator node, so as to determine whether a call charge transaction can be performed; When the value is less than the preset first threshold, it is determined that the buyer's account can conduct call charge transactions; when the arrears duration is greater than or equal to the preset first threshold, it is determined that the buyer's account cannot conduct call charge transactions. When it is determined that the buyer's account can conduct a call charge transaction, the buyer sends a call charge transaction request to the call charge transaction device node through the buyer node. The call charge transaction request includes the buyer's phone number and the transaction amount.
卖方通过卖方节点向第二运营商节点查询卖方账户的剩余话费或信用额度,以确定可交易的最大话费额度,其中,可交易的最大话费额度为剩余话费与预设的第二阈值的差值,或者可交易的最大话费额度为信用额度与预设的第二阈值的差值。话费交易设备节点判断交易金额与卖方账户的可交易的最大话费额度的大小,在判断结果为交易金额小于或等于卖方账户的可交易的最大话费额度时,话费交易设备节点获取满足上述判断结果的卖方账户列表以供买方通过买方节点选择进行交易的卖方,卖方账户列表包括卖方的电话号码。话费交易设备节点向买方通过买方节点选择的卖方转发话费交易请求,在获取到相应卖方通过卖方节点发送的话费交易接收响应时,确定买方和卖方。The seller queries the second operator node for the remaining call charge or credit limit of the seller's account through the seller node to determine the maximum tradable call charge amount, where the tradable maximum call charge amount is the difference between the remaining call charge and a preset second threshold , or the maximum tradable credit limit is the difference between the credit limit and the preset second threshold. The call charge transaction device node judges the transaction amount and the maximum tradable call charge amount of the seller's account. When the judgment result is that the transaction amount is less than or equal to the maximum call charge amount that can be traded in the seller's account, the call charge transaction device node obtains a transaction that satisfies the above judgment result. A list of seller accounts for the buyer to select sellers for transactions through the buyer node, and the list of seller accounts includes the seller's phone number. The call charge transaction device node forwards the call charge transaction request to the seller selected by the buyer through the buyer node, and determines the buyer and the seller when obtaining the call charge transaction reception response sent by the corresponding seller through the seller node.
步骤202,将所述智能合约在区块链中广播。Step 202, broadcasting the smart contract in the blockchain.
步骤203,卖方账户所属的第二运营商对应的第二运营商节点根据所述智能合约在卖方账户中扣除与所述交易金额等额的话费,买方账户所属的第一运营商对应的第一运营商节点根据所述智能合约在买方账户中充入与交易金额等额的话费,其中,第一运营商和第二运营商为同一运营商或不同运营商。Step 203, the second operator node corresponding to the second operator to which the seller's account belongs, deducts the call charge equal to the transaction amount in the seller's account according to the smart contract, and the first operator corresponding to the first operator to which the buyer's account belongs. The merchant node charges the buyer's account with a call charge equal to the transaction amount according to the smart contract, wherein the first operator and the second operator are the same operator or different operators.
实施例3:Example 3:
如图2所示,本实施例提供一种基于区块链的话费交易系统,包括买方节点31、卖方节点32、话费交易设备节点33、第一运营商节点34,第二运营商节点35。As shown in FIG. 2 , this embodiment provides a blockchain-based call charge transaction system, including a
买方节点31和卖方节点32,用于使买方通过买方节点31与卖方通过卖方节点32共同签署智能合约,智能合约包括买方和卖方的电话号码、交易金额。The
话费交易设备节点33,与买方节点31和卖方节点32连接,用于将智能合约在区块链中广播。The call charge
第二运营商节点35,与话费交易设备节点33连接,为卖方账户所属的第二运营商对应的节点,用于根据智能合约在卖方账户中扣除与交易金额等额的话费。第一运营商节点34,与话费交易设备节点33连接,为买方账户所属的第一运营商对应的节点,用于根据智能合约在买方账户中充入与交易金额等额的话费,其中,第一运营商和第二运营商为同一运营商或不同运营商。The
可选地,卖方节点包括第二查询模块。第二查询模块,用于向第二运营商节点查询卖方账户的剩余话费或信用额度,以确定可交易的最大话费额度,其中,可交易的最大话费额度为剩余话费与预设的第二阈值的差值,或者可交易的最大话费额度为信用额度与预设的第二阈值的差值。Optionally, the seller node includes a second query module. The second query module is configured to query the second operator node for the remaining call charge or credit limit of the seller's account to determine the maximum tradable call charge amount, where the tradable maximum call charge amount is the remaining call charge and a preset second threshold The difference, or the maximum tradable call charge limit is the difference between the credit limit and the preset second threshold.
可选地,买方节点包括第一查询模块。第一查询模块,用于向第一运营商节点查询买方账户的欠费情况,以确定是否可进行话费交易;在欠费时长小于预设的第一阈值时,确定买方账户可进行话费交易;在欠费时长大于或等于预设的第一阈值时,确定买方账户不可进行话费交易。Optionally, the buyer node includes a first query module. a first query module, configured to query the first operator node about the arrears of the buyer's account to determine whether a call charge transaction can be performed; when the arrears duration is less than a preset first threshold, determine that the buyer's account can perform a call charge transaction; When the duration of the arrears is greater than or equal to the preset first threshold, it is determined that the account of the buyer cannot perform a call charge transaction.
可选地,话费交易设备节点还包括合约生成模块。合约生成模块,与买方节点和卖方节点连接,用于分别向买方节点和卖方节点下发智能合约模板的买方部分和卖方部分,智能合约模板的买方部分/卖方部分包括待填的买方/卖方的电话号码、交易金额、交易时间,并用于接收买方通过买方节点上传的已填好的智能合约模板的买方部分,和卖方通过卖方节点上传的已填好的智能合约模板的卖方部分,以及,用于根据填好的智能合约模板的买方部分和卖方部分生成所述智能合约。Optionally, the call charge transaction device node further includes a contract generation module. The contract generation module is connected to the buyer node and the seller node, and is used to deliver the buyer part and the seller part of the smart contract template to the buyer node and the seller node respectively. The buyer part/seller part of the smart contract template includes the buyer/seller's Phone number, transaction amount, transaction time, and is used to receive the buyer part of the completed smart contract template uploaded by the buyer through the buyer node, and the seller part of the completed smart contract template uploaded by the seller through the seller node, and, with to generate the smart contract according to the buyer part and the seller part of the filled smart contract template.
或者,合约生成模块,与买方节点和卖方节点连接,用于接收买方通过买方节点和卖方通过卖方节点分别上传的通过协商确定好的初始合约,初始合约包括买方和卖方的电话号码、交易金额、交易时间,并用于根据所述初始合约生成所述智能合约。Alternatively, the contract generation module is connected to the buyer node and the seller node, and is used to receive the negotiated initial contract uploaded by the buyer through the buyer node and the seller through the seller node respectively. The initial contract includes the phone numbers of the buyer and the seller, transaction amount, transaction time, and is used to generate the smart contract according to the initial contract.
可选地,第一运营商节点包括第一运营商计费系统,第二运营商节点包括第二运营商计费系统,第一运营商计费系统和第二运营商计费系统分别与话费交易设备节点连接。第二运营商节点的第二运营商计费系统根据智能合约在卖方账户中扣除与交易金额等额的话费;第一运营商节点的第一运营商计费系统根据智能合约在买方账户中充入与交易金额等额的话费。Optionally, the first operator node includes a first operator billing system, the second operator node includes a second operator billing system, and the first operator billing system and the second operator billing system are respectively related to the telephone bill. Trading device node connection. The second operator billing system of the second operator node deducts the call charge equal to the transaction amount from the seller's account according to the smart contract; the first operator billing system of the first operator node charges the buyer's account according to the smart contract Call charges equal to the transaction amount.
或者,如图3所示,第一运营商节点34包括第一运营商计费系统342和第一运营商营业系统341,第二运营商节点35包括第二运营商计费系统352和第二运营商营业系统351,第一运营商计费系统342和第二运营商计费系统352分别通过各自的营业系统与话费交易设备节点33连接。Alternatively, as shown in FIG. 3 , the
话费交易设备节点33,还用于将智能合约中的买方和卖方的电话号码、交易金额、交易时间同时发送给第一运营商营业系统341和第二运营商营业系统351,以分别形成第一营业业务记录和第二营业业务记录,第二运营商营业系统351根据第二营业业务记录向第二运营商计费系统352发送扣费指令,以使第二运营商计费系统352在卖方账户中扣除与交易金额等额的话费,第一运营商营业系统341根据第一营业业务记录向第一运营商计费系统342发送充值指令,以使第一运营商计费系统342在买方账户中充入与交易金额等额的话费。The call charge
本实施例提供的基于区块链的话费交易系统,由于不同运营商之间的营业系统和计费系统是相互独立,非直接连接的,通过话费交易设备构建不同运营商之间的营业系统、计费系统的连接,基于区块链技术实现跨运营商的账号之间的快速便捷的话费交易,从而提升客户的消费感知,提升电信运营商服务质量。In the blockchain-based call charge transaction system provided by this embodiment, since the business systems and billing systems of different operators are independent of each other and are not directly connected, the call charge transaction equipment is used to build the business system between different operators, The connection of the billing system, based on the blockchain technology, realizes the fast and convenient call charge transaction between accounts of different operators, thereby improving the consumer perception of customers and improving the service quality of telecom operators.
可以理解的是,以上实施方式仅仅是为了说明本发明的原理而采用的示例性实施方式,然而本发明并不局限于此。对于本领域内的普通技术人员而言,在不脱离本发明的精神和实质的情况下,可以做出各种变型和改进,这些变型和改进也视为本发明的保护范围。It can be understood that the above embodiments are only exemplary embodiments adopted to illustrate the principle of the present invention, but the present invention is not limited thereto. For those skilled in the art, without departing from the spirit and essence of the present invention, various modifications and improvements can be made, and these modifications and improvements are also regarded as the protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010674363.9A CN111835929B (en) | 2020-07-14 | 2020-07-14 | Blockchain-based call charge transaction method and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010674363.9A CN111835929B (en) | 2020-07-14 | 2020-07-14 | Blockchain-based call charge transaction method and system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111835929A true CN111835929A (en) | 2020-10-27 |
| CN111835929B CN111835929B (en) | 2022-02-25 |
Family
ID=72923927
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010674363.9A Active CN111835929B (en) | 2020-07-14 | 2020-07-14 | Blockchain-based call charge transaction method and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111835929B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114679690A (en) * | 2022-03-28 | 2022-06-28 | 中国联合网络通信集团有限公司 | Arrears Collection Method, Apparatus, Equipment and Computer Storage Medium |
| CN114765563A (en) * | 2021-01-04 | 2022-07-19 | 中国移动通信有限公司研究院 | Cross-operator called payment method, device and computer readable storage medium |
Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101692725A (en) * | 2009-10-19 | 2010-04-07 | 中兴通讯股份有限公司 | Method and system for implementing telephone charge transfer between terminals |
| CN101730026A (en) * | 2008-10-29 | 2010-06-09 | 康佳集团股份有限公司 | Method for transferring mobile phone fee |
| CN103391384A (en) * | 2012-05-07 | 2013-11-13 | 中兴通讯股份有限公司 | Recharging method and device |
| CN104640099A (en) * | 2015-03-02 | 2015-05-20 | 酷派软件技术(深圳)有限公司 | Business resource sharing method, business resource sharing device and terminal |
| CN106548330A (en) * | 2016-10-27 | 2017-03-29 | 上海亿账通区块链科技有限公司 | Transaction verification method and system based on block chain |
| CN107846278A (en) * | 2017-10-30 | 2018-03-27 | 中国联合网络通信集团有限公司 | Intelligent contract processing method and processing device |
| CN108540484A (en) * | 2018-04-23 | 2018-09-14 | 北京云图科瑞科技有限公司 | A kind of method of commerce, apparatus and system based on block chain |
| CN109102299A (en) * | 2018-08-01 | 2018-12-28 | 腾讯科技(深圳)有限公司 | Resource transfer data management method, device and storage medium |
| CN109409953A (en) * | 2018-10-22 | 2019-03-01 | 联动优势科技有限公司 | A kind of marketing cost settlement system and method based on block chain |
| CN110009321A (en) * | 2018-12-12 | 2019-07-12 | 阿里巴巴集团控股有限公司 | A kind of transfer account method and system based on block chain intelligence contract |
| CN110417561A (en) * | 2018-04-28 | 2019-11-05 | 华为技术有限公司 | A kind of distributed integration methods, devices and systems based on block chain |
| CN110599345A (en) * | 2019-09-24 | 2019-12-20 | 北京艾摩瑞策科技有限公司 | Option transaction data processing method and device based on block chain |
-
2020
- 2020-07-14 CN CN202010674363.9A patent/CN111835929B/en active Active
Patent Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101730026A (en) * | 2008-10-29 | 2010-06-09 | 康佳集团股份有限公司 | Method for transferring mobile phone fee |
| CN101692725A (en) * | 2009-10-19 | 2010-04-07 | 中兴通讯股份有限公司 | Method and system for implementing telephone charge transfer between terminals |
| CN103391384A (en) * | 2012-05-07 | 2013-11-13 | 中兴通讯股份有限公司 | Recharging method and device |
| CN104640099A (en) * | 2015-03-02 | 2015-05-20 | 酷派软件技术(深圳)有限公司 | Business resource sharing method, business resource sharing device and terminal |
| CN106548330A (en) * | 2016-10-27 | 2017-03-29 | 上海亿账通区块链科技有限公司 | Transaction verification method and system based on block chain |
| CN107846278A (en) * | 2017-10-30 | 2018-03-27 | 中国联合网络通信集团有限公司 | Intelligent contract processing method and processing device |
| CN108540484A (en) * | 2018-04-23 | 2018-09-14 | 北京云图科瑞科技有限公司 | A kind of method of commerce, apparatus and system based on block chain |
| CN110417561A (en) * | 2018-04-28 | 2019-11-05 | 华为技术有限公司 | A kind of distributed integration methods, devices and systems based on block chain |
| CN109102299A (en) * | 2018-08-01 | 2018-12-28 | 腾讯科技(深圳)有限公司 | Resource transfer data management method, device and storage medium |
| CN109409953A (en) * | 2018-10-22 | 2019-03-01 | 联动优势科技有限公司 | A kind of marketing cost settlement system and method based on block chain |
| CN110009321A (en) * | 2018-12-12 | 2019-07-12 | 阿里巴巴集团控股有限公司 | A kind of transfer account method and system based on block chain intelligence contract |
| CN110599345A (en) * | 2019-09-24 | 2019-12-20 | 北京艾摩瑞策科技有限公司 | Option transaction data processing method and device based on block chain |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114765563A (en) * | 2021-01-04 | 2022-07-19 | 中国移动通信有限公司研究院 | Cross-operator called payment method, device and computer readable storage medium |
| CN114679690A (en) * | 2022-03-28 | 2022-06-28 | 中国联合网络通信集团有限公司 | Arrears Collection Method, Apparatus, Equipment and Computer Storage Medium |
| CN114679690B (en) * | 2022-03-28 | 2023-05-16 | 中国联合网络通信集团有限公司 | Arrearage payment method, device, equipment and computer storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111835929B (en) | 2022-02-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8918077B2 (en) | Methods for providing overdraft protection for post-paid communication service plans | |
| US7860762B2 (en) | Charging system and charging method | |
| CN101436940B (en) | Charging control method and charging system and relevant equipment | |
| TWI254544B (en) | Network brokering system | |
| CN101345634A (en) | Billing method, billing device and billing system | |
| US8630397B2 (en) | Method and system for enabling charging of non-charging controlled services | |
| CN1745539B (en) | Prepaid intelligent network service | |
| CN111835929A (en) | Blockchain-based call charge transaction method and system | |
| CN101106756A (en) | Borrowing and loan repayment method and credit control platform | |
| CN100525361C (en) | System and method for providing charging payment business in telecommunication network | |
| CN102149063B (en) | Method, device and system for charging prepayment | |
| CN101860445B (en) | Value-added service charging method and system | |
| CN1968106B (en) | Charging system and method for balance sharing | |
| CN111062708A (en) | Payment gateway capable of configuring payment mode according to needs and implementation method | |
| KR20000063765A (en) | Method of offering charging service of a fixed mobile phone using internet | |
| CN101094083A (en) | System and method for implementing real time deducting charge for GPRS content in GSM intellective network | |
| CN1964410A (en) | Charging system and its recharging method | |
| CN101267316A (en) | Data service charging method and system, service control point and data service network element thereof | |
| CN114095497A (en) | Resource usage amount proving method and system based on block chain and oriented to cloud network scene | |
| CN102158838B (en) | The method of free resource process, system, message accounting and management of balance center | |
| KR100809018B1 (en) | Real time charging method, apparatus and system for additional service | |
| US20060122847A1 (en) | Method for paying a user fee proposed by a service provider | |
| CN106096943A (en) | Method of payment based on NFC, deduct fees device and terminal | |
| WO2008058484A1 (en) | Charging method, charging system and its apparatus | |
| EA006109B1 (en) | Method of charging payments in data transfer networks using telecommunication system and device therefor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |