Telephone charge transaction method and system based on block chain

文档序号:1025708 发布日期:2020-10-27 浏览:18次 中文

阅读说明:本技术 基于区块链的话费交易方法及系统 (Telephone charge transaction method and system based on block chain ) 是由 王炯 兰陌 于 2020-07-14 设计创作,主要内容包括:本发明提供一种基于区块链的话费交易方法,包括:买方通过买方节点与卖方通过卖方节点共同签署智能合约,所述智能合约包括买方和卖方的电话号码、交易金额;将所述智能合约在区块链中广播;卖方账户所属的第二运营商对应的第二运营商节点根据所述智能合约在卖方账户中扣除与所述交易金额等额的话费,买方账户所属的第一运营商对应的第一运营商节点根据所述智能合约在买方账户中充入与交易金额等额的话费,其中,第一运营商和第二运营商为同一运营商或不同运营商。相应地,还提供基于区块链的话费交易系统。可实现不同运营商或同一运营商的账户之间的话费交易。(The invention provides a telephone charge transaction method based on a block chain, which comprises the following steps: the buyer signs an intelligent contract together with the seller through the buyer node and the seller node, wherein the intelligent contract comprises the telephone numbers and the transaction amount of the buyer and the seller; broadcasting the intelligent contracts in a blockchain; and the first operator node corresponding to the first operator to which the buyer account belongs charges the telephone charge with the same amount as the transaction amount in the buyer account according to the intelligent contract, wherein the first operator and the second operator are the same operator or different operators. Accordingly, a block chain based credit transaction system is also provided. The telephone charge transaction between different operators or accounts of the same operator can be realized.)

1. A block chain based telephone charge transaction method is characterized by comprising the following steps:

the buyer signs an intelligent contract together with the seller through the buyer node and the seller node, wherein the intelligent contract comprises the telephone numbers and the transaction amount of the buyer and the seller;

broadcasting the intelligent contracts in a blockchain;

and the first operator node corresponding to the first operator to which the buyer account belongs charges the telephone charge with the same amount as the transaction amount in the buyer account according to the intelligent contract, wherein the first operator and the second operator are the same operator or different operators.

2. The block chain based credit transaction method of claim 1, further comprising, before the buyer signs the intelligent contract with the seller through the seller node via the buyer node, the following:

the seller inquires the remaining telephone charge or the credit line of the seller account from the second operator node through the seller node to determine the maximum telephone charge line capable of trading, wherein the maximum telephone charge line capable of trading is the difference value between the remaining telephone charge and a preset second threshold value, or the maximum telephone charge line capable of trading is the difference value between the credit line and the preset second threshold value.

3. The blockchain-based credit transaction method of claim 2, further comprising, before the seller inquiring the seller's account remaining credit or remaining credit through the seller node to the second operator node:

the buyer inquires the arrearage condition of the buyer account from the first operator node through the buyer node to determine whether the telephone charge transaction can be carried out;

when the arrearage duration is smaller than a preset first threshold value, determining that the telephone charge transaction can be carried out on the account of the buyer; and when the arrearage duration is greater than or equal to a preset first threshold value, determining that the telephone charge transaction cannot be carried out on the account of the buyer.

4. The block chain based telephone charge transaction method of claim 3, wherein the buyer signs the intelligent contract with the seller through the seller node via the buyer node, and the method specifically comprises:

the buyer node and the seller node respectively receive a buyer part and a seller part of an intelligent contract template issued by the telephone charge transaction equipment node, the buyer part/seller part of the intelligent contract template comprises the telephone number of the buyer/seller to be filled, the transaction amount and the transaction time,

the buyer uploads the buyer part of the filled intelligent contract template to the telephone charge transaction equipment node through the buyer node, the seller uploads the seller part of the filled intelligent contract template to the telephone charge transaction equipment node through the seller node,

the telephone rate transaction facility node generates the intelligent contract according to the buyer part and the seller part of the filled intelligent contract template,

