# Change your DTag
Upon completing this challenge, you will be rewarded 25 Desmos Tokens.
Please note that in order to prevent spam, you will receive the reward just for the first DTag change you do. No tokens will be awarded for later changes.
v0.12.0 we've implemented the function that allows you to change your previously set DTag.
# Changing your DTag
To change a DTag, first you need to create a profile. To do so, please refer to the profile creation process.
To change your DTag, all you have to do is edit your profile specifying a new DTag value:
desmoscli tx profiles save <DTag> \ --from <your-key-name> --yes \ --chain-id <chain-id>
Here's an example of such command:
desmoscli tx profiles save MyNewDTag \ --from jack --yes \ --chain-id morpheus-10000
Once you run that command you will be asked to type the password you've chosen during the setup and after having inserted it properly you should see something like this:
height: 0 txhash: E4920B61BFCFB935124FFC22BC04C1D5619943B138C87913E6EBCF2B5E892290 codespace: "" code: 0 data: "" rawlog: '' logs:  info: "" gaswanted: 0 gasused: 0 tx: null timestamp: ""
To make sure the transaction has been processed successfully, you can query it using the following command:
desmoscli query tx <hash> --trust-node --output json # Example # desmoscli query tx E4920B61BFCFB935124FFC22BC04C1D5619943B138C87913E6EBCF2B5E892290 \ --trust-node --output json
This will return you the JSON representation of the transaction itself.
# Getting the reward
After you've change your DTag, to make sure you receive your reward please follow this procedure:
Create a fork of this repo inside your private GitHub profile.
If you do not know how to do it, follow the GitHub fork guide.
Pull the fork locally:
git clone https://github.com/<your-name>/primer.git ~/desmos-primer cd ~/desmos-primer1
Make sure your fork is up to date with the Primer repository:
git remote add upstream https://github.com/desmos-labs/primer.git git fetch upstream git rebase upstream/master1
Create a file named after your GitHub username containing the transaction hash:
echo "<tx-hash>" >> ./phase-6/submissions/change-dtag/<your-github-name> # Example # echo "E4920B61BFCFB935124FFC22BC04C1D5619943B138C87913E6EBCF2B5E892290" >> ./phase-6/submissions/change-dtag/RiccardoM1
Commit the changes, push them to your forked repo and create a pull request. If you do not know how to create one, refer to the GitHub Pull Requests guide.