joshstevens19 / ethereum-multicall

Ability to call many ethereum constant function calls in 1 JSONRPC request
MIT License
361 stars 94 forks source link

How to make multi call to native token (ETH)? #97

Open TNBT12g opened 4 months ago

TNBT12g commented 4 months ago

Hi everyone, I am success to make multi check token balance. But I stuck when fine the guide to check multi native token balance. If you know, please help me. Thank you much.

radisa-bogdanovic commented 2 months ago

Hi, multicall is only related to non-native assets and not to native assets (as much as i know). For native assets, you can get results through a web3 provider or ether or native rpc. You can map these addresses you have and limit it to 5 requests per second due to API limits (to evade 429). So basicaly you dont need a multicall for a native token. If you want to check wallet address by network you will send getNativeData(web3) and getMulticall and push everything in table response or whenever you want to send it