[英]How can I get the wallet address for a given herotag?
If I want to get the herotag for a given wallet address, I can simply call the following endpoint:如果我想获取给定钱包地址的 herotag,我可以简单地调用以下端点:
https://api.elrond.com/accounts/erd1hw78kxyj353x52hmmq6dzxgexynwt4m29q2uvpq6xdm90z3halvsl7cn6g https://api.elrond.com/accounts/erd1hw78kxyj353x52hmmq6dzxgexynwt4m29q2uvpq6xdm90z3halvsl7cn6g
and I get:我得到:
{
"address":"erd1hw78kxyj353x52hmmq6dzxgexynwt4m29q2uvpq6xdm90z3halvsl7cn6g",
"nonce":4,
"balance":"0",
"rootHash":"QU6o17Qw4KUPnpU6e6QbEuvKUTA8SPy52QFseslWsG4=",
"txCount":4,
"username":"event.elrond",
"shard":1
}
where I see the username
.我在哪里看到
username
。
But now I'd like to obtain the wallet address for a given herotag.但是现在我想获取给定 herotag 的钱包地址。
Is there any API endpoint for this purpose?是否有任何用于此目的的 API 端点?
https://api.elrond.com/usernames/<herotag>
Eg:例如:
https://api.elrond.com/usernames/event https://api.elrond.com/usernames/event
redirects to重定向到
https://api.elrond.com/accounts/erd1hw78kxyj353x52hmmq6dzxgexynwt4m29q2uvpq6xdm90z3halvsl7cn6g https://api.elrond.com/accounts/erd1hw78kxyj353x52hmmq6dzxgexynwt4m29q2uvpq6xdm90z3halvsl7cn6g
and returns并返回
{
"address": "erd1hw78kxyj353x52hmmq6dzxgexynwt4m29q2uvpq6xdm90z3halvsl7cn6g",
"nonce": 7,
"balance": "254914476000000000",
"rootHash": "QU6o17Qw4KUPnpU6e6QbEuvKUTA8SPy52QFseslWsG4=",
"txCount": 9,
"scrCount": 12,
"username": "event.elrond",
"shard": 1,
"developerReward": "0"
}
erdpy
erdpy
erdpy dns resolve <herotag>.elrond --proxy=https://gateway.elrond.com
where <herotag>
should be replaced by its value.其中
<herotag>
应替换为其值。
Eg:例如:
erdpy dns resolve event.elrond --proxy=https://gateway.elrond.com
outputs输出
erd1hw78kxyj353x52hmmq6dzxgexynwt4m29q2uvpq6xdm90z3halvsl7cn6g
Details :详情:
$ erdpy --version
erdpy 1.0.12
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.