11 December 2022
EA
09:57
Elshad Aghazade
thats all
JD
10:02
John Doe
In reply to this message
АТ
13:17
Антоп Топ
Ребята привет, в каком формате лучше всего записывать курс в бд? Decimal , 10,2 или 11,6
Hi guys, in what format is it best to record the course in the database? Decimal , 10.2 or 11.6
MN
13:32
Molah Nelson
MN
Molah Nelson 11.12.2022 13:27:55
If my jetton is listed on a TON Amm dex or coinmarketcap or Coingecko, will tonscan or any other Ton related explorer show the market data price of my token, just like etherscan or solscan?
J
14:22
Jérôme
Hi everyone, do you guys know if the supply informations here are accurate ? What does initiated supply mean ? Thanks a lot!
M
14:32
Mike
Is it a coincidence that TON decided to engage with a least trusted auditor among global web3 community which is Certik?
VA
15:04
Victor Ammer
Hey, we've launched a new multi-chain non-custodial wallet with TON support. We are still in early Beta with TON and some of the functionality, so happy for any feedback!

iOS
https://apps.apple.com/us/app/ammer-wallet/id1599698329

Android
https://play.google.com/store/apps/details?id=ammer.wallet
d
15:07
doni
In reply to this message
Great news !
A
15:08
Ammer Wallet
We are also starting to support TON along our entire infrastructure including Point of Sales app and web based payments.
d
15:08
doni
We met in singapore, and discussed about TON if you remeber ?
I happy to see you made progress on TON side
A
15:09
Ammer Wallet
In reply to this message
Yes, rings a bell!
N
15:09
Nick
In reply to this message
If your jetton is on TON, you can type me to list on toncap.net :)
A
15:12
Ammer Wallet
In reply to this message
Your FunC T-Shirt is hard to forget! 😅
D
15:15
DLxVagabond
When we're going to integrate Ton with Telegram and have a special feature to have profile pictures of NFTs we own similar to Twitter but just for Ton???
A
15:16
Ammer Wallet
Video file
Not included, change data exporting settings to download.
01:05, 20.1 MB
On-chain p2p payments with TON. :)
o
15:20
oxlti.qube
In reply to this message
fabulous! Btw is it legal to pay with crypto?
A
15:21
Ammer Wallet
In reply to this message
Depends on the jurisdiction. We are Swiss based, here and in the majority of the european countries it is fully legal.
15:22
Actually we already have few merchants in Zug who are ready to accept TON as a means of payment :)
N
16:23
Nick
In reply to this message
how to use nfc on ios? or is it closed function?
A
16:49
Ammer Wallet
In reply to this message
iOS restricts its nfc usage unfortunately
N
16:52
Nick
In reply to this message
so, how to use card on ios? no date/cvv to online payments for example
A
16:55
Ammer Wallet
In reply to this message
It’s not a credit card, it’s a noncustodial wallet. But we use the number as identifier for web payments etc.
N
16:56
Nick
In reply to this message
ah, okay
A
16:57
Ammer Wallet
In reply to this message
We are basically building a web3 payment network, to compete with with Visa / Mastercard. :)
N
16:58
Nick
In reply to this message
it will be in future ?
A
16:59
Ammer Wallet
It looks like a regular credit card payment for a consumer, but it uses decentralized payment infrastructure under the hood
17:00
In reply to this message
We are already live in closed beta with several merchants in Switzerland.
17:00
Dm @ammer_wallet_support if you want to be the part of the pilot.
N
17:01
Nick
In reply to this message
im from another country :)
A
17:02
Ammer Wallet
You can also check out our noncustodial merchant app (Android now, iOS is coming) https://play.google.com/store/apps/details?id=ammer.pay
MN
19:01
Molah Nelson
In reply to this message
Yes, this is what I was talking about, very interesting project
19:03
I like TON Blockchain because it's connect to telegram, in the coming years, we are going to see all various kinds of applications build on TON
19:03
It will be interesting
19:04
Because TON is not like the outdated common programming language, AKA Solidity (EVM)
19:07
In the future, I guess, we won't need to download wallet to interact with Defi, everything will be done on the telegram app
19:07
Thing like Yearn farming, liquidity mining, collateralized Dept Position
19:10
Well I'm looking to what the future holds for the Telegram Open Network, the corrupt US SEC Government, wanted to stop this innovation, but the Blockchain win
19:13
You can stop the Blockchain, because the founding fathers know that the Government were coming for it, so they scheme a mechanism that will make it harder for them to break
19:17
I'm looking forward to buying and selling a jetton on telegram, without leaving the app, it will be nice doing that slimlessly
C
20:15
Cpperg
In reply to this message
How are you doing exchange to fiat? Or are you doing it
20:15
Or is it ton to ton transaction
A
20:16
Ammer Wallet
In reply to this message
It’s ton-ton, but we can offer exchange to fiat through our swiss regulated entity after kyc etc. or the user / merchant can use any of existing providers and exchanges.
C
20:18
Cpperg
But lets say I want to take ur payment getway and use in Dubai
20:19
Can I get it and make it work from ton to fiay?
20:19
Fiat
A
20:22
Ammer Wallet
Sure, you will have to onboard with our swiss entity and we can then process fiat to your bank account. Your can dm @ammer_wallet_support for more details.
C
21:12
Cpperg
Thanks I will make sure to dm for more info
m
23:04
mr.Anonymous
In reply to this message
NK
23:07
Nikita Kuznetsov
In reply to this message
m
23:07
mr.Anonymous
In reply to this message
🤝
23:13
In reply to this message
Подскажите пожалуйста, я подготавливал проект на троне, но решил перейти на ТОН, там писал код токена и все характеристики, на TON тоже нужно писать или он автоматом все сделает? В частности хотелось бы добавить PoS, minting, burning и распределение реферальных вознаграждений. Как можно осуществить такие функции? Делаю один без программиста и программистом не являюсь, если есть пошаговые инструкции, киньте в меня ими, пожалуйста.🙏
NK
23:17
Nikita Kuznetsov
In reply to this message
Please keep english

By this service you could manully minting, burning and send jettons, for example here:
https://github.com/ton-blockchain/minter/pull/132#issuecomment-1322190364

to do more complex things, you propaly have to build service
m
23:17
mr.Anonymous
In reply to this message
Thank you!
DS
23:33
Daniil Sedov
This chat is for development related questions. Not a place for your usernames promotion
ML
23:34
Markus Livonia
In reply to this message
I wish had those username.
M
23:50
Mikhail
ubuntu 22.04
toncli error
ERROR: [Errno 13] Permission denied: '/home/fera/Загрузки/ton/func'
12 December 2022
AR
04:11
Andy Russo
In reply to this message
try chmod +x /home/fera/Загрузки/ton/func
Z
04:54
ZEETA -|| - ɴᴇvᴇʀ ᴅм ғιʀsт 🇦🇷
Hello how are you, any admins, I wanted to ask you a question!
DS
05:24
Daniil Sedov
In reply to this message
?
DS
05:32
Durga(kishan) Sharma
Can someone help me:
thrown: "LITE_SERVER_UNKNOWN: cannot apply external message to current state : Failed to unpack account state"
影9
05:57
影 999
what is it? Where can I get it
N
06:04
Nano
Hi!
06:04
I have a question
06:06
How can I use a smart contract that allows you to make a payment with another person (P2P), but that the funds are not deposited until both parties have paid?
AG
06:24
Aleks Gold
Hi Guys i find a programmer who can make a contract from another network to TON network

Good money
С
08:43
Сергей
dton.io how to connect testnet
08:46
maybe there is a blockchain event listener?
08:48
need to catch transactions with payment and change the owner of nft
A
11:34
Ammer News
By the way, we are also looking for engineers to join our team. Frontend / Backend / Mobile / DevOps / SRE. Here is one of our open positions: https://docs.google.com/document/d/1MA6czSH7F0L2B0h8SGvK52ojy5Z5axLI69TxqcVb9QM/edit?usp=sharing
S
12:40
Step
* Starting on December 13 at 12PM UTC, the price of random numbers will increase by 1 every 3 hours until it reaches 99, at which point they will be removed from sale.

