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 };
};
generated from nexys-system/typescript-package-template
nexys-system/ipfs-infura-client
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
simple client to access IPFS via infura
Topics
Resources
Stars
Watchers
Forks
Packages 0
No packages published