# Built-in variables
A built-in variable is a variable of the Standard library.
Name | Description |
---|---|
Buy | Order type |
| Rounding methods used in the math functions fraction , log , pow |
height | Blockchain height at the moment of the script execution |
lastBlock | BlockInfo structure containing headers of the current block at the moment of the script execution |
nil | Variable that contains an empty list. The variable is used for creating lists. For example, instead of:
you can write:
Lists are created using both methods. The first method is a syntactic sugar
|
| Variables that are passed as the first parameter to the rsaVerify function |
Sell | Order type |
this | • For a dApp script or an account script: the Address structure • For an asset script: the Asset structure |
tx | Transaction or order |
unit | Variable that contains an object of Unit type. Example 1 the deposit function transfers 5 WAVELETs to the account, that called this function.
Example 2 Instead of calling the
|