does this mean after december 13, we can not buy any number for 9 ton?
only the number which have been bought till that date will be available for re-sale/auction?
FM
12:43
Freddy Myers
hey guyz, anyone heard of whiteswap dex? can u recommend?
12:56
they are having a quiz now and i wonder if anyone had deal with them?
A
15:42
Alex
In reply to this message
message me ;)
LP
16:46
Lill Pump
In reply to this message
yes, its. a new dex, but stable i quess
made several swaps already and satisfied
M
19:59
Mikhail
In reply to this message
Thanks!However, now there is a problem with the fivt...If you know what the mistake is.Please tell me
13 December 2022
L
02:20
Luke
I'm confused about how this line works. It says it loads an unsigned n-bit number, where n=64 in this case. But how do you know you are loading the variable total? Like why cant it be any other 64 bit number, or rather how does it even know what specific bits you are trying to load?
SF
02:43
Slava Fomin
In reply to this message
Each load* operation reads next n-bits from the bit-string and removes them. So you need to consecutively apply these operations based on the TL-B schema of your binary data.
D
10:43
Diako
in my website, users enter their own wallet address
How do I check that the address is correct ? ( with tonweb and ton library )
T
10:47
Tim
In reply to this message
It depends on which wallet they use. If extension - you ask to sign random payload, if tonhub/tonkeeper - you use their auth flow
D
10:50
Diako
In reply to this message
no, i have string of public key, and i want to check the public key is correct or not ?
T
10:51
Tim
Tonweb address has isValid function
10:51
But usually you want to check that user really have access to that address
AR
10:53
Andy Russo
In reply to this message
You have to specify the path to the fift interpreter
a
10:55
armin
hi when i generate wallet using 'tonweb' javascript and send testnet toncoin to address address automate return toncoin to sender??
D
10:56
Diako
In reply to this message
do you have example code for auth flow of tonhub/tonkeeper ?
T
11:00
Tim
Ton-x for tonhub
AG
11:06
Alex Golev
In reply to this message
As I understand in a several days it could be https://github.com/ton-connect for both. Isn’t it?
T
11:07
Tim
Not sure about days, but probably yes.
S
11:09
Step
is there any replacement for toncenter api?
T
11:14
Tim
Use your own, use adnl directly
S
11:26
Step
In reply to this message
i dont have big server to run big node. 🥹
T
11:27
Tim
You don't need server to use adnl
AR
12:09
Andy Russo
interesting
S
12:26
Step
what will happen if set sendmode = 128 when transferring nft ownership?
S
12:40
Siger
Hi devs! I was redirected here from the community chat. I accidentally sent the wrong amount of ton to the bsc bridge. I figured out there is a recovery parameter on the bridge which I set to true. But now I'm unsure what to fill out in the amount field. Should it be the amount I actually sent from my wallet? Or the amount that was received by the recipient (with deduction of fees)? Thanks a TON in advance! 😀
VV
12:51
Vae Victis
Hey, any way to buy from fragment automatically by executing smart contract function or it's impossible due to unique payload?
S
12:53
Step
In reply to this message
What you want to buy? Number or username?
VV
12:55
Vae Victis
In reply to this message
Anonymous number, but not manually
S
12:56
Step
In reply to this message
Random?
VV
12:56
Vae Victis
In reply to this message
yep
S
12:57
Step
It has very stricter payload
VV
12:58
Vae Victis
In reply to this message
So is it impossible to simulate it and make it automatical in any way? 🤔
S
13:02
Step
In reply to this message
it's upto your scripting skill 🤪
VV
13:12
Vae Victis
Anyone have it already implemented? 🤔 I'd rather pay for that
SF
13:34
Slava Fomin
In reply to this message
DS
15:49
Durga(kishan) Sharma
In reply to this message
anyone
F
17:08
F
@cosmicgun, reformulate your message without advertising third-party services
А
17:09
Андрей
In reply to this message
It looks like you don't have a smart contract deployed
c
17:11
cosmicgun
In some play bot, devs implement generating TON wallets, if i correctly understand this process, in them bot, but i cannot find any information how i can implement it in my project. Maybe somebody knows?
А
17:14
Андрей
In reply to this message
You should specify in what language you write.
There are libraries for working with TON, where there are functions for creating wallets. For example here is a library for golang: github.com/xssnick/tonutils-go
c
17:17
cosmicgun
In reply to this message
C#
А
17:34
Андрей
In reply to this message
I have not yet seen ready-made libraries for this language. I heard that someone was trying to start writing a library for this language. Perhaps it will be more convenient for you to communicate in another language (judging by your dual message in Russian) @tondev
c
17:38
cosmicgun
In reply to this message
wow, thx. Yeap for c# i couldn't find it either
17:43
In reply to this message
if I understood correctly i can interact with HTTP req to TON Blockchain, without any library?
&2
17:45
&rey 2ne:v
In reply to this message
Creating wallet consists of three steps:
1. Generating mnemonic (generally 24 words, but really this can be a random string)
2. Calculating key pair from mnemonic (I haven't searched this in C# but almost sure there is something similar to tweetNacl)
3. Calculating contract address from public key (this requires TON-specific code for building cells and so on). This has to be implemented.
17:47
In reply to this message
Then, to get balance you can just send HTTP request to toncenter (that's not TON Blockchain however it returns actual data about it, at least now). If you need to send message from wallet then you'll have to create signed message, serialize it in BOC format (requires TON-specific code again) and send it to network, maybe through toncenter's method sendBoc.
17:53
In reply to this message
A kind of workaround: execute subprogram written in another language that has libraries for working with TON.
SL
17:53
Sloth L
In reply to this message
IMG_0246.PNG
Not included, change data exporting settings to download.
44.1 KB
Hello, I failed to build the ton proxy image. My docker compose version is v2.12.2. How to deal with it? Sorry, I am new at this.
RG
17:56
Ruslan Gabdullin
In reply to this message
Hello, looks like you have very old cpu. Could you please send information about your ram and cpu?
c
17:57
cosmicgun
In reply to this message
moment pls
SL
18:06
Sloth L
In reply to this message
I ran it on a VPS of banwagan. The cpu model name: QEMU Virtual CPU version (cpu64-rhel6)
18:08
In reply to this message
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 13
model name : QEMU Virtual CPU version (cpu64-rhel6)
stepping : 3
microcode : 0x1
cpu MHz : 2399.990
cache size : 16384 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm rep_good nopl xtopology cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt aes xsave avx f16c rdrand hypervisor lahf_lm pti fsgsbase smep xsaveopt
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips : 4799.98
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 13
model name : QEMU Virtual CPU version (cpu64-rhel6)
stepping : 3
microcode : 0x1
cpu MHz : 2399.990
cache size : 16384 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm rep_good nopl xtopology cpuid tsc_known_freq pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt aes xsave avx f16c rdrand hypervisor lahf_lm pti fsgsbase smep xsaveopt
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips : 4799.98
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
c
18:12
cosmicgun
In reply to this message
In one game they implement 2 type of wallets. One with ingame currency and one with TON. Ton wallet looks like simple wallet but it havent any things like 24 words etc. Just number, but i think i understood how it works
SL
18:16
Sloth L
In reply to this message
RAM: 1024 MB
RG
18:21
Ruslan Gabdullin
In reply to this message
He, okay. The problem should be in army virtualisation. Currently I have no solution, can you please DM me to keep in touch?
A
18:33
Alexander
who is the best person to reach about stucked PR ? https://github.com/ton-blockchain/ton/pull/541
LK
18:45
Lyudmila Krasavina
Hi! I have an lite-client question. What's wrong with the -c param? I can't send the command with the space with it. Lite-client see only first word
M
18:51
Mikhail
In reply to this message
if you meant the fift binary file, then I prescribed a path to it.If it's something else, then I'm sorry, but I didn't understand.
DP
18:56
Dial Pr
I don't understand the platform, what does it do?
&2
18:57
&rey 2ne:v
In reply to this message
Can you execute that binary from command line? If it fails to boot, toncli can misinterpret this as lack of fift.
M
18:59
Mikhail
In reply to this message
Excuse me, but how to launch it?I'm on Linux for the second day and I don't understand a lot
&2
19:01
&rey 2ne:v
In reply to this message
Either this way:
cd /home/fera/ton

fift -V
19:01
In reply to this message
Or this: /home/fera/ton/fift -V
M
19:01
Mikhail
thx
&2
19:02
&rey 2ne:v
If everything is normal, fift should output its version. If it doesn't, then it may mean that your processor/system is outdated or something similar.
M
19:03
Mikhail
In reply to this message
he told me; Invalid instruction (memory stack flushed to disk)
&2
19:03
&rey 2ne:v
In reply to this message
So you'll either need to recompile fift by yourself (sorry, but I can't give any guidance here) or upgrade computer configuration so it supports new instructions.
M
19:06
Mikhail
thx
S
19:26
Step
LITE_SERVER_UNKNOWN: cannot apply external message to current state : Failed to unpack account state
how to solve this problem? it happens when we initiate another transaction just after doing a transaction.
is it because of seqno ?
&2
20:15
&rey 2ne:v
In reply to this message
Yes, it is related to seqno.
The external message doesn't get processed immediately at the moment it's sent - instead, lite-servers will see update approximately in 30-45 seconds. This leads to two problems:
1. seqno is not updated, and second external message uses the same number so by the time second external message gets processed, seqno gets different, and the message is rejected;
2. attempt to increment seqno client-side and send second message also fails, because blockchain nodes precheck external messages before including them into set of suggested messages (and thus before finally executing transaction and including it into chain), and at that moment seqno check fails.
L
21:34
Luke
Is there a convenient way to deal with and load strings
S
21:39
Step
In reply to this message
this error is annoying making the application not function correctly. Is there any way we can avoid it?
&2
21:41
&rey 2ne:v
In reply to this message
Two obvious choices I can see:
1. Use highload wallet;
2. Wait 15-20 seconds before sending next message (usually works, but it's better to do retry loop here).
S
21:43
Step
For retry we must re-fetch seqno or just call transfer function again?
&2
21:47
&rey 2ne:v
In reply to this message
Refetching seqno (or balance, it requires less computational resources as doesn't need to start TVM) is better.
14 December 2022
00:30
ᴜʟᴛʀᴀ ɪɴꜱᴛɪɴᴄᴛ ᴍᴀʀᴋᴇᴛɪɴɢ®️
Hi guys💪🏻
SS
00:31
Sudo Scrypt
Is there a full node desctop wallet for Ton?
К
00:35
Кутузов
In reply to this message
Hi
AG
00:40
Alex Golev
In reply to this message
I'm not sure what do you mean, perhaps this will be usefull for you.
D
00:41
Dario
In reply to this message
There is mylocalton, for testing
00:44
If you want a full node to not trust other nodes like in bitcoin, in ton there is no need to. As long you are doing all cryptographic stuff in your machine (using lite-client, for example) you will be fine.
SS
01:37
Sudo Scrypt
In reply to this message
Is there desktop app for Ton? Not mobile one but desktop?
D
01:41
Dario
yeah ton wallet has a desktop version
SS
01:48
Sudo Scrypt
In reply to this message
Is that the one which opens in the browser as a new tab?
02:25
If you need a desktop wallet, i think this is the only one out there. Sadly looks like abandoned and unmaintained, im not sure how safe it is.
SS
02:38
Sudo Scrypt
What is the issue with making good desktop wallet?
D
02:52
Dario
I think there is no one interested in building it. Once HW wallets supports came out, desktop would be basically useless
SS
02:55
Sudo Scrypt
In reply to this message
Where i can learn about HW wallets?
T
03:05
Tim
In reply to this message
Why desktop wallet can't work with hw wallet?
SS
04:24
Sudo Scrypt
Why every respectful blockchain has wallets for major platforms and TonCoin doesn’t?
B
04:38
Bel
In reply to this message
@corbendallas777 pm me bro
L
04:42
Luke
im looking at the 1st ton hack challenge, but i am confused
04:42
() execute (cell) impure asm "c5 POPCTR";
04:42
what does this line do exaclty
F
05:53
Farmer
Will ton support other elliptic curve algorithms besides ed25519?
BN
08:48
Behrang Norouzinia
In reply to this message
Puts the cell arg to c5 register, which is the register that contains the result actions of the executed smart contract.

Effectively, you can fill it to add some output actions to it and send yourself the money locked in the contract.
L
08:57
Luke
In reply to this message
thx, I have another question if you dont mind. How does this fift code send a request because from what I've read from the documentation, this only seems to output the cell into a file? How does one actually send it to the wallet
BN
08:59
Behrang Norouzinia
In reply to this message
This script creates an external message ready to be sent to the TON blockchain. You have to then send it manually. For example you can use lite-client to send this file to the network.
DS
09:55
Durga(kishan) Sharma
can someone send me test faucet?
EQDlroI_Op8wcPy5yyFfFLTYkLI1IP-Qy__tOjYlzFo-ePT6
А
11:04
Андрей
In reply to this message
S
11:07
Step
can anybody tell me what is the role of response Address in nft item transfer?

https://github.com/ton-blockchain/token-contract/blob/main/nft/nft-item.fc#L70
S
11:50
Step
In reply to this message
😫
11:51
In reply to this message
why we have response address when we already have owner address? anybody please explain.
M
11:54
Max
In reply to this message
Response address is where unused coins after transfer of nft will go
S
11:57
Step
In reply to this message
thanks 🙏
if we dont input response address , unused coins will remain with nft item owner?
T
11:59
Tim
with nft
S
12:01
Step
In reply to this message
🤔 nft item address or nft item owner address ?
M
12:06
Max
On the nft item
12:07
Owner will get coins according to forward_* params
TC
13:00
Tony Chen
In reply to this message
I see the coin type of TON was registered as 607 at https://github.com/satoshilabs/slips/blob/master/slip-0044.md. Is it the same coin?
R
14:14
Rinat | ZilPay (Will not Call or DM you)
In reply to this message
yes i saw
BS
14:17
Bart Simpson
hi, how i can generate ton address via python? from seed phrase
МР
15:25
Максим Румянцев
Hi, I'd like to know more about TON Storage.

How can I get additional info? Any chats, documentation
P
16:57
Parsa
Hi there
I have a problem
I'm on testnet and When i perform a transfer to an address, it will back to my address

For ex I transfer 1TON
It will return 0.99 TON back to my sender address

I must use an specific sendMode or what's my problem?

I use python TONSDK
&2
17:05
&rey 2ne:v
In reply to this message
You have to use non-bounceable destination address: sendMode doesn't affect bouncing of messages that were sent successfully.
S
17:07
Step
In reply to this message
convert your address to non bounceable
Address.toString(true,true,false)
P
17:09
Parsa
Thanks 🙏
S
17:09
Step
In reply to this message
17:12
i am in read only mode in ton dev russian gp. please somebody release me i dont know what lead to that action. 😏
d
17:18
doni
In reply to this message
S
17:19
Step
In reply to this message
he probably want to do it programmatically 🙂
d
17:20
doni
In reply to this message
so you need to turn the bounce bit on on the message
17:23
In reply to this message
I see in this package there is an equivlanant
17:23
wallet.address.to_string(True, True, True)
J
19:47
Javier
Hello. One question.

One validator can withdraw ~270 $TON by day if him want, right?
D
20:12
Dario
T
Tonox DeFi 14.12.2022 20:04:22
News

- Updated log2 with a better version (thanks @Gusarich!)
- Added messages.func lib that provides easy functions to craft messages. It doesn't cover everything but should be enough in most cases.

https://github.com/TonoxDeFi/open-contracts/tree/main/contracts/messages
L
21:27
Luke
I am trying to use the glitch online ide but it isn't generating the compiled json
21:27
Does anyone know how to fix
M
22:58
Malivix
Hey
I’m trying to understand ton project code
So I want to know about adnl and rdnl
Documents are not completed I think about low levels
only talked about ideas

Also I think in code adnl using tcp in many sdk (ex goton) and in documents focused on udp

I’m confused because each sdk have different approach
Also codebase in c++ is not very easy to read for me but it’s ok

I want to know adnl is based on tcp or udp?
Is adnl only abstraction and should write other implementations like rdnl? Or adnl is possible be used alone?

Sorry if my question is ridiculous I’m started today about reading code 😅
SF
23:02
Slava Fomin
In reply to this message
Actually, that's a very good question. Maybe @xssnik will find a time to answer it?
M
23:05
Malivix
In reply to this message
I’m trying to write lib for ton in rust lang🤔
So I have many other questions but for this step these are the important ones 😅
AT
23:06
Andrey Tvorozhkov
In reply to this message
Have you checked whitepaper? https://ton.org/ton.pdf
23:06
Adnl could be over UDP or over TCP
M
23:09
Malivix
In reply to this message
Yes
Because of that I’m confused
In white paper focus is udp for adnl
In official doc udp is TBD and focused on tcp
In existing sdk those libs that writes network layer in native they’re using tcp and using andl

Others are porting clib for andl or tonapi
AT
23:19
Andrey Tvorozhkov
In reply to this message
The best source I know is c++ source code, I guess docs for UDP is not ready yet thats why it’s in TBD status.

Also you can look into Everscale sources in some cases they uses exact same protocols as TON: https://github.com/broxus/everscale-network
M
23:21
Malivix
In reply to this message
Thanks for your recommendation
I will look on this repo too 😊
15 December 2022
M
00:45
Memphis
Hi Everyone!
I'm Marcin from Poland.
New Here.
It's nice to see such a crowd here.
What are you up to?
Marcin
c
00:54
cvxv666
Good evening friends
Tell me, suddenly one of you came across, im bought numbers on a fragment, and for one number the payment was deducted twice, naturally only one number came, and 13 TON were not returned to the balance. Here are the transactions and the address of the number itself in the blockchain, it now has my 13 TON on its balance sheet.
Maybe someone knows how to return these TON now. My address EQDdgjjGy7t41K8JHfQ0VbLEHf9W0rkJuHehGGLOZX2QH7mF
https://tonapi.io/account/EQBOYrtKxy6qNSoucWceflV7TgL6wuANMkj7sWtM4Mixn0nr
https://tonapi.io/transaction/8bfc99347b769a37834de318e12d00740c15e07e0f804dfabc4faa3bd92d016d
https://tonapi.io/transaction/65a4c86ebf655cfaa84c84a86f999304fbe357d91e441c58e6de7290d537ea3c
01:21
√Punktivism!
Hi
Does ton have atomic composeability?
J
04:34
Jérôme
Hi everyone, do you guys have any experience configuring Tonkeeper with locked up coins ? looking for some help to setup the config file
S
06:42
Step
In reply to this message
what you mean by config file?
OB
06:49
Oleg Baranov
In reply to this message
Hey,
ADNL has 2 types: TCP and UDP, TCP is used only for communication with liteserver (node API), UDP is used on internal level for communication between nodes.

Other protocols like DHT and RLDP are based on ADNL UDP and ADNL can be used alone also.

I have implementation of both ADNLs, RLDP and DHT in tonutils-go, you can check the code here, I think it should be easier to read than c++ 🙂

Also you can read documentation about internals, with examples. It is in russian, but google translate should help 🙂
&2
07:17
&rey 2ne:v
I've submitted a TEP, and it seems it got stuck a bit. Is that OK?
The proposal is deterministic subwallets - generating different key pairs from a single mnemonic (24 words combination) to disallow tracking different wallets to belong to a single owner.
https://github.com/ton-blockchain/TEPs/pull/101
AE
07:22
Am Envelope
Is tvm under development?
J
08:09
JS
Good to be here
DS
08:14
Daniil Sedov
In reply to this message
It's complete already. And may be updated in future
SJ
09:53
Samuel James
The venture funding, is it a must to submit an MVP demo link for preseed?
M
10:07
Malivix
In reply to this message
Thanks man
I will check the doc
But you answered the main question 😁
AT
10:10
Andrey Tvorozhkov
In reply to this message
The doc is awesome
TC
10:14
Tony Chen
Hi, is there a explorer for testnet?
N
10:28
Namor
Hello Ton Dev! Have you guys consider to put Toncoin in Crypto.com please. I am from Singapore and it's difficult to buy TonCon from here
DS
12:58
Durga(kishan) Sharma
Hello Team,
What Algorithm TON blockchain is using? is it EDDSA?
А
13:05
Абубакр_Ёлкинович
Hi
VM
13:20
Vardan Meliksetyan
Hi Ton Dev community, I would like to ask, are their WordPress/WooCommerce plugin which support ton coin?
MN
14:53
Molah Nelson
In reply to this message
Buy it in Uniswap or Pancakeswap
DS
15:43
Daniil Sedov
In reply to this message
What's your wallet address?
m
15:44
majed.eth
In reply to this message
i'll dm you
M
16:36
Malivix
In reply to this message
In c++ implementation
ExtClient , ExtServer ,…
Is for litenode?
It’s seems for lite API ton used these

And I have a specific question about Actor module
Do we have documentation about Actor implementation?
Because I’m swimming in code and many things happened by actor so I’m trying to understand actor module 😅
АТ
16:37
Антоп Топ
TON QR Coder – can I train? For example, I entered the amount, 100 ton, into the imput field, clicked pay and a QR Coder was generated and exited. Link the payment to the wallet, to the QR Coder wallet for payment and the amount.
M
17:03
Mike |
Hi guys, is there any news about the gas-fees on the blockchain?
SF
17:31
Slava Fomin
This chat is for engineering question only. Please abstain from asking auction/Fragment related questions.
z
17:57
zzss
Hello everyone. Can you help me. Is it possible sell and buy Fragment phone numbers via api?
H
18:13
Howard Peng
any smart contract code in example can learn?
D
18:57
DrJ
hi all i am new here. can anyone direct me a link for example for ton smart contract ?
BN
19:09
Behrang Norouzinia
In reply to this message
There are 2 sites that I know of:

- https://testnet.tonscan.org/

- https://testnet.ton.cx/
L
19:18
Lerino 😊❤️
How to transfer From ton wallet?
19:22
In reply to this message
Pls??
OB
19:52
Oleg Baranov
In reply to this message
Ext is about adnl tcp, yes

Not sure about actor docs, but it is like a wrap for entities, which can manage async events and can be destroyed, as i remember
AT
20:15
Andrey Tvorozhkov
In reply to this message
Today we have launched https://testnet.dton.io/ 💻
JD
21:35
JRod D
Hello, Back in Sept I lost over 300 Toncoin using the Ton Eth Bridge. Can someone help me here to recover this lost transaction?
21:36
I have the wallet address's to look into and hopefully we can find it on block explorer
SF
21:52
Slava Fomin
In reply to this message
21:54
Jarrod please use the support bot. This is not the place for TON bridge support.
16 December 2022
?A
00:25
🇷🇺 Angry Hacker
Hi there!
L
01:18
Luke
How do you print varaibles
JD
01:18
John Doe
In reply to this message
~dump(smt);
H
01:31
Hamidreza
In reply to this message
On the toncli build of the ton tools, it raises an error as an unknown function 🤔
H
01:56
Howard Peng
is there place like Ganache for local testnet testing?
L
02:02
Luke
Im trying to download fiftlib.zip, but it says "Not Found". Is there a new link
L
03:03
Luke
does anyone have a good tutorial on lite-client
K
03:13
King
hi,I am a ambassador and marketer, with two years of experience in marketing and guidance and moderator, in Telegram, conditions for I can create a local association. What is your opinion, who should I talk to?
L
04:34
Luke
how do you give input with ton-contract-executor in js, because it says stackInt is undefined
A
06:59
Ama ✨ lux8.net
Is there a dedicated group for ton Validators?
H
07:27
Howard Peng
In reply to this message
Hi, how to move and put extension wallet to test net?
BN
07:40
Behrang Norouzinia
In reply to this message
If you want to use the TON Wallet browser extension on the testnet, go to its menu, then "About", and then Shift+click on the version string.
H
07:41
Howard Peng
In reply to this message
oh!!!!! Thanks a lot
07:42
just deployed the contract, can you give me some testnet TON?
BN
07:44
Behrang Norouzinia
Use this bot:

https://t.me/testgiver_ton_bot

I checked it now, and its working.
H
07:46
Howard Peng
In reply to this message
So in TVM, I still can send the Tx to deploy the contract even tho I don't have any TON to pay the gas?

But the tx is never get executed, until I have the TON in my Wallet(contract)?
BN
07:50
Behrang Norouzinia
When you create a wallet (or any other smart contract) for the first time, you'll given the potential address of it on the network, but nothing is deployed yet. To deploy it, you have to first increase the balance of this address, by sending some TON to it (using a non-bounceable tx, so it doesn't return back to the sender, because there is nothing there yet). Then, after the address has some balance of TON, you can finally deploy it on the network which consumes the TON on that address to get deployed.
H
07:57
Howard Peng
T
07:58
Tim
In reply to this message
it can, it has another app called sandbox
L
08:05
Lerino 😊❤️
In reply to this message
How to withdraw this pls??
BN
08:06
Behrang Norouzinia
Send /get command to the bot, it asks for your address, and then sends you 2 TON on the testnet.
L
08:11
Lerino 😊❤️
Yes how to withdraw the ton coin in the testnet?
H
08:24
Howard Peng
I don't know why TonHub can't support me paste the wallet address in recipent
BN
08:26
Behrang Norouzinia
This is not TonHub. This is TON Wallet.
L
08:28
Lerino 😊❤️
?
08:28
⚝ 𝑴𝛂𝒉𝒅𝒊 ⌲
Hello
I bought number in
https://foxtails.io/gallery
but I didn't receive number NFT,
What is "Contract Deploy"?
08:28
In reply to this message
H
08:33
Howard Peng
In reply to this message
they supposedly can connect right?
BN
08:53
Behrang Norouzinia
In reply to this message
Sorry, I haven't worked with it, and I can't help here.
&2
09:42
&rey 2ne:v
In reply to this message
I think you can ignore "parse transfer URL error" as for me wallet can transfer money even if this error is present.
_
10:24
_kim0su
is there a useful resource for beginner?
RK
10:56
Roman Krutovoy @work
In reply to this message
D
13:26
Diako
How can i verify my project on ton.app ?

@tonpartisan

https://ton.app/nft/tonpartisan
H
16:08
Hartmann D.
In reply to this message
Please find the contacts at their web site and submit your product.
LC
16:29
Liza Chernyagina
Hey guys! Mark, Daniil and I are preparing an online course on programming for TON in FunC smart-contract language.

Course Outline includes both FunC programming as long as basics of building Web 3 apps (dAPP, TWA).

We would really appreciate your feedback, as your experience could guide us towards creating the best course possible.

Here is a form with list of questions. We are collecting responses by December 22 (Thursday)
z
17:22
zzss
Hi guys. I have a question about the one part of code from this library

https://github.com/toncenter/tonweb

For which purposes this part of code, guys?
VA
17:49
Vladislav Ainshtein
Hi devs. I need help with minting an NFT collection. I have all the attributes (layers) rednered but i still need to render full collection and mint it with all the attributes. I assume this work can be done easily with ton-cli (https://github.com/disintar/toncli/tree/v0.0.4) but I still need help.
I can pay for work with royalties from collection or other ways (discuss in dm)
DM me if you are interested.
Thanks in advance)
r
19:45
r4mze5
hi guys, how do you deploy data of transaction? Need using BOC?
CW
20:43
Chun Hsin Wang
Hi everyone,

I'm trying to setup a archival node following this instruction:
http://anode2.ton.swisscops.com/
but I'm not getting luck on the username:password for the dump files, been asking for access in tg chat for few days.

My question is, is the dump files necessary for running an archival node? or is it just for speeding up the syncing? if it's necessary, is there any place I can have acess to other dump files?
Any help would be apprciated, thansk!
17 December 2022
SM
00:06
Sh Ma
Hello
Z
00:18
ZEETA -|| - ɴᴇvᴇʀ ᴅм ғιʀsт 🇦🇷
In reply to this message
Hello, how are you? I sent you an association email a few days ago and I have no answers. Could you tell me who I can talk to?
ZA
03:21
Zarakhsh Amiri
Hi
BN
08:05
Behrang Norouzinia
In reply to this message
To talk to smart contracts on the TON network, you have to use the Cell data structure. You have to write it bit by bit (not bytes) and create it. To send it to the network you have gather all cells together in a BOC (Bag Of Cells) format.
EA
08:29
Elshad Aghazade
hello guys. Who knows how to convert address to slice in func? I want to set custom address in cell but first of all I have to convert string wallet address to slice somehow. I don't know how
AT
08:57
Andrey Tvorozhkov
In reply to this message
.store_slice("Ef8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM0vF"a)

;)
EA
08:59
Elshad Aghazade
In reply to this message
thanks a lot )
R
10:36
Rahil
Hi,
have a quick question.

