/username/:username:
Returns account details for a given herotag
The /username/\{username\}
is used to obtain the account details for any herotag. The command also performs a redirect on the proper account address, and requires a username. Optionally, users can input a number of skippable items.
Parameters
username
REQUIRED(number)
- Number of items to skip for the result set
Returns
address:
(string)
- Account bech32 addressbalance:
(number)
- Account current balancenonce:
(number)
- Account current nonceshard:
(number)
- The shard ID allocated to the accountrootHash:
(string)
- The hash of the root nodetxCount:
(number)
- The number of transactions performed on this accountscrCount:
(number)
- The number of smart contract results of this accountusername:
(string)
- username of the accountdeveloperReward:
(string)
- The developer reward
Example Request and Result for /username/\{username\}
Request
curl -X 'GET' \
'https://elrond-api.public.blastapi.io/usernames/Astro' \
-H 'accept: application/json'
Result
{
"address": "erd1ads85m0dnhp4v3re3ldd6qzjn9r07p2pj8ff3h62fh3ja5aw3c0sk7zrlr",
"balance": "4557269641022959520",
"nonce": 67,
"shard": 1,
"rootHash": "2TxCvh8P0AZQahW5hnOK1WSQarQ0mEgqDqkT5xGPqAU=",
"txCount": 74,
"scrCount": 80,
"username": "astro.elrond",
"developerReward": "0"
}