Circles Documentation
  • Welcome to Circles
  • Overview
    • Understanding Personal and Group Currencies
      • Personal Currencies
      • Group Currencies
    • Why Build on Circles?
    • Circles Architecture
  • Developer Docs
    • The Circles Stack
    • Circles SDK Overview
    • Quickstart Guide for Circles SDK
    • Setting Circles Profiles
    • Building with different Circles Avatars
      • Personal / Human Avatars
        • Inviting and accepting human avatars
        • Mint personal tokens
        • Fetching profile of an human avatar
        • Manage trust connections
        • Get token balances of an avatar
        • Transfer personal Circles tokens to different avatar
      • Group Avatars
        • Create Base Groups for your community.
          • Vanilla groups with V2 hub
        • Mint group tokens
        • Managing group invites
        • Find groups and memberships
        • Getting total supply of group tokens available
      • Organization Avatars
        • Creation of Organizations
        • Managing trust connections via Org avatar account
  • Tutorials and Examples
    • Setting up Circles SDK with React
  • Querying Circles profiles and data
    • Query Circles Data
    • Subscribing to Avatar events
    • Utilising CirclesQuery Class
    • Query Circles profiles
  • Circles SDK Reference
    • Circles SDK interface
    • SDK Methods
    • Circles Data Methods
    • Circles Events Types
  • Developer Support
    • Glossary
    • Past Hackathon Projects on Circles
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Developer Docs
  2. Building with different Circles Avatars
  3. Group Avatars
  4. Create Base Groups for your community.

Vanilla groups with V2 hub

Vanilla groups are also valid groups but are a basic version of groups created using v2 Hub contract.


import { GroupProfile, Profile, Profiles } from '@circles-sdk/profiles';

// When on Gnosis Chain use this ..
// const standardMintPolicy = "0x5Ea08c967C69255d82a4d26e36823a720E7D0317";

const mintPolicy = '0xYourMintPolicyContractAddress';
const groupProfile: GroupProfile = {
    name: 'Group Namw',
    symbol: 'Group Token Symbol',
    description: '',
    previewImageUrl: '',
    imageUrl: '',
    
    
};
const GroupAvatar = await circlesSDK?.registerGroupV2(mintPolicy, profile);

// Log the newly created group avatar details
console.log('New Group Avatar:', GroupAvatar);

There are some limits from the profile service:

Profile Name Length:

  • The maximum allowed length for profile names is 36 characters (config.maxNameLength). This is enforced in the validateProfile function, where it checks if the name exceeds this limit.

Profile Description Length:

  • The maximum allowed length for descriptions is 500 characters (config.descriptionLength), and the validateProfile function checks this.

Image URL Length:

  • The maximum allowed length for image URLs is 2000 characters (config.imageUrlLength), validated in the same function.

Image Validation:

  • The code limits image size to 150 KB (config.maxImageSizeKB), and images must be exactly 256x256 pixels (config.imageDimension).

  • The supported image formats are PNG, JPEG, and GIF.

Circles Profile specs

Incase, you want to check how to manage circles profiles, you can simply checkout this guide :

PreviousCreate Base Groups for your community.NextMint group tokens

Last updated 16 hours ago

Was this helpful?

Setting Circles Profiles