-
Hi, Is there any way to get coin and token balances in the same account with one query? For example, I have ETH account and in there, three ERC20 Tokens A,B,C. As far as I know, I can use BatchRequest for multiple request but I have no idea how to apply ERC20 balance query in it. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use this class - https://github.com/web3j/web3j/blob/master/core/src/main/java/org/web3j/protocol/core/BatchRequest.java |
Beta Was this translation helpful? Give feedback.
You can use this class - https://github.com/web3j/web3j/blob/master/core/src/main/java/org/web3j/protocol/core/BatchRequest.java
Create a new BatchRequest, add requests to this and lastly use send function to send the batchRequest.