typescript-sdk

Home > @3rdweb/sdk > IpfsStorage

IpfsStorage class

Signature:

export declare class IpfsStorage implements IStorage 

Implements: IStorage

Constructors

Constructor Modifiers Description
(constructor)(gatewayUrl)   Constructs a new instance of the IpfsStorage class

Methods

Method Modifiers Description
buildFilePropertiesMap(object, files)   This function recurisely traverses an object and hashes any Buffer or File objects into the returned map.
canResolve(uri)    
get(hash)    
getUploadToken(contractAddress)    
upload(data, contractAddress, signerAddress)    
uploadBatch(files, contractAddress, fileStartNumber)    
uploadMetadata(metadata, contractAddress, _signerAddress)