Finding the length of a lisp-style list is a manual process. You have to traverse the list. As such, it most likely doesn't worth it in a smart contract context, so it's better to keep a separate counter variable, whenever you're going to need to use length.
I guess that's because of the way special characters like ?!:/
are accepted in variable and function names. If //
was used for single line comments then at the end of lines without a semicolon, you had to put a space before them, or else they'd be treated as part of an identifier's name.
Semicolon is not allowed in identifier names and so it can be used without a problem as single line comments.
If you mean the current transaction time when transaction is being processed and accepted in a block, then you can use now()
in FunC.
dton.io shows some stats on its homepage, including transactions per second.
To develop smart contracts you need to at least learn FunC. In the process you might also learn Fift for a better understanding of how things work on a lower level.
To develop Telegram bots you can use many different general-purppose programming languages. There are a lot of options available here.
For the client side of dApps, you can use JavaScript or other tools that can generate a client side application.
Address that start with EQ are bounceable addresses, and those that start with UQ are non-bounceable addresses. These are only a hint to the wallet software that you want the sent message to be able to bounce or not.
When an error occurs in the target smart contract, usually a bounced message will return to the sender. In some cases you don't want the error message to be generated and also you don't want the transferred TON to be returned.
One such case is when you want to deploy a smar...
You may use toncenter.com APIs:
Mainnet: https://toncenter.com/api/v2/jsonRPC
Testnet: https://testnet.toncenter.com/api/v2/jsonRPC
TON configuration is the data for the Configuration smart contract. When an election is held and the vote to change a configuration is in support of the change, the config smart contract automatically changes the configuration data.
There is no need for any action from node owners. However, they might need to update their software from time to time, before an election is held which relies on the updates software.
Use at
, a built-int function:
Newer versions of FunC compiler added support for const
, so in newly written code, you may use this feature, or use the old approach. Both are supported.
The const
way of defining a constant is similar to other programming languages, so it can make your code easier to understand for readers.
Send any amount from your wallet.
You don't need to worry about it bein inactive. The first time that you send an outgoing transaction, your wallet software will deploy your wallet on chain and then sends the specified amount from it.
You can learn more here:
https://ton.org/docs/develop/smart-contracts/fees
Masterchain costs a lot more than basic workchain, like a thousand times.