Developer Docs
GitHubGitHub (opens in a new tab)DiscordDiscord (opens in a new tab)
  • Welcome
    • Scaffold an App
    • Create a Theme
    • Build a Form
    • Write a Shaman
    • Supported Networks
    • DAO App Starter
      • Examples
    • React Features
      • connect
      • moloch-v3-hooks
      • moloch-v3-macro-ui
      • form-builder
      • tx-builder
      • moloch-v3-legos
        • Contract Legos
        • Transaction Legos
        • Field Legos
        • Form Legos
      • moloch-v3-fields
    • Component Library
      • ui
      • Storybook
    • Data
      • moloch-v3-data
        • Functions
      • contract-utils
      • profile-data
    • Utilities
      • utils
        • Functions
      • abis
      • keychain-utils
        • Functions
      • data-fetch-utils
        • Functions
  • Subgraphs
    • DAO Database
  • Contracts
    • Moloch v3
    • Membership
    • Treasury
    • Shamans
      • Examples
    • Summoners
      • Examples
  • Contributing
    • App Maintenance
      • Issue Triage
      • PR Review and Testing
      • Deploying
    • Subgraph Maintenance
      • Deploying
      • Billing
    • Contract Maintenance
      • Upgrading
  • Community Links

In This Chapter

  • Github
  • NPM
  • Usage
  • Installation
  • Requirements
  • Examples
Provide Feedback (opens in a new tab)Edit Page
SDK
Data
profile-data

@daohaus/profile-data

Profile data provides a simple query to get data related to a single address. This could include an ENS and Lens Protocol (opens in a new tab) profile data.

Github (opens in a new tab)

  • Profile Query (opens in a new tab)
  • Types (opens in a new tab)

NPM (opens in a new tab)

Usage

Installation

yarn add @daohaus/profile-data

Requirements

This packages uses an rpc endpoint to get the ens name for an address. You should provide an ethereum mainnet rpc url.

Examples

How to fetch a profile by address

import { getProfileForAddress } from '@daohaus/profile-data';
 
const profile = await getProfileForAddress(
  '0x0address',
  'https://some-rpc-endpoint.com'
);
contract-utilsUtilities

DAOhaus Developer Docs