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

Reputation

360 + 220 this June

Badges 3

Editor Freshman Enthusiast
0 Votes
0 Answers
2K Views
0 Votes 0 Answers 2K 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...
one month ago
0 Votes
1 Answers
2K Views
0 Votes 1 Answers 2K 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...
4 months ago
0 Votes
1 Answers
2K Views
0 Votes 1 Answers 2K 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
2K Views
0 Votes 1 Answers 2K 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
0 Answers
2K Views
0 Votes 0 Answers 2K Views
For example, if you examine the code in detail here: https://github.com/ton-blockchain/payment-channels/blob/e605580c3fb1feb22d80be9a0cddfcd05671c347/func/as...
2 months ago
0 Votes
0 Answers
2K Views
0 Votes 0 Answers 2K 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...
2 months ago
0 Votes
1 Answers
2K Views
0 Votes 1 Answers 2K 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...
4 months ago
5 Get result/status of transaction

In my personal experience, I would use code like this to track the result of a transaction:

=== Your Code Parameters === 
.....

console.log("============================");
console.log("Interacting with Collection Contract: \n" + contract_address);
let seqno: number = await wallet_address.getSeqno();
let transfer = await wallet_address.sendTransfer({
    seqno: seqno,
    secretKey: keyPair.secretKey,
    messages: [
        internal({
            value: toNano("...
3 months ago
3 What happens if we verify the source code in the explorer, but the contract's code gets updated using set_code() instruction?

When you verify a smart contract's source code on a blockchain explorer or website, the page generates a unique code hash for the contract. This code hash is essentially a digital fingerprint of the contract's bytecode. When someone views the verified source code on the explorer, the explorer looks up the code hash and retrieves the corresponding source code.

However, if the contract's bytecode is updated using the set_code() instruction, the code hash will change. **This means that the ...

3 months ago
2 How can I can register .ton domain name? Are dns auction contracts already public?

Yes, this is a great question!

TON DNS is a decentralized domain name system that lets you assign a human-readable name to crypto wallets, smart contracts, and websites.

Domain names are NFTs that can be stored, gifted, or sold. Auctions for domain names last for one week, and bids must be at least 5% higher than the previous bid. The highest bidder at the end of the auction period wins the domain name.

In addition, the .ton domain can be used as a multi-support gate to ...

3 months ago
2 What is the byte size of a smart contract that can be deployed on TON?

The maximum size of a smart contract deployed on the TON Network depends on the complexity of the contract and the number of cells it utilizes. In general, the size of a smart contract's Bag-of-Cells (BoC) representation should not exceed the size limit of a single shardchain block, which is 2 MB. However, practical limits for smart contracts are much smaller.

A single cell in the TON Network can store up to 1023 data bits and has 4 references to other cells. The more complex the sma...

2 months ago
2 What is `recv_internal`, and what are those arguments for?

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).


in_msg_full - cell with raw message cell that contains all the flags and additional fields

in_msg_body - slice that only contain body of the message

Please check https://ton.org/docs/learn/tvm-instruction...

3 months ago
2 In transactions, what are "compute_gas_fees" and "other_fee"?

compute_gas_fees and other_fee are fees charged by the TON network for processing smart contract transactions.

compute_gas_fees are the fees charged for the computation required to execute the smart contract code. This includes the cost of processing instructions, reading and writing data to the blockchain, and validating transactions. The amount of compute_gas_fees charged depends on the complexity of the smart contract code and the amount of resources required to execute it.

`ot...

3 months ago
2 In TON, how can we handle large amounts of data in messages? What are some techniques for efficiently storing and transmitting big data through messages?

Before we start, you need to know the message itself is sending on Cell data type in TON. Which means, each cell has a limit of 1023 bits for storing data. This limit includes the data stored within the cell and any necessary headers or metadata.

Suppose you have a message body that is 900 bits long, and you want to store it in a cell along with its message header. The message header itself will also take up some bits for storing its fields, such as message type, address information,...

2 months ago
2 Hello! I have observed an interesting behavior in wallet clients. I attempted to create a wallet using TonHub, TonKeeper, and wallet.ton.org. TonHub and TonKeeper generated the same address, while wallet.ton.org produced a different address when I used th

The reason for the different addresses generated by TonHub, TonKeeper, and wallet.ton.org when using the same mnemonic phrase is because the address depends on the wallet contract version being used.

It is important to note that v4 of the wallet contract allows for the installation of plugins, which could potentially introduce security vulnerabilities if used improperly. If you do not require the advanced features provided by v4, it is recommended that you use v3 ins...

2 months ago
2 Inquiry About Transfer of TG NFT Username and Error Code 206

That's a great question. If you check the repository URL for this NFT, which is the code in FunC, Telemint, you'll see a line of code that reads throw_unless(err::not_enough_funds, bid >= initial_min_bid);*1.

This line means that you need more funds in the NFT itself to trigger this kind of transaction in practice. In other words, "not enough funds" means that you should replenish the balance of the NFT smart contract so that there is more than 💎1.

*1: https://github.com/T...

2 months ago
2 How does the TON foundation generate income?

Good question. As a community contributor, I share this concern. The information I can provide is sourced from tonscan.org.

I w...

8 days ago
2 What is the `int_msg_info` even means here?

This is a great question! (Took me a long time to understand as well)

So basically, you are asking:

  • Why do we store the uint(....) there?
  • And why do we deal with int_msg_info over there?

1/ The message structure

To understand why we store the uint(...) in the message, you need to understand how TVM works for Message. In practice, the Message Layout shows that to "compress" the message we want to store, we must store it into a "Cell" and upload it to the smart contract a...

2 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 ...

3 months ago
1 How to get the latest block number?

Yes, you can find the latest Blocknumber in a series of API suppliers.

Or using the follow of code from orbs network

// copy paste the following snippet into your dapp client code
// to initialize your favorite TON API library and make blockchain queries

import { getHttpEndpoint } from "@orbs-network/ton-access";
import { TonClient } from "ton";

// g...
3 months ago
1 Can the rate of confirmations be increased in TON blockchain? Are exchanges requesting too high a number? Is there a way to boost transaction speed?

In the TON blockchain, once a transaction is included in the blockchain, it is considered "confirmed" and cannot be undone. Therefore, the speed at which transactions are included in the blockchain is critical for many use cases, particularly for decentralized applications that rely on fast and efficient transaction processing.

Unlike some other blockchains, such as Ethereum, the TON blockchain does not allow for dynamic adjustment of gas fees based on market demand. Gas prices are t...

2 months ago
1 What is this Election contract, and why does he have a balance greater than the stake of all validators?

The Election contract is responsible for managing the validator elections on the TON blockchain.

The reason why the contract's balance may be greater than the total stake of all validators combined is because the stake of each validator is divided into two halves, and only one half is used during the current validation round.

In order to participate in the next round, validators must make a new stake before it begins, while their previous stake is still locked.

**As a result, ...

3 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...

3 months ago
1 I've heard about "Ten Lessons" for learning FunC, where can I find them?

Yes, I am guessing you are looking for this.
https://github.com/romanovichim/TonFunClessons_Eng

On the other hand, I think
https://ton-community.github.io/tutorials/01-wallet/

is the latest, easy, multi-platform, user-friendly tutorial by the community member, go try it!

3 months ago
1 Is there an explorer for testnet?
4 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 ...

3 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...

3 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 ...

3 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.

2 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.

2 months ago
1 Can `run_ticktock` function work on a basechain?

The function run_ticktock only operates in the masterchain and it's exclusive to the smart contracts whose addresses are specified in the corresponding config parameter.

Therefore, such smart contracts cannot work on a basechain.

4 days 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...

2 months ago
1 Does Fragment have API or libraries?

Hi, from my knowledge I don't think they have!

Cheers,
Howard

4 days 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...

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...

3 months ago
1 Thegraph and Chainlink equivalent for TON network

for fetching data, you can use those API /RPC methods.

But on the other hand, I will like to recoomend using:
https://testnet.dton.io/
https://dton.io/

4 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();
4 months ago
Show more results compactanswers
0 Votes
1 Answers
727 Views
0 Votes 1 Answers 727 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...
15 days ago
0 Votes
1 Answers
447 Views
0 Votes 1 Answers 447 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
689 Views
0 Votes 0 Answers 689 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...
15 days ago
1 Votes
1 Answers
2K Views
1 Votes 1 Answers 2K 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...
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
3 months ago
0 Votes
1 Answers
449 Views
0 Votes 1 Answers 449 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
2K Views
0 Votes 1 Answers 2K 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
2K Views
0 Votes 1 Answers 2K 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
173 Views
0 Votes 1 Answers 173 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...
1 Votes
1 Answers
384 Views
1 Votes 1 Answers 384 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...
0 Votes
1 Answers
106 Views
0 Votes 1 Answers 106 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...
one day ago