EIPs Explained

ERC-7866 · Review · ERC · 2025-01-22

ERC-7866: Decentralised User Profiles

Proposes soulbound, non-transferable user profiles with a username, bio, socials and per-dApp avatars, identified as [email protected] and linked to a did:<chain>:<address> identifier.

What problem does it solve?

Users repeat the same profile setup in every dApp: name, avatar, bio, links. Existing options are either centralised (Gravatar), tied to one chain, or lack per-app customisation. ERC-7866 sketches a standard profile that any dApp on any chain can read, that the user controls, and that can show a different avatar per app.

How it works

Identifiers. Each profile has

  • a human-readable handle, <username>@<network_slug>.soul (e.g. [email protected]), where the username is unique per chain and .soul marks a profile under this standard;
  • a decentralised identifier, did:<chain>:<address> (e.g. did:ethereum:0x…).

Soulbound. Profiles are soulbound tokens: tied to an address and not transferable, so they cannot be sold or moved to another owner. The spec explicitly rejects using transferable ERC-721 tokens for this.

Metadata. Stored off-chain (IPFS or Arweave), with only URIs on-chain. A JSON Schema defines username, avatar, bio, website, socials (Twitter and GitHub URLs), default_avatar_visibility, and dapp_avatars, a map from dApp address to { avatar, visibility }.

Visibility. Each avatar is public or private. A private avatar is only returned to the user; others get an error-style response. If a dApp has no custom avatar, the default applies.

Contract. ISoulProfile provides createProfile, setDefaultAvatar, setDappAvatar, getDefaultAvatar and getDappAvatar, plus events for each change. Interface detection follows ERC-165, and the authors suggest an ENS-like registry and resolver split (ERC-137) for a full deployment.

Sample code

Profile metadata following the spec's schema (placeholder values):

{
  "username": "alice",
  "avatar": "ipfs://<main-avatar-cid>",
  "bio": "Builder on Ethereum.",
  "website": "https://example.com",
  "socials": {
    "twitter": "https://twitter.com/example",
    "github": "https://github.com/example"
  },
  "default_avatar_visibility": "public",
  "dapp_avatars": {
    "0x1111111111111111111111111111111111111111": {
      "avatar": "ipfs://<game-avatar-cid>",
      "visibility": "public"
    }
  }
}

A dApp reading the avatar it should show, falling back to the default (ethers v6):

import { Contract } from "ethers";

const profiles = new Contract(PROFILE_CONTRACT, [
  "function getDefaultAvatar(address) view returns (string, string)",
  "function getDappAvatar(address,address) view returns (string, string)",
], provider);

let [uri, visibility] = await profiles.getDappAvatar(user, MY_DAPP_ADDRESS);
if (!uri) [uri, visibility] = await profiles.getDefaultAvatar(user);

Things to know

  • Status is Review; the interface and schema may still change.
  • The schema makes socials.twitter and socials.github required, and the reference implementation does not enforce public/private visibility on reads; treat both as open points.
  • The reference contract does not itself implement soulbound tokens or cross-chain username uniqueness; those are left to the full registry design.
  • Everything stored on-chain or on IPFS is public. "Private" visibility only limits what the contract returns, so do not put sensitive data in profile metadata unless it is encrypted.
  • For a minimal hash-based identity verification registry, see ERC-7734.

#identity #profiles #sbt #did #avatars

Details

Authors
Kumar Anirudha (@anistark)
Status
Review
Type
Standards Track / ERC
Created
2025-01-22
Requires

Machine-readable: Markdown · JSON