技术领域technical field
本发明涉及区块链技术领域,具体涉及一种调用区块链上的智能合约的方法及系统。The invention relates to the technical field of block chains, in particular to a method and system for invoking smart contracts on block chains.
背景技术Background technique
区块链因其具备的去中心化、去信任、网络共识、分布式存储、信息不可篡改性等特性,越来越受到金融、保险等领域的公司的青睐,越来越多的银行机构以及互联网企业借助区块链开发基于区块链的项目。基于区块链的智能合约,是将业务规则执行进度以合约化、代码化的形式写入区块链中,不仅可以发挥智能合约在成本效率方面的优势,而且可以避免恶意行为对智能合约正常执行的干扰,使智能合约的整个执行过程透明可跟踪、不可篡改。Due to its characteristics of decentralization, trustlessness, network consensus, distributed storage, and immutable information, blockchain is more and more favored by companies in the fields of finance and insurance. More and more banking institutions and Internet companies use blockchain to develop blockchain-based projects. The smart contract based on the blockchain is to write the execution progress of the business rules into the blockchain in a contracted and coded form, which can not only take advantage of the cost efficiency of the smart contract, but also prevent malicious behavior from affecting the normal operation of the smart contract. Execution interference makes the entire execution process of smart contracts transparent, traceable, and tamper-proof.
在基于区块链的项目中,后台的业务处理是基于区块链上的智能合约来进行的,因此,需要一套业务层与区块链之间的交互框架以实现业务层对区块链上的智能合约的调用,以及实现将区块链上的智能合约经过业务处理生成的数据返回给业务层。目前,传统的业务层与区块链之间的交互框架,只是直接将数据写入区块链和直接从区块链读取数据,由于这种交互框架是进行脚本的直接调用,不利于基于区块链的项目的模块化设计,因此制约了多功能复杂型的项目的开发。In blockchain-based projects, the background business processing is based on smart contracts on the blockchain. Therefore, a set of interaction framework between the business layer and the blockchain is required to realize the interaction between the business layer and the blockchain. The call of the smart contract on the blockchain, and the realization of returning the data generated by the smart contract on the blockchain to the business layer after business processing. At present, the interaction framework between the traditional business layer and the blockchain only directly writes data into the blockchain and reads data directly from the blockchain. Since this interaction framework is a direct call of scripts, it is not conducive to The modular design of blockchain projects restricts the development of multifunctional and complex projects.
综上所述,如何提高一套完善的业务层与区块链之间的交互框架,成为业界亟待解决的问题。To sum up, how to improve a complete set of interaction framework between the business layer and the blockchain has become an urgent problem to be solved in the industry.
发明内容Contents of the invention
有鉴于此,本发明实施例提供一种调用区块链上的智能合约的方法及系统,支持基于区块链的项目的模块化设计,适用于多功能复杂型的项目的开发。In view of this, the embodiments of the present invention provide a method and system for invoking smart contracts on the blockchain, which supports the modular design of projects based on the blockchain, and is suitable for the development of multifunctional and complex projects.
为实现上述目的,本发明实施例提供如下技术方案:In order to achieve the above purpose, embodiments of the present invention provide the following technical solutions:
一种调用区块链上的智能合约的方法,包括:A method of invoking a smart contract on the blockchain, comprising:
接收业务层发送的调用请求;Receive the call request sent by the business layer;
解析所述调用请求,确定待调用的智能合约的函数接口;Analyzing the call request to determine the function interface of the smart contract to be called;
根据所述待调用的智能合约的函数接口调用区块链上的智能合约进行业务处理生成业务数据。According to the function interface of the smart contract to be called, the smart contract on the block chain is called to perform business processing and generate business data.
可选的,在所述根据所述待调用的智能合约的函数接口调用区块链上的智能合约进行业务处理生成业务数据之后,所述方法还包括:Optionally, after the smart contract on the blockchain is invoked according to the function interface of the smart contract to be called to perform business processing and generate business data, the method further includes:
将所述业务数据写入同步库中。Write the business data into the synchronization library.
可选的,所述将所述业务数据写入同步库中,包括:Optionally, writing the business data into the synchronization library includes:
采用轮询机制将所述业务数据写入同步库中。Using a polling mechanism to write the business data into the synchronization library.
可选的,所述方法还包括:Optionally, the method also includes:
接收业务层发送的数据获取请求;Receive the data acquisition request sent by the business layer;
根据所述数据访问请求从所述同步库中获取目标数据;Acquiring target data from the synchronization library according to the data access request;
将所述目标数据返回至所述业务层。The target data is returned to the business layer.
一种调用区块链上的智能合约的系统,包括:A system for invoking smart contracts on the blockchain, including:
API调用模块,用于接收业务层发送的调用请求;以及,解析所述调用请求,确定待调用的智能合约的函数接口;以及根据所述待调用的智能合约的函数接口调用区块链上的智能合约;The API call module is used to receive the call request sent by the business layer; and, parse the call request to determine the function interface of the smart contract to be called; and call the function interface on the block chain according to the function interface of the smart contract to be called smart contract;
业务处理模块,用于区块链上的智能合约进行业务处理生成业务数据。The business processing module is used for smart contracts on the blockchain to perform business processing and generate business data.
可选的,所述系统还包括:Optionally, the system also includes:
业务数据存储模块,用于在所述根据所述待调用的智能合约的函数接口调用区块链上的智能合约进行业务处理生成业务数据之后,将所述业务数据写入同步库中。The business data storage module is used to write the business data into the synchronization library after the smart contract on the block chain is called for business processing to generate business data according to the function interface of the smart contract to be called.
可选的,所述业务数据存储模块具体用于:Optionally, the business data storage module is specifically used for:
采用轮询机制将所述业务数据写入同步库中。Using a polling mechanism to write the business data into the synchronization library.
可选的,所述系统还包括:Optionally, the system also includes:
API返回模块,用于接收业务层发送的数据获取请求;以及,根据所述数据访问请求从所述同步库中获取目标数据;以及,将所述目标数据返回至所述业务层。The API return module is configured to receive a data acquisition request sent by the business layer; and acquire target data from the synchronization library according to the data access request; and return the target data to the business layer.
基于上述技术方案,本发明实施例中公开了一种调用区块链上的智能合约的方法及系统,接收业务层发送的调用请求;解析所述调用请求,确定待调用的智能合约的函数接口;根据所述待调用的智能合约的函数接口调用区块链上的智能合约进行业务处理生成业务数据。本发明实施例提供的一种调用区块链上的智能合约的方法及系统,支持基于区块链的项目的模块化设计,适用于多功能复杂型的项目的开发。Based on the above technical solution, the embodiment of the present invention discloses a method and system for invoking a smart contract on the blockchain, receiving a call request sent by the business layer; parsing the call request, and determining the function interface of the smart contract to be called ; According to the function interface of the smart contract to be called, call the smart contract on the block chain to perform business processing and generate business data. The embodiment of the present invention provides a method and system for invoking smart contracts on the blockchain, supports the modular design of projects based on the blockchain, and is suitable for the development of multifunctional and complex projects.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1为本发明实施例提供的一种调用区块链上的智能合约的方法的具体流程示意图;Fig. 1 is a schematic flow chart of a method for invoking a smart contract on a block chain provided by an embodiment of the present invention;
图2为本发明实施例提供的另一种调用区块链上的智能合约的方法的具体流程示意图;FIG. 2 is a schematic flowchart of another method for invoking a smart contract on the blockchain provided by an embodiment of the present invention;
图3为本发明实施例提供的再一种调用区块链上的智能合约的方法的具体流程示意图;FIG. 3 is a schematic flowchart of another method for invoking a smart contract on the blockchain provided by an embodiment of the present invention;
图4为本发明实施例提供的一种调用区块链上的智能合约的系统的结构示意图;FIG. 4 is a schematic structural diagram of a system for invoking a smart contract on a blockchain provided by an embodiment of the present invention;
图5为本发明实施例提供的另一种调用区块链上的智能合约的系统的结构示意图;FIG. 5 is a schematic structural diagram of another system for invoking smart contracts on the blockchain provided by an embodiment of the present invention;
图6为本发明实施例提供的再一种调用区块链上的智能合约的系统的结构示意图。Fig. 6 is a schematic structural diagram of another system for invoking smart contracts on the blockchain provided by an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. 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.
请参阅附图1,图1为本发明实施例提供的一种调用区块链上的智能合约的方法的具体流程示意图,该方法包括如下步骤:Please refer to accompanying drawing 1, Fig. 1 is a kind of specific flow diagram of the method for calling the smart contract on the block chain provided by the embodiment of the present invention, and this method comprises the following steps:
步骤S100,接收业务层发送的调用请求;Step S100, receiving the calling request sent by the business layer;
具体的,可由API(Application Programming Interface,应用程序编程接口)调用模块接收业务层发送的调用请求,业务层可以是WEB(World Wide Web,全球广域网)类型的业务层,其通过触发js(javascript)脚本生成调用请求,也就是说,所述调用请求为采用json(JavaScript Object Notation,JS对象标记)格式的数据流形式。Concretely, the invocation request sent by the business layer can be received by the API (Application Programming Interface, application programming interface) calling module, and the business layer can be a WEB (World Wide Web, global wide area network) type business layer, which triggers js (javascript) The script generates an invocation request, that is, the invocation request is in the form of a data stream in the format of json (JavaScript Object Notation, JS object notation).
步骤S110,解析所述调用请求,确定待调用的智能合约的函数接口;Step S110, analyzing the call request, and determining the function interface of the smart contract to be called;
具体的,可由API调用模块解析所述调用请求,确定待调用的智能合约的函数接口。另外,智能合约的数据和逻辑是分离的,也即,智能合约包括数据合约和行为合约,其中,数据合约专门存储数据,其只进行简单的数据获取和修改,行为合约专门描述后台业务处理逻辑。每一个智能合约都隐射一个合约地址以及编译完成的ABI(Application BinaryInterface,应用程序二进制接口),通过node.js进行封装隐藏,对外只提供统一的函数接口。API调用模块利用封装的js封装代码对所述调用请求进行解析,确定待调用的智能合约的函数接口。Specifically, the call request can be parsed by the API call module to determine the function interface of the smart contract to be called. In addition, the data and logic of smart contracts are separated, that is, smart contracts include data contracts and behavior contracts. Among them, data contracts are dedicated to storing data and only perform simple data acquisition and modification, and behavior contracts are dedicated to describing background business processing logic. . Each smart contract implies a contract address and compiled ABI (Application Binary Interface, Application Binary Interface), which is encapsulated and hidden through node.js, and only provides a unified function interface to the outside world. The API call module analyzes the call request by using the packaged js package code, and determines the function interface of the smart contract to be called.
步骤S120,根据所述待调用的智能合约的函数接口调用区块链上的智能合约进行业务处理生成业务数据。Step S120, call the smart contract on the blockchain according to the function interface of the smart contract to be called to perform business processing and generate business data.
具体的,可由API调用模块根据所述待调用的智能合约的函数接口调用区块链上的智能合约,由区块链上的智能合约进行业务处理生成业务数据。区块链上的智能合约成功调用之后,区块链上的智能合约会根据调用请求中的业务处理指示信息进行业务处理,生成业务数据。Specifically, the API calling module can call the smart contract on the block chain according to the function interface of the smart contract to be called, and the smart contract on the block chain can perform business processing to generate business data. After the smart contract on the blockchain is successfully invoked, the smart contract on the blockchain will perform business processing and generate business data according to the business processing instruction information in the call request.
本发明实施例中公开了一种调用区块链上的智能合约的方法,接收业务层发送的调用请求;解析所述调用请求,确定待调用的智能合约的函数接口;根据所述待调用的智能合约的函数接口调用区块链上的智能合约进行业务处理生成业务数据。本发明实施例提供的一种调用区块链上的智能合约的方法,支持基于区块链的项目的模块化设计,适用于多功能复杂型的项目的开发。The embodiment of the present invention discloses a method for invoking a smart contract on the blockchain, receiving a call request sent by the business layer; parsing the call request, and determining the function interface of the smart contract to be called; according to the call request The function interface of the smart contract calls the smart contract on the blockchain to perform business processing and generate business data. The embodiment of the present invention provides a method for invoking smart contracts on the blockchain, supports the modular design of projects based on the blockchain, and is suitable for the development of multifunctional and complex projects.
请参阅附图2,图2为本发明实施例提供的另一种调用区块链上的智能合约的方法的具体流程示意图,该方法包括如下步骤:Please refer to accompanying drawing 2, Fig. 2 is another kind of specific schematic flow diagram of the method for invoking the smart contract on the block chain provided by the embodiment of the present invention, this method comprises the following steps:
步骤S200,接收业务层发送的调用请求;Step S200, receiving the calling request sent by the business layer;
具体的,可由API(Application Programming Interface,应用程序编程接口)调用模块接收业务层发送的调用请求,业务层可以是WEB(World Wide Web,全球广域网)类型的业务层,其通过触发js(javascript)脚本生成调用请求,也就是说,所述调用请求为采用json(JavaScript Object Notation,JS对象标记)格式的数据流形式。Concretely, the invocation request sent by the business layer can be received by the API (Application Programming Interface, application programming interface) calling module, and the business layer can be a WEB (World Wide Web, global wide area network) type business layer, which triggers js (javascript) The script generates an invocation request, that is, the invocation request is in the form of a data stream in the format of json (JavaScript Object Notation, JS object notation).
步骤S210,解析所述调用请求,确定待调用的智能合约的函数接口;Step S210, analyzing the call request, and determining the function interface of the smart contract to be called;
具体的,可由API调用模块解析所述调用请求,确定待调用的智能合约的函数接口。另外,智能合约的数据和逻辑是分离的,也即,智能合约包括数据合约和行为合约,其中,数据合约专门存储数据,其只进行简单的数据获取和修改,行为合约专门描述后台业务处理逻辑。每一个智能合约都隐射一个合约地址以及编译完成的ABI(Application BinaryInterface,应用程序二进制接口),通过node.js进行封装隐藏,对外只提供统一的函数接口。API调用模块利用封装的js封装代码对所述调用请求进行解析,确定待调用的智能合约的函数接口。Specifically, the call request can be parsed by the API call module to determine the function interface of the smart contract to be called. In addition, the data and logic of smart contracts are separated, that is, smart contracts include data contracts and behavior contracts. Among them, data contracts are dedicated to storing data and only perform simple data acquisition and modification, and behavior contracts are dedicated to describing background business processing logic. . Each smart contract implies a contract address and compiled ABI (Application Binary Interface, Application Binary Interface), which is encapsulated and hidden through node.js, and only provides a unified function interface to the outside world. The API call module analyzes the call request by using the packaged js package code, and determines the function interface of the smart contract to be called.
步骤S220,根据所述待调用的智能合约的函数接口调用区块链上的智能合约进行业务处理生成业务数据。Step S220, call the smart contract on the blockchain according to the function interface of the smart contract to be called to perform business processing and generate business data.
具体的,可由API调用模块根据所述待调用的智能合约的函数接口调用区块链上的智能合约,由区块链上的智能合约进行业务处理生成业务数据。区块链上的智能合约成功调用之后,区块链上的智能合约会根据调用请求中的业务处理指示信息进行业务处理,生成业务数据。Specifically, the API calling module can call the smart contract on the block chain according to the function interface of the smart contract to be called, and the smart contract on the block chain can perform business processing to generate business data. After the smart contract on the blockchain is successfully invoked, the smart contract on the blockchain will perform business processing and generate business data according to the business processing instruction information in the call request.
步骤S230,将所述业务数据写入同步库中。Step S230, writing the business data into a synchronization library.
本发明中,是将区块链上的智能合约进行业务处理生成的业务数据主动写入同步库的,同步库主要负责存储区块链上的数据。In the present invention, the business data generated by the business processing of the smart contract on the block chain is actively written into the synchronization library, and the synchronization library is mainly responsible for storing the data on the block chain.
本发明中,在将区块链上的智能合约进行业务处理生成的业务数据主动写入同步库时,采用了轮询机制。由于区块链是时刻在增长的数据块链,区块链上所有的业务数据都会被打包写进区块中,因此,本发明中轮询机制设定按照预设时间间隔被触发,其中,预设时间间隔可以根据需要进行设定,假设预设时间间隔为3秒,则每隔3秒触发一次轮询机制,轮询这3秒内生成的新区块,将其中成功的交易哈西拿出,通过交易哈西解析出log,将获取出来的json格式的log数据解析成对应的数据表数据存储到同步库中,同步库中的数据和区块链上数据实时(可接受时延范围内)同步,即同步库中可以准确的记录区块链上的最新数据。In the present invention, when the business data generated by the business processing of the smart contract on the block chain is actively written into the synchronization library, a polling mechanism is adopted. Since the blockchain is a data block chain that is growing all the time, all business data on the blockchain will be packaged and written into the block. Therefore, the polling mechanism in the present invention is set to be triggered according to a preset time interval. Among them, The preset time interval can be set according to the needs. Assuming that the preset time interval is 3 seconds, the polling mechanism will be triggered every 3 seconds to poll the new blocks generated within 3 seconds, and the successful transactions will be hashed The log is parsed through the transaction Hash, and the obtained log data in json format is parsed into the corresponding data table data and stored in the synchronization library. The data in the synchronization library and the data on the blockchain are real-time (acceptable delay range) Internal) synchronization, that is, the latest data on the blockchain can be accurately recorded in the synchronization library.
本发明实施例提供的一种调用区块链上的智能合约的方法,能够将区块链上的智能合约进行业务处理生成业务数据写入同步库中,避免了区块链挖矿过程有时延造成的业务层不能实时获取业务数据的情况发生。The embodiment of the present invention provides a method for invoking a smart contract on the block chain, which can write the business data generated by the smart contract on the block chain into the synchronization library, avoiding the time delay of the block chain mining process As a result, the business layer cannot obtain business data in real time.
请参阅附图3,图3为本发明实施例提供的再一种调用区块链上的智能合约的方法的具体流程示意图,该方法包括如下步骤:Please refer to accompanying drawing 3, Fig. 3 is the concrete flow diagram of another kind of method for invoking the smart contract on the block chain provided by the embodiment of the present invention, and this method comprises the following steps:
步骤S300,接收业务层发送的调用请求;Step S300, receiving the call request sent by the business layer;
具体的,可由API(Application Programming Interface,应用程序编程接口)调用模块接收业务层发送的调用请求,业务层可以是WEB(World Wide Web,全球广域网)类型的业务层,其通过触发js(javascript)脚本生成调用请求,也就是说,所述调用请求为采用json(JavaScript Object Notation,JS对象标记)格式的数据流形式。Concretely, the invocation request sent by the business layer can be received by the API (Application Programming Interface, application programming interface) calling module, and the business layer can be a WEB (World Wide Web, global wide area network) type business layer, which triggers js (javascript) The script generates an invocation request, that is, the invocation request is in the form of a data stream in the format of json (JavaScript Object Notation, JS object notation).
步骤S310,解析所述调用请求,确定待调用的智能合约的函数接口;Step S310, analyzing the call request, and determining the function interface of the smart contract to be called;
具体的,可由API调用模块解析所述调用请求,确定待调用的智能合约的函数接口。另外,智能合约的数据和逻辑是分离的,也即,智能合约包括数据合约和行为合约,其中,数据合约专门存储数据,其只进行简单的数据获取和修改,行为合约专门描述后台业务处理逻辑。每一个智能合约都隐射一个合约地址以及编译完成的ABI(Application BinaryInterface,应用程序二进制接口),通过node.js进行封装隐藏,对外只提供统一的函数接口。API调用模块利用封装的js封装代码对所述调用请求进行解析,确定待调用的智能合约的函数接口。Specifically, the call request can be parsed by the API call module to determine the function interface of the smart contract to be called. In addition, the data and logic of smart contracts are separated, that is, smart contracts include data contracts and behavior contracts. Among them, data contracts are dedicated to storing data and only perform simple data acquisition and modification, and behavior contracts are dedicated to describing background business processing logic. . Each smart contract implies a contract address and compiled ABI (Application Binary Interface, Application Binary Interface), which is encapsulated and hidden through node.js, and only provides a unified function interface to the outside world. The API call module analyzes the call request by using the packaged js package code, and determines the function interface of the smart contract to be called.
步骤S320,根据所述待调用的智能合约的函数接口调用区块链上的智能合约进行业务处理生成业务数据。Step S320, call the smart contract on the blockchain according to the function interface of the smart contract to be called to perform business processing and generate business data.
具体的,可由API调用模块根据所述待调用的智能合约的函数接口调用区块链上的智能合约,由区块链上的智能合约进行业务处理生成业务数据。区块链上的智能合约成功调用之后,区块链上的智能合约会根据调用请求中的业务处理指示信息进行业务处理,生成业务数据。Specifically, the API calling module can call the smart contract on the block chain according to the function interface of the smart contract to be called, and the smart contract on the block chain can perform business processing to generate business data. After the smart contract on the blockchain is successfully invoked, the smart contract on the blockchain will perform business processing and generate business data according to the business processing instruction information in the call request.
步骤S330,将所述业务数据写入同步库中。Step S330, writing the business data into a synchronization library.
本发明中,是将区块链上的智能合约进行业务处理生成的业务数据主动写入同步库的,同步库主要负责存储区块链上的数据。In the present invention, the business data generated by the business processing of the smart contract on the block chain is actively written into the synchronization library, and the synchronization library is mainly responsible for storing the data on the block chain.
本发明中,在将区块链上的智能合约进行业务处理生成的业务数据主动写入同步库时,采用了轮询机制。由于区块链是时刻在增长的数据块链,区块链上所有的业务数据都会被打包写进区块中,因此,本发明中轮询机制设定按照预设时间间隔被触发,其中,预设时间间隔可以根据需要进行设定,假设预设时间间隔为3秒,则每隔3秒触发一次轮询机制,轮询这3秒内生成的新区块,将其中成功的交易哈西拿出,通过交易哈西解析出log,将获取出来的json格式的log数据解析成对应的数据表数据存储到同步库中,同步库中的数据和区块链上数据实时(可接受时延范围内)同步,即同步库中可以准确的记录区块链上的最新数据。In the present invention, when the business data generated by the business processing of the smart contract on the block chain is actively written into the synchronization library, a polling mechanism is adopted. Since the blockchain is a data block chain that is growing all the time, all business data on the blockchain will be packaged and written into the block. Therefore, the polling mechanism in the present invention is set to be triggered according to a preset time interval. Among them, The preset time interval can be set according to the needs. Assuming that the preset time interval is 3 seconds, the polling mechanism will be triggered every 3 seconds to poll the new blocks generated within 3 seconds, and the successful transactions will be hashed The log is parsed through the transaction Hash, and the obtained log data in json format is parsed into the corresponding data table data and stored in the synchronization library. The data in the synchronization library and the data on the blockchain are real-time (acceptable delay range) Internal) synchronization, that is, the latest data on the blockchain can be accurately recorded in the synchronization library.
步骤S340,接收业务层发送的数据获取请求;Step S340, receiving the data acquisition request sent by the business layer;
步骤S350,根据所述数据访问请求从所述同步库中获取目标数据;Step S350, acquiring target data from the synchronization library according to the data access request;
步骤S360,将所述目标数据返回至所述业务层。Step S360, returning the target data to the business layer.
本发明实施例提供的一种调用区块链上的智能合约的方法,能够将区块链上的智能合约进行业务处理生成业务数据写入同步库中,在接收到业务层发送的数据获取请求,根据所述数据访问请求从所述同步库中获取目标数据,将所述目标数据返回至所述业务层,进一步避免了区块链挖矿过程有时延造成的业务层不能实时获取业务数据的情况发生。The embodiment of the present invention provides a method for invoking a smart contract on the block chain, which can write the business data generated by the smart contract on the block chain into the synchronization library, and receive the data acquisition request sent by the business layer According to the data access request, the target data is obtained from the synchronization library, and the target data is returned to the business layer, which further avoids the problem that the business layer cannot obtain business data in real time due to the delay in the blockchain mining process Situation happens.
请参阅附图4,图4为本发明实施例提供的一种调用区块链上的智能合约的系统的结构示意图,该系统包括:Please refer to accompanying drawing 4. Fig. 4 is a schematic structural diagram of a system for invoking a smart contract on a blockchain provided by an embodiment of the present invention. The system includes:
API调用模块100,用于接收业务层发送的调用请求;以及,解析所述调用请求,确定待调用的智能合约的函数接口;以及根据所述待调用的智能合约的函数接口调用区块链上的智能合约;The API call module 100 is used to receive the call request sent by the business layer; and, parse the call request to determine the function interface of the smart contract to be called; and call the function interface on the blockchain according to the function interface of the smart contract to be called. smart contract;
智能合约的数据和逻辑是分离的,也即,智能合约包括数据合约和行为合约,其中,数据合约专门存储数据,其只进行简单的数据获取和修改,行为合约专门描述后台业务处理逻辑。每一个智能合约都隐射一个合约地址以及编译完成的ABI(Application BinaryInterface,应用程序二进制接口),通过node.js进行封装隐藏,对外只提供统一的函数接口。API调用模块利用封装的js封装代码对所述调用请求进行解析,确定待调用的智能合约的函数接口。The data and logic of smart contracts are separated, that is, smart contracts include data contracts and behavior contracts. Among them, data contracts specialize in storing data and only perform simple data acquisition and modification, and behavior contracts specifically describe background business processing logic. Each smart contract implies a contract address and compiled ABI (Application Binary Interface, Application Binary Interface), which is encapsulated and hidden through node.js, and only provides a unified function interface to the outside world. The API call module analyzes the call request by using the packaged js package code, and determines the function interface of the smart contract to be called.
业务处理模块110,用于区块链上的智能合约进行业务处理生成业务数据。The business processing module 110 is used for smart contracts on the blockchain to perform business processing and generate business data.
请参阅附图5,图5为本发明实施例提供的另一种调用区块链上的智能合约的系统的结构示意图,该系统包括:Please refer to accompanying drawing 5. Fig. 5 is a schematic structural diagram of another system for invoking smart contracts on the blockchain provided by an embodiment of the present invention. The system includes:
API调用模块200,用于接收业务层发送的调用请求;以及,解析所述调用请求,确定待调用的智能合约的函数接口;以及根据所述待调用的智能合约的函数接口调用区块链上的智能合约;The API call module 200 is used to receive the call request sent by the business layer; and, parse the call request to determine the function interface of the smart contract to be called; and call the function interface on the blockchain according to the function interface of the smart contract to be called. smart contract;
业务处理模块210,用于区块链上的智能合约进行业务处理生成业务数据。The business processing module 210 is used for smart contracts on the blockchain to perform business processing and generate business data.
业务数据存储模块220,用于在所述根据所述待调用的智能合约的函数接口调用区块链上的智能合约进行业务处理生成业务数据之后,将所述业务数据写入同步库中。The business data storage module 220 is configured to write the business data into the synchronization library after the smart contract on the block chain is called to perform business processing according to the function interface of the smart contract to be called to generate business data.
本发明中,是将区块链上的智能合约进行业务处理生成的业务数据主动写入同步库的,同步库主要负责存储区块链上的数据。In the present invention, the business data generated by the business processing of the smart contract on the block chain is actively written into the synchronization library, and the synchronization library is mainly responsible for storing the data on the block chain.
其中,所述业务数据存储模块220具体用于:Wherein, the business data storage module 220 is specifically used for:
采用轮询机制将所述业务数据写入同步库中。Using a polling mechanism to write the business data into the synchronization library.
本发明中,在将区块链上的智能合约进行业务处理生成的业务数据主动写入同步库时,采用了轮询机制。由于区块链是时刻在增长的数据块链,区块链上所有的业务数据都会被打包写进区块中,因此,本发明中轮询机制设定按照预设时间间隔被触发,其中,预设时间间隔可以根据需要进行设定,假设预设时间间隔为3秒,则每隔3秒触发一次轮询机制,轮询这3秒内生成的新区块,将其中成功的交易哈西拿出,通过交易哈西解析出log,将获取出来的json格式的log数据解析成对应的数据表数据存储到同步库中,同步库中的数据和区块链上数据实时(可接受时延范围内)同步,即同步库中可以准确的记录区块链上的最新数据。In the present invention, when the business data generated by the business processing of the smart contract on the block chain is actively written into the synchronization library, a polling mechanism is adopted. Since the blockchain is a data block chain that is growing all the time, all business data on the blockchain will be packaged and written into the block. Therefore, the polling mechanism in the present invention is set to be triggered according to a preset time interval. Among them, The preset time interval can be set according to the needs. Assuming that the preset time interval is 3 seconds, the polling mechanism will be triggered every 3 seconds to poll the new blocks generated within 3 seconds, and the successful transactions will be hashed The log is parsed through the transaction Hash, and the obtained log data in json format is parsed into the corresponding data table data and stored in the synchronization library. The data in the synchronization library and the data on the blockchain are real-time (acceptable delay range) Internal) synchronization, that is, the latest data on the blockchain can be accurately recorded in the synchronization library.
请参阅附图6,图6为本发明实施例提供的再一种调用区块链上的智能合约的系统的结构示意图,该系统包括:Please refer to accompanying drawing 6. Fig. 6 is a schematic structural diagram of another system for invoking smart contracts on the blockchain provided by an embodiment of the present invention. The system includes:
API调用模块300,用于接收业务层发送的调用请求;以及,解析所述调用请求,确定待调用的智能合约的函数接口;以及根据所述待调用的智能合约的函数接口调用区块链上的智能合约;The API call module 300 is used to receive the call request sent by the business layer; and, parse the call request to determine the function interface of the smart contract to be called; and call the function interface on the blockchain according to the function interface of the smart contract to be called smart contract;
业务处理模块310,用于区块链上的智能合约进行业务处理生成业务数据。The business processing module 310 is used for smart contracts on the blockchain to perform business processing and generate business data.
业务数据存储模块320,用于在所述根据所述待调用的智能合约的函数接口调用区块链上的智能合约进行业务处理生成业务数据之后,将所述业务数据写入同步库中。The business data storage module 320 is configured to write the business data into the synchronization library after the smart contract on the block chain is called to perform business processing according to the function interface of the smart contract to be called to generate business data.
API返回模块330,用于接收业务层发送的数据获取请求;以及,根据所述数据访问请求从所述同步库中获取目标数据;以及,将所述目标数据返回至所述业务层。The API return module 330 is configured to receive a data acquisition request sent by the business layer; and acquire target data from the synchronization library according to the data access request; and return the target data to the business layer.
综上所述:In summary:
本发明实施例中公开了一种调用区块链上的智能合约的方法及系统,接收业务层发送的调用请求;解析所述调用请求,确定待调用的智能合约的函数接口;根据所述待调用的智能合约的函数接口调用区块链上的智能合约进行业务处理生成业务数据。本发明实施例提供的一种调用区块链上的智能合约的方法及系统,支持基于区块链的项目的模块化设计,适用于多功能复杂型的项目的开发。The embodiment of the present invention discloses a method and system for invoking a smart contract on the blockchain, receiving a call request sent by the business layer; parsing the call request, and determining the function interface of the smart contract to be called; The function interface of the called smart contract calls the smart contract on the blockchain to perform business processing and generate business data. The embodiment of the present invention provides a method and system for invoking smart contracts on the blockchain, supports the modular design of projects based on the blockchain, and is suitable for the development of multifunctional and complex projects.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related part, please refer to the description of the method part.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible For interchangeability, in the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710851511.8ACN107688927A (en) | 2017-09-19 | 2017-09-19 | A method and system for invoking smart contracts on blockchain |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710851511.8ACN107688927A (en) | 2017-09-19 | 2017-09-19 | A method and system for invoking smart contracts on blockchain |
| Publication Number | Publication Date |
|---|---|
| CN107688927Atrue CN107688927A (en) | 2018-02-13 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710851511.8APendingCN107688927A (en) | 2017-09-19 | 2017-09-19 | A method and system for invoking smart contracts on blockchain |
| Country | Link |
|---|---|
| CN (1) | CN107688927A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108616578A (en)* | 2018-04-09 | 2018-10-02 | 上海点融信息科技有限责任公司 | Method for processing business, equipment and the computer readable storage medium of transregional piece of platform chain |
| CN108898390A (en)* | 2018-06-27 | 2018-11-27 | 阿里巴巴集团控股有限公司 | Blockchain-based smart contract calling method, device, and electronic equipment |
| CN108961526A (en)* | 2018-06-13 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of ballot system based on block chain technology |
| CN109003078A (en)* | 2018-06-27 | 2018-12-14 | 阿里巴巴集团控股有限公司 | Intelligent contract call method and device, electronic equipment based on block chain |
| CN109146679A (en)* | 2018-06-29 | 2019-01-04 | 阿里巴巴集团控股有限公司 | Intelligent contract call method and device, electronic equipment based on block chain |
| CN109151031A (en)* | 2018-08-28 | 2019-01-04 | 北京奇虎科技有限公司 | Contract processing method and processing device based on block chain |
| CN109285066A (en)* | 2018-08-30 | 2019-01-29 | 福建省农村信用社联合社 | A method for generating and executing smart contracts based on banking business flow |
| CN109325368A (en)* | 2018-09-11 | 2019-02-12 | 云量区块链(深圳)有限公司 | City outdoor scene management method, electronic equipment and storage medium based on block chain |
| CN109445820A (en)* | 2018-10-29 | 2019-03-08 | 深圳市元征科技股份有限公司 | A kind of intelligence contract upgrade method, system, equipment and computer storage medium |
| CN109582438A (en)* | 2018-10-30 | 2019-04-05 | 广州斯拜若科技有限公司 | A kind of virtual machine and its implementation with multiple intelligent contract enforcement engines |
| CN109739932A (en)* | 2018-12-29 | 2019-05-10 | 东莞见达信息技术有限公司 | Data storage method and device, computer equipment and computer readable storage medium |
| CN109840429A (en)* | 2019-01-08 | 2019-06-04 | 北京众享比特科技有限公司 | Intelligent contract deployment, call method and device |
| CN110046522A (en)* | 2018-11-28 | 2019-07-23 | 阿里巴巴集团控股有限公司 | Method for processing business and device, electronic equipment based on block chain |
| CN110177079A (en)* | 2019-04-17 | 2019-08-27 | 北京百度网讯科技有限公司 | The calling system and call method of intelligent contract |
| WO2019101236A3 (en)* | 2019-03-04 | 2020-01-02 | Alibaba Group Holding Limited | Software interface for smart contracts |
| CN110955448A (en)* | 2019-10-11 | 2020-04-03 | 平安壹钱包电子商务有限公司 | Intelligent contract separation method, contract processing method, apparatus, device and medium |
| WO2020086123A1 (en)* | 2018-10-26 | 2020-04-30 | Alibaba Group Holding Linited | Data processing method and apparatus |
| CN111324645A (en)* | 2018-12-14 | 2020-06-23 | 北京沃东天骏信息技术有限公司 | Data processing method and device for block chain |
| CN112633922A (en)* | 2020-12-15 | 2021-04-09 | 网易(杭州)网络有限公司 | Game demand iteration method, device, equipment and storage medium |
| CN112929396A (en)* | 2019-12-06 | 2021-06-08 | 顺丰科技有限公司 | Service processing method, device and equipment based on block chain and readable storage medium |
| CN113256293A (en)* | 2021-06-23 | 2021-08-13 | 中国银行股份有限公司 | Interface tube control method and device |
| CN114490874A (en)* | 2022-01-25 | 2022-05-13 | 鼎链数字科技(厦门)有限公司 | A blockchain smart contract call management method |
| WO2023020193A1 (en)* | 2021-08-19 | 2023-02-23 | 中国人民银行数字货币研究所 | Smart contract execution method and apparatus |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150332283A1 (en)* | 2014-05-13 | 2015-11-19 | Nant Holdings Ip, Llc | Healthcare transaction validation via blockchain proof-of-work, systems and methods |
| CN106874393A (en)* | 2017-01-13 | 2017-06-20 | 北京众享比特科技有限公司 | Synchronizing traffic data method and system, Database Systems based on block chain |
| CN107038242A (en)* | 2017-04-24 | 2017-08-11 | 杭州趣链科技有限公司 | It is a kind of towards the global intelligent contract business datum analytic method of block chain |
| CN107147704A (en)* | 2017-04-21 | 2017-09-08 | 杭州趣链科技有限公司 | A kind of generic service middleware system towards block chain |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150332283A1 (en)* | 2014-05-13 | 2015-11-19 | Nant Holdings Ip, Llc | Healthcare transaction validation via blockchain proof-of-work, systems and methods |
| CN106874393A (en)* | 2017-01-13 | 2017-06-20 | 北京众享比特科技有限公司 | Synchronizing traffic data method and system, Database Systems based on block chain |
| CN107147704A (en)* | 2017-04-21 | 2017-09-08 | 杭州趣链科技有限公司 | A kind of generic service middleware system towards block chain |
| CN107038242A (en)* | 2017-04-24 | 2017-08-11 | 杭州趣链科技有限公司 | It is a kind of towards the global intelligent contract business datum analytic method of block chain |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108616578A (en)* | 2018-04-09 | 2018-10-02 | 上海点融信息科技有限责任公司 | Method for processing business, equipment and the computer readable storage medium of transregional piece of platform chain |
| CN108961526A (en)* | 2018-06-13 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of ballot system based on block chain technology |
| KR102228965B1 (en) | 2018-06-27 | 2021-03-18 | 어드밴스드 뉴 테크놀로지스 씨오., 엘티디. | Blockchain-based smart contract calling method and apparatus, and electronic device |
| CN108898390A (en)* | 2018-06-27 | 2018-11-27 | 阿里巴巴集团控股有限公司 | Blockchain-based smart contract calling method, device, and electronic equipment |
| CN109003078A (en)* | 2018-06-27 | 2018-12-14 | 阿里巴巴集团控股有限公司 | Intelligent contract call method and device, electronic equipment based on block chain |
| KR20200092331A (en)* | 2018-06-27 | 2020-08-03 | 알리바바 그룹 홀딩 리미티드 | Blockchain-based smart contract calling method and apparatus, and electronic device |
| US10776348B2 (en) | 2018-06-27 | 2020-09-15 | Alibaba Group Holding Limited | Blockchain-based smart contract invocation method and apparatus, and electronic device |
| US11347727B2 (en) | 2018-06-27 | 2022-05-31 | Advanced New Technologies Co., Ltd. | Blockchain-based smart contract invocation method and apparatus, and electronic device |
| US11016961B2 (en) | 2018-06-27 | 2021-05-25 | Advanced New Technologies Co., Ltd. | Blockchain-based smart contract invocation method and apparatus, and electronic device |
| US10783190B2 (en) | 2018-06-27 | 2020-09-22 | Alibaba Group Holding Limited | Blockchain-based smart contract invocation method and apparatus, and electronic device |
| CN109146679A (en)* | 2018-06-29 | 2019-01-04 | 阿里巴巴集团控股有限公司 | Intelligent contract call method and device, electronic equipment based on block chain |
| US11005844B2 (en) | 2018-06-29 | 2021-05-11 | Advanced New Technologies Co., Ltd. | Blockchain-based smart contract call methods and apparatus, and electronic device |
| CN109146679B (en)* | 2018-06-29 | 2023-11-10 | 创新先进技术有限公司 | Intelligent contract calling method and device based on block chain and electronic equipment |
| US11588653B2 (en) | 2018-06-29 | 2023-02-21 | Advanced New Technologies Co., Ltd. | Blockchain-based smart contract call methods and apparatus, and electronic device |
| CN109151031B (en)* | 2018-08-28 | 2022-08-26 | 北京奇虎科技有限公司 | Contract processing method and device based on block chain |
| CN109151031A (en)* | 2018-08-28 | 2019-01-04 | 北京奇虎科技有限公司 | Contract processing method and processing device based on block chain |
| CN109285066B (en)* | 2018-08-30 | 2020-12-08 | 福建省农村信用社联合社 | A method for generating and executing smart contracts based on banking business flow |
| CN109285066A (en)* | 2018-08-30 | 2019-01-29 | 福建省农村信用社联合社 | A method for generating and executing smart contracts based on banking business flow |
| CN109325368A (en)* | 2018-09-11 | 2019-02-12 | 云量区块链(深圳)有限公司 | City outdoor scene management method, electronic equipment and storage medium based on block chain |
| WO2020086123A1 (en)* | 2018-10-26 | 2020-04-30 | Alibaba Group Holding Linited | Data processing method and apparatus |
| US11626972B2 (en) | 2018-10-26 | 2023-04-11 | Advanced New Technologies Co., Ltd. | Data processing method and apparatus |
| US10999060B2 (en) | 2018-10-26 | 2021-05-04 | Advanced New Technologies Co., Ltd. | Data processing method and apparatus |
| CN111833189A (en)* | 2018-10-26 | 2020-10-27 | 创新先进技术有限公司 | Data processing method and device |
| TWI730309B (en)* | 2018-10-26 | 2021-06-11 | 香港商阿里巴巴集團服務有限公司 | Data processing method and device |
| CN109445820A (en)* | 2018-10-29 | 2019-03-08 | 深圳市元征科技股份有限公司 | A kind of intelligence contract upgrade method, system, equipment and computer storage medium |
| CN109582438A (en)* | 2018-10-30 | 2019-04-05 | 广州斯拜若科技有限公司 | A kind of virtual machine and its implementation with multiple intelligent contract enforcement engines |
| CN109582438B (en)* | 2018-10-30 | 2021-05-28 | 广州斯拜若科技有限公司 | Virtual machine with multiple intelligent contract execution engines and implementation method thereof |
| CN110046522A (en)* | 2018-11-28 | 2019-07-23 | 阿里巴巴集团控股有限公司 | Method for processing business and device, electronic equipment based on block chain |
| CN111324645B (en)* | 2018-12-14 | 2023-05-30 | 北京沃东天骏信息技术有限公司 | Block chain data processing method and device |
| CN111324645A (en)* | 2018-12-14 | 2020-06-23 | 北京沃东天骏信息技术有限公司 | Data processing method and device for block chain |
| CN109739932A (en)* | 2018-12-29 | 2019-05-10 | 东莞见达信息技术有限公司 | Data storage method and device, computer equipment and computer readable storage medium |
| CN109840429A (en)* | 2019-01-08 | 2019-06-04 | 北京众享比特科技有限公司 | Intelligent contract deployment, call method and device |
| US10812255B2 (en) | 2019-03-04 | 2020-10-20 | Alibaba Group Holding Limited | Software interface for smart contracts |
| CN110959282A (en)* | 2019-03-04 | 2020-04-03 | 阿里巴巴集团控股有限公司 | Software interface for intelligent contracts |
| WO2019101236A3 (en)* | 2019-03-04 | 2020-01-02 | Alibaba Group Holding Limited | Software interface for smart contracts |
| CN110959282B (en)* | 2019-03-04 | 2022-05-31 | 蚂蚁双链科技(上海)有限公司 | Software interface for intelligent contracts |
| CN110177079B (en)* | 2019-04-17 | 2021-10-15 | 北京百度网讯科技有限公司 | Smart contract calling system and calling method |
| CN110177079A (en)* | 2019-04-17 | 2019-08-27 | 北京百度网讯科技有限公司 | The calling system and call method of intelligent contract |
| CN110955448A (en)* | 2019-10-11 | 2020-04-03 | 平安壹钱包电子商务有限公司 | Intelligent contract separation method, contract processing method, apparatus, device and medium |
| CN112929396B (en)* | 2019-12-06 | 2023-03-31 | 顺丰科技有限公司 | Service processing method, device and equipment based on block chain and readable storage medium |
| CN112929396A (en)* | 2019-12-06 | 2021-06-08 | 顺丰科技有限公司 | Service processing method, device and equipment based on block chain and readable storage medium |
| CN112633922A (en)* | 2020-12-15 | 2021-04-09 | 网易(杭州)网络有限公司 | Game demand iteration method, device, equipment and storage medium |
| CN112633922B (en)* | 2020-12-15 | 2023-07-25 | 网易(杭州)网络有限公司 | Game demand iteration method, device, equipment and storage medium |
| CN113256293A (en)* | 2021-06-23 | 2021-08-13 | 中国银行股份有限公司 | Interface tube control method and device |
| CN113256293B (en)* | 2021-06-23 | 2024-11-26 | 中国银行股份有限公司 | Interface control method and device |
| WO2023020193A1 (en)* | 2021-08-19 | 2023-02-23 | 中国人民银行数字货币研究所 | Smart contract execution method and apparatus |
| CN114490874A (en)* | 2022-01-25 | 2022-05-13 | 鼎链数字科技(厦门)有限公司 | A blockchain smart contract call management method |
| Publication | Publication Date | Title |
|---|---|---|
| CN107688927A (en) | A method and system for invoking smart contracts on blockchain | |
| US10817330B2 (en) | Service processing method and apparatus | |
| CN110032599B (en) | Data structure reading and updating method and device, and electronic equipment | |
| CN110032568B (en) | Data structure reading and updating method and device, and electronic equipment | |
| WO2022077186A1 (en) | Execution method and apparatus for smart contract in blockchain, and electronic device | |
| CN114547604A (en) | Application detection method and device, storage medium and electronic equipment | |
| WO2025107871A1 (en) | Information display method and apparatus, and electronic device and storage medium | |
| CN114428657B (en) | Sliding method and equipment based on Taro framework at H5 end | |
| CN114327941A (en) | A service providing method and device | |
| CN110689418B (en) | Bill generation method and device | |
| CN107861807A (en) | The optimization method and device of routine call | |
| EP4346191A1 (en) | Data processing method, and apparatus | |
| CN106201730A (en) | A kind of linux User space mutual exclusion lock deadlock detection method and system | |
| CN106201731A (en) | A kind of User space Read-Write Locks deadlock detection method and system | |
| CN115809056A (en) | Component reuse implementation method, device, terminal equipment, and readable storage medium | |
| CN110837367B (en) | User interface processing method and device and electronic equipment | |
| CN114358936A (en) | A smart contract operation method based on microservice blockchain | |
| CN108733377B (en) | JS interaction method for webpage end and mobile phone end in App | |
| CN111967931B (en) | A method and device for shuffling list data elements | |
| CN116975151A (en) | Block chain event processing method and device | |
| CN115357224A (en) | Method, device, equipment and medium for using external jar package | |
| CN118012400A (en) | Method set acquisition method and device for program | |
| HK40039095A (en) | Data structure reading and updating method and device, and electronic equipment | |
| CN118626095A (en) | A code processing method, device, equipment and medium | |
| CN118672649A (en) | A method and device for processing application programming interface code |
| 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 | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20180213 |