Skip to content

nexys-system/ipfs-infura-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

client ipfs-infura

npm version Build and Test Package Publish Code style Bundlephobia

Get started

import Client from '@nexys/ipfs-infura-client';

const url = process.env.IPFS_URL || '';
const username = process.env.IPFS_CLIENT || '';
const password = process.env.IPFS_SECRET || '';

const client = new Client({ username, password, url });

export const main = async () => {
  const { cid } = await client.set('hello world');

  const r = await client.get(cid);

  return { cid, r };
};