web3.js batch request to query multiple token addresses in one call

Job ID: 30874688

Budget: £20 – £250 GBP

I need a developer who has used web3.js batch request to make multiple requests in a single call.

The reason I need this is because I have a list of BSC token address and I need to be able to query all of them in one call to fetch the token balances in relation to a wallet address

A guide is here (https://chainstack.com/the-ultimate-guide-to-getting-multiple-token-balances-on-ethereum/) see section called "web3.js BatchRequest".

It's a bit different to my scenario. For example, I won't need to use the CoinGecko list of tokens as I already have another script that gets the tokens (see .js attached).

The public provider can be used for the web3 connection: https://bsc-dataseed1.binance.org:443

The attached .js document is a jquery script that retrieves a list of token address from a wallet using bitquery api. I need web3.js batch request to use all of these tokens to find the balance for each one.

I have also attached a sample/expected result screenshot. The balances may differ slightly as they change often, but this can be used as a guide.

I have also attached the ABI that can be used in the web3 query if needed

If you can think of a quicker more effective/efficient way of doing this, please let me know
Related categories: Node.js Blockchain Ethereum