or, the buyer signs the intelligent contract together with the seller through the seller node through the buyer node, which specifically includes:

the buyer uploads initial contracts determined by negotiation to the telephone charge transaction equipment node through the buyer node and the seller node respectively, the initial contracts comprise the telephone numbers of the buyer and the seller, the transaction amount and the transaction time,

and the telephone charge transaction equipment node generates the intelligent contract according to the initial contract.

5. The blockchain-based telephone charge transaction method of claim 4, wherein a second operator node corresponding to a second operator to which the seller account belongs deducts a telephone charge equal to the transaction amount from the seller account according to the intelligent contract, and a first operator node corresponding to a first operator to which the buyer account belongs charges a telephone charge equal to the transaction amount from the buyer account according to the intelligent contract, comprising:

the charging system of the second operator node deducts the telephone charge equal to the transaction amount from the account of the seller according to the intelligent contract;

the charging system of the first operator node charges a telephone charge equal to the transaction amount in the account of the buyer according to the intelligent contract,

or, the second operator node corresponding to the second operator to which the seller account belongs deducts a telephone charge equal to the transaction amount from the seller account according to the intelligent contract, and the first operator node corresponding to the first operator to which the buyer account belongs charges a telephone charge equal to the transaction amount from the buyer account according to the intelligent contract, specifically including:

the telephone charge transaction equipment node simultaneously sends the telephone numbers, the transaction amount and the transaction time of the buyer and the seller in the intelligent contract to a business system of a first operator node and a business system of a second operator node so as to respectively form a first business record and a second business record, the business system of the second operator node sends a fee deduction instruction to a charging system of the second operator node according to the second business record, so that the charging system of the second operator node deducts telephone charges with the same amount as the transaction amount from an account of the seller, and the business system of the first operator node sends a recharging instruction to the charging system of the first operator node according to the first business record so that the charging system of the first operator node charges the telephone charges with the same amount as the transaction amount into the account of the buyer.

6. A telephone charge transaction system based on block chain is characterized in that the system comprises a buyer node, a seller node, a telephone charge transaction equipment node, a first operator node and a second operator node,

the buyer node and the seller node are used for enabling a buyer to sign an intelligent contract together with a seller through the seller node through the buyer node, and the intelligent contract comprises telephone numbers of the buyer and the seller and transaction amount;

the telephone charge transaction equipment node is connected with the buyer node and the seller node and is used for broadcasting the intelligent contract in the block chain;

the second operator node is connected with the telephone charge transaction equipment node, is a node corresponding to the second operator to which the seller account belongs, and is used for deducting telephone charge with the same amount as the transaction amount in the seller account according to the intelligent contract,

a first operator node connected with the telephone charge transaction equipment node, which is a node corresponding to the first operator to which the buyer account belongs, and is used for charging telephone charges with the same amount as the transaction amount in the buyer account according to the intelligent contract,

the first operator and the second operator are the same operator or different operators.

7. The blockchain-based credit transaction system of claim 6, wherein the seller node includes a second query module,

and the second inquiry module is used for inquiring the remaining telephone charge or the credit line of the seller account from the second operator node so as to determine the maximum telephone charge line capable of trading, wherein the maximum telephone charge line capable of trading is the difference value between the remaining telephone charge and a preset second threshold value, or the maximum telephone charge line capable of trading is the difference value between the credit line and the preset second threshold value.

8. The block chain based credit transaction system of claim 7, wherein the buyer node includes a first query module,

the first inquiry module is used for inquiring the arrearage condition of the buyer account from the first operator node so as to determine whether the telephone charge transaction can be carried out;

when the arrearage duration is smaller than a preset first threshold value, determining that the telephone charge transaction can be carried out on the account of the buyer; and when the arrearage duration is greater than or equal to a preset first threshold value, determining that the telephone charge transaction cannot be carried out on the account of the buyer.

9. A blockchain based credit transaction system according to claim 8, wherein the credit transaction facility node further includes a contract generating module,