What is certificate for ton used for?
What is certificate for ? How can we get it ?
Д
13:34
Диёрыч
I have a problem with installation fift on MacOS:

I took compilled binary from gitbhub and placed it in /usr/local/bin with "chmod +x fift" . I don't get fift version but see commit. Could anybody help me with this? :)
VA
14:53
Vladislav Ainshtein
Hi guys. Do you know where to find docs about minting NFT collection + minting multiply items in this collection
v
14:57
vns91
Hi! How can I find out the cost of NFT at its address? On tonapi.io there is a method "/v1/nft/GetItems" which, according to the documentation, should additionally add the key of the "sale" object, but it does not do this. NFT is definitely on sale.
M
15:45
Mark Okhman on TON
15:45
15:45
where can i get a working one?
z
16:39
zzss
Do anyone have experience with buying Fragment numbers via api? I have few questions and ready to pay few TON coins
C
16:51
Citizen 2077
gm - gn everyone.
Y
16:59
Yuri
Hey guys, I'm getting this error when trying to compile func to fift:
16:59
Seems to be something with comments
MD
17:32
Mikel Dorados
Hello, have anybody built ton on ubuntu 21+?
17:34
I have 21.10 and got errors on compile
s
17:36
shahar
In reply to this message
I’ve built func and fift on 22.04 successfuly
MD
17:38
Mikel Dorados
In reply to this message
without any problems with libssl-dev?
RG
17:39
Ruslan Gabdullin
In reply to this message
Could you please provide more info about errors?)
s
17:40
shahar
In reply to this message
Yes. Where did you get the list of dependencies to install?
MD
17:40
Mikel Dorados
17:42
In reply to this message
something like that
17:46
In reply to this message
I just moved through instructions here - https://github.com/ton-defi-org/ton-binaries, and had problems with install this lib, so i found workaround to install it
RG
17:58
Ruslan Gabdullin
sudo apt install build-essential cmake clang openssl libssl-dev zlib1g-dev gperf wget git curl libreadline-dev ccache libmicrohttpd-dev
17:59
Try to install this libraries and perform clean build
18:00
Build command:
export CC=clang
export CXX=clang++
cmake -DCMAKE_BUILD_TYPE=Release .. && cmake --build . -j$(nproc)
Z
18:03
ZEETA -|| - ɴᴇvᴇʀ ᴅм ғιʀsт 🇦🇷
In reply to this message
Hello, how are you? Who can I contact for association issues?
18:08
I sent an email, but no response
18:09
In reply to this message
I can send you a DM
MD
18:09
Mikel Dorados
In reply to this message
I have error when try to install clang
18:09
libc6-i386 : Depends: libc6 (= 2.31-0ubuntu9.9) but 2.34-0ubuntu3.2 is to be installed
s
18:09
shahar
In reply to this message
You would have succeeded with ubuntu18.
There’s a security flaw in libssl-dev which is why it’s not offered on ubuntu20+.

I think the library you should be installing instead is called libssl-1.0.

I can check that for you a bit later though.
RG
18:10
Ruslan Gabdullin
In reply to this message
sudo apt update?
18:10
Looks like repositories info not updated
18:10
I've tried to launch docker with ubuntu21.10 and it fails
MD
18:15
Mikel Dorados
In reply to this message
Yes, here problem with libcrypto-1.0.0, i got libssl-dev, but on ubuntu 19 they update to libcrypto-1.1, so compiler fails
18:15
I start to think I need VM for this))
RG
18:21
Ruslan Gabdullin
It can be built with libssl-dev version 3
18:22
In reply to this message
Or a docker. It would be even better)
SF
19:04
Slava Fomin
In reply to this message
Please contact the @ton_help_bot and stop bugging people in the chat. Thank you.
Z
19:23
ZEETA -|| - ɴᴇvᴇʀ ᴅм ғιʀsт 🇦🇷
In reply to this message
oh how rude you are, I thought they were professionals
MD
19:30
Mikel Dorados
In reply to this message
Thank you, I decided to install it on mac for the first))
RG
19:32
Ruslan Gabdullin
In reply to this message
If you decide to use Docker, check the repo: https://github.com/kdimentionaltree/ton-builder
H
19:37
Howard Peng
In reply to this message
okok
19:42
In reply to this message
same smae
RG
21:03
Ruslan Gabdullin
In reply to this message
Please, visit @ton_help_bot.
This chat is for development questions.
?
23:38
𝕖𝕊𝕒𝕓𝕚𝕥
Hey 👋🏻 is there a list or summary with different projects/bots/stores/games utilizing the ton wallet integrated in telegram?
18 December 2022
H
06:01
Howard Peng
hi where can check daily active Txs on TON?
Y
06:17
Yuri
In reply to this message
Someone, any clue? I downloaded again the binaries and still getting the same problem
H
07:17
Howard Peng
can't understand this part lol

Using docker to code FunC is a disaster if you are using M1 Mac.....
AT
07:24
Andrey Tvorozhkov
In reply to this message
Why?
07:24
In reply to this message
H
07:25
Howard Peng
In reply to this message
which means every time I want to run the code need have to run by Docker?
07:26
those commend lines is not quite convenient. I would rather use Tact tho. https://t.me/tactlang
AT
07:27
Andrey Tvorozhkov
In reply to this message
You can compile sources for toncli locally, it’s not that hard. But we working on crossplatform information for package managers, soon you will be able to do brew install ton and use it in toncli.
H
07:28
Howard Peng
In reply to this message
yeh, totally
07:28
that would be great!
AT
07:29
Andrey Tvorozhkov
In reply to this message
It’s currnetly not working and freezing. If Tonkeeper or Tonhub team will create working version of tact we will support it in toncli.
H
07:29
Howard Peng
In reply to this message
I tried to deploy the contract, but then I can't test it out locally or send TON properly to minitor the tx or do the next step. Like Ganache, or localhost like hardhat...
07:31
In reply to this message
understood. any TBD for local Func for M1 mac support?
AT
07:32
Andrey Tvorozhkov
In reply to this message
Try local test engine: https://github.com/disintar/toncli/blob/master/docs/advanced/func_tests_new.md

There are many examples of good local tests in default projects like toncli start nft_collection
H
07:33
Howard Peng
In reply to this message
oh, but I can't run toncli locally, right? (M1 chips)
AT
07:35
Andrey Tvorozhkov
In reply to this message
The easiest way is to use docker, or you need to compile TON from sources
07:36
In docker you just mount local directory with projet & config, and it’s running toncli on those project
H
07:48
Howard Peng
In reply to this message
😵‍💫 yes, I follow the tutorial for docker there. Can't find the files in /local/ tho, since I think I deploy successfully tho?
M
07:59
Malivix
In reply to this message
I think if you reading next paragraph it’s clear
It’s not in /local/
It’s depends on what path you sent to docker for binding as config folder
08:02
In reply to this message
About toncli
I compiled all of ton project with M1
I didn’t get any issues
There isn’t very clear doc, I agree
But for M1 build you can check https://github.com/ton-blockchain/ton/blob/master/.github/workflows/macos-10.15-compile.yml
H
08:09
Howard Peng
In reply to this message
08:10
In reply to this message
thanks. Let me check!
08:10
In reply to this message
what is this for?
08:11
In reply to this message
I am adding 'Dev' folder we just got in tutorial to the Docker sharing already btw.
M
08:11
Malivix
In reply to this message
You should send valid path
/path/to/…
Is not valid path
You should create a valid path and store config there then sending config folder to docker
08:13
In reply to this message
🤔 github action for compiling on mac
H
08:14
Howard Peng
😵‍💫
08:14
In reply to this message
not familiar lol
M
08:17
Malivix
In reply to this message
Yes it’s hard
You should familiar with c++ and toolchains or docker
But It’s temporary I think
Community is working on creating better dev envs
H
08:20
Howard Peng
agree. Using Docker is temporary only because of M1 chips right.
08:35
In reply to this message
can we just have a daily trend for tx? 😅
T
09:20
Tim
In reply to this message
No, it works on m1 without docker, it's just hard to compile not matter m1 or not
M
09:41
Mustafa
Indian anyone here
09:42
We need last quantity toncoin
D
10:34
Diako
I wrote data to cell with bellow code with ton library. but i don't know that how can i read from cell ?
cell.bits.writeUint(1, 8);
cell.bits.writeBuffer(....);
M
10:53
Malivix
In reply to this message
Try cell.fromBoc
If it’s Boc
10:56
In reply to this message
10:59
In reply to this message
For deserialization



// Create some cells
const c2 = new TonWeb.boc.Cell();
c2.bits.writeUint(42, 7);

const c3 = new TonWeb.boc.Cell();
c3.bits.writeUint(73, 255);

const c1 = new TonWeb.boc.Cell();
c1.bits.writeUint8(0);
c1.refs.push(c2);
c1.refs.push(c3);

// Check it deserialized correctly
const deC1 = TonWeb.boc.Cell.fromBoc(await c1.toBoc());
(await deC1.hash()).toString() === (await c1.hash()).toString();
D
11:03
Diako
In reply to this message
Thank you for response
i use tonstarter-contract project

I have something like this.

let ts = new TupleSlice(c1.stack);
let content = ts.readCell();
let content_bp = content.beginParse();
content_bp.readUint(8).toString()

i already read uint but i can't read buffer data !
M
11:05
Malivix
In reply to this message
Can you send me repo project?
11:11
In reply to this message
I think that project using ton package
So after parsing content you will get Slice
You can use
content_bp.readBuffer(size);
D
11:11
Diako
In reply to this message
I don't know what is the size !
11:12
In reply to this message
yes, it's use ton library
M
11:13
Malivix
In reply to this message
When you are reading from buffer you should read specific amount of it
Depends on your cell type you have read different amount
D
11:19
Diako
In reply to this message
The problem is, i don't know the buffer size
i want to read content data from a nft collection contract ( get_collection_data function )
k
11:27
kås
What is the best way to get txid of sent transaction?

In two steps like Async send with comment + later check for the comment in transactions list?

Or sync send?
M
11:31
Malivix
In reply to this message
can you send me the lib you are using for get_collection_data?
different contract can have different data
D
11:32
Diako
In reply to this message
i use tonstarter-contracts
with this function
const call1 = await walletContract.client.callGetMethod(contractAddress, "get_collection_data");
H
11:51
Howard Peng
In reply to this message
tried a bit but still can't work 😭
M
11:52
Malivix
In reply to this message
You didn’t pass data for that folder
11:53
In reply to this message
I didn’t work with this contract so I’m investigating
If find something i will let you know
?
11:54
𝕖𝕊𝕒𝕓𝕚𝕥
In reply to this message
Anything? 🙂
H
11:54
Howard Peng
like this?
11:54
AG
12:03
Alex Golev
In reply to this message
The docker doesn't explain how to use it. It is assumed that you learn this from other sources or already know. Therefore, I suggest you try to act according to that lesson.
H
12:13
Howard Peng
In reply to this message
yes, but still need toncli?
12:13
In reply to this message
AG
12:15
Alex Golev
In reply to this message
As I see you little bit confused with commands, here’s an example of how “update_libs” looks in first time in docker.(M1)

alexg@Aleksejs-MacBook-Air tsc-3-solution % docker run --rm -it \
-v ~/Dev/tsc-3-solution:/code \
-v ~/Dev/toncli/:/root/.config \
toncli-local update_libs


