For the complete documentation index, see llms.txt. This page is also available as Markdown.

Identity

Each coldkey can register an identity.

Register Identity

Registering an identity must be called from the coldkey account and is stored under the coldkey.

pub fn register_identity(
    origin: OriginFor<T>, 
    hotkey: T::AccountId,
    name: BoundedVec<u8, DefaultMaxUrlLength>,
    url: BoundedVec<u8, DefaultMaxUrlLength>,
    image: BoundedVec<u8, DefaultMaxUrlLength>,
    discord: BoundedVec<u8, DefaultMaxSocialIdLength>,
    x: BoundedVec<u8, DefaultMaxSocialIdLength>,
    telegram: BoundedVec<u8, DefaultMaxSocialIdLength>,
    github: BoundedVec<u8, DefaultMaxUrlLength>,
    hugging_face: BoundedVec<u8, DefaultMaxUrlLength>,
    description: BoundedVec<u8, DefaultMaxVectorLength>,
    misc: BoundedVec<u8, DefaultMaxVectorLength>,
)

Remove Identity

Remove a coldkey identity.

Last updated