npm.io
0.5.5 • Published 1 year ago

@daohaus/profile-data

Licence
—
Version
0.5.5
Deps
10
Size
8 kB
Vulns
0
Weekly
0
Stars
25

@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.