a contract generating module connected with the buyer node and the seller node and used for issuing a buyer part and a seller part of the intelligent contract template to the buyer node and the seller node respectively, wherein the buyer part/seller part of the intelligent contract template comprises the telephone number, the transaction amount and the transaction time of the buyer/seller to be filled,

and is used for receiving the buyer part of the filled intelligent contract template uploaded by the buyer through the buyer node and the seller part of the filled intelligent contract template uploaded by the seller through the seller node,

and for generating the intelligent contract based on the buyer portion and the seller portion of the populated intelligent contract template,

alternatively, the first and second electrodes may be,

a contract generating module connected with the buyer node and the seller node and used for receiving initial contracts which are uploaded by the buyer node and the seller node respectively and are determined by negotiation, wherein the initial contracts comprise the telephone numbers of the buyer and the seller, the transaction amount and the transaction time,

and to generate the intelligent contract from the initial contract.

10. The blockchain-based credit transaction system of claim 9, wherein the first operator node includes a first operator billing system, the second operator node includes a second operator billing system, the first operator billing system and the second operator billing system are respectively connected to the credit transaction device node,

the second operator charging system of the second operator node deducts the telephone charge equal to the transaction amount from the seller account according to the intelligent contract;

a first operator charging system of the first operator node charges a telephone charge equal to the transaction amount in a buyer account according to an intelligent contract,

or the first operator node comprises a first operator charging system and a first operator business system, the second operator node comprises a second operator charging system and a second operator business system, the first operator charging system and the second operator charging system are respectively connected with the telephone charge transaction equipment node through respective business systems,

the telephone charge transaction equipment node is also used for simultaneously sending the telephone numbers, the transaction amount and the transaction time of the buyer and the seller in the intelligent contract to a first operator business system and a second operator business system so as to respectively form a first business record and a second business record, the second operator business system sends a fee deduction instruction to a second operator charging system according to the second business record so that the second operator charging system deducts telephone charges with the same amount as the transaction amount from the account of the seller, and the first operator business system sends a recharging instruction to the first operator charging system according to the first business record so that the first operator charging system charges the telephone charges with the same amount as the transaction amount into the account of the buyer.

Technical Field

The invention relates to the technical field of communication, in particular to a telephone charge transaction method and system based on a block chain.

Background

In the existing telecommunication service, when the telephone charge arrearage of the user needs to be paid instead, the paying instead of the telephone charge arrearage user can be realized only by recharging the arrearage user with the charge. In addition, when the user gives a gift to other users or trades a telephone charge, the transaction between accounts cannot be realized, and the user experience is poor.

Disclosure of Invention

The technical problem to be solved by the present invention is to provide a telephone charge transaction method and system based on block links to realize telephone charge transaction between accounts, aiming at the above disadvantages of the prior art.

The embodiment of the invention provides a telephone charge transaction method based on a block chain, which comprises the following steps: the buyer signs an intelligent contract together with the seller through the buyer node and the seller node, wherein the intelligent contract comprises the telephone numbers and the transaction amount of the buyer and the seller; broadcasting the intelligent contracts in a blockchain; and the first operator node corresponding to the first operator to which the buyer account belongs charges the telephone charge with the same amount as the transaction amount in the buyer account according to the intelligent contract, wherein the first operator and the second operator are the same operator or different operators.

Preferably, before the buyer and the seller jointly sign the intelligent contract through the buyer node and the seller node, the method further comprises the following steps: the seller inquires the remaining telephone charge or the credit line of the seller account from the second operator node through the seller node to determine the maximum telephone charge line capable of trading, wherein the maximum telephone charge line capable of trading is the difference value between the remaining telephone charge and a preset second threshold value, or the maximum telephone charge line capable of trading is the difference value between the credit line and the preset second threshold value.

