- Preparing search index...
- The search index is not available
ternoa-js
Constructors
constructor
- new TernoaIPFS(apiUrl?: URL, apiKey?: string): TernoaHelpers.TernoaIPFS
-
Parameters
-
apiUrl: URL = ...
-
Optional
apiKey: string
Properties
Optional
apiKey
apiKey?: string
Methods
getFile
- getFile(hash: string): Promise<unknown>
-
Returns Promise<unknown>
storeCollection
- storeCollection<T>(profileFile: File, bannerFile: File, metadata: CollectionMetadataType<T>): Promise<IpfsAddDataResponseType>
-
Parameters
-
profileFile: File
-
bannerFile: File
-
metadata: CollectionMetadataType<T>
Returns Promise<IpfsAddDataResponseType>
storeFile
- storeFile(file: File): Promise<IpfsAddDataResponseType>
-
Returns Promise<IpfsAddDataResponseType>
storeMarketplace
-
Parameters
-
-
metadata: MarketplaceMetadataType<T>
Returns Promise<IpfsAddDataResponseType>
storeNFT
- storeNFT<T>(file: File, metadata: NftMetadataType<T>): Promise<IpfsAddDataResponseType>
-
Parameters
-
-
metadata: NftMetadataType<T>
Returns Promise<IpfsAddDataResponseType>
Static
get
- get(ternoaIpfsService: IServiceIPFS, hash: string): Promise<unknown>
-
Parameters
-
ternoaIpfsService: IServiceIPFS
-
hash: string
Returns Promise<unknown>
Static
storeCollection
- storeCollection<T>(service: IServiceIPFS, profileFile: File, bannerFile: File, metadata: CollectionMetadataType<T>): Promise<IpfsAddDataResponseType>
-
Parameters
-
service: IServiceIPFS
-
profileFile: File
-
bannerFile: File
-
metadata: CollectionMetadataType<T>
Returns Promise<IpfsAddDataResponseType>
Static
storeFile
- storeFile(service: IServiceIPFS, file: File): Promise<IpfsAddDataResponseType>
-
Returns Promise<IpfsAddDataResponseType>
Static
storeMarketplace
-
Parameters
-
service: IServiceIPFS
-
-
metadata: MarketplaceMetadataType<T>
Returns Promise<IpfsAddDataResponseType>
Static
storeNFT
- storeNFT<T>(service: IServiceIPFS, file: File, metadata: NftMetadataType<T>): Promise<IpfsAddDataResponseType>
-
Parameters
-
service: IServiceIPFS
-
-
metadata: NftMetadataType<T>
Returns Promise<IpfsAddDataResponseType>
Static
upload
- upload(service: IServiceIPFS, form: FormData): Promise<IpfsAddDataResponseType>
-
Returns Promise<IpfsAddDataResponseType>
Implements