@aut-protocol/sdk-storage
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

Overview

It a nft.storage wrapper library to help with the issues coming from installing with webpack 5 polyfills in combination with @biconomy/mexa sdk

NF Storage

nft.storage

Biconomy SDK

Biconomy Mexa

Installation

npm i @aut-protocol/sdk-storage

or if you prefer using yarn yarn @aut-protocol/sdk-storage

Get started

class AutSDKStorage {
    ipfsCIDToHttpUrl(url: string, isJson?: boolean): string;
    storeImageAsBlob: (file: File) => Promise<string>;
    storeAsBlob: (json: any) => Promise<string>;
    storeAsJson: (json: any) => Promise<string>;
    isValidUrl: (uri: string) => boolean;
}

Example usage

const client = new AutSDKStorage({
    nftStorageApiKey: process.env.nftStorageApiKey
});

const respnse = await this.client.storeImageAsBlob(file);
// response ipfs://${cid}

Package Sidebar

Install

npm i @aut-protocol/sdk-storage

Weekly Downloads

3

Version

0.0.6

License

MIT

Unpacked Size

704 kB

Total Files

4

Last publish

Collaborators

  • antant
  • taulant_disha
  • iuliagabriela
  • migrenaa