Circles Profiles
Circles is built around the ERC1155 token standard which allows tokens to have metadata. Since Circles is all about personal currency, it makes sense to utilize this metadata as a profile.
The profile data is stored in IPFS and the Circles avatar references the CIDv0 of the profile on-chain.
Profile schema
The schema is very simple and only has one required attribute:
Profile picture
You can include a profile picture in the profile document (the previewImageUrl
). If you choose to do so, make sure the picture you are using has the following properties:
Format: The image must be in PNG, JPEG, or GIF format.
Dimensions: The image must be exactly 256x256 pixels.
File size: The image must not exceed 150KB.
Encoding: The image must be base64 encoded and included as a data URL in the
previewImageUrl
field.
These requirements are enforced by the server to ensure consistency and performance across the platform.
Here is a code example (Browser; TypeScript) that shows how you can prepare the previewImageUrl.
Profiles that don't adhere to the spec aren't considered and won't be served by Circles' profile service.
Last updated