@daohaus/profile-data
v0.5.4
Published
Profile data provides a simple query to get data related to a single address. This could include an ENS and [Lens Protocol](https://lens.xyz/) profile data.
Downloads
252
Readme
@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 profile data.
View on NPM
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({ address: '0x0address', rpcUri: 'https://some-rpc-endpoint.com' });
Building
Run nx profile-data:build
to build the library.