Introduction to Functions

The microchain contract defines the microchain control and service logic functions for the user’s DAPP. The microchain control functions include:

1. The protocol used, number of SCS on the microchain, microchain flush cycle, reward from each block of the microchain, and the reward for each TX

2. SCS calling on the microchain and the microchain flush

3. Microchain fund control

The microchain service logic defines the progression of SCS node operations. This service logic can be solidity based binary code, or the script or bin code of any language so long as it can be executed by the SCS module.

The microchain control functions are executed at the lower level v-node in the global contract, and its service logic is executed at the upper level.

MOAC provides a demonstration of a POS microchain, MicrochainBase.sol.