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

add full version of /getBlockTransactions #88

Open
slavnycoder opened this issue Sep 17, 2023 · 3 comments
Open

add full version of /getBlockTransactions #88

slavnycoder opened this issue Sep 17, 2023 · 3 comments

Comments

@slavnycoder
Copy link

slavnycoder commented Sep 17, 2023

I need to do a basic thing. I have N wallets in db and i want to scan blockchain and write transactions i need to database.

  1. I use /getConsensusBlock to get last block, then /shards to get workchain blocks and /getBlockTransactions to get transactions.

Now we have transactions in short form.

"transactions": [
      {
        "@type": "blocks.shortTxId",
        "mode": 135,
        "account": "0:0816e9c02d110e790f7db3231b3bab12cccfc56b546c3c3e530684b4a9578a43",
        "lt": "41008927000005",
        "hash": "LrLrdf66/pIoNXJE8t/OnwtzxJsOS95XaktVM8IC/Jg="
      },
...

And of course I need full a form of transaction, to get from, where and amount. I can't decide if i need this tx now, because i see only destination address in short form. So i'm doing a next step.

  1. Getting full transaction info through /getTransactions endpoint.

Is it possible to get rid of step 2 and provide full info in /getBlockTransactions like we have /getAddressInformation and /getExtendedAddressInformation?

@rever273
Copy link

rever273 commented Nov 7, 2023

This is a very good suggestion for improvement. I hope the developers will read your post and do it.

@troman29
Copy link

troman29 commented Nov 7, 2023

@jaybbbb
Copy link

jaybbbb commented Dec 14, 2023

I wrote and pushed the code here #99.

Please review and comment. 🙏

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

4 participants