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
13 Questions, 112 Answers
  Active since 20 January 2023
  Last activity 5 days ago

Reputation

617 + 187 this September 0 14

Badges 6

Editor Freshman 3 × Eureka! Newbie Enthusiast Scholar
1 Votes
1 Answers
2K Views
1 Votes 1 Answers 2K 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...
one month ago
1 Votes
1 Answers
2K Views
1 Votes 1 Answers 2K 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...
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...
4 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...
5 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
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...
5 months ago
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
850 Views
0 Votes 1 Answers 850 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-...
0 Votes
0 Answers
2K Views
0 Votes 0 Answers 2K 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...
one month ago
0 Votes
1 Answers
2K Views
0 Votes 1 Answers 2K 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...
one month ago
0 Votes
0 Answers
2K Views
0 Votes 0 Answers 2K 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...
one month ago
0 Votes
2 Answers
7K Views
0 Votes 2 Answers 7K 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...
7 months ago
0 Votes
1 Answers
5K Views
0 Votes 1 Answers 5K 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...
8 months ago
1 Is it possible to use a passphrase with a mnemonic seed phrase in TON wallet applications?

Currently, popular TON wallet applications like TonKeeper and TONHUB do not support adding a passphrase to the mnemonic seed phrase when creating or restoring a wallet.

This means that if you develop a wallet application that allows users to generate a wallet using a mnemonic seed phrase and an additional passphrase, users may not be able to restore their wallets in TonKeeper or TONHUB directly.

However, you can still create your wallet application with the seed + passphrase featur...

5 months ago
1 What delay to set for the transaction to finish?

In order to ensure that the first transaction has been processed and the wallet has received the TON coins before attempting to send the jetton, you should wait for a confirmation of the first transaction.

The amount of time it takes for a transaction to be confirmed can vary depending on factors such as network congestion and transaction fees. Generally, you should wait for at least one confirmation, which typically takes around 1-2 minutes on the TON network.

When sending the TON ...

6 months ago
1 How can I print out something in FunC?

In FunC world, you can type this to get the result:

var e = 123;
e~dump();
7 months ago
1 What would be the best method to check if my address received a payment with a specific message? Is 'getTransactions' method okay?

Using the **'getTransactions' **method would be a recommended approach for checking if a specific message was received by a particular address.

The TON JS Examples repository on Github offers helpful resources, including a JavaScript code snippet that can be used to retrieve a list of transactions for a specific address.

The code example can be found at
https://github.com/toncenter/examples
https://gist.github.com/slavafomin/1bcb401b5dc336bb4f9a2005b1660cbd.

6 months ago
1 Does TON support EVM compatible?

The short answer is no. EVM and TVM are fundamentally different, so it's not possible to directly transfer your Solidity code to TVM. However, it's possible that in the future, tools will be developed to enable the compilation of ABI bytecode to TL-B based on TVM.

For more information on the basic concepts and a comparison of the two blockchains, you can find additional details here: https://blog.ton.org/six-unique-aspects-of-ton-blockchain-that-will-surprise-solidity-developers.

For a ...

7 months ago
1 Why is the data empty even though I deployed the jetton contract?

It seems that the Jetton contracts are functioning correctly on TonWeb, so the issue is likely due to an error in the code deployed by the person asking the question.

Perhaps they made a mistake during the deployment process, or there could be an issue with their code. To resolve the problem, it's recommended that they carefully review their code and study the official Jetton contracts on TonWeb to identify any differences.

Through a thorough debugging process, they can identify the...

6 months ago
1 Can you explain the purpose of the "recv_internal" function in FunC? And what is the connection between FunC and Fift?

For the short answer, yes. Smart contracts are written in FunC, then compiled into Fift, and deployed on the blockchain. They can later be interacted with using either Fift or a wrapper SDK.

On the other hand, there are always 4 arguments on stack when recv_internal is called.

By declaring recv_internal with less than 4 arguments you force FunC to ignore most deep variables (they still will be there, but your code will be unaware for the whole TVM execution).

here are the ...

