SDK
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)

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'
);