Data synchronization method and system based on block chain, electronic equipment and storage medium
A technology of data synchronization and blockchain, applied in the field of blockchain, can solve problems such as inability to synchronize data, difficult blockchain data, query and analysis, and achieve the effect of facilitating query and analysis and improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] According to an embodiment of the present invention, an embodiment of a blockchain-based data synchronization method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings may be executed in a computer system such as a set of computer-executable instructions and, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.
[0037] figure 1 is a flowchart of an optional blockchain-based data synchronization method according to an embodiment of the present invention, such as figure 1 As shown, the method includes the following steps:
[0038] Step S101, in response to the transaction request initiated by the client, execute the transaction request through the smart contract, and endorse and sign the execution result, wherein the client and the off-chain database establish a network connection in advance.
[0039] In step S102, the tran...
Embodiment 2
[0063] image 3 is a schematic diagram of an optional blockchain-based data synchronization system according to an embodiment of the present invention, such as image 3 shown, including: client, blockchain node, event streaming device, wherein,
[0064] The client is used to receive the input transaction type and transaction parameters, assemble the transaction type and transaction parameters into a transaction request, and send the transaction request to the blockchain node indicated by the blockchain node ID based on the blockchain node ID , in which the client establishes a network connection with the off-chain database in advance.
[0065] The blockchain node is used to respond to the transaction request initiated by the client, execute the transaction request through the pre-deployed smart contract, endorse and sign the execution result, and write the transaction data generated during the execution of the transaction request into the on-chain database.
[0066] Optional...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


