Skip to content
On this page

Unit โ€‹

The type of unit values in SmartPy is sp.TUnit.

The corresponding type in Michelson is

Michelson unit.

It is the return type of commands and the input types of entrypoints with empty parameters.

sp.unit
The unique value of type sp.TUnit.

Example โ€‹

python
unitValue = sp.unit
Michelson UNIT