Profile data provides a simple query to get data related to a single address. This could include an ENS and Lens Protocol profile data.
yarn add @daohaus/profile-data
This packages uses an rpc endpoint to get the ens name for an address. You should provide an ethereum mainnet rpc url.
How to fetch a profile by address
import { getProfileForAddress } from '@daohaus/profile-data';
const profile = await getProfileForAddress({ address: '0x0address', rpcUri: 'https://some-rpc-endpoint.com' });
Run nx profile-data:build
to build the library.