-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
It would be super cool to facilitate the possibility of fetching token data (i.e. symbol, decimals) for a given list of token addresses and making a single batched eth_call in on request.
Similar work was done here: Basically input a list of addresses and making a list of request data before making the eth call:
The most relevant code block here was:
for index, eth_address in enumerate(addresses):
request_data.append({
"jsonrpc": "2.0",
"method": "eth_getCode",
"params": [eth_address, "latest"],
"id": index
})
response = requests.post(self.node_url, json=request_data)I would volunteer to implement, but don't have time at the moment, recording this issue here in case someone wants to pick it up.
Cheers.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels