Micro-Rollup
Using and running a Micro-Rollup
Oh so you are finally here
Stackr exposes a Micro-Rollup Api that takes in all the things we built previously and wrap it around an application
This is how it looks like
yeah that’s it! 🎉
Sending Actions to the Micro-Rollup
Now that we have a Micro-Rollup setup, we can send actions to it
Step 1 : preparing data
The payload is a JSON string that contains the following, and MUST conform to the following schema
Step 2 : sending the payload
We use the actions object that we got from the Micro-Rollup and get the schema from it. Use the same identifier that was used to create the actionInput
After submitting the action the Micro-rollup sends an acknowledgement receipt back
Usage with web-server
You can also create an express app to interact with the rollup with users sending actions to it
Modes
You can send action to the Micro-rollup either directly or via an HTTP call or some other way
Ordering and Block Building
The Micro-Rollup will order the actions and build blocks based on the strategy that was passed to it and the config which governs the block size and other parameters
Utilities
Micro-rollup object exposes a bunch of utilities that can be used to interact with the Micro-Rollup.
- actions
- builder
- state
- chain
- syncer
- events
More about themin the next section