Nickname

Set Nickname

Set nickname - address mapping and enable readable nickname

clif nickname set <nickname> --from <address|wallet>
clif nickname set princesselsa --from friday1y2dx0evs5k6hxuhfrfdmm7wcwsrqr073htghpv
clif nickname set princesselsa --from walletelsa
{
"chain_id": "testnet",
"account_number": "5",
"sequence": "0",
"fee": {
"amount": [],
"gas": "200000"
},
"msgs": [
{
"type": "readablename/SetNick",
"value": {
"nickname": {
"H": "507369347",
"L": "0"
},
"address": "friday15evpva2u57vv6l5czehyk69s0wnq9hrkqulwfz"
}
}
],
"memo": ""
}
confirm transaction before signing and broadcasting [y/N]: Y

After confirmation, you can use nickname instead of typing full address.

Change Address of Nickname

Change address of the given nickname.

clif nickname change-to <nickname> <new address> --from <wallet|address>
clif nickname change-to princesselsa friday15evpva2u57vv6l5czehyk69s0wnq9hrkqulwfz --from walletanna
clif nickname change-to princesselsa friday15evpva2u57vv6l5czehyk69s0wnq9hrkqulwfz --from friday1y2dx0evs5k6hxuhfrfdmm7wcwsrqr073htghpv
{
"chain_id": "testnet",
"account_number": "5",
"sequence": "0",
"fee": {
"amount": [],
"gas": "200000"
},
"msgs": [
{
"type": "readablename/ChangeKey",
"value": {
"nickname": "bryan",
"old_address": "friday15evpva2u57vv6l5czehyk69s0wnq9hrkqulwfz",
"new_address": "friday1y2dx0evs5k6hxuhfrfdmm7wcwsrqr073htghpv"
}
}
],
"memo": ""
}
confirm transaction before signing and broadcasting [y/N]: Y

After confirmation, you may use changed address by current nickname.

Get Address

Get mapped address of current nickname

clif nickname get-address <nickname>
clif nickname get-address bryan
{
"nickname": "bryan",
"address": "friday15evpva2u57vv6l5czehyk69s0wnq9hrkqulwfz"
}