Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Profile picture
Howard
Moderator
14 Questions, 115 Answers
  Active since 20 January 2023
  Last activity one month ago

Reputation

660 + 10 this February 0 19

Badges 6

Editor Freshman 3 × Eureka! Newbie Enthusiast Scholar
1 Votes
1 Answers
9K Views
1 Votes 1 Answers 9K Views
The following content appears in this whitepaper (https://docs.ton.org/tblkch.pdf): > For instance, each outbound message created in a transaction is assigne...
1 Votes
1 Answers
9K Views
1 Votes 1 Answers 9K Views
In Blueprint, we will need to write the Wrapper functions ourselves. More importantly, when we code the op code in our FunC code, we need to decode the strin...
6 months ago
0 Votes
1 Answers
6K Views
0 Votes 1 Answers 6K Views
What is the usage of the configuration here? Should I worried about it if I am testing my contract? https://github.com/ton-community/sandbox#networkblock-con...
one year ago
0 Votes
0 Answers
6K Views
0 Votes 0 Answers 6K Views
For example, if you examine the code in detail here: https://github.com/ton-blockchain/payment-channels/blob/e605580c3fb1feb22d80be9a0cddfcd05671c347/func/as...
10 months ago
0 Votes
0 Answers
3K Views
0 Votes 0 Answers 3K Views
Case 1: () recv_internal(int my_balance, int msg_value, cell in_msg_full, slice in_msg_body) impure { slice cs = in_msg_full.begin_parse(); int flags = cs~lo...
9 months ago
0 Votes
0 Answers
6K Views
0 Votes 0 Answers 6K Views
Since I am looking into the multisig project in detail, how can I use the command line in GitHub (https://github.com/akifoq/multisig) using the following com...
10 months ago
0 Votes
1 Answers
6K Views
0 Votes 1 Answers 6K Views
In whitepaper, 2.1.1. Account addresses. we got description in below: The source address and destination address are always present in any message. Normally,...
0 Votes
1 Answers
6K Views
0 Votes 1 Answers 6K Views
In the Solidity programming language on the EVM, we need to be mindful of gas usage for each line of code. For now, the difference in gas cost in TON is stil...
0 Votes
1 Answers
1K Views
0 Votes 1 Answers 1K Views
Tags were calculated via tlbc as follows (request_flag is equal to 0x7fffffff and response flag is equal to 0x80000000): crc32('transfer query_id:uint64 new_...
one month ago
0 Votes
1 Answers
9K Views
0 Votes 1 Answers 9K Views
As mentioned in this question: "3) Poll for the latest transactions from the Blockchain using your wallet account ID and match the transaction using the pre-...
5 months ago
0 Votes
0 Answers
9K Views
0 Votes 0 Answers 9K Views
According to the documentation, we find the commit() FunC code described as follows: Commits the current state of registers c4 (“persistent data”) and c5 (“a...
6 months ago
0 Votes
0 Answers
9K Views
0 Votes 0 Answers 9K Views
Has anyone ever written test cases for Telemint (also known as the Telegram anonymous phone number)? GitHub Link to Telemint The code is quite complex. I hop...
6 months ago
0 Votes
1 Answers
9K Views
0 Votes 1 Answers 9K Views
In the docs.ton.org, we find: > There is a necessity for the synchronization of message routing and transaction execution. In other words, nodes in the netwo...
6 months ago
0 Votes
2 Answers
15K Views
0 Votes 2 Answers 15K Views
Follow the docs there:https://ton.org/docs/develop/func/overview back by the code: () send_money(slice address, int amount) impure inline { var msg = begin_c...
one year ago
0 How to read a string one character at a time?

For Slice reading , you can using load_uint(8) in FunC.

More detail can check with example like here:
https://docs.ton.org/develop/smart-contracts/guidelines/tips#spend-less-gas-on-large-smart-contracts

5 months ago
0 What's the difference between internal and external messages in TON smart contracts?

Blockchain networks often consist of various nodes (computers) that communicate with each other. They send and receive messages containing transactions, blocks, and other data. This communication is typically categorized into internal and external messages:

Internal Messages: These are usually transactions or messages sent between smart contracts within the blockchain network. They are also known as "internal transactions".

External Messages: These are messages sent to the block...

8 months ago
0 How to switch mainnet/testnet in tg wallet bot?

quick answer, there is no test-net environment for @wallet at this moment.

But if you want you can use @CryptoBOT / https://t.me/CryptoTestnetBot to test out.

5 months ago
0 Is there any call to get the contract address inside it? I cant find anything like that in tvm

I assume you are inquiring about the programming language for Smart Contracts. Currently, you can opt for either FunC (https://ton.org/docs/develop/func) or Tact (https://docs.tact-lang.org/), both of which are human-readable languages used to build Smart Contracts.

Both of these languages offer a plugin module to display your current address, similar to address(this) in Solidity.

In FunC, you can use:

slice my_address...
one year ago
0 How do I get an RPC endpoint for TON?

First of all, what is your usage for the RPC endpoint you want?

To obtain an RPC endpoint for the TON network, you can either run your own node or use a public node run by a third party. To run your own node, you will need to download and set up the TON software, which can be obtained from the official TON GitHub repository. For public nodes, you can check websites such as TON Labs or search for TON nodes on popular forums.

Documentation for the TON network, including information on the...

one year ago
0 How to monitor incoming transactions?

You can take a look at the resources available at https://github.com/gobicycle/bicycle and https://docs.ton.org/develop/dapps/asset-processing/ to learn more about this.

Basically, you can track incoming transactions to a specific address.

10 months ago
0 Why can the testnet go down?

Both the testnet and the mainnet are indeed decentralized systems, but their underlying purposes and uses are distinct. These differences might contribute to certain issues being more prevalent on the testnet than on the mainnet.

  1. Purpose of network: The mainnet is the primary network where real, live transactions occur, so stability and security are the top priorities.

The testnet, on the other hand, is for testing purposes. It allows developers to experiment and debug without fe...

8 months ago
0 Is there any more materials on writing those tests?

Yes, test cases are important in coding as they help validate code correctness, identify and fix errors, serve as documentation, facilitate maintenance, and increase confidence in code quality and reliability.

There are a few articles wrote by @KAL
https://blog.ton.org/step-by-step-guide-for-writing-your-first-smart-contract-in-func-2

It's a overview tutorial that brings you from zero to end writing the smart contract in FunC and also with testinYes, test cases are important in coding ...

one year ago
0 Is it possible to make pyramid-like NFT royalty scheme on TON?

The TON blockchain does not provide a built-in feature to support a pyramid-like scheme for selling NFTs where every seller gets a share from all the future resells.

However, developers can build such a feature using smart contracts on the TON blockchain. The smart contract would need to be programmed to enforce the specific rules of the pyramid-like scheme, such as the percentage of revenue that each seller would receive from future resells.

Keep in mind that pyramid-like schemes are o...

12 months ago
0 How to Properly Include Sequence Numbers in Tonweb Transactions?

Sequence numbers are used to ensure that blockchain transactions are processed in the correct order and that no duplicates are executed. When crafting a Tonweb transaction, it's important to include the recipient's sequence number in the data to prevent errors or delays in processing.

By properly managing sequence numbers and including the recipient's sequence number in transaction data, you can help ensure that your transactions are executed accurately and smoothly.

one year ago
0 What types of smart contracts are there on the TON blockchain?

Need more information to troubleshoot the issue.

At this moment, you can choose FunC and Tact as the programming languages in TVM (TON Network Virtual Machine).

For FunC, here is an overview tutorial you should check out:
https://ton-community.github.io/tutorials/01-wallet/

https://ton.org/docs/develop/func/overview

On the other hand, Tact has an easier syntax to learn compared w...

one year ago
0 What is the reason for different workchains to use account identifiers that are shorter or longer than the "standard" 256 bits used in the masterchain?

The TON blockchain is designed as a multi-chain architecture, with different workchains operating independently but also interacting with each other.

Account addresses in TON consist of two parts:

workchain_id: A signed 32-bit big-endian integer that defines a workchain.
account_id: A 256-bit internal address or account identifier that defines an account within the chosen workchain.

The passage mentions that different workchains may use account identifiers (account_id) with vary...

10 months ago
0 I am calling cell.oneFromBoc with TonWeb, what could be causing this error?

The error message you are receiving suggests that the serializedBoc variable you are passing to the oneFromBoc method is not a string. The slice method can only be called on a string, so if serializedBoc is not a string, the method will throw an error.

In particular, it's possible that the jettonWalletCodeHex variable you are passing to the new TonWeb.token.ft.JettonMinter() method is not a string, but instead a parsed boc. Make sure that jettonWalletCodeHex is a string before ...

one year ago
0 Why there is always only one shard in master-chain for any `seqno`?

First, shards are used for network scalability, the network is using one shard at the moment.

Furthermore, there is about 2 tx per second in TON currently. (In mid 2022)

One shard is able to process around 100 tps and start to split to subshards around this value. So there is not enough load for many shards. There were actually 16 shards prior 9m blocks (due to global split params) and also some spam events as well.


More detail about Share Chain can take a reference in ...

one year ago
0 Is it possible to send an internal message with 0 TON coins?

The forward fee is paid by the sending party, even if the message contains 0 TON.

Furthermore, if there is no gas credit in the internal message(the message with 0 grams arrives), you can't call accept_message in the end.

one year ago
0 Are there subscription-based payment services on TON?

Hi, this is a great question! Yes, RocketBot is a fantastic option. On the flip side, you can also try out the Wallet Plug-in with Subscriptions.

Follow the FunC code here: https://github.com/ton-blockchain/wallet-contract/blob/main/func/simple-subscription-plugin.fc

It's a general-purpose subscription contract that you can use in many scenarios. For example, people can deposit and stake on-chain in this contract, and then you can receive a subset of the monthly income transferred to ...

11 months ago
0 Are int and (int) two different types in FunC?

The return type can be any atomic or composite type, as described in the Types section above. For example, the following are valid function declarations:

Note that from a low-level perspective, value (2, (3, 9)) of type (int, (int, int)) and value (2, 3, 9) of type** (int, int, int)**, are represented in the same way as three stack entries 2, 3 and 9.

https://ton.org/docs/devel...

one year ago
0 Is there an Ethereum Remix alternative in the TON ecosystem?

Great news! You can now start your online FunC coding journey using https://ton-ide-nujan.vercel.app/. Although I hope they add support for Tact in the future, this platform is a great starting point for practicing your FunC skills.

If you encounter any issues or have questions, you can reach out to Nujan.io through their social media channels:

https://twitter.com/nujan_io
https://t.me/Nujan_io

10 months ago
0 How to check the current global gas limit?

Yes, The current gas_limit field in the limits section indicates the current global gas limit. In the above example, the global gas limit is set to 1000000000000, aka, 1 TON.

Note that the global gas limit can be changed by the validators of the TON Blockchain through the governance mechanism. If the global gas limit is changed, the new value will be reflected in the output of the getconfig command.

To check the current global gas limit for the TON blockchain, you can use the TON Lit...

11 months ago
0 How I can get transfer transaction data (hash, lt and etc...)? What is the EXTRA means when I using js-sdk

With TON and TVM, you can't obtain the hash immediately. The hash and the "lt"(Logical Time) value will only be available once the transaction has been added to a block by validators.

There are two ways to verify if a transaction has been successfully sent:

  1. Check the sequence number (seqno) of the wallet. If it has increased, the transaction has likely been sent.

  2. Check the address for the transaction. This will confirm if the transaction has been recorded on the blockch...

one year ago
0 How to install FunC plugin in Sublime or Visual Studio maybe?

You can use the Visual Studio plug-in built by the community.

https://ton.org/docs/develop/smart-contracts/environment/ide-plugins


Intellij's plugin has much more functionality besides syntax highlighting: https://plugins.jetbrains.com/plugin/18541-ton-development

There is a version for Vim as well.
https://github.com/app/func.vim

one year ago
0 What is the recv_internal function, and what are its arguments for?

each of the following recv_internal declarations is correct, but those with fewer variables will spend slightly less gas (each unused argument adds additional DROP instructions).

() recv_internal(int balance, int msg_value, cell in_msg_cell, slice in_msg) {}
() recv_internal(int msg_value, cell in_msg_cell, slice in_msg) {}
() recv_internal(cell in_msg_cell, slice in_msg) {}
() recv_internal(slice in_msg) {}

You have to parse in_msg_body to retrieve the op code based on h...

one month ago
0 What determines purity in FunC? Read/Write Functions

In the context of the FunC language, the three options define the concept of a pure function.

A pure function is a function that:

A) Only reads the values passed to it as parameters and does not access any external state. This means that its output is solely determined by its input parameters.

B) Can read values outside of the function parameters, but its output still depends only on the values passed to it as parameters. It does not rely on any external state or global data....

one year ago
0 24 secret words not forward compatible - lost assets!

It's important to understand that the discrepancy you're encountering is not necessarily due to an issue with the 24-word mnemonic seed phrase system, but could be linked to changes in the wallet software itself.

Different wallet versions might generate distinct addresses using the same public key, which doesn't imply that the underlying cryptographic security system - in this case, elliptic curve digital signature algorithm*** (ECDSA)*** - is compromised or not "future-proof".

Th...

7 months ago
-1 Does anyone knows how to hardcode an address in smart contract?

The contract address is a hash of the code's **stateInit**.

If you change the initial storage of the contract, you are changing the future address of the contract. However, the future contract address is deterministic (known before you deploy), so you can pass the address to the storage, as part of the initializations of the contract.

For example, the Tact language down below shows how I can create a stateInit code to get Smart Contract address:

contract Example {
  ...
one year ago
Show more results compactanswers
1 Votes
1 Answers
12K Views
1 Votes 1 Answers 12K Views
I'm new to TON. I know that each message in TON has its lt (Logical time) to track the order of events. But is logical time unique for each transaction or ca...
0 Votes
1 Answers
13K Views
0 Votes 1 Answers 13K Views
The fragment.com website shows some of usernames that can be bought but hides others saying "and 1.68K+ more". Is there a way to get the full list of those 1...
9 months ago
0 Votes
1 Answers
1K Views
0 Votes 1 Answers 1K Views
Tags were calculated via tlbc as follows (request_flag is equal to 0x7fffffff and response flag is equal to 0x80000000): crc32('transfer query_id:uint64 new_...
one month ago
4 Votes
3 Answers
19K Views
4 Votes 3 Answers 19K Views
If I want to hold and store a significant amount of toncoin, what options do I have and what would be the pros and cons of the various approaches from a secu...
0 Votes
1 Answers
13K Views
0 Votes 1 Answers 13K Views
Hi everione I try to understand logic of work API v4. In general I have a aim to get full graph of messages for some smart-contract call. I use next algorith...
8 months ago
0 Votes
1 Answers
9K Views
0 Votes 1 Answers 9K Views
Hi there guys, how can I make an in place replacement of the bytes in a cell? For example, if I have a cell like, begin_cell().store_uint(val, 8).end_cell(),...
6 months ago
0 Votes
2 Answers
15K Views
0 Votes 2 Answers 15K Views
Follow the docs there:https://ton.org/docs/develop/func/overview back by the code: () send_money(slice address, int amount) impure inline { var msg = begin_c...
one year ago
1 Votes
4 Answers
11K Views
1 Votes 4 Answers 11K Views
In 80%(!) of the cases the 24 secret words generated with the tpay1 wallet generate a different(!) address in newer wallets and dont(!) show wallets assets. ...
7 months ago
1 Votes
1 Answers
9K Views
1 Votes 1 Answers 9K Views
The following content appears in this whitepaper (https://docs.ton.org/tblkch.pdf): > For instance, each outbound message created in a transaction is assigne...
1 Votes
1 Answers
9K Views
1 Votes 1 Answers 9K Views
In TVM's whitepaper, we got this in Chapter 3.2.8: > Integers in cells are big-endian by default. > Notice that the default order of bits in Integer s serial...
0 Votes
1 Answers
10K Views
0 Votes 1 Answers 10K Views
As far as I understand, NFTs in TON are just smart contracts that implement a specific interface. Suppose I create a wallet, an explorer or some other produc...
6 months ago
1 Votes
1 Answers
9K Views
1 Votes 1 Answers 9K Views
I'm working on a TON smart contract that may need to store up to 4 million bits. I understand from the TON documentation that this isn't typically recommende...
6 months ago
0 Votes
0 Answers
9K Views
0 Votes 0 Answers 9K Views
Has anyone ever written test cases for Telemint (also known as the Telegram anonymous phone number)? GitHub Link to Telemint The code is quite complex. I hop...
6 months ago
0 Votes
0 Answers
9K Views
0 Votes 0 Answers 9K Views
According to the documentation, we find the commit() FunC code described as follows: Commits the current state of registers c4 (“persistent data”) and c5 (“a...
6 months ago
0 Votes
1 Answers
9K Views
0 Votes 1 Answers 9K Views
As mentioned in this question: "3) Poll for the latest transactions from the Blockchain using your wallet account ID and match the transaction using the pre-...
5 months ago
2 Votes
2 Answers
18K Views
2 Votes 2 Answers 18K Views
In TON blockchain, when implementing my dapp smart contract in FunC, my contract can accept both internal messages handled by recv_internal() and external me...
1 Votes
2 Answers
13K Views
1 Votes 2 Answers 13K Views
Is there anywhere that I can read about how many tokens were allocated to the TON foundation or similar entities in the initial release? Does the TON foundat...
1 Votes
1 Answers
9K Views
1 Votes 1 Answers 9K Views
In Blueprint, we will need to write the Wrapper functions ourselves. More importantly, when we code the op code in our FunC code, we need to decode the strin...
6 months ago
0 Votes
1 Answers
9K Views
0 Votes 1 Answers 9K Views
In the docs.ton.org, we find: > There is a necessity for the synchronization of message routing and transaction execution. In other words, nodes in the netwo...
6 months ago
1 Votes
1 Answers
15K Views
1 Votes 1 Answers 15K Views
TON uses logical time (also known as Lamport time) in messages to track the order of events. But how exactly that time is generated? --- > This question was ...
1 Votes
2 Answers
4K Views
1 Votes 2 Answers 4K Views
Hello everyone, please explain: ```` () send_message_back(addr, ans_tag, query_id, body, grams, mode) impure inline_ref { ;; int_msg_info$0 ihr_disabled:Bool...
2 Votes
1 Answers
15K Views
2 Votes 1 Answers 15K Views
I have function like this: clike () save_data_on_update(slice destination_address) impure inline { builder q = begin_cell(); builder qSliceDestinationAddress...
one year ago
0 Votes
1 Answers
3K Views
0 Votes 1 Answers 3K Views
How can I connect MyLocalTon using TonWeb? > This question was imported from Telegram Chat: https://t.me/tondev_eng/1380
0 Votes
1 Answers
1K Views
0 Votes 1 Answers 1K Views
In the Bitcoin standard there is concept called "derivation path" defined in BIP32: it is used by hierarchical deterministic wallets to derive keys. How do T...
0 Votes
1 Answers
8K Views
0 Votes 1 Answers 8K Views
I've been trying to create a simple wallet smart contract by myself to learn FunC, but my transactions keep failing with exit code 34. What am I doing wrong?...
0 Votes
1 Answers
1K Views
0 Votes 1 Answers 1K Views
Minting NFTs can be done in a randomized way. Are there random minters in the TON ecosystem with an open source code? --- > This question was imported from T...
0 Votes
0 Answers
2K Views
0 Votes 0 Answers 2K Views
Is it possible to programmatically monitor what smart contracts were deployed on TON on any given day? Not just general statistics "how much contracts were d...
9 months ago
0 Votes
2 Answers
3K Views
0 Votes 2 Answers 3K Views
I'm looking for a good tutorial to make an NFT smart contract on TON. --- > This question was imported from Telegram Chat: https://t.me/tondev_eng/10064
one year ago
0 Votes
1 Answers
3K Views
0 Votes 1 Answers 3K Views
I am using the TON API to fetch transaction data, and I have noticed some discrepancies when using the /getTransactions, /lookupBlock, and /getBlockTransacti...
1 Votes
1 Answers
469 Views
1 Votes 1 Answers 469 Views
Can anyone please tell me the usage of accept_message() in recv_internal? I saw it for the first time here: https://github.com/ton-blockchain/nominator-pool/...
one year ago
Show more results favquestions