Does anyone have a script that goes over herotags and resolves them automatically to addresses?
I don't want to manually enter a herotag to elrondscan.com everytime to get the address - and the explorer.multiversx.com interestingly doesnt resolve some herotags, while elrondscan.com does.
You can achieve this using mxpy:
mxpy dns resolve <the herotag with the .elrond suffix> --proxy <gateway_url>
Example with
wonjae
, a random herotag I saw on the explorer:Command:
mxpy dns resolve wonjae.elrond --proxy https://gateway.multiversx.com
Output:
erd1dma9eq8626gezj4360ylleet8mmq02v0eyzp2syth0f08p5epf2sgmedkl
Here is a sample script which iterates over herotags to resolve their address: