---
eip: 7866
label: ERC-7866
title: Decentralised User Profiles
status: Review
type: Standards Track
category: ERC
created: 2025-01-22
requires: 165
official: https://eips.ethereum.org/EIPS/eip-7866
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7866.md
canonical: https://eips.huatuo.xyz/eip-7866/
lang: en
tldr: "Proposes soulbound, non-transferable user profiles with a username, bio, socials and per-dApp avatars, identified as username@chain.soul and linked to a did:<chain>:<address> identifier."
tags: [identity, profiles, sbt, did, avatars]
---

# ERC-7866: Decentralised User Profiles

> Decentralised Interoperable User Identity with segmented Avatars per DApp Profile

**TL;DR:** Proposes soulbound, non-transferable user profiles with a username, bio, socials and per-dApp avatars, identified as username@chain.soul 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. `alice@eth.soul`), 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](/eip-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](/eip-165/), and the authors suggest an ENS-like registry and resolver split ([ERC-137](/eip-137/)) for a full deployment.

## Sample code

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

```json
{
  "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):

```ts
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](/eip-7734/).


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-7866
