# [Ride v5] Built-in variables
⚠️ This is the documentation for the Standard Library version 5, which is currently available for Stagenet only. Go to Mainnet version
A built-in variable is a variable of the Standard library.
# List of built-in variables
# | Name | Description |
---|---|---|
1 | Buy | Order type |
2 |
| Rounding methods used in the log and pow functions |
3 | height | Blockchain height at the script execution time |
4 | lastBlock | Information about the last block of the blockchain at the script execution time |
5 | 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
|
6 |
| Variables that are passed as the first parameter to the rsaVerify function |
7 | Sell | Order type |
8 | this | Transaction sender address or information about the token |
9 | tx | Transaction or order |
10 | unit | Variable that contains an object of Unit type. Example 1 the deposit function transfers 5 WAVELETs to the account, that called this function.
WAVES does not have a token ID; the
Instead of calling the isDefined function, you may use the equality with unit .
|