@daohaus/profile-data
TypeScript icon, indicating that this package has built-in type declarations

0.5.4 • Public • Published

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

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @daohaus/profile-data

Weekly Downloads

8

Version

0.5.4

License

none

Unpacked Size

8.08 kB

Total Files

20

Last publish

Collaborators

  • daohaus-protocol