Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/getBlockTransactions provides wrong enumeration by using after_lt and after_hash #100

Open
artmon opened this issue Dec 21, 2023 · 0 comments

Comments

@artmon
Copy link

artmon commented Dec 21, 2023

Hello.
I'm trying to enumerate all transactions in the block by chunk.
For example take chunk size 40 (the default value)

First request:
https://toncenter.com/api/v2/getBlockTransactions?workchain=0&shard=-9223372036854775808&seqno=40485346&count=40
response:
{"ok":true,"result":{"@type":"blocks.transactions","id":{"@type":"ton.blockIdExt","workchain":0,"shard":"-9223372036854775808","seqno":40485346,"root_hash":"HNR6dyy8aO91VKhABiXQrLyhFlji2zYhWzprjfFHVD4=","file_hash":"dYDar41Zncd8GfQ0e+MjRO/P5ZBotHO4EusAK1vmETQ="},"req_count":40,"incomplete":true,"transactions":[{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000001","hash":"1BTZrxkewHR+AlihoEYTPQhbkK0sYh96ZMFIo80+P0w="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000002","hash":"1YovxIQkoSDfi0tM+2yCLetvRbIyR29ppX8Py6KXjWE="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000003","hash":"RfQUnowwen+N8Z7xyNQt+crhG/bj2nZIBEoQ0spAwSc="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000004","hash":"nFoBbTjiyUipil0L3zZ/nZDjFujTUKYS1p4LFVho2OI="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000005","hash":"Yf/dWHFEnYQZfYwN9tlaEC5JdpUXONs1RbjoBV1CrTQ="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000006","hash":"m0arrNRXqSYaO+8lyB78WH2UjKViosNDZyBEQHl5xzA="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000007","hash":"NgE01n7Alf0siaY5BOQJfHDdLXHnEi6t/keO6bjTItw="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000008","hash":"rrMEhnUf9OadVx21+2O/BScyBOx/KBZ6eLDmzdnMHYI="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000009","hash":"xSYthgAsDPrL3ox2awhtsiWqkHkXTdu/xSEaQlX+p9k="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000010","hash":"QqfE3UQSuL1KatNTNAf6xatzzMFWM8H5t6DPg16sgf0="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000011","hash":"qoDCNvocY2dDZVSB5EmgmiFI30cLErYEK7YEsMu29gE="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000012","hash":"RnTDBTgU60oiG1vyBYUoFZJSulHip9j4vrnOW4sVYAk="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000013","hash":"wmxo59theCoh3Xxn9digqMJlC01qnXZlfWgNuX5Rpsg="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000014","hash":"NlX9nlO+QPcIC5RL867BfStyXl7WhH81ZBx5/dn4gP8="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000015","hash":"ZUvmRiNWlAdxkOycq0ilOQajPagrtWMryFgiakcMR8c="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000016","hash":"GMrRYFLxzPnII5gJrit5dmxnSIvt21HvWYWpwfB0WHU="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000017","hash":"7BLOOe15RgsOnUv5EOhpjW5fGCWr+SlZlZFwr5RIlo0="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000018","hash":"C8F/HBDfPytF6mg8kGYtFlw22w5PS+GY9pVUnyjXao0="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000019","hash":"SEDSWDFW5JYJDisBfuyZTswhlIeSTT4sEfzNwWB+0AI="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000020","hash":"yRJpqR2t5Fgu+V4Bq8fsAjR3n8zzT6GRe8SYWOjAvhE="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000021","hash":"DAw5ShlhfPNxvpjmVR/gW1OX5OEfXXmcrnVdy02EB3s="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000022","hash":"d4WlxCKagO69deiZYMGoYRHHyazYWMsiolDpu4hhh6M="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000023","hash":"2C854wyjHIWgxMtZcAI1jtbSTGhPeFxBfO92JdQV10c="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000024","hash":"ALIWTUgVgDml7+a+fs9IoN7Ry9a1vUBoyPEy5AfCPi8="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000025","hash":"3GTV8vcPovZvtSAIWfl0VaG0tLWJ+wA+eHe0ptIjDG0="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000026","hash":"XC1zJyffH+kJ6pN4wnLXen590C+/Dy6wgiEND7bUlSQ="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000027","hash":"m4f8WSsdhiNsi3Gc9aNMjOQJfdvCnhLZPnKKd+jKpZY="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000028","hash":"UuuKzVxzPL6tghdBgGHLGue5I0hWzMx7lhxayIs9HJc="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000029","hash":"GPfhBr+EscgfWK47ti7kcrMYprRl3xlUPNY0wQflGWM="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000030","hash":"CBfs0FlXQkuO/qKTMEydhfQe01UMO2ZqAEUd/fpe7f8="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000031","hash":"OkY32LfDV/J8grpb2XVMS7D0J7LoWkDGw+BHg8BuOsU="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000032","hash":"Q3ja0fTf4Jj7nZkjuUgZkv9eo2a8fS4q4TygiNTRYiQ="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000033","hash":"qGi7EeVefc4lGJnEz+ZrET7MktXFFQb7PwIqyCme9Wc="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000034","hash":"Uln21aoFuo9wpPdMfBcNloAE/cjbgQnRIdm+9HSU9Ik="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000035","hash":"GOgEMHbHlz+zg9RuyOkezHoydvq7Bt1LGTuur9c/Syc="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000036","hash":"E4+ny0hFur9JLe+jzXqu+IqDWAF6Kg1mFvpsD7t7//s="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000037","hash":"3le+s54WvcPaYcL9jIXAvhYCns5mxs2I31I+BL8pyfk="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000038","hash":"6zPjW4B7iZD2Ym+2X2VcazhI+3qCT2AqWOGZlgwIxTo="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000039","hash":"cmzfDWKUVJNJBC8V70qkkIbjKM9ZWVaRr1TUTsZH5AY="},{"@type":"blocks.shortTxId","mode":135,"account":"0:0000000000000000000000000000000000000000000000000000000000000000","lt":"43050079000040","hash":"EbsT2ZtAwpo7ZeuTXDY4e8IOVC2aX+AkFaK2OkUFLiE="}],"@extra":"1703140860.255215:0:0.3565556052896083"}}

Second request:
https://toncenter.com/api/v2/getBlockTransactions?workchain=0&shard=-9223372036854775808&seqno=40485346&after_lt=43050079000040&after_hash=EbsT2ZtAwpo7ZeuTXDY4e8IOVC2aX%2BAkFaK2OkUFLiE%3D&count=40

Response:
{"ok":true,"result":{"@type":"blocks.transactions","id":{"@type":"ton.blockIdExt","workchain":0,"shard":"-9223372036854775808","seqno":40485346,"root_hash":"HNR6dyy8aO91VKhABiXQrLyhFlji2zYhWzprjfFHVD4=","file_hash":"dYDar41Zncd8GfQ0e+MjRO/P5ZBotHO4EusAK1vmETQ="},"req_count":40,"incomplete":true,"transactions":[{"@type":"blocks.shortTxId","mode":135,"account":"0:13cfc68528e9962c5ccaa20a9ee42fb5c9af354c8aac66107cc47289de0d00e3","lt":"43050079000001","hash":"Z8EVveP0SO7vxlTrXBiVWhe5HUMPP8i9Y7sNPQpLlcY="},{"@type":"blocks.shortTxId","mode":135,"account":"0:14e41aaa4a2e78fceb89e83ae5bb76c1fe346af3d3a8ee5804fb432acc0c60c2","lt":"43050079000001","hash":"CzHRR3LhnSiAhVxUIv0oYl7FjBNbtXZUvyDWxSI5OcI="},{"@type":"blocks.shortTxId","mode":135,"account":"0:2a475c9a27c32c7db620bcbad050a06798558ee6f5433962a38c1e2e86f1b759","lt":"43050079000001","hash":"I6i3cn2Plj+31MGehUbyZfettC3DEYn4u7Fa/QoPIjc="},{"@type":"blocks.shortTxId","mode":135,"account":"0:2a86801e22f55fe96d4fd40b1061a78a8b1d0bad2026830b14118d920daa88f5","lt":"43050079000001","hash":"i0bAOAW7bsUquI3SrOXqv5P0k736z+MhFdQ3mWUnPeQ="},{"@type":"blocks.shortTxId","mode":135,"account":"0:3381c2abb85d3a795ae9d486069c84e7ce30b0fefecbd7e4bb6cb6c65ba81d4c","lt":"43050079000001","hash":"41dFkoCaTfODCzvuEyBDxIP3rmejWh2mAZOat0k5j9Q="},{"@type":"blocks.shortTxId","mode":135,"account":"0:379be06af696642eae8f5f67e949aab0801015054332527ac7a233b21cffb89c","lt":"43050079000001","hash":"XCk8H5dnzM6PZ7NftnjwmWtlVBo3ukIissA8gbfbaTc="},{"@type":"blocks.shortTxId","mode":135,"account":"0:3e1271abe3fd58097df62203ceb5027cb7e48e21d778712e88f23805b2fc8e9d","lt":"43050079000001","hash":"2/IeFI6Wbg02z1p1A2YuvG87Au7lofYEOMl0oEJK8hg="},{"@type":"blocks.shortTxId","mode":135,"account":"0:4677e51b16200a5254d5d5a80ec34709754de0302d9c2ffae948f78bf39bd5e1","lt":"43050079000001","hash":"25LVdgUWHu+zbU/E80waFAv8SbLkEc79P+/JG+/5Yp4="},{"@type":"blocks.shortTxId","mode":135,"account":"0:4a4088ffa4dab539f4db622b8f656d67931908866d6e3151ce326bf04c56ac94","lt":"43050079000001","hash":"QOp/247d39FNcvTpqGo1E88+yRFNmZY4EsB/anYbLtE="},{"@type":"blocks.shortTxId","mode":135,"account":"0:4c518434801b9ed22c17b018196458b43ab474ef8f1a20e73159583305b3a8f5","lt":"43050079000001","hash":"u/HCtd8QBYAA7ojRO6lGdxeOaFUZiYN3arNKM/97ySg="},{"@type":"blocks.shortTxId","mode":135,"account":"0:60db8fff9809b8d77f7c642a2ba1dc09a4f8c4be69087667313050003049501a","lt":"43050079000001","hash":"dDaNibqVbscqg73c57Qu3R1fRVQkGij1YYix3/+WbjQ="},{"@type":"blocks.shortTxId","mode":135,"account":"0:66fd0529b397f6b10135cdf365ae9d5f9cc4c27f2e16f4b8ed9ad2f7aeb1d623","lt":"43050079000001","hash":"754WjAGXkmX1NmyvIJUo4+qZE8sFtVCImjN3+XvhHJA="},{"@type":"blocks.shortTxId","mode":135,"account":"0:6750bed799d65672cb5702575613183d83fb648a6cf036f656e38477de787e9f","lt":"43050079000001","hash":"GkiMmjnddzBVa5M4lj/bdPEIcGELAiAXzi8Xh8Qhfpg="},{"@type":"blocks.shortTxId","mode":135,"account":"0:67f9e18c6e9676eb3da582b5d75d4e4714b7e87e20a4fbed0c988dbb254841a1","lt":"43050079000001","hash":"byXjP+0AnJs7rvQtUE/At+/+EZLfQm00+3J3hCShrPs="},{"@type":"blocks.shortTxId","mode":135,"account":"0:69131dd6879f43390b8bc71f986b09ac8f3d1a9212913e6df39a87bbb1651ba7","lt":"43050079000001","hash":"UobUJNs31pCBzbaNvqMBbgDw/lxuZlPnD7kIjyLFZXs="},{"@type":"blocks.shortTxId","mode":135,"account":"0:6ad3d57111a58bd1c86f356215ee60c249cd3641529b49ab1bf221d5d583e5a6","lt":"43050079000001","hash":"/piZw2kyZxi0YwXacLa+qpVginnLsZ06FUtuShmbgJk="},{"@type":"blocks.shortTxId","mode":135,"account":"0:7237f96be5c9df91a4e1d8b4c4c6653d37cb2e5e30823052417fa5f62c58d238","lt":"43050079000001","hash":"2ScD1HUsquHNrv+iGFz/XzMW4YKPp9ecA1Xu8AaUJjk="},{"@type":"blocks.shortTxId","mode":135,"account":"0:7303861a9d4f7134bc14fb8b6a8783a34e294286878470d0b490b8506c9ccd83","lt":"43050079000001","hash":"HSzJozIwMYKU7yoVEvl4Bqc8MudMv6gVFtwNnBgwILo="},{"@type":"blocks.shortTxId","mode":135,"account":"0:779dcc815138d9500e449c5291e7f12738c23d575b5310000f6a253bd607384e","lt":"43050079000001","hash":"utyAoU4+3Zr31j2h+OgaEsZv2RQJk4rOQ4kD4NdUNpQ="},{"@type":"blocks.shortTxId","mode":135,"account":"0:779dcc815138d9500e449c5291e7f12738c23d575b5310000f6a253bd607384e","lt":"43050079000003","hash":"IVnCIHIwugUFYJF3DC1GgPnCczhFqHTI1/WuFz36vmY="},{"@type":"blocks.shortTxId","mode":135,"account":"0:7efb86b0a858f5b93b8d463fb780de755e3a3fa6fddbae8e56def71d2b6e1e56","lt":"43050079000001","hash":"QdaRoT0BE/yZR5LUkTgl7Kv9QbFwa9EXPxOrbJuTwjg="},{"@type":"blocks.shortTxId","mode":135,"account":"0:82ee03349b284830d54f5f90cb0c585e1661f9f86c242b76b6e6a0e079772ef6","lt":"43050079000001","hash":"AAdEREmVe9AtLsuYyqMTFw0G1h7cK2CmSgYA8le8X1s="},{"@type":"blocks.shortTxId","mode":135,"account":"0:8dc8470783923b611fcf86db8fc9eef20ccb3d2269e6db6318e428993f20802c","lt":"43050079000001","hash":"tyUpm98KDiHeYZwHjMMdA5b2/BQAEDbUlbsxuDDOnjc="},{"@type":"blocks.shortTxId","mode":135,"account":"0:985145ba4f18aec4998c92a8eef12e04538975a60d606caa4c86fae0ddcdb051","lt":"43050079000001","hash":"h1KzdCmSypSsOv3FuEDlPLuX9I4xFcKbXim7hoSpUqo="},{"@type":"blocks.shortTxId","mode":135,"account":"0:9a9589de021cf64fc7e95058366bf7ec5acb57e74d41a9fe6c7556491977808f","lt":"43050079000001","hash":"62zVI+NcP7UMJ8e1zqIsTDe8a+2ahWjXhqQIvy9MdLE="},{"@type":"blocks.shortTxId","mode":135,"account":"0:9fefdda209e043d69578be28c70ddcfdb447aded850aa93021d1073ab0d15dda","lt":"43050079000001","hash":"9uiS5zpl8pdoTnG5bzwnoVYn1COFI9zS9ln1K+1e1N4="},{"@type":"blocks.shortTxId","mode":135,"account":"0:a326f4bf0b652048b55e90e008a78c8e9b0ef54734f7f841a41c6a13c2e82a28","lt":"43050079000001","hash":"N5qWGvLHgD6M5lTEy64NWEy01qSZcebcacFrRpTmJ6o="},{"@type":"blocks.shortTxId","mode":135,"account":"0:ad3b2ee0c07fcb5442755fbb990a924d3fb152455fba25300fc8805739f57dbb","lt":"43050079000001","hash":"WoIZlruGtBYUAR1MyQFYmrLskQ5qLWatvUZyShBSy2Y="},{"@type":"blocks.shortTxId","mode":135,"account":"0:aef0ef9f3aec6bc5222ad6840da5d70a94b1cd537e9bd9e77d4f29d8765b39c1","lt":"43050079000001","hash":"PQHYw63/f8DHNXMLkApK15HC7admilur6u/kKSQkXoA="},{"@type":"blocks.shortTxId","mode":135,"account":"0:af70797f4a778fbf2e05742cead05bc85530bfcc8e1c4b173e231dfa66a2fa3c","lt":"43050079000001","hash":"mzhSoD7N3O/hBBNZU/C9RSA4TRMsg2lcQEM6cFGF4m8="},{"@type":"blocks.shortTxId","mode":135,"account":"0:b38640d785ffb1b87984577f23719ab566be7cb79a3618608b6369d42b69e793","lt":"43050079000001","hash":"WRcs0vbd8vSmvJAtkeT+7AXT8NHEEH9Su7VCbIwCRzs="},{"@type":"blocks.shortTxId","mode":135,"account":"0:b596f20fbbd6999b8b740506913d8e941594337209aef934d387f0a7fbdd88c1","lt":"43050079000001","hash":"fkUBCFFasNlRgiRTb+Zd/VNhIQSdJuq25JSHeyPRgiA="},{"@type":"blocks.shortTxId","mode":135,"account":"0:b82256e6b5b0d26d2fcbd0fad6ba3c2ab914f15af056c2d5833f9003e98aff5d","lt":"43050079000001","hash":"1PgFiL3vaFU3iFauqHoJSMQZ1n+KS9l9M7P7U/GYa8w="},{"@type":"blocks.shortTxId","mode":135,"account":"0:ba511480a1b47c19012f89fa8f09f576f0df7a6659deef01a3faec5b8602b9a8","lt":"43050079000001","hash":"MH1Z9NH002X8MPrlx2/v9DxBBmWVi7pJ7rDkolyQAsE="},{"@type":"blocks.shortTxId","mode":135,"account":"0:bf597e45dfbbc5f1555935c66e49102fb3840f82281857945d360fc98345c74d","lt":"43050079000001","hash":"nco0HgNr/yOYQCjy6eoXVWAIbT/EViDClxp8c6mAr3k="},{"@type":"blocks.shortTxId","mode":135,"account":"0:bf822e387003a5cb46977b8f843d6559351153bc27de5bcfb5107096a4412941","lt":"43050079000001","hash":"Z7sXkCAX3wYAOEGmB41TwwvG2uid6U7QC16b16CPlO0="},{"@type":"blocks.shortTxId","mode":135,"account":"0:c3a743f9436d10a622133c15a2dbf7be5be6eabad550db203996ac1b3f5fe65e","lt":"43050079000001","hash":"HVuJBw7tplPFH63le6GWGl+2USJoAhar/X2r2FiO294="},{"@type":"blocks.shortTxId","mode":135,"account":"0:c44ee992e78deab2bcc176e92e5f9d17e93e47a51ae41110b8a01596cb836568","lt":"43050079000001","hash":"ts3sp0UxxbUiHSh830SODZoL79Vt/pJTA5jYQuUfpXo="},{"@type":"blocks.shortTxId","mode":135,"account":"0:c47e3781142e8d2dbb0c5832b04daa5aa985087cffe99b6e05c64ebafed63310","lt":"43050079000001","hash":"iPcE8eethOfMXRuJ/oJZUGsuF8zELL3URIeELVjjyjA="},{"@type":"blocks.shortTxId","mode":135,"account":"0:d4f940a278da69daeb3d54304e033bc6bb51c98f53b9e36609971781da1aba47","lt":"43050079000001","hash":"/gc0QqbYkYQQs1sOT4wYwe2R0ixZL/0FjjmB5taGd5c="}],"@extra":"1703144321.261245:0:0.7097650324015671"}}

Third:
https://toncenter.com/api/v2/getBlockTransactions?workchain=0&shard=-9223372036854775808&seqno=40485346&after_lt=43050079000001&after_hash=%2Fgc0QqbYkYQQs1sOT4wYwe2R0ixZL%2F0FjjmB5taGd5c%3D&count=40

Response:
{"ok":true,"result":{"@type":"blocks.transactions","id":{"@type":"ton.blockIdExt","workchain":0,"shard":"-9223372036854775808","seqno":40485346,"root_hash":"HNR6dyy8aO91VKhABiXQrLyhFlji2zYhWzprjfFHVD4=","file_hash":"dYDar41Zncd8GfQ0e+MjRO/P5ZBotHO4EusAK1vmETQ="},"req_count":40,"incomplete":false,"transactions":[{"@type":"blocks.shortTxId","mode":135,"account":"0:fe4551848c6a64cc2d85d6aed059716428af7ad67a48c45e9dc314156717a740","lt":"43050079000001","hash":"AmeuyAtOpbxY6HQ9BMBNEhxvHezzuLBxoADbuGemTJU="}],"@extra":"1703141103.3508904:0:0.7186710748600936"}}

Expected response on third reuest is different. We can see much more transactions if for instance we try to run second request with count 50:
https://toncenter.com/api/v2/getBlockTransactions?workchain=0&shard=-9223372036854775808&seqno=40485346&after_lt=43050079000040&after_hash=EbsT2ZtAwpo7ZeuTXDY4e8IOVC2aX%2BAkFaK2OkUFLiE%3D&count=50

Response:
{"ok":true,"result":{"@type":"blocks.transactions","id":{"@type":"ton.blockIdExt","workchain":0,"shard":"-9223372036854775808","seqno":40485346,"root_hash":"HNR6dyy8aO91VKhABiXQrLyhFlji2zYhWzprjfFHVD4=","file_hash":"dYDar41Zncd8GfQ0e+MjRO/P5ZBotHO4EusAK1vmETQ="},"req_count":50,"incomplete":true,"transactions":[{"@type":"blocks.shortTxId","mode":135,"account":"0:13cfc68528e9962c5ccaa20a9ee42fb5c9af354c8aac66107cc47289de0d00e3","lt":"43050079000001","hash":"Z8EVveP0SO7vxlTrXBiVWhe5HUMPP8i9Y7sNPQpLlcY="},{"@type":"blocks.shortTxId","mode":135,"account":"0:14e41aaa4a2e78fceb89e83ae5bb76c1fe346af3d3a8ee5804fb432acc0c60c2","lt":"43050079000001","hash":"CzHRR3LhnSiAhVxUIv0oYl7FjBNbtXZUvyDWxSI5OcI="},{"@type":"blocks.shortTxId","mode":135,"account":"0:2a475c9a27c32c7db620bcbad050a06798558ee6f5433962a38c1e2e86f1b759","lt":"43050079000001","hash":"I6i3cn2Plj+31MGehUbyZfettC3DEYn4u7Fa/QoPIjc="},{"@type":"blocks.shortTxId","mode":135,"account":"0:2a86801e22f55fe96d4fd40b1061a78a8b1d0bad2026830b14118d920daa88f5","lt":"43050079000001","hash":"i0bAOAW7bsUquI3SrOXqv5P0k736z+MhFdQ3mWUnPeQ="},{"@type":"blocks.shortTxId","mode":135,"account":"0:3381c2abb85d3a795ae9d486069c84e7ce30b0fefecbd7e4bb6cb6c65ba81d4c","lt":"43050079000001","hash":"41dFkoCaTfODCzvuEyBDxIP3rmejWh2mAZOat0k5j9Q="},{"@type":"blocks.shortTxId","mode":135,"account":"0:379be06af696642eae8f5f67e949aab0801015054332527ac7a233b21cffb89c","lt":"43050079000001","hash":"XCk8H5dnzM6PZ7NftnjwmWtlVBo3ukIissA8gbfbaTc="},{"@type":"blocks.shortTxId","mode":135,"account":"0:3e1271abe3fd58097df62203ceb5027cb7e48e21d778712e88f23805b2fc8e9d","lt":"43050079000001","hash":"2/IeFI6Wbg02z1p1A2YuvG87Au7lofYEOMl0oEJK8hg="},{"@type":"blocks.shortTxId","mode":135,"account":"0:4677e51b16200a5254d5d5a80ec34709754de0302d9c2ffae948f78bf39bd5e1","lt":"43050079000001","hash":"25LVdgUWHu+zbU/E80waFAv8SbLkEc79P+/JG+/5Yp4="},{"@type":"blocks.shortTxId","mode":135,"account":"0:4a4088ffa4dab539f4db622b8f656d67931908866d6e3151ce326bf04c56ac94","lt":"43050079000001","hash":"QOp/247d39FNcvTpqGo1E88+yRFNmZY4EsB/anYbLtE="},{"@type":"blocks.shortTxId","mode":135,"account":"0:4c518434801b9ed22c17b018196458b43ab474ef8f1a20e73159583305b3a8f5","lt":"43050079000001","hash":"u/HCtd8QBYAA7ojRO6lGdxeOaFUZiYN3arNKM/97ySg="},{"@type":"blocks.shortTxId","mode":135,"account":"0:60db8fff9809b8d77f7c642a2ba1dc09a4f8c4be69087667313050003049501a","lt":"43050079000001","hash":"dDaNibqVbscqg73c57Qu3R1fRVQkGij1YYix3/+WbjQ="},{"@type":"blocks.shortTxId","mode":135,"account":"0:66fd0529b397f6b10135cdf365ae9d5f9cc4c27f2e16f4b8ed9ad2f7aeb1d623","lt":"43050079000001","hash":"754WjAGXkmX1NmyvIJUo4+qZE8sFtVCImjN3+XvhHJA="},{"@type":"blocks.shortTxId","mode":135,"account":"0:6750bed799d65672cb5702575613183d83fb648a6cf036f656e38477de787e9f","lt":"43050079000001","hash":"GkiMmjnddzBVa5M4lj/bdPEIcGELAiAXzi8Xh8Qhfpg="},{"@type":"blocks.shortTxId","mode":135,"account":"0:67f9e18c6e9676eb3da582b5d75d4e4714b7e87e20a4fbed0c988dbb254841a1","lt":"43050079000001","hash":"byXjP+0AnJs7rvQtUE/At+/+EZLfQm00+3J3hCShrPs="},{"@type":"blocks.shortTxId","mode":135,"account":"0:69131dd6879f43390b8bc71f986b09ac8f3d1a9212913e6df39a87bbb1651ba7","lt":"43050079000001","hash":"UobUJNs31pCBzbaNvqMBbgDw/lxuZlPnD7kIjyLFZXs="},{"@type":"blocks.shortTxId","mode":135,"account":"0:6ad3d57111a58bd1c86f356215ee60c249cd3641529b49ab1bf221d5d583e5a6","lt":"43050079000001","hash":"/piZw2kyZxi0YwXacLa+qpVginnLsZ06FUtuShmbgJk="},{"@type":"blocks.shortTxId","mode":135,"account":"0:7237f96be5c9df91a4e1d8b4c4c6653d37cb2e5e30823052417fa5f62c58d238","lt":"43050079000001","hash":"2ScD1HUsquHNrv+iGFz/XzMW4YKPp9ecA1Xu8AaUJjk="},{"@type":"blocks.shortTxId","mode":135,"account":"0:7303861a9d4f7134bc14fb8b6a8783a34e294286878470d0b490b8506c9ccd83","lt":"43050079000001","hash":"HSzJozIwMYKU7yoVEvl4Bqc8MudMv6gVFtwNnBgwILo="},{"@type":"blocks.shortTxId","mode":135,"account":"0:779dcc815138d9500e449c5291e7f12738c23d575b5310000f6a253bd607384e","lt":"43050079000001","hash":"utyAoU4+3Zr31j2h+OgaEsZv2RQJk4rOQ4kD4NdUNpQ="},{"@type":"blocks.shortTxId","mode":135,"account":"0:779dcc815138d9500e449c5291e7f12738c23d575b5310000f6a253bd607384e","lt":"43050079000003","hash":"IVnCIHIwugUFYJF3DC1GgPnCczhFqHTI1/WuFz36vmY="},{"@type":"blocks.shortTxId","mode":135,"account":"0:7efb86b0a858f5b93b8d463fb780de755e3a3fa6fddbae8e56def71d2b6e1e56","lt":"43050079000001","hash":"QdaRoT0BE/yZR5LUkTgl7Kv9QbFwa9EXPxOrbJuTwjg="},{"@type":"blocks.shortTxId","mode":135,"account":"0:82ee03349b284830d54f5f90cb0c585e1661f9f86c242b76b6e6a0e079772ef6","lt":"43050079000001","hash":"AAdEREmVe9AtLsuYyqMTFw0G1h7cK2CmSgYA8le8X1s="},{"@type":"blocks.shortTxId","mode":135,"account":"0:8dc8470783923b611fcf86db8fc9eef20ccb3d2269e6db6318e428993f20802c","lt":"43050079000001","hash":"tyUpm98KDiHeYZwHjMMdA5b2/BQAEDbUlbsxuDDOnjc="},{"@type":"blocks.shortTxId","mode":135,"account":"0:985145ba4f18aec4998c92a8eef12e04538975a60d606caa4c86fae0ddcdb051","lt":"43050079000001","hash":"h1KzdCmSypSsOv3FuEDlPLuX9I4xFcKbXim7hoSpUqo="},{"@type":"blocks.shortTxId","mode":135,"account":"0:9a9589de021cf64fc7e95058366bf7ec5acb57e74d41a9fe6c7556491977808f","lt":"43050079000001","hash":"62zVI+NcP7UMJ8e1zqIsTDe8a+2ahWjXhqQIvy9MdLE="},{"@type":"blocks.shortTxId","mode":135,"account":"0:9fefdda209e043d69578be28c70ddcfdb447aded850aa93021d1073ab0d15dda","lt":"43050079000001","hash":"9uiS5zpl8pdoTnG5bzwnoVYn1COFI9zS9ln1K+1e1N4="},{"@type":"blocks.shortTxId","mode":135,"account":"0:a326f4bf0b652048b55e90e008a78c8e9b0ef54734f7f841a41c6a13c2e82a28","lt":"43050079000001","hash":"N5qWGvLHgD6M5lTEy64NWEy01qSZcebcacFrRpTmJ6o="},{"@type":"blocks.shortTxId","mode":135,"account":"0:ad3b2ee0c07fcb5442755fbb990a924d3fb152455fba25300fc8805739f57dbb","lt":"43050079000001","hash":"WoIZlruGtBYUAR1MyQFYmrLskQ5qLWatvUZyShBSy2Y="},{"@type":"blocks.shortTxId","mode":135,"account":"0:aef0ef9f3aec6bc5222ad6840da5d70a94b1cd537e9bd9e77d4f29d8765b39c1","lt":"43050079000001","hash":"PQHYw63/f8DHNXMLkApK15HC7admilur6u/kKSQkXoA="},{"@type":"blocks.shortTxId","mode":135,"account":"0:af70797f4a778fbf2e05742cead05bc85530bfcc8e1c4b173e231dfa66a2fa3c","lt":"43050079000001","hash":"mzhSoD7N3O/hBBNZU/C9RSA4TRMsg2lcQEM6cFGF4m8="},{"@type":"blocks.shortTxId","mode":135,"account":"0:b38640d785ffb1b87984577f23719ab566be7cb79a3618608b6369d42b69e793","lt":"43050079000001","hash":"WRcs0vbd8vSmvJAtkeT+7AXT8NHEEH9Su7VCbIwCRzs="},{"@type":"blocks.shortTxId","mode":135,"account":"0:b596f20fbbd6999b8b740506913d8e941594337209aef934d387f0a7fbdd88c1","lt":"43050079000001","hash":"fkUBCFFasNlRgiRTb+Zd/VNhIQSdJuq25JSHeyPRgiA="},{"@type":"blocks.shortTxId","mode":135,"account":"0:b82256e6b5b0d26d2fcbd0fad6ba3c2ab914f15af056c2d5833f9003e98aff5d","lt":"43050079000001","hash":"1PgFiL3vaFU3iFauqHoJSMQZ1n+KS9l9M7P7U/GYa8w="},{"@type":"blocks.shortTxId","mode":135,"account":"0:ba511480a1b47c19012f89fa8f09f576f0df7a6659deef01a3faec5b8602b9a8","lt":"43050079000001","hash":"MH1Z9NH002X8MPrlx2/v9DxBBmWVi7pJ7rDkolyQAsE="},{"@type":"blocks.shortTxId","mode":135,"account":"0:bf597e45dfbbc5f1555935c66e49102fb3840f82281857945d360fc98345c74d","lt":"43050079000001","hash":"nco0HgNr/yOYQCjy6eoXVWAIbT/EViDClxp8c6mAr3k="},{"@type":"blocks.shortTxId","mode":135,"account":"0:bf822e387003a5cb46977b8f843d6559351153bc27de5bcfb5107096a4412941","lt":"43050079000001","hash":"Z7sXkCAX3wYAOEGmB41TwwvG2uid6U7QC16b16CPlO0="},{"@type":"blocks.shortTxId","mode":135,"account":"0:c3a743f9436d10a622133c15a2dbf7be5be6eabad550db203996ac1b3f5fe65e","lt":"43050079000001","hash":"HVuJBw7tplPFH63le6GWGl+2USJoAhar/X2r2FiO294="},{"@type":"blocks.shortTxId","mode":135,"account":"0:c44ee992e78deab2bcc176e92e5f9d17e93e47a51ae41110b8a01596cb836568","lt":"43050079000001","hash":"ts3sp0UxxbUiHSh830SODZoL79Vt/pJTA5jYQuUfpXo="},{"@type":"blocks.shortTxId","mode":135,"account":"0:c47e3781142e8d2dbb0c5832b04daa5aa985087cffe99b6e05c64ebafed63310","lt":"43050079000001","hash":"iPcE8eethOfMXRuJ/oJZUGsuF8zELL3URIeELVjjyjA="},{"@type":"blocks.shortTxId","mode":135,"account":"0:d4f940a278da69daeb3d54304e033bc6bb51c98f53b9e36609971781da1aba47","lt":"43050079000001","hash":"/gc0QqbYkYQQs1sOT4wYwe2R0ixZL/0FjjmB5taGd5c="},{"@type":"blocks.shortTxId","mode":135,"account":"0:d72dd5f51d07600eed53630e45ce6d75b6920f4fd3b4c70ad9e6496bd0a8b65f","lt":"43050079000001","hash":"7e1N3hzpS6baGalhdW0gr8V6lkdmgy8v803TiN4Eafw="},{"@type":"blocks.shortTxId","mode":135,"account":"0:d93f47509c1b03d3cfd9f9bb5e7bb501525dedf7efd24ee077e8dfa06864dacf","lt":"43050079000001","hash":"s61oG6s3qmC5V055zmjqX4B09rtUOUUpnKj0tJGA+pY="},{"@type":"blocks.shortTxId","mode":135,"account":"0:d97b98a59438d1902400c99b6a68b210f046c972a390a54c1f0e79550b2352f0","lt":"43050079000001","hash":"/d/HgueVfhQjbNnIqWXDXXA+ESIicUZVLhwXoeDQ21w="},{"@type":"blocks.shortTxId","mode":135,"account":"0:d9a6f6bbe72fe392026338702eb0dce40dfffa833e6d79a9aacbef19f04fbb33","lt":"43050079000001","hash":"zKKlR8SFu5XBN6v3WuXl1oo0T6kXkolewqwHmgoNw9U="},{"@type":"blocks.shortTxId","mode":135,"account":"0:da48ec3568d9c3d03b821cc5a64b9056ccdec00ee15e6cb495ca072ce3c3b873","lt":"43050079000001","hash":"rMO/zk8qDrKx9+kgDtUb31s+UVFVtjjXlOgcIo114sY="},{"@type":"blocks.shortTxId","mode":135,"account":"0:dba21407e0ccb086a27439ba5855d686b35ea871f610789386a47f64695e4101","lt":"43050079000001","hash":"wOR3hUUnMa0lhUeWOCWJVfDT0HOg3G2WA2GEWP1+lYU="},{"@type":"blocks.shortTxId","mode":135,"account":"0:dbba30297aa3bf8dade221df9272b3451f7dc4f59aa711c01587173d8005fb36","lt":"43050079000001","hash":"+kW5Jwp3B23R36JDXk0d86yiLZn/5G59qaGWa69JUss="},{"@type":"blocks.shortTxId","mode":135,"account":"0:e0fc1c66f2953643d333901fd792fd596e5b9dedd09477e1bd5d156efe3a97c2","lt":"43050079000001","hash":"wDHJ/d2tufyJQSOQxT4s+rCJPT6Iuxoe86XlaT1hLMA="},{"@type":"blocks.shortTxId","mode":135,"account":"0:e1205bb84f868bed942b0316501cec55bbfea8a2a1ccaaf331530f4b21039a38","lt":"43050079000001","hash":"nW74n4HHnGoKdyzKfxo3IRllmjYj1tdXbRrCFwV2P+4="},{"@type":"blocks.shortTxId","mode":135,"account":"0:e1c602d5a5ab85d6f121de5267ce0f0ba8ee43996624580f2b615e8dc4ce4e70","lt":"43050079000001","hash":"UyNIeCBA3QDf6vj+2aZFdK5YB4QbwxupveerJbBM1pc="}],"@extra":"1703144535.4322863:0:0.34790503778220516"}}

So I can't get all transactions in block by using after_lt and after_hash parameters.

Also it works very strange, when you try this:
https://testnet.toncenter.com/api/v2/getBlockTransactions?workchain=0&shard=8000000000000000&seqno=16242591&count=3

"account":"0:06ffc558284acb3ea94d70d7df74b56901ad61eb0ab46f10e2c2b4e12a323e63","lt":"17036718000005","hash":"H9ypUQ7wBFCOdDUOLbE3PROO30NcBGQd7lgg1PsTV9k="}, "account":"0:179595f6cd5eb1addcd73fc7b4853258fc94b6f26c202f0135dc10db41a127a9","lt":"17036718000009","hash":"q0gTxWAL5j/cym2Zi66ExOnRTex0kWdQJ3PZIxJgguA="}, "account":"0:5510e898c4c107dfaf851bf5477e5f52bfe63b4a5040b568844ad6e1a8ce7b2a","lt":"17036718000013","hash":"EAiBgQUBsJ8bE5jrH+V+Q3UmLJWCGcr97O6t5xhiHjE="}]

https://testnet.toncenter.com/api/v2/getBlockTransactions?workchain=0&shard=8000000000000000&seqno=16242591&after_lt=17036718000013&after_hash=EAiBgQUBsJ8bE5jrH%2BV%2BQ3UmLJWCGcr97O6t5xhiHjE%3D&count=3

"account":"0:179595f6cd5eb1addcd73fc7b4853258fc94b6f26c202f0135dc10db41a127a9","lt":"17036718000009","hash":"q0gTxWAL5j/cym2Zi66ExOnRTex0kWdQJ3PZIxJgguA="}, "account":"0:5510e898c4c107dfaf851bf5477e5f52bfe63b4a5040b568844ad6e1a8ce7b2a","lt":"17036718000013","hash":"EAiBgQUBsJ8bE5jrH+V+Q3UmLJWCGcr97O6t5xhiHjE="}, ,"account":"0:9135b759d0742f538da7f87e0f96e4bced79fe23bf328f11d09900e39ec9cf50","lt":"17036718000001","hash":"sLU7+2ZLwqOjpb+MMBeRqrxgs8mkrbGwIDLD881NvHw="

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant