but the code can only work well on the shard 8000000000000000.
I must make some mistake but I don't know how to change my code.

Jan 12, 2024, 10:08 AM
my code can only loop on the shard 8000000000000000.
first get balance before.
then send tx.
then get the change the balance.
then use the balance before + or - the changes to get the balance after.
then check the "balance after" equal the balance on the chain.
for example. I loop from the (0,8000000000000000,17308362)
then (0,8000000000000000,17308363)
then (0,8000000000000000,17308364)
until the current block num.
but I don't know how the find the other shard.
if the transfer is record on the c000000000000000 not on the 8000000000000000
my code is bug.
so my question is:
if the master chain id is from 16009000 to 16009825.
how to get all the workchain tx.
Jan 12, 2024, 10:33 AM
It's not hard, but not super easy
Look at how it's done in libs. Ton lite client for js and pytoniq(I think) for python
Jan 12, 2024, 10:38 AM
Please don't split the sentences into different messages.
Jan 12, 2024, 10:40 AM
thank you.
ok.
is this api can be used? https://tonapi.io/v2/blockchain/masterchain/123456/blocks
Jan 12, 2024, 10:44 AM
Yes
Jan 12, 2024, 10:47 AM
Yes
Jan 12, 2024, 10:52 AM
OK. I think the reason I cann't find the api is. most of the api https://tonapi.io/v2/blockchain/masterchain/16010000/blocks only return two block. one masterchain. one workchain 8000000000000000.
while the demo https://tonapi.io/v2/blockchain/masterchain/123456/blocks shows a lot of shards.
I have limited knowledge about this chain, and my ability to read English documentation is also weak. As a result, I often encounter many confusions. Thank you all for helping me.
another question~
how to get master chain seqno by the workchain block id use the api?
how to get master chain seqno by the transaction hash use the api?
Jan 12, 2024, 1:24 PM

© 2024 Draquery.com All rights reserved.