📖
Etherna Docs
  • Get Started
  • Schema
    • Image
    • Profile
    • Video
    • User's playlists
    • Playlist
Powered by GitBook
On this page
  • Schema versions
  • Schema
  • Feed
  1. Schema

Profile

Profiles info are stored in a JSON document directly on swarm, plus a feed as fallback.

The JSON contains various details such as the name, description, avatar and cover of the profile. PS: Some of the props might not be implemented yet.

Schema versions

Schema

type Profile = {
  /**  Profile address (0x...) */
  address: string
  /**  Name of the Profile */
  name: string
  /**  Description of the Profile */
  description?: string | null
  /**  User's avatar */
  avatar?: SwarmImageRaw
  /**  User's cover */
  cover?: SwarmImageRaw
  /** User's location */
  location?: string
  /** User's website */
  website?: string
  /** User's birthday */
  birthday?: string
}

Feed

After the JSON document is uploaded on Swarm, the feed is updated with the returned hash. Feed info:

  • Owner: address of the user

  • Topic (unencoded): EthernaUserProfile

  • Type: sequence

PreviousImageNextVideo

Last updated 2 years ago