7 months ago
1 I'm making the request to TonCenter API, but got this error in my tx_hash.

The error message suggests that there is an issue with the transaction id hash size. The hash being used in the request might not be the expected size, causing the server to respond with an error.

One possible solution is to encode the parameters in the request, including the transaction hash, to ensure that the values are being properly passed to the server.

Additionally, double-checking the length and format of the transaction hash could also help to identify any issues.

...

6 months ago
1 Is subwallet_id the same as workchain_id in TON network?

subwallet_id is not the same as workchain_id in the TON network.

Instead, subwallet_id is a property of a contract that enables the creation of multiple wallets using the same key pair. The primary purpose of subwallet_ids is to allow for the creation of multiple wallets with a single key pair.

To clarify further, subwallet_id is a concept that is specific to the TON network and is used within a contract to create multiple wallets. By using subwallet_id, the contract can differenti...

6 months ago
1 Is there a way to transfer a large NFT collection to a new owner at once?

Great question. The short answer is no.

Because each NFT owner is locally recorded, it means you need to send a transaction to each NFT.

But luckily, you can still use a series of CLI commands to send multiple transactions to reset each NFT's owner.

Be aware that the difference between EVM and TVM is that the TON network supports sharding your contract in a scalable way. If you launch a collection with a maximum of 10,000 in circulation, then you will have 10,001 contracts: one ...

6 months ago
1 Are there examples of a random minter on TON?

Good question. Essentially, you cannot do that if you're using another data source to store the metadata outside the TON Blockchain. This is because the metadata, which includes the content of each NFT, can be easily manipulated by the project team.

