tonkeeper / tongo

Go primitives to work with TON
MIT License
215 stars 45 forks source link

How to get the transcations in same root_hash #227

Open yangyile1990 opened 11 months ago

yangyile1990 commented 11 months ago

as you can see.

https://testnet.tonapi.io/v2/blockchain/messages/b0d50cba04aa176523d7314f14d61e89f2c42c74e19889743e9be31e66032a66/transaction

then the tx is:

https://testnet.tonapi.io/v2/blockchain/transactions/8bbb1d9b8ebe77d57792d13e35f36a361d633735e948aa170e1fa804cbdbccb5 https://testnet.tonapi.io/v2/blockchain/transactions/9cd232528f1213e259cf5d797b0281fad4bdd8c3976ff0916981615ec41bb6d9 https://testnet.tonapi.io/v2/blockchain/transactions/2da72dc2a143f0dc9be00225d3b8a4919a0dbbac67c518e65f31b4030e77405b

they are a circle. circle means a complete transaction events.

then.

how to get the circle by use you apis?

an example is:

https://testnet.toncenter.com/api/v2/getBlockTransactions?workchain=0&shard=8000000000000000&seqno=17095035&root_hash=8bbb1d9b8ebe77d57792d13e35f36a361d633735e948aa170e1fa804cbdbccb5&count=40

input any tx hash in this circle can get the same result.

but it is another sdk and need to buy new key account.

so do you have the same api?

I cannot find it in the doc and I really need it.

yangyile1990 commented 11 months ago

By the way I want to ask.

If I send the tx and get msgID is 19556c2317f16858ce4d7bba37a37613bdea79ca6c98fd34b1886373fff3d58d

can use this https://testnet.tonapi.io/v2/blockchain/messages/19556c2317f16858ce4d7bba37a37613bdea79ca6c98fd34b1886373fff3d58d/transaction to get the hash.

but how to get the next hash 36d562005bf4742ddbdd4b0c1b17b262f2ab9f7945d6184644c387f005262d21 and then how to get the last hash 63b7a5feab549c5e80661f14152a5b21e26db9f567c1116b3e8c0c3a193aeb7b

how to get them without the the Blockchain browser but only use in go program?

mr-tron commented 10 months ago

maybe you need https://testnet.tonapi.io/v2/traces//8bbb1d9b8ebe77d57792d13e35f36a361d633735e948aa170e1fa804cbdbccb5 ?

mr-tron commented 10 months ago

can use this https://testnet.tonapi.io/v2/blockchain/messages/19556c2317f16858ce4d7bba37a37613bdea79ca6c98fd34b1886373fff3d58d/transaction to get the hash.

yes