Account Profiles
A Verida Account maintains a public profile for every application context. The default basicProfile
currently contains:
name
- Name of the accountcountry
- Country where the account owner livesdescription
- Text description / bio of the Verida accountavatar.uri
- The URI of an avatar image. This is currently encoded as a URI that contains a base64 representation of the image. (In the future other ways of storing an image will be supported, beyond auri
)
The schema can be found here: https://common.schemas.verida.io/profile/basicProfile/latest/schema.json
All properties are optional except for name
.
This public profile is a datastore that anyone can read from, but only the owner can write to.
In order to make working with profiles easier, there are some helper methods in the Verida SDK that simplify fetching and updating a profile. These are documented below.
Open any profile
Open the public profile for any Verida Account and context combination using an instance of the client
object.
For example, open a user’s public profile created in the Verida: Vault
mobile application:
This can be tried out in your browser here.
It’s also possible to open an external profile for the current context:
Open and modify the current user's profile
Open the user's context profile:
Learn more about Data URL here.
Advanced
Open an external profile without authentication
Open an external profile for using an instance of the client
object directly from the @verida/client-ts
package
For example, open a user’s public profile created in the Verida: Vault
mobile application:
Note: Change Network.BANKSIA
to Network.MYRTLE
if loading a Myrtle profile.
Last updated