Part 2: Getting slot information
When clients send data to the DAL, they must choose which slot to put it in. This can cause conflicts, because only one client can write data to a given slot in a single block. If more than one client tries to write to the same slot and a baker includes those operations in the same block, only the first operation in the block succeeds in writing data to the slot. The other operations fail and the clients must re-submit the data to be included in a future block.
For this reason, clients should check the status of slots to avoid conflicts. For example, slots 0, 30, and 31 are often used for regression tests.
To see which slots are in use, you can use the Explorus indexer at https://explorus.io/dal and select Weeklynet. For example, this screenshot shows that slots 10 and 25 are in use:
You can also see the state of the DAL slots by running a DAL node. To reduce the amount of data that they have to manage, DAL nodes can subscribe to certain slots and ignore the data in others. Similarly, the protocol assigns bakers to monitor certain slots.
Starting a DAL node
To run a DAL node, use the Octez octez-dal-node
command and pass the slots to monitor in the --producer-profiles
argument.
Run this command to start a DAL node and monitor slot 0:
octez-dal-node run --endpoint ${ENDPOINT} \
--producer-profiles=0 --data-dir _dal_node