INFO: 🥰 First time run - i'll create config folder 4you and save some stuff there
INFO:
🤖 Check all executables are installed...
ERROR: [Errno 13] Permission denied: '/code/func'
WARNING:
🤖 Can't find executable for func, please specify it, e.g.: /usr/bin/func

Path: /usr/local/bin/func
INFO: [' Commit: e37edfb6ab699dc7b430b458ac78c87acf4920f0', ' Date: 2022-10-03 22:36:45 +0300]']
ERROR: [Errno 13] Permission denied: '/code/fift'
WARNING:
🤖 Can't find executable for fift, please specify it, e.g.: /usr/bin/fift
Path:
/usr/local/bin/fift
INFO: [' Commit: e37edfb6ab699dc7b430b458ac78c87acf4920f0', ' Date: 2022-10-03 22:36:45 +0300]\nThis is toncli-local version of Fift']
WARNING:
🤖 Can't find executable for lite-client, please specify it, e.g.: /usr/bin/lite-client
Path:
/usr/local/bin/lite-client
INFO: [' Commit: e37edfb6ab699dc7b430b458ac78c87acf4920f0', ' Date: 2022-10-03 22:36:45 +0300]']
INFO:
🥰 Feel free to change it if needed: /root/.config/toncli/config.ini
INFO: Succesfully copied fift-libs func-libs test-libs
H
12:18
Howard Peng
In reply to this message
input Path: /usr/local/bin/func

then got this. Seems correct now!
12:19
In reply to this message
Thank you a lot!
12:30
$docker run --rm -it \
-v ~/Dev/test_project:/code \
toncli-local build

I run with this code to compile the .func file. But seems it doesn't work?
M
12:37
Malivix
In reply to this message
so what I see
after calling that function
you will get this type of data like this
{
gas_used: t.number,
stack: t.array(t.unknown)
}

after that stack should be
(next_item_index, cs~load_ref(), owner_address)
with type of
(int, cell, slice)

so I think you should write something like this
const call1 = await walletContract.client.callGetMethod(contractAddress, "get_collection_data");

let ts = new TupleSlice(call1.stack);
let next_item_index = ts.readNumber();
let content = ts.readCell();

after this, it's depends on the type of content
AG
12:47
Alex Golev
In reply to this message
Perhaps you need to check your project.yaml, maybe you have nothing to build.

For the default “wallet” project from toncli this command creates contract.fif.

alexg@Aleksejs-MacBook-Air test_for_build % docker run --rm -it \
-v ~/Dev/test_for_build:/code \
toncli-local build
INFO:
🥌 Build [] successfully, check out ./build
12:47
In reply to this message
H
13:09
Howard Peng
In reply to this message
Oh. I thought 2 different .func files will generate 2 different .fif file.

The experience for dev on-boarding is painful 🫠
13:10
😂 Thanks a lot for clarifying
yd
15:38
yeah dark
Which one of you would like to mentor me a little bit?
I just want to some practice in Smart Challenge , but difficult for me to understand after classic langauges and have't enought time.
Write me in private message.
D
16:01
Diako
In reply to this message
Thank you

I have problem with type of content !
as i told, there is uint and buffer in content !
i don't know how read buffer from content
D
16:01
Dik
Hi
M
16:06
Malivix
In reply to this message
It's depends on each nft
There is not any specific content
You can read data and depends on nft parse them
For buffer you can check length of slice and read all buffer
If content is big there are many ref cell and you should concat all buffers

Maybe I’m wrong
But this is what I’m find from contract code
16:11
In reply to this message
Also if you know the structure of buffer
You can do this
content_bp.readUint(8)
let l = content_bp.remaining()
content_bp.readBuffer(l)

Something like this
But if content is big and have ref
You should traverse on slices and concat them
16:13
In reply to this message
I found another function
content_bp. readRemainingBytes()
k
16:42
kås
Hey guys! Hot to properly send full balance from a given wallet? How to calc fee in advance? I want the final balance after activation to be zero.

When testing and trying to send full balance (1 TON for example) I got some weird balance drainage, 50+ internal transactions and no incoming transaction.

I’m using V4R2 and xssnick/tonutils-go library is this is important
&2
16:49
&rey 2ne:v
In reply to this message
Send message with mode 128 ("carry all the remaining balance").
If you wish also to destroy contract, use mode 160 (+32 = "destroy contract if balance is zero").
k
17:02
kås
In reply to this message
Thanks a lot! Will try now.

Found this exact message at the js example now. Should look better next time I guess

https://github.com/toncenter/examples/blob/main/deposits-multi-wallet.js
MP
17:48
Maxim Patsyuk
my binaries (fift, func, lite-client) are now in /usr/local.bit - 2 point done
but i see fift: command not found when i do 3 point - sudo fift -V && func -V && lite-client -V

what is missing?
17:48
Д
17:49
Диёрыч
In reply to this message
Welcome to the club buddy. I haven't resolved this problem yet) Have the same issue on MAC)
17:50
In reply to this message
binarie's path should be /usr/local/bin
17:50
and yours is like /usr/local.bit
MP
17:52
Maxim Patsyuk
In reply to this message
Looks good in my opinion
Д
17:53
Диёрыч
In reply to this message
sorry, misunderstood)
DS
18:08
Dmitry Shanin
In reply to this message
Is ~/.local/bin in your $PATH ?
Anyway, try ./fift -V && ./func -V && ./lite-client -V
from that directory (you don't need sudo here, btw)
18:17
In reply to this message
Also,I guess, you should make chmod +x for func and lite-client as well.
D
18:19
Diako
In reply to this message
content_bp.readRemaining().buffer.toString();
Or
content_bp.readRemainingBytes().toString();
D
18:23
Dmitriy
hi. Does someone knows is it valid guidline? https://github.com/disintar/toncli/blob/master/INSTALLATION.md
18:23
i've installed toncli by this instruction and faced with some error. Can someone explain the reason?
AG
18:26
Alex Golev
In reply to this message
It is hard to see anything, but it seems like same issue https://t.me/tondev_eng/15218
D
18:29
Dmitriy
In reply to this message
M:\TON\ton-win64-binaries>pip install bitstring
Requirement already satisfied: bitstring in c:\users\win10_game_os\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (4.0.1)
18:31
but in the install guide toncli there is not ask for install some bitstring
p
19:01
p3rzifale 💎
Hey 👋
1) Should I study C to properly understand FunC?
2) How should I start my journey to write smart contracts in FunC?
AT
19:07
Andrey Tvorozhkov
In reply to this message
You need to install specific version,

pip install bitstring==3.1.9

It will be fixed in new release very soon
T
19:11
Tonox DeFi
In reply to this message
* If you need libraries / examples, check github.com/TonoxDeFi/open-contracts
JD
19:12
John Doe
In reply to this message
just a question, why strings.func is empty?😢
T
19:13
Tonox DeFi
In reply to this message
I have plan to add functions in the future, i have already some written (like int to string hex rappresentation and so on) that will be uploaded soon
19:14
Also soon base64 function will be added (check pr)
Z
20:50
Z
hi
20:50
Hello, I would like to translate you into Brazilian Portuguese, can you send me a file with the phrases for me to deliver?
M
20:55
Malivix
In reply to this message
Second one I think
D
21:01
Diako
In reply to this message
both works
M
21:02
Malivix
In reply to this message
So everything is good?
D
21:05
Diako
In reply to this message
Yes, Thanks.

I have another problem !
i call this function : get_nft_address_by_index
and it's get me this

73946329655849735808778334732540589146672953920511584036795979319453593787421

0:73946329655849735808778334732540589146672953920511584036795979319453593787421

do you know how convert it to wallet address ( like tonkeeper wallet address ) with ton library ?
M
21:14
Malivix
In reply to this message
Did you try .readAddress?
D
21:19
Diako
In reply to this message
it's not working


bellow code is in contract :
return begin_cell().store_uint(4, 3)
.store_int(wc, 8)
.store_uint(cell_hash(state_init), 256)
.end_cell()
.begin_parse();
M
21:22
Malivix
In reply to this message
Then using this function
Address.parse
21:23
In reply to this message
You can find this from address module in ton
D
21:25
Diako
In reply to this message
let ts2_wc = ts2_parse.readInt(8).toString();
console.log("wc : ", ts2_wc)
let ts2_cell_hash = ts2_parse.readUint(256).toString()
console.log("cell_hash(state_init) : ", ts2_cell_hash)
console.log(Address.parse("0:" + ts2_cell_hash))


i have error on Address.parse : offset is out of bounds
M
21:30
Malivix
In reply to this message
Try this new Address(ts2_wc, hash);
SA
21:33
Sauly Aries
Woot woot ... What kind of chain we runnin here ?
D
21:39
Diako
In reply to this message
it's works

let ts2_wc = ts2_parse.readInt(8);
console.log("wc : ", ts2_wc.toString())
let ts2_cell_hash = ts2_parse.readUint(256);
console.log("cell_hash(state_init) : ", ts2_cell_hash.toString())
console.log(new Address(ts2_wc.toNumber(), ts2_cell_hash.toBuffer()).toFriendly())
M
21:41
Malivix
In reply to this message
😊 great
D
21:47
Dmitriy
In reply to this message
spasibo ))
z
21:55
zzss
Hello guys. I am using tonweb library for JS and want to decode transactions data. Can you help me how to decode transactions data?
d
22:01
doni
you can use parseTransaction
by npm ton ( not tonweb)

look for the tests folder for good examples
z
22:06
zzss
In reply to this message
Thank you
19 December 2022
N
01:08
Nur Nur
Hello
z
01:21
zzss
What is this type of data? Can it be decrypted?
А
01:24
Андрей
In reply to this message
b5ee9c72 - it's BOC prefix
Perhaps this instruction will help you (you will need a translator):
https://github.com/xssnick/ton-deep-doc/blob/master/Cells-BoC.md