This repository (https://github.com/disintar/DTN/blob/main/notes/onchain-reveal.md) presents an alternative way to implement an on-chain method for revealing the NFT content, which is more transparent and fair.

You can also refer to the NFT ...

3 months ago
1 Does anyone know or have an example how can I store a static address in FunC? Using asm

You can using something like:

const a = "Ef8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM0vF"a

You need to create a function which returns a splice. Something like this

slice fun_name() asm “x{0055bb} PUSHSLICE”

and then execute a function when you need a slice:

.store_slice(fun_name())

For more information, can check here
https://ton.org/docs/develop/func/literals_identifiers

7 months ago
1 Is there a tutorial anywhere on creating an NFT on TON?

Hi, so if you like, I highly recommend you using the NFT repo here that using Tact language for the NFT!

  • It's more easy to learn.
  • There is as simply as just pull the repo and run yarn to install library the deploy the contract.

https://github.com/howardpen9/nft-standard-template, enjoy!

3 months ago
1 Why the TonCenter API works with error here?

It looks like the initial transaction requested through /getTransactions is not in the masterchain (workchain=-1). You can try using /getBlockTransactions to look for the transaction in the basechain (workchain=0).

First, use /lookupBlock to find the block number corresponding to the transaction's Unix time, and then use /getBlockTransactions to search for the transaction in the block with the corresponding sequence number in each shard.

In the specific case mentioned, the tran...

6 months ago
1 Are there guidelines for building a dApp?

There is no one-size-fits-all answer to these questions, as the best approach may vary depending on the specific requirements and constraints of the dApp you are building. However, there are some general guidelines and best practices that can be followed when developing a dApp on TON.

One resource that may be helpful is a series of tutorials that provide step-by-step instructions for deploying contracts and writing FunC code. You can find these tutorials at https://ton-community.github.io/...

6 months ago
1 How much TPS can TON blockchain currently process?

Theoretically, the TON blockchain can process over 15,000+ transactions per second and more, thanks to its high transaction throughput design and potential to scale to millions of transactions per second through multi-chain support for scalability.

The TON network enables sharding based on the ChainID naturally, with a large number of workchains available for use, as described in the Parameters that validators are running. You can check the following link for more details: https://to...

6 months ago
1 What is the difference between the PoW giver contracts listed on ton.org and tonwhales.com/mining, and which ones are the correct ones?

The addresses listed in the two sources are different because they are encoded differently. However, they are essentially the same address. To convert the address to a "canonical" non-user-friendly form, you can use the following code in JavaScript:

new TonWeb.Address('kf-kkdY_B7p-77TLn2hUhM6QidWrrsl8FYWCIvBMpZKprBtN').toString(false);

This will convert the address to the canonical form -1:a491d63f07ba7eefb4cb9f685484ce9089d5abaec97c15858222f04ca592a9ac,
which is...

6 months ago
1 Is there a way to get more testnet coins?

Unfortunately, no.

But the best way for me is to open more Telegram accounts and call the bot from each account.

6 months ago
1 Should we be concerned about Memory usage when we code in FunC or Tact?

In TVM, memory limitations exist but may not be as strict as in the EVM. This is because the TVM is designed to be more efficient and flexible in terms of resource management. However, developers should still be mindful of resource usage when creating smart contracts for the Free TON platform.

Some considerations for memory usage in TVM:

Memory management: The TVM uses a more sophisticated memory model than the EVM, allowing for more efficient memory management. However, this doesn't me...

5 months ago
1 Can we use QR code to log-in ?(like in Metamask)

Yes, you can use many SDK/open source project shared with related way to acheive that.

  • https://github.com/ton-foundation/ton-x
    This lib can give you a connect via qr code option support with tonhub mobile wallet

  • More recently, TON community just launched the TON Connect 2.0, you can connect more better UX and working with the real-time performance of it.

Nonetheless, you can find the example with github online p...

7 months ago
1 Are there open source smart contracts for implementing an auction on TON?

Yes, you can.

Getgems.io shares a series of NFT contracts for fixed-sale, auction sale, and others, written in FunC code.

https://github.com/getgems-io/nft-contracts/tree/main/packages/contracts/sources

3 months ago
1 Is there such a thing as "derivation path" on TON?

Good question! Professionals in the industry often discuss wallets in the context of BIP32 (also known as Bitcoin Improvement Proposal), which underlies the process of how wallets are generated from mnemonics.

To put it simply, you can refer to this TypeScript file to understand how we can generate a wallet address:

https://github.com/toncenter/tonweb-mnemonic/blob/master/src/functions/mnemonic-to-seed.ts

As you can see, pbkdf2Sha512 appears to be a combination of PBKDF2 (Passwor...

3 months ago
1 What's the difference between addr, and Addr, by the way?

addr, is alias for 256u,: write 256uint.

Meanwhile full address serialization also include address format tag, workchain, 256bit part ans some additional fields.

Addr, consume from stack two elements: workchain and hash-part and handle this.


All account IDs have 256-bit address in the MasterChain and BaseChain (basic workchain).

Nowadays, only the Masterchain (workchain_id=-1) and occasionally the basic workchain (workchain_id=0) are running in the TON Blockchain.
...

7 months ago
1 How can I activate my wallet

To activate your wallet on the TON network, you will need to follow the activation process specific to the wallet you are using. The exact steps may vary depending on the wallet and the version of the TON network you are using.

It's worth noting that most wallets on the TON network, such as TonKeeper and TonHub, are now using the Wallet V4 smart contract. This is a new and updated version of the smart con...

7 months ago
1 How can I connect MyLocalTon using TonWeb?

To connect MyLocalTon using TonWeb, you'll need to follow these steps:

  1. Install your own instance of TonCenter by following the instructions in the TonCenter GitHub repository: https://github.com/toncenter/ton-http-api#building-and-running

  2. Configure your TonCenter instance to use your local TON network configuration, so it can connect to your LiteServer (LS). You can find the configuration instructions here: https://github.com/toncenter/ton-http-api#Configuration

  3. Finally,...

4 months ago
1 What is the cost to store data in the TVM TON Blockchain at this moment? And what is the difference if we using TON Storage rather than Cell?

Generally speaking, TON Storage is offline and its cost depends on the provider. On the other hand, for TON Cell, you should check the TON Storage fee.

It's important to note that TON Storage only ensures that storage providers don't receive payment if they don't store the file, but it doesn't guarantee that files are actually stored. TON Storage is more about availability than actual storage.

**As for the cost of storing data on TON, saving 1 MB of data for one year will cost approxima...

6 months ago
1 Regarding the API documentation, how can I create a new address?

I would suggest using the JavaScript library for this: https://github.com/toncenter/tonweb.

For TON JS examples, please refer to https://github.com/toncenter/examples.

Alternatively, you could try using this Python library: https://github.com/kdimentionaltree/tApi. It is a part of TonCenter for single liteserver, and an example can be found in sandbox.ipynb.

6 months ago
1 Do any randomly generated 256 bits constitute a valid Ed25519 private key?"

Yes, any randomly generated 256 bits can be used as a seed to generate an Ed25519 private key. One possible method for generating a private key from such a seed is by using a cryptographic hash function such as SHA256.

6 months ago
1 What is the inflation rate for TON?

The inflation rate for TON is not fixed and may vary depending on various factors such as network activity and the number of validators.

According to the TON whitepaper, the initial inflation rate was set at 0.6% per year, which is distributed among the validators as a reward for validating transactions and maintaining the network.

However, it's important to note that the inflation rate for TON may not be directly tied to the circulating supply or the initialized account balances. Ins...

6 months ago
1 Is it more cost-effective to use Fift instead of FunC?

Yes, it is possible to write your code directly in Fift to make it more cost-effective in terms of gas consumption. The reason is that Fift is a lower-level language than FunC, which means that it provides more fine-grained control over the code and allows for more efficient programming.

However, writing code directly in Fift requires more expertise and effort, as Fift is a stack-based language and has a steeper learning curve than FunC. Therefore, it may not be worth the effort for simple...

6 months ago
Show more results compactanswers
1 Votes
1 Answers
2K Views
1 Votes 1 Answers 2K 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
2K Views
1 Votes 1 Answers 2K 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...
one month ago
0 Votes
0 Answers
2K Views
0 Votes 0 Answers 2K 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...
one month ago
0 Votes
1 Answers
850 Views
0 Votes 1 Answers 850 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-...
0 Votes
0 Answers
2K Views
0 Votes 0 Answers 2K 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...
one month ago
0 Votes
1 Answers
2K Views
0 Votes 1 Answers 2K 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...
one month 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...
5 months ago
1 Votes
1 Answers
3K Views
1 Votes 1 Answers 3K 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...
1 Votes
1 Answers
2K Views
1 Votes 1 Answers 2K 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...
one month ago
0 Votes
1 Answers
2K Views
0 Votes 1 Answers 2K 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(),...
one month ago
1 Votes
4 Answers
4K Views
1 Votes 4 Answers 4K 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. ...
2 months ago
1 Votes
1 Answers
5K Views
1 Votes 1 Answers 5K 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
5K Views
0 Votes 1 Answers 5K 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...
3 months ago
0 Votes
1 Answers
6K Views
0 Votes 1 Answers 6K 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...
3 months 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
2 Votes
2 Answers
10K Views
2 Votes 2 Answers 10K 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
5K Views
1 Votes 2 Answers 5K 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...
4 Votes
3 Answers
11K Views
4 Votes 3 Answers 11K 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...
11 months ago
0 Votes
1 Answers
822 Views
0 Votes 1 Answers 822 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
7K Views
0 Votes 1 Answers 7K 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?...
1 Votes
1 Answers
8K Views
1 Votes 1 Answers 8K 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
1 Answers
1K Views
1 Votes 1 Answers 1K 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...
28 days ago
0 Votes
1 Answers
3K Views
0 Votes 1 Answers 3K 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...
one month ago
0 Votes
1 Answers
928 Views
0 Votes 1 Answers 928 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
1K Views
0 Votes 0 Answers 1K 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...
3 months ago
0 Votes
2 Answers
2K Views
0 Votes 2 Answers 2K 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
7 months 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...
0 Votes
1 Answers
5K Views
0 Votes 1 Answers 5K Views
Please, could you help me to understand why my TON node cant sync Load average[8]: 1.34, 1.26, 1.29 Network load average (Mbit/s): 9.44, 8.71, 48.85 Memory l...