workbenchapp / solana-workbench

Your one-stop shop for developing on Solana
MIT License
63 stars 7 forks source link

if an account has too many tokens, workbench stops responding #283

Open SvenDowideit opened 2 years ago

SvenDowideit commented 2 years ago

I just picked an account on mainnet who'd response to getParsedTokenAccountsByOwner() retuens 19MB of data

see https://explorer.solana.com/address/6ZRCB7AAqGre6c72PRz3MHLC73VMYvJ8bi9KHf1HFpNk/tokens

TODO: see if we can get paging added to the solana API

the UI freezes, presumably because its busy parsing that data.

`

Originally posted by @SvenDowideit in https://github.com/workbenchapp/solana-workbench/issues/263#issuecomment-1189779903

SvenDowideit commented 2 years ago

I don't think this can be dealt with in 0.4.0, because we need to avoid making the getParsedTokenAccountsByOwner() call entirely - the lockup is during the wait for the fetch() inside this, not in our code.

its really a scalability issue in the solana API