typescript-sdk

Home > @3rdweb/sdk > IpfsStorage > upload

IpfsStorage.upload() method

Signature:

upload(data: string | FileOrBuffer, contractAddress?: string, signerAddress?: string): Promise<string>;

Parameters

Parameter Type Description
data string | FileOrBuffer  
contractAddress string  
signerAddress string  

Returns:

Promise<string>