neodix42 / ton4j

Java libraries for interacting with TON blockchain.
GNU General Public License v3.0
28 stars 10 forks source link

how to send coins using libtonjson or LiteClient? #12

Open farsait-lt opened 3 weeks ago

farsait-lt commented 3 weeks ago

how to send coins using libtonjson or LiteClient?

neodix42 commented 3 weeks ago

you can start from this example https://github.com/neodix42/ton4j/blob/1f5e473b7bf562412790c33c6d983b8197c48eca/smartcontract/src/test/java/org/ton/java/smartcontract/integrationtests/TestWalletV3R2Short.java#L22

farsait-lt commented 3 weeks ago

yes v3r2 sends coins, but doesn’t attach a comment, can you tell me why? Is v4r2 still not ready?

neodix42 commented 3 weeks ago

Thanks for reporting, the comment handling was missing in v3r2. The fix is out with version 0.4.6. V4R2 is ready, do you have any issues?

farsait-lt commented 2 weeks ago

Yes, there is still a difficulty and a question. The difficulty lies in parsing transactions, incoming and outgoing messages in transactions are not parsed correctly - again, the commentary is not retrieved, but the question is how to send tokens (tokens)?

neodix42 commented 2 weeks ago

this is how you can retrieve the comment of a tx: https://github.com/neodix42/ton4j/blob/0a94acb6b7bd2dcdd9f41877b2249f8d8fe64227/smartcontract/src/test/java/org/ton/java/smartcontract/integrationtests/TestWalletV3R2Short.java#L142