hey all, just starting working on a ton project. at the very beginning of getting familiar w/ the dev environment.
seems like there are two typescript libraries: toncenter/TonWeb and ton-community/ton
the former looks a bit nicer but also has a shit ton of vulnerable dependencies that look really annoying to fix, and the latter looks like it's been depreciated, or at least marked read-only on github.
does anyone have any advice? is there kind of a consensus around which to use?
Apr 13, 2023, 2:34 PM
you can use non depreciated one tho
Apr 13, 2023, 2:38 PM
OK. the tutorial uses the one that *looks* depreciated. You're saying that yes, it really is depricated and I should instead use TonWeb?
Apr 13, 2023, 2:38 PM
use ton-core
Apr 13, 2023, 2:42 PM
latter one has been moved to the ton-core github org
Apr 13, 2023, 2:43 PM
yes, b/c I am using google Script that can't import SDK easily😂 But maybe I will try out deploy my script locally.
Apr 13, 2023, 2:45 PM
ok this is hugely helpful tysm
does anyone know how to use https://toncenter.com/api/v2/#/ to get a txn hash?
i'm calling getTransactions on the api linked above, but none of the responses have plain old "hash" fields, transaction N gives you the hash of the n-1 transaction, but not current... which is problematic for grabbing lastest hash
i'm calling getTransactions on the api linked above, but none of the responses have plain old "hash" fields, transaction N gives you the hash of the n-1 transaction, but not current... which is problematic for grabbing lastest hash
using the JS lib https://github.com/orbs-network/ton-access btw
Apr 13, 2023, 4:38 PM
Try like this
https://docs.evercloud.dev/samples/graphql-samples/transactions#get-transaction-info-by-hash
For ton use ton-mainnet.evercloud.dev/your-project-id/graphql endpoint
https://docs.evercloud.dev/samples/graphql-samples/transactions#get-transaction-info-by-hash
For ton use ton-mainnet.evercloud.dev/your-project-id/graphql endpoint
Apr 13, 2023, 11:42 PM
Isnt that everscale ?
Apr 14, 2023, 2:47 AM
Maybe you can get the latest Transaction hash by tracking the Address you sent with?
Apr 14, 2023, 3:34 AM
or maybe there is way to see status code of transaction using this rest api? do u know?
Apr 14, 2023, 3:54 AM
We have TON also
Apr 14, 2023, 5:38 AM
be aware that it does not shortcut unlike in many other languages, so if you write a | b and a is true, b will still get evaluated
same with &
Apr 14, 2023, 7:09 AM