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

Dec 13, 2022, 2:14 PM
C#
Dec 13, 2022, 2:17 PM
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
Dec 13, 2022, 2:34 PM
wow, thx. Yeap for c# i couldn't find it either
if I understood correctly i can interact with HTTP req to TON Blockchain, without any library?
Dec 13, 2022, 2:43 PM
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.
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.
A kind of workaround: execute subprogram written in another language that has libraries for working with TON.
Dec 13, 2022, 2:53 PM
moment pls
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
Dec 13, 2022, 3:12 PM
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.
Dec 13, 2022, 4:02 PM
he told me; Invalid instruction (memory stack flushed to disk)
Dec 13, 2022, 4:03 PM
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.
Dec 13, 2022, 4:03 PM
thx
Dec 13, 2022, 4:06 PM

© 2024 Draquery.com All rights reserved.