Links

Update Profile Metadata

Updating your ANS profile
view it on genesis.ar.page​
The profile of an ANS domain owner has 8 configurable properties which are:
  1. 1.
    bio : equivalent to the social "About Me". It has a maximum characters length of 150 characters.
  2. 2.
    nickname : Besides your ANS domain name, you can set a "displaying name" on your profile. Its length should be between 1 and 30 characters.
  3. 3.
    customUrl : a valid URL address. It is assigned to Website of the Social Links section.
  4. 4.
    github : a Github username. Validated as same as Github validate it.
  5. 5.
    twitter : a Twitter username. Validated as same as Twitter validate it.
  6. 6.
    instagram : an Instagram username. Validated as same Instagram validate it.
  7. 7.
    url : Arweave TXID that has a MIME Type supported in the ANS contract. The TXID gets assigned to your_domain.ar
  8. 8.
    avatar : Arweave TXID that has a MIME Type image/* and it is assigned as the profile picture (pfp).

Update The Profile

Using the CLI

smartweave write HrPi8hFc7M5dbrtlELfTKwPr53RRrDBgXGdDkp0h-j4 --input '{"function": "updateProfileMetadata", "property1": "value1", "property2": "value2"}' --key-file PATH_TO_YOUR_KEYFILE.json

Using NodeJS