Methods, systems, and apparatus including computer programs encoded on computer storage media, for smart contract and blockchain data storage. One of the methods includes determining that data stored in a cache storage satisfies a predetermined condition; adding a blockchain address of a second smart contract to a configuration file, wherein the configuration file includes a plurality of addresses corresponding to a plurality of smart contracts stored on a blockchain; and invoking a virtual machine to execute the configuration file, wherein execution of the configuration file initiates a consensus algorithm to generate the second smart contract at the blockchain address and a corresponding smart contract pool for storing at least a portion of the data on the blockchain, and wherein the smart contract pool is a data structure to be stored on the blockchain.
展开▼