Preferably, before the seller inquires the remaining telephone charge or credit line of the seller account to the second operator node through the seller node, the method further comprises: the buyer inquires the arrearage condition of the buyer account from the first operator node through the buyer node to determine whether the telephone charge transaction can be carried out; when the arrearage duration is smaller than a preset first threshold value, determining that the telephone charge transaction can be carried out on the account of the buyer; and when the arrearage duration is greater than or equal to a preset first threshold value, determining that the telephone charge transaction cannot be carried out on the account of the buyer.

Preferably, the buyer signs the intelligent contract together with the seller through the seller node through the buyer node, and specifically includes: the buyer node and the seller node respectively receive a buyer part and a seller part of an intelligent contract template issued by the telephone charge transaction equipment node, the buyer part/the seller part of the intelligent contract template comprises the telephone number of the buyer/the seller to be filled, the transaction amount and the transaction time, the buyer uploads the buyer part of the filled intelligent contract template to the telephone charge transaction equipment node through the buyer node, the seller uploads the seller part of the filled intelligent contract template to the telephone charge transaction equipment node through the seller node, and the intelligent contract is generated by the telephone charge transaction equipment node according to the buyer part and the seller part of the filled intelligent contract template.

Or, the buyer signs the intelligent contract together with the seller through the seller node through the buyer node, which specifically includes: the buyer uploads initial contracts determined by negotiation to the telephone charge transaction equipment node through the buyer node and the seller node respectively, the initial contracts comprise telephone numbers, transaction amounts and transaction time of the buyer and the seller, and the telephone charge transaction equipment node generates the intelligent contracts according to the initial contracts.

Preferably, the second operator node corresponding to the second operator to which the seller account belongs deducts a telephone charge equal to the transaction amount from the seller account according to the intelligent contract, and the first operator node corresponding to the first operator to which the buyer account belongs charges a telephone charge equal to the transaction amount from the buyer account according to the intelligent contract, specifically including: the charging system of the second operator node deducts the telephone charge equal to the transaction amount from the account of the seller according to the intelligent contract; and charging the account of the buyer by the charging system of the first operator node according to the intelligent contract, wherein the charging rate is equal to the transaction amount.

Or, the second operator node corresponding to the second operator to which the seller account belongs deducts a telephone charge equal to the transaction amount from the seller account according to the intelligent contract, and the first operator node corresponding to the first operator to which the buyer account belongs charges a telephone charge equal to the transaction amount from the buyer account according to the intelligent contract, specifically including: the telephone charge transaction equipment node simultaneously sends the telephone numbers, the transaction amount and the transaction time of the buyer and the seller in the intelligent contract to a business system of a first operator node and a business system of a second operator node so as to respectively form a first business record and a second business record, the business system of the second operator node sends a fee deduction instruction to a charging system of the second operator node according to the second business record, so that the charging system of the second operator node deducts telephone charges with the same amount as the transaction amount from an account of the seller, and the business system of the first operator node sends a recharging instruction to the charging system of the first operator node according to the first business record so that the charging system of the first operator node charges the telephone charges with the same amount as the transaction amount into the account of the buyer.

Correspondingly, the embodiment of the invention also provides a telephone charge transaction system based on the block chain, which comprises a buyer node, a seller node, a telephone charge transaction equipment node, a first operator node and a second operator node. The buyer node and the seller node are used for enabling a buyer to sign an intelligent contract together with a seller through the seller node through the buyer node, and the intelligent contract comprises telephone numbers of the buyer and the seller and transaction amount; the telephone charge transaction equipment node is connected with the buyer node and the seller node and is used for broadcasting the intelligent contract in the block chain; and the first operator node is connected with the telephone charge transaction equipment node, is a node corresponding to a first operator to which the buyer account belongs, and is used for charging the telephone charge with the same amount as the transaction amount in the buyer account according to the intelligent contract, wherein the first operator and the second operator are the same operator or different operators.

Preferably, the seller node includes a second query module. And the second inquiry module is used for inquiring the remaining telephone charge or the credit line of the seller account from the second operator node so as to determine the maximum telephone charge line capable of trading, wherein the maximum telephone charge line capable of trading is the difference value between the remaining telephone charge and a preset second threshold value, or the maximum telephone charge line capable of trading is the difference value between the credit line and the preset second threshold value.

