tx · 7YskJNMuFNetfbkXkp29pqRKjC9U37EHmbvDFsEU1Fi
3N9tKixzqTYWnEXQxrDQ5pBTGvQd6sFsvmV: -0.00500000 Waves
2023.09.07 10:15 [2744650] data 3N9tKixzqTYWnEXQxrDQ5pBTGvQd6sFsvmV > SELF 0.00000000 Waves
3N9tKixzqTYWnEXQxrDQ5pBTGvQd6sFsvmV: 4Qi4YXRgcwoamqbef7jgVdCAVxRbMPHAN68PWGoNHfEj_CqbpJxfYeagkaT7sXQpxsfJXS1ZPxjM1Giw94n3y4Tp5_result: "RIDE programming language is used for writing Smart Contracts on the Waves blockchain. To create a loop in RIDE, you can use the `while` loop or the `for` loop.
The `while` loop allows you to execute a block of code repeatedly as long as the specified condition evaluates to true. Here's an example:
```
let i = 0
while (i < 10) {
i = i + 1
println(i)
}
```
This will print the numbers 1 through 10 to the console.
The `for` loop, on the other hand, is used to iterate over a sequence of values. Here's an example:
```
for (i in 1:10) {
println(i)
}
```
This will print the numbers 1 through 10 to the console.
Note that loops like `while` and `for` can cause the Smart Contract to exceed the 5 seconds execution time limit, so it's generally recommended to keep the number of iterations as small as possible." -> null
{
"type": 12,
"id": "7YskJNMuFNetfbkXkp29pqRKjC9U37EHmbvDFsEU1Fi",
"fee": 500000,
"feeAssetId": null,
"timestamp": 1694070974478,
"version": 2,
"chainId": 84,
"sender": "3N9tKixzqTYWnEXQxrDQ5pBTGvQd6sFsvmV",
"senderPublicKey": "DS6HkopS9zypvxX6VhkdNvv6v4wcPZuChRvTwKJeacxE",
"proofs": [
"4r5nqdWJ2Sya7Rwf9CRVdyJE9NwQVUifN5BcDEv6jkvuCZbM5PoFaWyFoHuFd7zdqPkXwNXoBHiNGPmpZUAUnmSF"
],
"data": [
{
"key": "4Qi4YXRgcwoamqbef7jgVdCAVxRbMPHAN68PWGoNHfEj_CqbpJxfYeagkaT7sXQpxsfJXS1ZPxjM1Giw94n3y4Tp5_result",
"value": null
}
],
"height": 2744650,
"applicationStatus": "succeeded",
"spentComplexity": 0
}