the circuit itself:
https://github.com/ton-blockchain/ton/blob/master/crypto/tl/boc.tlb#L25
S
07:08
Step
Can nft item owner access it's account balance/funds inside it?
V
07:19
Vladislav
Hi guys! Could you please tell me how you calculate transfer fee?
Y
09:44
Yuri
Hello, what would be this error when executing fift?
[ 1][t 0][2022-12-19 06:43:52.3848540][Fift.cpp:67]     top: <text interpreter continuation>
[ 1][t 0][2022-12-19 06:43:52.3849547][fift-main.cpp:204] Error interpreting file `.\counter.fif`: counter.fif:1: PROGRAM{:-?
_
10:15
_kim0su
Which aspect of Ton's asynchronous smart contract mechanism is better than other evm?
&2
10:20
&rey 2ne:v
In reply to this message
Executing contracts is "local" - it doesn't need to retreive other contracts' data, and that means that validators of a shardchain don't need to store full blockchain state.
M
10:42
Max
In reply to this message
Only if the nft item was written to support that
&2
10:44
&rey 2ne:v
In reply to this message
Sometimes sending NFT to self works.
S
10:45
Step
In reply to this message
😳
10:46
In reply to this message
does this work for telegram numbers?
M
10:46
Max
In reply to this message
Doesn't the standard specify that forwards and excesses are taken from the transfer message balance and not from nft balance? Or am I missing something
Z
12:40
Zeb
Hi everyone. Doing DD for the fund I'm working with. Was asking some questions in the main chat, got sent here.

Looking at tonmon, it says there is 1 shard atm. Is that correct? Is this due to that TON atm hasn't needed to shard into more yet, due to low demand?

Are there any stats on blockchain size by now? Tried finding data.

Also I was wondering, not all TON is circulating, even though all was distributed through PoW. Is the non-circulating TON staked TON? Couldn't really think of what else it could mean.
12:41
Regarding the recent message towards dormant miners. If a dormant miner wallet does NOT make a tx before 1-1-2023. What are the plans with their balances afterwards?
Since the post is saying, it will make the tokenomics more clear, but these miner addresses could just wake up in a year or two. Happens with old BTC wallets all the time, years later.
Is there a plan to take these balances, or burn those tokens?
Z
13:05
Zeb
Sorry for all the questions, but yeah its interesting stuff and not all is clear.
https://blog.ton.org/how-to-shard-your-ton-smart-contract-and-why-studying-the-anatomy-of-tons-jettons
Gives an example where a swap would take 3 messages to complete.
Couple questions here:
- due tot he asynchronicity of TON, how often does this go wrong?
- can this completely be abstracted away for users?
- are messages tx? would these 3 messages be included in the nr of tx here for instance https://tontech.io/stats/
SF
13:07
Slava Fomin
In reply to this message
Yes, one shard is enough to handle the current load. Blockchain is capable of automatically split and merge, based on the workload.
13:10
In reply to this message
This is just to increase the visibility regarding the active funds, of course no one is going to burn anything. This would just violate trust in the distributed system and will not do any good.
Z
13:10
Zeb
In reply to this message
yeah exactly.. good
Z
13:27
Zeb
Anyone else thoughts on the other questions perhaps?
13:28
Is there a governance forum and are votes happening?
SF
14:03
Slava Fomin
In reply to this message
Validators were voting regarding some technical stuff. For example when the DNS standard was implemented.
14:06
Also, the developers community is discussing standards that are under development via TON proposals or TEPs.
GN
14:18
Gajesh Naik
Screenshot 2022-12-19 at 4.48.14 PM.png
Not included, change data exporting settings to download.
24.7 KB
i was trying to use func and fift but getting this irriating M1 err

dyld[4027]: Library not loaded: /opt/homebrew/opt/openssl@3/lib/libcrypto.3.dylib

Referenced from: /usr/local/bin/fift

Reason: tried: '/opt/homebrew/opt/openssl@3/lib/libcrypto.3.dylib' (no such file), '/usr/local/lib/libcrypto.3.dylib' (no such file), '/usr/lib/libcrypto.3.dylib' (no such file)

[1] 4027 abort fift -V
MP
14:59
Maxim Patsyuk
In reply to this message
already in path
DS
15:58
Dmitry Shanin
In reply to this message
openssl is missing.
try sudo apt install openssl libssl-dev
MP
16:20
Maxim Patsyuk
In reply to this message
Yes, install(1 screen).
After chmod +x fift problem with libcrypto (2 screen)
16:26
ok... i will try Docker or something else as i read above
DS
17:03
Dmitry Shanin
In reply to this message
Did you download binaries for your release of Ubuntu? What is the output of cat /etc/*release ?
CW
17:04
Chun Hsin Wang
can anyone help me with decodeing tx messgage such as the following:
17:04
from the encoded mesage data
SS
17:11
Sudo Scrypt
What is the most reliable TON wallet?
A
17:17
AERO
In reply to this message
Tonkeeper 🤷‍♀
S
17:46
Step
can anybody tell the difference in these cell in_msg_cell , slice in_msg ? 🤔
DS
17:52
Daniil Sedov
In reply to this message
cell in_msg_full
slice in_msg_body
17:52
In reply to this message
These are self-explaining names
S
17:52
Step
In reply to this message
in_msg_body means payload?
DS
17:53
Daniil Sedov
In reply to this message
Yes
S
17:53
Step
in_msg_full means a complete transaction info?
17:53
where i can see the structure of this?
DS
17:54
Daniil Sedov
In reply to this message
search for "sending messages" in docs
S
17:54
Step
In reply to this message
anatomy
DS
17:54
Daniil Sedov
in_msg_full contains everything that you put in cell for send_raw_msg function
A
18:00
Andrei
Hi guys
I'm looking to -offer- TRANSLATION and LOCALIZATION services for Ton software and projects.

Would anybody be interested?
S
18:02
Step
recv_internal (int balance, int msg_value, cell in_msg_full, slice in_msg_body)

order of arguments to recv_internal function is always same?
DS
18:03
Daniil Sedov
In reply to this message
yes
18:06
🤔
DS
18:06
Daniil Sedov
In reply to this message
It's not necessary to take all the arguments. You can take only some of the last args if you don't need the first ones
18:07
Tvm is stack based so your function will just pop some values from the top of the stack and ignore everything else
18:07
In reply to this message
But the order must be the same
S
18:08
Step
In reply to this message
what if i skip any argument in between?
DS
18:08
Daniil Sedov
In reply to this message
The order must be the same and you can't skip something in between. You can take some number of args from the end
S
18:17
Step
var ds = get_data().begin_parse();
does this parse payload boc automatically? no arguments passed?
DS
18:19
Daniil Sedov
In reply to this message
get_data() returns cell with your contract data
18:19
Not a message payload
S
18:20
Step
so its contract storage boc?
18:20
cell or boc?
M
18:33
Max
Boc is a serialization format for cells to be used outside tvm
18:34
get_data() returns contract storage cell
S
18:56
Step
In reply to this message
all data must be written to this cell?
M
18:56
Max
Yes and then set using set_data()
F
20:35
Fortune
Does anyone have any idea how to restore stack order after a recursive call? When control is handed back to the initial invocation scope, the variables in the stack in the line just after end up swapping values and are no longer the values before the call.
20 December 2022
Д
02:31
Давид
Hi guys, does somebody have an example of deploying single nft item without collection?
H
07:39
Howard Peng
is there any possible I can fetch on-chain data easily?
07:40
Like historical balance, or daily txs vol for any smart contract to see the trend.

For example, what is the daily Tx or unique users for Fragment smartContract?
i
08:35
i78yo
Does anyone know what is the advantage of funC language over solidity or rust ?
My admin in the local group does not know and almost banned me because of asking this 😌
DS
08:46
Daniil Sedov
In reply to this message
FunC was made specially for TVM
i
08:47
i78yo
In reply to this message
Do you have article that can compare funC vs solidity vs rust ? I wonder what are the best parts of funC ?
V
08:49
Victor
In reply to this message
For what? FunC (and Fift) is the only option to write SCs on TON
H
08:51
Howard Peng
In reply to this message
and Tact I guess
V
08:51
Victor
In reply to this message
Tact -> FunC -> Fift
i
08:54
i78yo
In reply to this message
When i compare eth and sol, i see big difference with their language program. Rust easier than solidity, that's make sol easy to use.
But i try to figure the advantage of funC used by Tonchain, is it more easier or complicated but safer ? Just curious, maybe some smart people here who knows a lot of computer can explain in the simple way 😊
AT
10:31
Andrey Tvorozhkov
In reply to this message
H
11:28
Howard Peng
In reply to this message
Yeh, I tried. But can't aggregate the timeFrame to daily
11:32
In reply to this message
MT
12:33
Maxim Torskiy
Using this instruction , and when I run toncli, I get this output:

PS C:\Users\Maxim\Desktop\ton> toncli
INFO: 🥰 First time run - i'll create config folder 4you and save some stuff there
INFO: 🤖 Check all executables are installed...
INFO: Adding path to executable func success!
ERROR: Command '['C:\\Users\\Maxim\\Desktop\\ton\\fift.exe', '-V']' returned non-zero exit status 3221225501.
WARNING: 🤖 Can't find executable for fift, please specify it, e.g.: /usr/bin/fift
Path

tried to do by this instruction have such conclusions:

PS C:\Users\Maxim> func -V
FunC semantic version: v0.2.0
Build information: [ Commit: 8537dd60e6341474967f8e9d04a7b7f6a060ec36, Date: 2022-06-13 20:02:32 +0300]
PS C:\Users\Maxim> lite-client -V
lite-client build information: [ Commit: 8537dd60e6341474967f8e9d04a7b7f6a060ec36, Date: 2022-06-13 20:02:32 +0300]
PS C:\Users\Maxim> fift -V
PS C:\Users\Maxim>

What could be the problem?
TK
14:25
Toby Kim
How to get function operation ? i want to know which function of the contract is executed by the operation shown in tonscan.
AT
14:28
Andrey Tvorozhkov
In reply to this message
Hard to say, somehow your fift.exe is not valid. You can try to use WSL with docker.
TK
15:10
Toby Kim
ton smart contact is asynchronous. then how to implements dex aggregator like a 1inch? maybe it needs atomic process.
D
15:42
Diako
How store "string" in cell ?

int _item_index = 1;
cell _uri = begin_cell()
.end_cell();

i want to store something like bellow data :
_item_index + ".txt"
AG
15:48
Alex Golev
In reply to this message
I'm not sure that it's the best way, but works for me.
You can create a string as slice, then store slice in cell:

slice sting = “string”;
cell begin_cell().store_slice(string).end_cell();
D
15:49
Diako
In reply to this message
i want to merge Int with string
like this : _item_index + ".txt"
AG
15:51
Alex Golev
In reply to this message
well, perhaps:
slice string = “.txt”;
begin_cell().store_uint(_item_index, _item_index_len).store_slice(string).end_cell();
D
15:51
Diako
In reply to this message
Okay, let me try
AG
15:57
Alex Golev
In reply to this message
But, if you really need index in the string, it seems you have to (encode/decode) number by your own hands too.
Because the cell with “index.txt” will not equal the cell with index number and ”.txt” slice.
D
16:09
Diako
In reply to this message
how should i do it ? (encode/decode)
AG
16:14
Alex Golev
In reply to this message
Again, I’m not sure that it is the best way, but it works for me:

Encode - Represent each number as a set of symbols [0,..,9], then write their ASCI code into a slice as uint number of length = 8.
Decode - Implement from slice to number.
P?
17:06
PlanL 🏴‍☠️
Hi. I get this error when executing func or fift. Please help me. And I'm using Ubuntu 22.04

func: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
AG
17:09
Alex Golev
In reply to this message
It seems like same issue
P?
17:21
PlanL 🏴‍☠️
In reply to this message
Can you please make it easier for me. I don't know what dockerfile is and how to use it. Sorry for being noob. 😶
MT
17:35
Maxim Torskiy
In reply to this message
torskiy@DESKTOP-PCD7KCG:~$ docker build . -t toncli-local
[+] Building 0.0s (1/2)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2B 0.0s
failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount3536167109/Dockerfile: no such file or directory
torskiy@DESKTOP-PCD7KCG:~$ docker run --rm -it toncli-local
ERROR: Command '['/usr/local/bin/fift', '-V']' died with <Signals.SIGILL: 4>.
ERROR: Command '['/usr/local/bin/fift', '-V']' died with <Signals.SIGILL: 4>.
ERROR: 😳 Executable path is not working correct, output:
WARNING: 🤖 Can't find executable for fift, please specify it, e.g.: /usr/bin/fift
Path:
AG
17:36
Alex Golev
In reply to this message
Well, I was wrong in general that issue is not absolutely the same.
Did you follow the installation guide from here? Have you install libcrypto via sudo apt install libatomic1 libssl-dev ?
P?
17:41
PlanL 🏴‍☠️
In reply to this message
I've downloaded files from here.
AG
17:55
Alex Golev
In reply to this message
In general, your source seems ok, I don’t know what is your problem. Maybe anyone else can advise about Ubuntu 22(I have only M1/Windows).
Before this, you can try to use Ubuntu 22 precompiled files from this link. I guess, the problem is that you used precompiled for another Ubuntu(18/16?) version from your link.
A
17:58
Amin
In reply to this message
you should get binaries built for ubuntu 22.04 as Alex mentioned. Ubuntu 22.04 uses openssl 3/libcrypto.so.3, However, the binary you got requires libcrypto.so.1.0.0 so It's built for previous ubuntu versions
MT
17:59
Maxim Torskiy
In reply to this message
ubuntu 22 source download links do not work
Д
17:59
Давид
In reply to this message
+1
P?
18:01
PlanL 🏴‍☠️
In reply to this message
Where can I download Ubuntu 22.04 binaries?
RG
18:01
Ruslan Gabdullin
In reply to this message
Try to download it from artifacts here: https://github.com/SpyCheese/ton/actions/runs/3563457577
RG
18:02
Ruslan Gabdullin
In reply to this message
Yep, this is even better!)
A
18:02
Amin
This is the latest master version, you can get the binaries built form latest testnet too.
The spycheese version Ruslan just sent is pretty good too for development.
F
18:05
Foisoi
In reply to this message
Wdym by "a better approach could be to create a verifier contract that save the stack and send a message to himself to continue the computation"

How would this help to reduce the fees?
@
18:56
@EarnToncoin is not for sale!
🤷‍♂🤷‍♂🤷‍♂
KV
19:45
Kon Vik
In reply to this message
Where is the precompiled version? Only from source?
RG
19:58
Ruslan Gabdullin
In reply to this message
You may find it here.
19:59
In reply to this message
You have version of binaries for another version of linux. Download binaries for your ubuntu version.
VA
20:23
Vladislav Ainshtein
Does anybody know where to find docuantation about soulbound NFTs and how to mint them
VA
20:52
Vladislav Ainshtein
In reply to this message
no single word about soulbounds(
H
20:53
Howard Peng
In reply to this message
Soulbounds only means a non-transferable token.
DS
20:55
Dmitry Shanin
In reply to this message
Here is the standard proposal. Though it has little to do with Vitalik's view of soulbound token. These soulbound tokens for ton are bound to owner's private key. May be transferred only between their wallets.

https://github.com/ton-blockchain/TEPs/blob/master/text/0085-sbt-standard.md
VA
20:58
Vladislav Ainshtein
In reply to this message
by "their" you mean different versions of 1 wallet (aka v3r2 v4r2)?
DS
21:12
Dmitry Shanin
I meant that. But I may be wrong here.
@
21:30
@EarnToncoin is not for sale!
In reply to this message
But I'm sure that I'm using the right version.
RG
21:30
Ruslan Gabdullin
Therefore the problem should be in environment. Make sure you have installed all necessary libraries.
21:31
Which ubuntu do you have? I'll give you a single command to check
?A
21:31
🇷🇺 Angry Hacker
Hello! Who knows - how to create my own group in https://ton.place/ ?
@
21:31
@EarnToncoin is not for sale!
In reply to this message
Ubuntu 22.04 LTS
?A
21:32
🇷🇺 Angry Hacker
I bought media access by 2.2 ton
RG
21:32
Ruslan Gabdullin
In reply to this message
apt install -y build-essential cmake clang openssl libssl-dev zlib1g-dev gperf wget git curl libreadline-dev ccache libmicrohttpd-dev
21:34
In reply to this message
Hello, this is a wrong place for such a question)
Please try contact support of the platform.
@
21:34
@EarnToncoin is not for sale!
In reply to this message
Thanks for your time. I'm checking them.
?A
21:34
🇷🇺 Angry Hacker
In reply to this message
Sorry…
RG
21:34
Ruslan Gabdullin
Btw, if this command don't help you, you can build your own binaries following this Dockerfile: https://github.com/kdimentionaltree/ton-builder/blob/main/ubuntu-22.Dockerfile
T
21:40
Tonox DeFi
In reply to this message
no, the fees are still damn high for such operations
F
21:41
Foisoi
that's ridiculus
??
21:57
𝙰𝙷𝙼𝙰𝙳𝚁𝙴𝚉𝙰 𝙰𝚁𝙳𝙴𝙺𝙰𝙽𝙸
In reply to this message
What?
@
22:06
@EarnToncoin is not for sale!
In reply to this message
Unfortunately nothing changed. Still giving me the same error.
شا
22:15
شاذلى الطيب
Hello, how can I mine Ton with my phone?
SF
22:15
Slava Fomin
In reply to this message
Hello. Wrong chat.
RG
22:23
Ruslan Gabdullin
In reply to this message
Okay, so you have to build binaries by yourself…
22:24
In reply to this message
One more question: what processor do you have?
@
22:39
@EarnToncoin is not for sale!
In reply to this message
Intel Core i5-2450M CPU @ 2.50GHz × 4
22:41
In reply to this message
git submodule update --init

This command is taking so much time. Is it normal?
A
22:43
Amin
In reply to this message
Yes, they're large dependencies. The compilation will take some time too.

Would you try to list shared dependencies of fift, so we can ensure everything is loaded fine?
You can use ldd fift
@
22:50
@EarnToncoin is not for sale!
In reply to this message
What do you mean by shared dependencies?
A
22:52
Amin
In reply to this message
Ton binaries require some shared libraries to be present, like openssl.
Pass one of the binaries to ldd so we can figure out whether all of them are ok or not
M
22:52
Max
In reply to this message
You can add --depth=1 to fetch only the last commits, then it will be faster
@
22:56
@EarnToncoin is not for sale!
In reply to this message
M
22:57
Max
ldd $(which fift)
RG
23:21
Ruslan Gabdullin
In reply to this message
Ah, okay. It seems to be old enough to be different from new CPUs in available extensions.
21 December 2022
z
00:09
zzss
Hi guys. Can you tell what is the average latency for Ton transactions?
SF
00:13
Slava Fomin
In reply to this message
Hey! New blocks are generated in 3-5 secs.
L
00:17
Luke
contracts/2.fc:48:5: error: undefined function `dictval`, defining a global function of unknown type
dictval~udict_set_ref(128, value, msg);
^
lvalue expression constructor is 8
fatal: cannot compile lvalue expression with unknown constructor

Does anyone know how to fic this
DS
00:20
Daniil Sedov
In reply to this message
in this case, dictval is only defined inside of if {} or else {} block. it's not visible outside of it.

you can define it before if (), and then just set the value in it
L
00:21
Luke
In reply to this message
so would i just do like cell dictval = 0? because just cell dictval; gave an error
DS
00:22
Daniil Sedov
In reply to this message
you can do cell dictval = null()
L
00:33
Luke
is there a way to set integers as value in dictionaries, or a way to convert form slice to int and back
DS
00:40
Daniil Sedov
In reply to this message
values are always slices. you can simply store a single integer in a slice if you only need it in a value.

int to slice:
int value = 123;
slice slice_from_int = begin_cell().store_uint(value, 256).end_cell().begin_parse();

slice to int:
slice value = {{{dict get or something else}}}
int int_from_slice = value~load_uint(256)
L
00:40
Luke
oh ok
z
02:15
zzss
Is it possible install lightweight TON client to have access to new transactions with minimal latency? can you share the link please?
E
04:03
Eryk
Hello, everyone
04:05
Is there any chance to get back sent transaction with wrong memo ?
L
04:37
Luke
is it possible to write to a cell that isnt the contract data,
like if i had a linked list of cells with the contract as the root, is there some way i can add a reference in the last cell's storage (im storing a reference in the root cell to the last cell)
AF
04:58
Abdulhafiz Nuhu Feeexyyy
More blessings Allah blessed ameen
AF
04:58
Abdulhafiz Nuhu Feeexyyy
T
TON Community 31.10.2022 16:37:26
Margin trading on Huobi Global

We’re pleased to announce the launch of the TON/USDT trading pair for margin trading on the Huobi Global crypto exchange.

Now, Toncoin leverage trading is available up to 3x on the exchange.

Please note: Trading with financial leverage carries additional risks, and we recommend beginner traders and investors avoid such instruments.
H
07:30
Howard Peng
is it possible for @Wallet to interactive with smart contract in TON network?
A
08:29
AERO
Hi guys
I'm a Dog-Noob in programming & Blockchain concept but I have high learning skills. Does anyone know any link (e.g. YouTube) to start learning how to create smart contract and daps?
08:30
In reply to this message
I meant a key to start or something like that
М
08:30
Маршин
k
08:43
kås
Hi everyone! Who knows how to properly calc storage fees for a given account?
For example I’ve got js calc from https://ton.org/docs/develop/smart-contracts/fees

Decoding base64 contract bytecode gives me 740 bytes

Wich translates to ridiculously low price of 0.0003 TON per year.

Is this right?
08:43
08:43
T
08:44
Tim
Are you sure there's only one cell?
k
08:45
kås
*corrected for 5920 bits, still got pretty low 0.00284 TON
08:46
In reply to this message
not sure, how to get actual data? Im decoidng contract bytecode from tonscan contract tab. This is just fresh generated v4r2 account
DS
08:46
Daniil Sedov
In reply to this message
There's also some data, not only code
T
08:47
Tim
Not sure if there's public function for that, you can try to flatten root cell and count
k
08:50
kås
In reply to this message
thanks, will look into it.

I just wanted to undestad a ballpark price for leaving 1000+ accounts active to receive incoming transactions.
So for 1000 active accounts I got 2TON is this about right?
Does contracts grow overtime with more transactions?
T
08:50
Tim
0.05 per year per account more likely
k
08:51
kås
got it, thanks.
D
09:23
Diako
int min_tons_for_storage() asm "50000000 PUSHINT"; ;; 0.05 TON

What is this code for in nft item ?
d
09:38
doni
In reply to this message
each Nft-Item contract should mantain sufficient balance for paying storage fees ( similiar to rent model , you pay fees as long as you using the storage)

So each action should leave at list min ton for storage after trasnfers or any other updates …
09:38
the same logic happens in Jetton contract as well
D
10:33
Diako
In reply to this message
what happen if ton price go up ? i mean if ton price goes to 100$
it's mean every item needs 5$ ?
BN
10:37
Behrang Norouzinia
In reply to this message
If you already have an NFT on the network, you have already paid for it, and the price of TON doesn't matter.

However, new NFTs will cost more. In that case I think the network might decide to reduce gas and storage prices.
D
10:49
Diako
i want to create uri in my nft collection contract
every nft item need uri, for example 0.json or 1.json

i have int variable and string variable like bellow
int _item = 10
slice _file = ".json"
and i want to merge it like this "10.json"
how can i do it in func ?
BN
11:41
Behrang Norouzinia
In reply to this message
This might help in just converting the number part to string:

slice to_string(int n) {
builder b = begin_cell();
tuple chars = null();
do {
int r = n~divmod(10);
chars = cons(r + "0"u, chars);
} until (n == 0);
do {
int char = chars~list_next();
b~store_uint(char, 8);
} until (null?(chars));
return b.end_cell().begin_parse();
}
V
13:58
Viktor
Hi there! I'm developing a nodejs library that encapsulates interaction with different blockchains into strictly typed methods and wanted to ask a few questions regarding the interaction with project.

Right now, after a brief intro to the HTTP API I decided to reach out to the community of devs in order to get a better understanding

1. I've read a discussion in this chat about BIP39 not being supported completely. I would like to know if there is a way to generate a TON wallet from standart 12-15-18-21-24 word mnemonics consistently? Is there a derivation path?

2. Is there a way to identify a block with only an integer to make request to an API? Like in ETH BTC TRX etc
S
14:33
Step
In reply to this message
1. ton, by default uses 24 words. check https://github.com/toncenter/tonweb-mnemonic/tree/master/src
V
14:41
Viktor
In reply to this message
Thanks for the answer! I see that it is possible to generate 12 word mnemonic and function doesn't prevent it. Do you know if there is any derivationpath-like tools to generate multiple addresses from one mnemonic?
14:45
I've also tried to generate few mnemonics with openmask, my bip39 tool says that they are invalid
S
14:50
Step
In reply to this message
seed or words?
AP
14:57
Andrey Pfau
In reply to this message
What you mean about "id chain"?
V
15:02
Viktor
In reply to this message
It tells just "Invalid mnemonic", I've tried to compare lists and found that words are correct
AP
15:02
Andrey Pfau
In reply to this message
TON not EVM
15:03
It has its own blockchain and virtual machine for smart contracts- TVM
V
15:05
Viktor
https://github.com/slavafomin/tonweb
Does anyone know the current state of TS version of tonweb?
SF
15:08
Slava Fomin
In reply to this message
Well, it's work in progress. I don't have much time to work on it, but I'm trying to keep it somewhat alive. It already has bug fixes, performance improvements and new features, like a dedicated Slice class with all the useful Cell parsing methods. It also has a pretty good test coverage. But it's not up to date, regarding the latest vanilla TonWeb version. I'm planning to update it soon.
15:10
In reply to this message
But I'm using it in production :)
S
15:10
Step
In reply to this message
which project?
V
15:11
Viktor
In reply to this message
Thanks for the info! for now think I will use both bits of TS and JS code when I will be working with TON. It's very cool to see a TS library, TRON doesn't have one lol
S
15:11
Step
In reply to this message
tronweb?
V
15:11
Viktor
Yeah
SF
15:11
Slava Fomin
In reply to this message
Can't say, sorry. It's under NDA.
V
15:11
Viktor
Tronweb
S
15:11
Step
In reply to this message
ok
15:13
In reply to this message
can you tell how to become master in ton smart contract?
SF
15:13
Slava Fomin
The TS version is very good when it comes to source code study, I've tried to make it much more clear and readable. It even has comments :)
15:14
In reply to this message
You need to find the TON Smart Contracts Guild and finish the quest-line there.
S
15:15
Step
In reply to this message
TON Smart Contracts Guild?
SF
15:16
Slava Fomin
In reply to this message
It was a TES-related joke. Disregard this.
V
15:17
Viktor
)))
DG
15:20
Draco Gram
For new TON projects beginning now are there recommendations for versions of FunC, cmake, toncli etc ? just latest? Javascript vs Typescript?
V
15:28
Viktor
Do I really need a private key to estimate tx fee?
SF
15:30
Slava Fomin
In reply to this message
I guess so, because you still need to sign the message.
V
15:30
Viktor
Thanks, will consider it
15:35
In reply to this message
Are there any heuristic methods for approximating the fee?

I will give an example:
In ETH i can use the data from gas station and ABI data to estimate fee for transfers/contract executions without requesting the network
TRX has some batshit insane energy system that grants you access to constant fee values after sessions of deep dark exploration of the docs
BTC just has vbytes and satoshis

Are there any ways to do something like that in TON
SF
15:38
Slava Fomin
In reply to this message
The TonWeb will send your message to the TonCenter (HTTP API) that will call the tonlib (a C++ library that implements TON stuff). It will execute the contract using your message and will calculate the fees without actually delivering it to the validator. If you are not on the web, it could be all done locally. There are actually solutions to execute contracts locally from JS, maybe you can use that.
V
15:40
Viktor
In reply to this message
Can you please elaborate regarding the solutions?
Ideally I would like to know if there is way to approximate fee only knowing what I'm transferring (TON or some other currency if thers is) and sender of the transfer
SF
15:41
Slava Fomin
In reply to this message
I haven't tried that myself. Maybe someone here will be able to better answer this question.
V
15:42
Viktor
Thanks a lot for your help! I was very happy to have a chat with dev!
SF
15:43
Slava Fomin
In reply to this message
Sure, feel free to ask 👍🏻
AG
15:50
Alex Golev
In reply to this message
links fixed.
&2
15:57
&rey 2ne:v
In reply to this message
There are even two of them: https://github.com/ton-society/ton-footsteps/issues/79. Which will become official is unknown (well, and I'm an interested party 🙂)
UPD: link to proposal is https://github.com/ton-blockchain/TEPs/pull/101
V
16:27
Viktor
In reply to this message
Also, I've checked current implementation of mnemonic generation (https://github.com/toncenter/tonweb-mnemonic/blob/master/src/functions/generate-mnemonic.ts I hope this is corrent) and found that it's incompatable with BIP39, because words need particular structure, not just random word from a wordlist. The last word needs to contain a checksum in order to be compatable with BIP39

There is a good description of this at this BTT thread https://bitcointalk.org/index.php?topic=5300691.0
SF
16:39
Slava Fomin
In reply to this message
Yes, only a subset of ETH seed phrases are compatible with TON.
V
16:40
Viktor
In reply to this message
ETH seed phrases?
SF
16:44
Slava Fomin
In reply to this message
The BIP39 seed phrases to be precise.
RC
18:09
Rami Chasygov
Hi 👋
To whom who worked with NFT projects - how you dealt with indexing of data? Did you use some open source project or did you write your own indexer?
GN
19:35
Gajesh Naik
i was trying to compile counter contract from func contest-1 with func-js

but i'm getting this error:

contract.fc:4:8: error: undefined function `get_data, defining a global function of unknown type
n += get_data().begin_parse().preload_uint(64);`
19:36
N
19:41
Nati
Hey 👋
I was wondering if there is a simple way to iterate NFTs from a specific collection, and if someone has any example code samples I can learn from!
Preferably Python but any programming language will help 💪
S
19:47
Step
In reply to this message
stdlib.fc is missing?
GN
19:53
Gajesh Naik
In reply to this message
yep. didn't find it in the repo
GN
19:57
Gajesh Naik
In reply to this message
thanks!
TH
20:29
Tse Hou
Hi, I am trying to build an application which requires users to prove that they own a specific address. I think providing signature might be a way to prove ownership of an address.

But I can’t figure out a way to do it on a local machine. How do I sign a message via the private key of a ton address? and how do I verify it?

thanks in advance!
Jㅤ
20:56
Jaimin | Caddiㅤ ㅤ
Gm TON devvers!

Is anyone developing secure storage for data (within a user’s TON wallet) or otherwise.

I have a use case where I want a TG bot to access data which is encrypted and only available to that specific user. Anyone working on something like this?
21:01
Also separate question, is there a TON MPC solution yet where you can sign from TG?
D
21:04
Dario
In reply to this message
Encrypt data with some kind of user providen key -> encrypt & serialize this data into a boc -> push data with a transaction

If the size of the boc exceed 64kb you need to truncate the message and send it in different transactions
21:06
If you want to explict store something in the Blockchain. This is a bad idea btw, better to use the solution proposed by TF which involves a contract that only acts as a frontend for storing data, to manage payments etc. Everything else.is.done offchain
Jㅤ
21:07
Jaimin | Caddiㅤ ㅤ
In reply to this message
Hmm contract proposed by TF as a frontend makes sense.. what’s TF tho 😅
JD
21:07
John Doe
In reply to this message
TF - Ton Foundation
D
21:07
Dario
In reply to this message
Ton foundation
Jㅤ
21:51
Jaimin | Caddiㅤ ㅤ
Very excited to dig into this!
B
22:17
Brand
Hi all, we published open source code (for TON community), coming soon SDK of our Marketplace libermall.com:

FunC Contracts powering NFT Marketplace sell/byy and (T)ON (N)FT (T)ool - All-in-One command-line utility to query, modify, and mint new NFTs on TON blockchain.

Use for your developments, we are happy to work for the benefit of the TON community =)
Jㅤ
23:05
Jaimin | Caddiㅤ ㅤ
In reply to this message
Hey, just wondering for Ton Storage is it being deprecated or migrated?
D
23:13
Dario
In reply to this message
Thats not ton storage for sure. Do not connect your wallet to unknown site
VA
23:22
Vladislav Ainshtein
Hi guys. Does anybody know how to get 32 bite hex private key from your mnemonic?
tonweb is giving 64 bit private key by mnemonic
I need 32 bit key because this library requires 32 bit private_key here in code
A
23:54
Amin
In reply to this message
Just use the first 32 bytes, it will be ok.
22 December 2022
VA
00:27
Vladislav Ainshtein
In reply to this message
thanks. something in library broken probably, because its not reading private key properly and returning invalid inactive address(
A
01:25
Amin
In reply to this message
Your wallet is v3r2? and you changed the network in config?
?
01:27
𝑲𝒆𝒏𝒂𝒏𝑯𝒆𝒚𝒂𝒕𝒐𝒗
How i can get any nft or coin
VA
01:27
Vladislav Ainshtein
In reply to this message
The private key is the same for all versions of addresses, but the address that the library gives does not match mine. And yes I tried both networks
BY
01:27
Botao Yuan
(cell cur, int k) = udict_get_ref?(d, 16, val);
send_raw_message(cur, 0);

How would I activate the "inplace message body flag (Either)" for this code?
L
01:59
Luke
how can i check if a tuple is empty, as well as how to check if a variable is null
L
02:14
Luke
lvalue expression constructor is 9
fatal: cannot compile lvalue expression with unknown constructor


anyone know what is causing this?
A
04:49
Ali
Contract
H
05:39
Howard Peng
In reply to this message
chad!
05:49
In reply to this message
is it possible to add a filed that is 'Addresses'? Would like to see which smartContractAddresses or Wallet are contributing more in daily Txs.
_
05:54
_kim0su
As i know, ton s smart contract execution between external contract is asynchronous, then if there is dex using x×y =k , how to make atomic swap using more than 2 paths?
05:56
Maybe liquidity need to be stored in one contract? Like balancer?
T
06:16
Tim
In reply to this message
You can't make atomic swap between 2 pairs
_
06:21
_kim0su
In reply to this message
So need new dex mechanism in ton?
H
06:39
Howard Peng
In reply to this message
any testnet API RPC is reliable? Want to read the on-chain data for my contract 😅
H
06:44
Howard Peng
In reply to this message
mutation means test-net in your graphQL structure?
H
07:09
Howard Peng
what is the error code 1130 means on tonscan....
07:10
In reply to this message
https://tontestnet.com/ didn't pop up this info by the way
CW
07:18
Chun Hsin Wang
does anyone have a db snapshot for the toncenter indexer?
https://github.com/toncenter/ton-indexer

been waiting for my archival node sync for days, not sure how long it will take for the indexer
T
08:03
Tim
Did you install archive node from archive dump?
TD
08:17
Tom Kenneth De Leon
Im new here, I just saw this TON recently..im interested in the project
CW
08:19
Chun Hsin Wang
In reply to this message
yes
CW
09:18
Chun Hsin Wang
[LastBlock.cpp:369][!LastBlock][&last_block] sync: error [Error : 500 : LITE_SERVER_NETWORKadnl query timeout(during check init block)]

been getting this error for a few days with my archival node
09:21
09:22
error on the indexer
s
10:35
sAmiar
What toncoin should do
1. Building a decentralized wallet with 24 seed words. so that it shows the number of assets on the Telegram platform and money is available on Telegram
2. Creating a secure p2p transaction platform on the Telegram platform.
3. The possibility of currency exchange and people's financial activity with simple authentication for small amounts. (even with Iranian authentication for small amounts)
In this case, currency exchange becomes much easier
10:36
tonhoub wallet is better than other toncoin wallets, it has only one flaw
First, it has a very simple password
Second, it is not possible to give a complex password to see the seed
Third, it is not possible to have multiple wallet accounts in one wallet
S
11:26
Summer
11:26
11:27
Like the above screenshot, OKX and Huobi Deposit
VA
12:13
Vladislav Ainshtein
Does anybody know the difference between
royalty parameter in tonweb NftCollection and seller_fee_basis_points in collection json metadata
https://github.com/ton-blockchain/token-contract/blob/main/nft/web-example/index.html
https://github.com/ton-foundation/token-contract/blob/main/nft/web-example/my_collection.json
12:13
T
12:28
Tim
Json Metadata one doesn't matter
VA
13:40
Vladislav Ainshtein
In reply to this message
thx
E
13:57
Emilia
Hello,
I read that TON Storage is coming by the end of the year. What about TON Proxy 2.0 (privacy) and 3.0 (DeFi) announced in the past?
DS
14:17
Daniil Sedov
In reply to this message
Ask in general chat @toncoin_chat
TH
14:37
Tse Hou
Hi I just installed pytonlib and when I try to run the example file (generate_wallet.py) I kept getting this error"illegal instruction: 4" and then Python will crash. Do I need to modify the code before using it to generate a wallet?
DG
15:29
Draco Gram
In reply to this message
what version of python?
TH
15:31
Tse Hou
In reply to this message
python 3.11.1
DG
15:43
Draco Gram
if you get this error I think you need to build the library yourself
15:43
git clone https://github.com/psylopunk/pytonlib && cd pytonlib
&& ./build_tonlib.sh # docker is needed
TH
15:46
Tse Hou
In reply to this message
Got it I will try again with self built library
w
16:14
wakeup
How can I get all possible data from elector for the current/previous elections ?
RG
16:17
Ruslan Gabdullin
In reply to this message
Here is pen more way to build binaries: https://github.com/kdimentionaltree/ton-builder
JD
16:28
John Doe
Hi!
The same code(in one i have dump("ok");, in other not, all the difference) work in different ways. When i have dump("ok") everything is ok, but when i remove it i get not a tuple of valid size error, how is this possible?

running on local machine with ton-contract-executor
MB
16:41
Mehsim Bote
Hi, I am facing issue in sending ton from account 1 to 2

"LITE_SERVER_UNKNOWN: cannot apply external message to current state : Failed to unpack account state".
16:55
LITE_SERVER_UNKNOWN: cannot apply external message to current state : Failed to unpack account state

Failed to get account state
Y
18:44
Yuri
Hey guys, I'm getting this error when trying to build:
PS C:\Users\yuria\learning\TON\lesson5,6> toncli build     
ERROR: 🤟 It is not project root [C:\Users\yuria\learning\TON\lesson5,6] - I can't build project without project

PS: I have a project.yaml file
DG
18:52
Draco Gram
In reply to this message
Did you checkout the project with git? if so can you show the results command: git status
18:54
I think either your cwd is not the project directory or you may not have all the files in from the repo up to date. You might need also to do a git pull
Y
18:54
Yuri
In reply to this message
It's not a git project
18:55
DG
18:55
Draco Gram
where is it?
Y
18:55
Yuri
I'm doing it
DG
18:57
Draco Gram
can you post project.yaml ?
Y
18:57
Yuri
contract:
func:
- func/code.func
tests:
- tests/contract_tests.fc
DG
18:58
Draco Gram
or take a picture of it is better.
Y
18:59
Yuri
19:02
I think I found the issue
19:02
hehe
19:02
let me try
19:03
Alright, didn't work
19:03
changed from func/code.func to func/code.fc
S
19:41
Saber
I saw this paragraph in ton whitepaper, but I couldn’t find anything about this in the code bases. is there any plan to integrate this into TVM or is it already implemented?
“Support for Weil pairings on some elliptic curves, useful for fast implementation of zk-SNARKs, is also present.”
E
20:39
Emilia
In reply to this message
Unfortunately no one answered me.
EA
21:03
Elshad Aghazade
is testnet.tonscan.org down or only me cannot access
21:03
?
23 December 2022
Y
00:03
Young
Hey all! I'm building a DAO tooling related project on TON. I’m doing some specs up but I’m interested in two types of devs:

1. doing a paid gig for a prototype (I can pay 1-10K), or
2. looking to be a CTO/Tech lead, can net 100-300K yearly

Need: Familiarity with FunC/C, Javascript, Typescript. Blockchain exp not needed. No min years of engineering exp. As long as you're learning FunC

Send me a DM with your CV and Github if that's you!
F
01:46
Fernando
Hi, I'm new here, I'm starting to develop an automatic translation system (based on browser language) for the TON Wallet extension (toncenter/ton-wallet), I'm working with Fork on my GitHub account, when I'm done I think Send the pull request for the merge. Do you think it can be merged with the main project?
L
02:00
Luke
() process(slice msg) impure {
if(~ msg.is_null()){
~dump(msg);
cell storage = msg~load_ref();
process(msg~load_ref().begin_parse());
processNode(msg, storage);
}
}


why is my code skipping the processNode call, i've set it to impure
GS
04:29
Garden State 🐗
GS
Garden State 🐗 23.12.2022 04:11:05
Hi, guys

Can somebody explain me what can be this ?

I got it from https://tonapi.io/swagger-ui

/v1/blockchain/getTransactions
Y
07:28
Yuri
In reply to this message
Hey guys, any thoughts on this?
AR
09:38
Andy Russo
In reply to this message
can you show the processNode code?
L
09:38
Luke
In reply to this message
i manged to fix it, it was an error with my debugging
S
09:46
Snoby
How i can get ton
E
09:53
Evelyn Payne
So how can we earn this ton
D
10:17
Diako
why does contract do not return msg_value when throw occurs ?
for example i sent 0.1 TON to contract but, for a reason throw_unless execute and transaction faild ! but my 0.1 TON not return to my account !
DS
10:20
Daniil Sedov
In reply to this message
Did you send it to bounceable or non-bounceable address?
D
10:23
Diako
In reply to this message
what do you mean ?
i send to my contract !
DS
10:23
Daniil Sedov
In reply to this message
Address of the contract can be bounceable and not bounceable
D
10:24
Diako
In reply to this message
how can i check ?
DS
10:24
Daniil Sedov
In reply to this message
How did you retrieve the address?
D
10:24
Diako
In reply to this message
it's my nft collection ! i deployed with tonstarter-contract
DS
10:25
Daniil Sedov
In reply to this message
Can you send the address here? I'll say if it's bounceable or no
D
10:27
Diako
In reply to this message
EQCo1vURUeh_J0_jPDJeI_SfKiaRy9SNW8Ph37_R1kuqcN_d
A
10:31
AERO
Hope Paul Durov develop an Instagram-like service as lovely as Telegram equipped with TON payment options so you would be able to share pictures, videos, reels & even NFTs. I have big entertainment pages on Instagram but actually tired of it lol.
DS
10:33
Daniil Sedov
In reply to this message
Hm that's strange
D
10:42
Diako
In reply to this message
so what do you think ?
А
11:29
Андрей
In reply to this message
S
12:00
Silvio
This param in TON Storage Provider Smart Contract:

Min file size 1 Max file size 10000000010

is on MB unit?
AR
12:42
Andy Russo
How do I clear the initial data of c4? or detect that it is the initial data in c4?
S
13:18
Snoby
S
13:36
Snoby
@Gusarich answer me please
DS
13:46
Daniil Sedov
In reply to this message
?
S
13:47
Snoby
In reply to this message
Why you blocked me
AP
14:12
Andrey Pfau
In reply to this message
It's serialized BoC (bag of cells)
V
14:18
Viktor
Hi, does anyone have the production ready MongoDB implementation of BlockStorage interface mentioned in the tonweb library?
M
16:30
Mark Okhman on TON
Hello guys, recent few weeks we've been working on creating a universal WTON together with TF and FS Labs team, as well as DEX developers (namely, @NickNekilov, @junmoDev, @dariolol).

This united team deserves great kudos!

Wrapped TON (WTON) is a jetton that is locking TON 1-to-1 on mint and releases TON on burn. WTON is used to unify interaction between TON and jettons of TEP-74 and TEP-89 standards. There is a need to have a universally adopted WTON with a common standard of interaction and single source of origin.

As a result of this productive work, we have a TEP (Ton Ehnacement Proposal) that in-depth describes the whole initiative together with motivation, guides, specifications, drawbacks and best practices from other blockchains.

We would love to invite you on reviewing this TEP https://github.com/markokhman/TEPs/blob/master/text/0000-wrapped-ton-standard.md and writing your feedback in the pull request of the TEP.

Any feedback will be appreciated!
?
16:32
💎 Yang 💎
In reply to this message
Awesome
SF
18:20
Slava Fomin
In reply to this message
Hey, I don't think there is. But it should be not that hard to implement.
V
18:21
Viktor
In reply to this message
Yeah I saw the implementation in the library and it appeares to be pretty simple, just asked in case anyone tried
18:22
But this part can be rewriten from NlogN to N complexity))))
AP
18:24
Andrey Pfau
In reply to this message
You can submit pull request with better implementation.

Open Source power 💪
V
18:29
Viktor
In reply to this message
Was just kidding, it's an example in the library, and it's obvious that you will need a db in long-term
Д
18:58
Диёрыч
Hey guys . I placed fift binary file to /usr/local/bin and when I run command fift -V i get reponse like "Fift build information: [ Commit: ba8f700e26620707f8ff14e46cc9a040a1b3f97c, Date: 2022-11-22 16:30:53 +0300]"
18:58
Could anyone help me to resolve the trouble?
AR
18:59
Andy Russo
In reply to this message
That's not an error, that's the expected output
Д
19:00
Диёрыч
In reply to this message
So everything ok?
AR
19:00
Andy Russo
In reply to this message
yes
Д
19:00
Диёрыч
In reply to this message
Cause I wait for something like fift v0.1.1 bla bla
19:01
In reply to this message
Ok, also i have same with lite-client, is OK too?
AR
19:01
Andy Russo
yes
Д
19:01
Диёрыч
In reply to this message
Thx
Д
19:26
Диёрыч
In reply to this message
I'm on 5th step of building counter contract and get error "Error interpreting standard preamble file `Fift.fif`: cannot locate file `Fift.fif`
Check that correct include path is set by -I or by FIFTPATH environment variable, or disable standard preamble by -n.
"

What is wrong, could you help me please?
D
19:28
Dzmitry
What does this error mean?
❌Failed Compute Phase 💻: (exit_code 35)
AR
19:28
Andy Russo
In reply to this message
Can't help, I haven't encountered that issue before.
Д
19:29
Диёрыч
In reply to this message
resolved!) just added fiftlib to my env variables path
D
22:57
Diako
In reply to this message
do have any idea ?
24 December 2022
A
02:28
Amin
In reply to this message
Investigated this issue deeper, as I encountered this issue for a ton fork I have and build binaries with GitHub. After analyzing the core dump with gdb, I figured out that the instruction causing the problem is VCVTUSI2SD, It's used by rocksdb and is an AVX512 instruction. TON monorepo builds with -march=native and all capabilities of the host builder are used, which makes the binaries less portable. (AVX512 is not widely available capability, only on special Core-X, Xeon series + Icelake series)
Setting the portable flag on, solves the issue.
@jtton
SF
02:47
Slava Fomin
In reply to this message
That's pretty impressive debugging 👍
A
02:52
Amin
In reply to this message
Thanks! It was hours of google search actually:))
e
04:22
ethw mine
Hello can I use highload wallet mnemonic phrase to login on ton keeper ?
M
06:45
Mark Okhman on TON
Hey friends 🚀


I’ve recorded a video, that is covering some very beginner level topics - how to get data from smart-contract and how to compose a simple message to send it to the smart-contract.

Please let me know if it was useful or not. Thanks!!!
M
06:45
Mark Okhman on TON
M
Mark Okhman on TON 24.12.2022 06:36:15
Dear firends ❤️

It's been a while since I posted last video. I don't know what's the best way to conveince you, that this is ONLY and ONLY because i'm learning how to program on TON and learning the very core principles that stand behind it. And of course I'm going to share those with you very soon!

However, today I've recorded a new video for those of you, who want to try starting with TON programming. It's quite simple, but it will teach you a lot. BTW, this is a great way to learn what is NFT! Intrigued? Follow the link ❤️

https://youtu.be/wEEQLwQy30Q

Here is the tutorial. I hope you enjoy it!
N
08:34
Nati
Does my mainnet wallet also exist in testnet?
I was wondering if i can just use my main wallet address in testnet instead of opening another wallet just for testnet.
BN
08:35
Behrang Norouzinia
In reply to this message
It will work, however nothing is deployed unless you deploy it on the testnet.

Your address will change a little.

However, this is a little dangerous, since you may use your mainnet wallet instead of the testnet wallet accidentally.
N
08:38
Nati
In reply to this message
Alright so I'll just create a new wallet for testnet - thanks!
D
09:07
Diako
In reply to this message
N
10:01
Nati
In reply to this message
Thanks for the tutorial!
Just mined my first NFT 🤩 (on testnet)
M
10:23
Mark Okhman on TON
In reply to this message
Awesome!!!
BN
10:50
Behrang Norouzinia
In reply to this message
Each message has a flag called "Bounce". When it is set, and the smart contract throws an exception, the excess amount is returned back, but when it is not set, the excess amount is not returned.

There are some reasons for having non-bounceable messages. The main usecase is for deploying a wallet or smart contract for the first time, which does not exist on the network, and sending any message to it will fail. Here, first you have to unset the bounce flag, so that the amount that is sent to a non-existant smart contract is not returned to you, and then you can deploy the smart contract on the address which is now funded and has enough money to be deployed.

I suspect that you have unset the bounce flag, and the amount is not returned to you.

Also, there are to types of addresses, bounceable and non-bounceable. Wallets have a complex logic to determine what to do and set the bounce flag or not. Sometimes they look at the type of the address.

In your case, if you have manually sent the transaction, check whether you have set it or not.

Here is the related TL-B:
int_msg_info$0 ihr_disabled:Bool bounce:Bool bounced:Bool
src:MsgAddressInt dest:MsgAddressInt
value:CurrencyCollection ihr_fee:Grams fwd_fee:Grams
created_lt:uint64 created_at:uint32 = CommonMsgInfo;
H
12:04
Howard Peng
What is the cell datatype looks like?
N
12:08
Nati
Not sure if this is the correct place to report this but there is a broken link in one of the ton.org blog posts.
It's in this article - in the end.
The link leads to this broken link.
The correct link would be this.
l
13:16
lrlab
Hello guys, Is there a tutorial on compiling the ton sdk dynamic link library for android? I can successfully compile the linux version, but the cross-compilation for android fails, and I can't find the corresponding tutorial.
D
15:09
Diako
How can i know what data pass to contract ?
for example what data pass in this transaction ?
https://tonscan.org/tx/kYzszhSP6vaDyfg1RK7kWfDMzTYV-6cx8gUWvcdCA-U=
H
15:10
Howard Peng
In reply to this message
You need decode it.
D
15:10
Diako
In reply to this message
what data ?
BN
16:17
Behrang Norouzinia
In reply to this message
Each smart contract accepts a few different types of input. It checks the input against those different types. If it matches one, it'll execute it.

Usually, the first 32 bits of data is the operation code and is used to identify the type of data that is being sent.

Smart contracts usually read this 32 bit op code first, and then decode the rest of it.
H
16:25
Howard Peng
anyone know how to read mapping data on Smart Contract through TypeScript?
16:25
16:25
Like this
SF
16:32
Slava Fomin
In reply to this message
It's in BOC, you need to know the TL-B schema of the data. Then you can use any Slice implementation to read the data according to the schema.
?₿
16:39
𝓢𝓪𝓶𝓾𝓮𝓵 ₿
Hello guys! The support team in the general group directed me here to consult
Has anyone here collaborated in the development of Toncoin tokenomics?
There is an important project that needs economic analysts
16:40
In reply to this message
the development of the structure will be special, that is why experts in the area are needed
16:41
As Toncoin has had a very genuine tokenomics management, the first ones I wanted to address were you
SF
16:45
Slava Fomin
In reply to this message
Hey! This chat is for engineering questions, not for economics.
u
17:44
user_name
Hey, sorry for fooling question, I am newbie. Where can I get about definition bounceable and non-bounceable address to see difference between them?
N
17:51
Nati
In reply to this message
Bounceable vs non-bounceable addresses

The core idea behind the "bounceable" flag is security for sender.

For example, if the destination smart contract does not exist, or if it throws an unhandled exception while processing this message, the message will be "bounced" back carrying the remainder of the original value (minus all message transfer and gas fees).

In fact, bounceable=false means that receiver is a wallet and bounceable=true is a custom smart contract with own logic (for example, DEX) and you shouldn't send him any non-bounceable messages because of the security reasons.

Read more in Non-bounceable messages article.
17:56
In reply to this message
H
18:10
Howard Peng
In reply to this message
Hi, anyone know how to implement fromBoc?
18:11
In reply to this message
Let say the data I got here is an Object in TypeScript, which is Boc in TVM.
18:21
In reply to this message
there has data type BOC, Slice, and Cell
DG
18:22
Draco Gram
H
18:42
Howard Peng
Red area is the BOC data.

And the Green area is the Cell deserialization?
18:52
🙈😵‍💫
SF
20:50
Slava Fomin
In reply to this message
It looks more like BOC represented as a byte array.
AP
21:10
Andrey Pfau
In reply to this message
green area - serialized boc in regular bytearray

b5ee9c72 - magic constant for BOC file format
S
23:41
Step
What data follows after magic constant?
25 December 2022
H
03:24
Howard Peng
In reply to this message
Yes, the original data structure I stored is like this, does that related?

I still can't read or decoded it properly once I want to read those data directly from Smart Contract then.
03:24
In reply to this message
what is b5ee9c72 means?
AP
03:25
Andrey Pfau
In reply to this message
constructor prefix
H
03:25
Howard Peng
03:26
it does... looks like magic
AP
03:26
Andrey Pfau
its crc32 of scheme
03:26
precalculated
H
03:49
Howard Peng
In reply to this message
For `toBoc method, is there any more description for how to use this method in `tonWeb?

- What is idx for?
- What is crc32 usage?
- What is cacheBits?
- What is flags for?
AP
03:51
Andrey Pfau
idx - indexed cells, for optimization purposes
crc32 - checksum for boc
cacheBits - cache bits for optimization purposes
flags - reserved, always 0
H
07:00
Howard Peng
In reply to this message
TL-B schema of the data, yeh, I know what is the input I send in.

The TL-B schema is more like this, right?

Person#1 {
name:string;
age:int;
}


Then basically is a big object called Cell[] from on-chain data.
H
07:57
Howard Peng
In reply to this message
seems not this issued
H
11:31
Howard Peng
In reply to this message
How about reading the data from Smart Contracts?
JT
13:11
Jacky Tang
in etherscan, one could decomplie bytecode; how to do the same in tonscan, fif -> func?
as in etherscan, how to call the GET methods in toncan directly?
G
13:47
G
Hey guys. Is it possible to have a marketplace feature with TON? Basically wanna get payments on a bot and then take a comision fee and send the rest of the money to the shop owner. By looking at the docs there is only described p2p send methods.
VT
15:29
Vladimir Tamara Patiño
A little late, but blessed christmas 2022.
u
16:04
user_name
Hey, Maybe someone knows how to fix it
toncli run_tests

INFO: 🌈 Start tests
/Users/ololo/Library/Application Support/toncli/test-libs/bad_messages_generator.func:19:16: error: undefined function `generate_internal_address`, defining a global function of unknown type
slice ssrc = generate_internal_address()
AG
17:26
Alex Golev
In reply to this message
Try toncli update_libs. Looks like you have old version.
M
20:19
Mohammad
Guys, do you know any FunC video tutorial?
DP
20:20
Dmitry Podolsky
In reply to this message
H
20:52
Howard Peng
anyone know why I got this error when I try to generate the deploy code? Wouldn't showed up before!
20:58
what is TVMExecutionResultFail exit code 7 in TVMExecuteConfig?
d
21:02
doni
enum class Excno : int {
none = 0,
alt = 1,
stk_und = 2,
stk_ov = 3,
int_ov = 4,
range_chk = 5,
inv_opcode = 6,
type_chk = 7,
cell_ov = 8,
cell_und = 9,
dict_err = 10,
unknown = 11,
fatal = 12,
out_of_gas = 13,
virt_err = 14,
total
};
21:02
export const JettonDefaultWallet_errors: { [key: string]: string } = {
'2': `Stack undeflow`,
'3': `Stack overflow`,
'4': `Integer overflow`,
'5': `Integer out of expected range`,
'6': `Invalid opcode`,
'7': `Type check error`,
'8': `Cell overflow`,
'9': `Cell underflow`,
'10': `Dictionary error`,
'13': `Out of gas error`,
'32': `Method ID not found`,
'34': `Action is invalid or not supported`,
'37': `Not enough TON`,
'38': `Not enough extra-currencies`,
'128': `Null reference exception`,
'129': `Invalid serialization prefix`,
'130': `Invalid incoming message`,
'131': `Constraints error`,
'132': `Access denied`,
'133': `Contract stopped`,
'134': `Invalid argument`,
'4429': `Invalid sender`,
'13650': `Invalid bounced message`,
'16059': `Invalid value`,
'62972': `Invalid balance`,
}
H
21:04
Howard Peng
In reply to this message
Even OpenAI can't understand error I think haha
21:04
In reply to this message
You think it's Type check error?
H
21:20
Howard Peng
In reply to this message
seems the issued from TVMExecutionResult
u
22:01
user_name
In reply to this message
By the way, it didn't help, but thanks for advise
DG
22:35
Draco Gram
In reply to this message
can you try reinstall toncli? And if that does not work you might try recompiling func or getting latest binaries for func
u
23:18
user_name
In reply to this message
Thanks, also did not help. Interesting the fact that I can build and deploy code but once I am trying run tests I am getting this error
DG
23:29
Draco Gram
In reply to this message
u
23:33
user_name
In reply to this message
Hmm, I haven’t but I guess I will. It looks very friendly. Many thanks 🙏
26 December 2022
DG
01:37
Draco Gram
In reply to this message
I think you are correct its definitely seems to be
type check exception. Next level is to debug and see what type check was being run when this error occurs.
01:43
I would create a test case with the parameters you have defined and then debug this test case. All the code including TVM is open source so get end to end debugging working first and it will help to resolve these issues and clarify each question
AP
04:13
Anton Patrushev
Is there any difference between this two function declarations (FunC)?

tuple one() {
(tuple) two() {


The question come from real code sample from latest contest:
https://github.com/ton-blockchain/token-bridge-func/blob/main/src/func/jetton-bridge/votes-collector.fc#L109
?
04:14
🌋🗿
Hi! Bridge eth-ton broken? Last validation 9 hours ago.
H
07:33
Howard Peng
In reply to this message
Ok. So it’s not my .tact file get issued, nor the .func got error right.
T
08:39
Tim
Tact is experimental, you should not use it if for not tact development
JT
09:00
Jacky Tang
In reply to this message
pip toncli is broken, if use the github version, this error goes away, also the func, fift and lite-client needs to be patched with spycheese versions, but it's already way behind head
k
12:29
klp
How to get the storage fee of the transaction?
e
13:11
ethzanity
Hey guys, what does the number in load_uint(64) actually mean? Why is it sometimes load_uint(4)? Is it a pointer to an object in the slice or just the length of the integer that needs parising?

for eg in slice~loaduint(64), what if my slice contained two uint variables?
DS
13:12
Daniil Sedov
In reply to this message
It's size of integer in bits
13:12
load_uint(64) means load 64-bit unsinged integer from slice
e
13:20
ethzanity
In reply to this message
But what if the slice contains 2 integers, one 32 bit and one 64 bit?
D
13:34
Dzmitry
type BitString from "ton" is not assignable to type BitString from ton-contract-executor

Who knows how I can fix it?

Argument of type 'import(".../hello-world/node_modules/ton/dist/boc/Cell").Cell' is not assignable to parameter of type 'import(".../hello-world/node_modules/ton-contract-executor/node_modules/ton/dist/boc/Cell").Cell'.
Types of property 'bits' are incompatible.
Type 'import(".../hello-world/node_modules/ton/dist/boc/BitString").BitString' is not assignable to type 'import(".../hello-world/node_modules/ton-contract-executor/node_modules/ton/dist/boc/BitString").BitString'.
Property '#private' in type 'BitString' refers to a different member that cannot be accessed from within type 'BitString'.

contract = await SmartContract.fromCell(
initCodeCell, initDataCell);
AG
14:02
Alex Golev
In reply to this message
Generally int - 257-bit signed integers. But when we work with cells, we can write and read only significant for us part. Supposed, that you know what you have stored in the readable slice (from the TL-B scheme or from the code of contract that built this cell-slice). In this case, you need to read 2 integers a and b in same order they have written into your slice cs. For example:
int a = cs~load_uint(32);
int b = cs~load_uint(64);

You can find out some thoughts in this lessons.
TH
14:38
Tse Hou
Is it possible to create a hierarchical deterministic wallet on TON?
14:48
I knew that wallet v3 allows users to generate multiple addresses with the same public key, but since public key of each address might be a publicly available data, this approach doesn't seem to effectively protect privacy.
T
14:56
Tim
You can use standard HD path. Ton has its own id
fd
15:12
fed dot
Please tell when I pay storage_fee for contract, it is paid for time range, when that time expired, will the coins be burned?
DS
15:14
Daniil Sedov
In reply to this message
storage_fees are paid on each transaction that happens with your contract
15:16
In reply to this message
I see time_delta is used in the storage cost calculation
MK
15:16
Myroslav Koval
Doest tron provide any technical solution which we can integrate in our react-native app to deposit ton coin? by credit card?
15:16
Maybe some endpoints, sdks, webview, redirection to deposits??
DS
15:17
Daniil Sedov
In reply to this message
time delta is how much time has passed since last tx
fd
15:17
fed dot
In reply to this message
I understand, thank you!
T
15:25
TON technical overview
In reply to this message
MK
15:27
Myroslav Koval
In reply to this message
Is that all TON apps, or it's apps which have integrated TON ecosystem?
15:31
In reply to this message
that's not what we need, we don't want to integrate, ability to buy ton thought the middle app, we want to integrate directly TON solution
T
15:41
Tim
This is not TONs job to handle. Ethereum foundation doesn't accept deposits for eth too.
You can use mercury for ton for example.
?A
15:47
🇷🇺 Angry Hacker
Hellow! I have a question about buying nft on getgems - I understand correctly - for buy nft I just could transfer proper amount to special-buying-nft-contract-address, then when transaction is done - that contract transfer nft to my wallet address? It’s all? Or being more schemas for buying nft on getgems (for example)?
KM
17:33
Kirill Malev
T
TON Community 26.12.2022 14:14:30
Introducing TON Connect 2.0

The TON community is launching TON Connect 2.0 today, an open-source standard allowing users to log in to internet services safely and without usernames or passwords.

This next iteration of TON Connect, launched in April, has received new yet important functions and was a genuine team effort from the community.

One of the key advantages TON Connect 2.0 has over its previous version is the ability to interact directly with decentralized applications based on TON. Users can now connect to mobile and desktop apps, Telegram bots, and other dApps in the interfaces of TON-based crypto wallets.

Connecting to apps happens in the wallet’s browser, and they’ll be available to be used in the wallet — without leaving the app.

TON Connect 2.0 allows users to sign in to online platforms with a single click, granting access to all of Web3’s use cases.

Tonkeeper already supports TON Connect 2.0’s standard, but other wallets have been working on implementing it.

We encourage developers and businesses to integrate TON Connect 2.0 into their products.

You can find TON Connect 2.0’s SDK documentation, helpful integration guides, and a description of the updated standard here:
https://tonkeeper.gitbook.io/ton-connect-2.0-guide-for-sdk

TON Connect 2.0 has all the tools needed to become a network-wide standard.
KM
17:34
Kirill Malev
Sticker
Not included, change data exporting settings to download.
🎉, 31.9 KB
17:34
congratulations to everyone involved!
IR
18:57
Igor Ra
Hello to all!
Does anyone know how to view NFT sales history using TonWeb
Y
19:04
YouHodler
Hello. Can I send NFTs from highload address?
D
19:28
Desu
Hello, when I use tonweb.js it tells me this
SF
19:29
Slava Fomin
You need to get the API token for TonCenter API.
D
19:29
Desu
In reply to this message
Where?
19:33
In reply to this message
Thanks you
19:36
Error LITE_SERVER_UNKNOWN: cannot apply external message to current state : External message was not accepted
19:37
Cannot run message on account: inbound external message rejected by transaction
19:42
What could cause the error?
SF
19:45
Slava Fomin
Hello guys!

May I ask you to vote for the JavaScript JSON.parse source text access proposal? It will allow us to parse big numbers that are stored in JSON documents.

I hope this will help moving it forward:

1. Put a star at the GitHub repository.

2. Put a thumbs up under this posts.

Thank you!
D
19:47
Desu
I don't quite understand what you mean by the message
SF
19:47
Slava Fomin
In reply to this message
Check the seqno.
D
19:48
Desu
In reply to this message
It has spaces, shouldn't it take them?
SF
19:49
Slava Fomin
In reply to this message
What?
D
19:50
Desu
19:51
What is seqno?
S
19:51
Step
@slavafomin how to convert ip here https://ton.org/global-config.json to readable ip address?
P
19:51
Party of the Dead
In reply to this message
Before sending a transaction, you first need to read the seqno and then pass this parameter when sending the transaction. The seqno is a kind of protection against incorrect transactions.
D
19:53
Desu
In reply to this message
One second
19:53
I am doing a console log to seqno
19:56
seqno null
19:56
How do I correct it?
SF
19:56
Slava Fomin
In reply to this message
Just break it into four bytes.
D
19:57
Desu
In reply to this message
I've lost sorry, how would it be?
D
20:03
Desu
I'm using

const PubK=Uint8Array.from(config.PublicKey);
const SecK=Uint8Array.from(config.SecretKey);
20:03
it keeps giving me null
S
20:08
Step
In reply to this message
no idea how to convert this 84478511 into ip address like 1.1.1.1
D
20:13
Desu
In reply to this message
LITE_SERVER_UNKNOWN: cannot apply external message to current state : Failed to unpack account state
20:13
I despair
SF
20:16
Slava Fomin
In reply to this message
I've sent you a complete example above. Please study it carefully.
D
20:19
Desu
I don't see the error :(
SF
20:19
Slava Fomin
In reply to this message
And now you have to change your API key, because it was compromised...
D
20:19
Desu
async function send_gramms(addr, amount) {
try {
const PubK=Uint8Array.from(config.PublicKey);
const SecK=Uint8Array.from(config.SecretKey);

const tonweb = new TonWeb(new TonWeb.HttpProvider('https://toncenter.com/api/v2/jsonRPC', {apiKey: '***'}));

let wallet = tonweb.wallet.create({publicKey: PubK});

const address = await wallet.getAddress();

console.log("Your address: "+address.toString(true,true));

var balance = await tonweb.getBalance(address);
console.log("Balance: "+balance);

const seqno = await wallet.methods.seqno().call();

console.log(seqno);

const transfer = wallet.methods.transfer({
secretKey: SecK,
toAddress: addr,
amount: TonWeb.utils.toNano(amount), // ton amount
seqno: seqno,
payload: '\xF0\x9F\x98\x81 ItchDesu Faucet', // Message
sendMode: 3,
});

//const transferFee = await transfer.estimateFee();
//console.log(transferFee);
const transferSended = await transfer.send(); // send transfer query to blockchain
//console.log(transferSended);
if(transferSended && transferSended['@type']=='ok'){
console.log('TON sent');
return true;
}else{
return false;
}

} catch(e) {
console.log('Error',e);
return e;
}
}``
20:20
Sorry
20:20
I'm doing something wrong but I don't see the error
SF
20:21
Slava Fomin
Try this: seqno: (seqno || 0),
D
20:21
Desu
Ok
D
20:23
Desu
Good!!!
SF
20:24
Slava Fomin
In reply to this message
By the way, if the transaction was accepted by the HTTP API it is still doesn't guarantee that it will be completed.
D
20:24
Desu
20:28
In reply to this message
Received
20:40
Thank you very much for your help.
S
20:56
Step
In reply to this message
i think its wrong
20:56
"addrs": [
{
"@type": "adnl.address.udp",
"ip": -1307380867,
"port": 15888
}
20:57
In reply to this message
77.237.12.131:15888 connection refused.
N
21:01
Nati
Looks like it's using the UDP protocol and you are trying to connect with TCP?
V
21:12
Vitor
Hello, the tonkeeper app is decentralized, is it possible for the government to see my transfer and charge taxes?
S
21:13
Step
In reply to this message
yes tcp
21:14
i choose wrong server
N
21:14
Nati
In reply to this message
It's not possible to know who owns a certain wallet, unless you publicly said it's yours.
S
21:14
Step
🤕
N
21:16
Nati
In reply to this message
And a better place to ask general questions about TON is here.
S
21:16
Step
how to listen for new blocks/transactions in adnl?
DS
21:21
Daniil Sedov
In reply to this message
You can listen to some specific shardchains. But currently there is usually just one shardchain because TPS is low
S
21:22
Step
In reply to this message
yes but how?
21:22
const TL_GETTIME = '7af98bb435263e6c95d6fecb497dfd0aa5f031e7d412986b5ce720496db512052e8f2d100cdf068c7904345aad16000000000000'
21:22
this for getting time?
21:22
i need something to get transactions
DS
21:22
Daniil Sedov
I don't know how to do it but I think it's possible
Y
22:09
YouHodler
Hello. Can I send NFTs from highload wallet address to another TON address ?
DS
22:10
Daniil Sedov
In reply to this message
You can send anything