Preferably, the buyer node comprises a first query module. The first inquiry module is used for inquiring the arrearage condition of the buyer account from the first operator node so as to determine whether the telephone charge transaction can be carried out; when the arrearage duration is smaller than a preset first threshold value, determining that the telephone charge transaction can be carried out on the account of the buyer; and when the arrearage duration is greater than or equal to a preset first threshold value, determining that the telephone charge transaction cannot be carried out on the account of the buyer.

Preferably, the telephone rate transaction apparatus node further comprises a contract generation module. And the contract generating module is connected with the buyer node and the seller node and used for issuing a buyer part and a seller part of the intelligent contract template to the buyer node and the seller node respectively, wherein the buyer part/seller part of the intelligent contract template comprises the telephone number, the transaction amount and the transaction time of the buyer/seller to be filled, and is used for receiving the buyer part of the filled intelligent contract template uploaded by the buyer through the buyer node and the seller part of the filled intelligent contract template uploaded by the seller through the seller node, and generating the intelligent contract according to the buyer part and the seller part of the filled intelligent contract template.

Or, the contract generating module is connected with the buyer node and the seller node, and is used for receiving an initial contract determined by negotiation and uploaded by the buyer node and the seller node respectively, wherein the initial contract comprises the telephone numbers of the buyer and the seller, the transaction amount and the transaction time, and is used for generating the intelligent contract according to the initial contract.

Preferably, the first operator node includes a first operator charging system, the second operator node includes a second operator charging system, and the first operator charging system and the second operator charging system are respectively connected to the telephone rate transaction device node. The second operator charging system of the second operator node deducts the telephone charge equal to the transaction amount from the seller account according to the intelligent contract; and the first operator charging system of the first operator node charges a telephone charge which is equal to the transaction amount in the buyer account according to the intelligent contract.

Or the first operator node comprises a first operator charging system and a first operator business system, the second operator node comprises a second operator charging system and a second operator business system, and the first operator charging system and the second operator charging system are respectively connected with the telephone charge transaction equipment node through respective business systems. The telephone charge transaction equipment node is also used for simultaneously sending the telephone numbers, the transaction amount and the transaction time of the buyer and the seller in the intelligent contract to a first operator business system and a second operator business system so as to respectively form a first business record and a second business record, the second operator business system sends a fee deduction instruction to a second operator charging system according to the second business record so that the second operator charging system deducts telephone charges with the same amount as the transaction amount from the account of the seller, and the first operator business system sends a recharging instruction to the first operator charging system according to the first business record so that the first operator charging system charges the telephone charges with the same amount as the transaction amount into the account of the buyer.

In the block chain-based telephone charge transaction method and system provided by the embodiment of the invention, a buyer signs an intelligent contract together with a seller through a buyer node and a seller node, wherein the intelligent contract comprises telephone numbers and transaction amount of the buyer and the seller, the signed intelligent contract is broadcasted in the block chain, a second operator node corresponding to a second operator to which an account of the seller belongs deducts telephone charge with the same amount as the transaction amount from an account of the seller according to the intelligent contract, and a first operator node corresponding to a first operator to which the account of the buyer belongs charges telephone charge with the same amount as the transaction amount from the account of the buyer according to the intelligent contract, so that telephone charge transaction between accounts of different operators or the same operator is realized.

Drawings

FIG. 1: is a flow chart of a block chain based telephone charge transaction method of embodiment 1 of the present invention;

FIG. 2: the structure diagram of a telephone charge transaction system based on a block chain in embodiment 3 of the invention;

FIG. 3: is a structural diagram of another block chain based telephone charge transaction system according to embodiment 3 of the present invention.

Detailed Description

In order to make those skilled in the art better understand the technical solution of the present invention, the method and system for transaction based on block link according to the present invention are further described in detail with reference to the accompanying drawings and embodiments.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:信息处理装置、信息处理系统、记录媒体及信息处理方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!