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

0.5.4 • Public • Published

@daohaus/data-fetch-utils

data-fetch-utils provides a subset of utilities primarily utilized within our data libraries. These are key functions required for making API calls to fetch data from a range of sources such as our subgraphs, IPFS, or any other data points we access. This library is not usually used on it's own, but in the context of @daohaus/moloch-v3-data and @daohaus/profile-data.

Usage

Installation

yarn add @daohaus/data-fetch-utils

Examples

How to post to IPFS w/ Pinata

import { pinataPostJSON } from '@daohaus/keychain-utils';

const res = await pinataPostJSON({
  creds: {
    pinata_api_key,
    pinata_api_secret,
  },
  jsonString: JSON.stringify({ this: 'is fun' }),
});

Building

Run nx data-fetch-utils:build to build the library.

Readme

Keywords

none

Package Sidebar

Install

npm i @daohaus/data-fetch-utils

Weekly Downloads

8

Version

0.5.4

License

none

Unpacked Size

14.4 kB

Total Files

26

Last publish

Collaborators

  • daohaus-protocol