Skip to main content

Table of contents

General Classes

IPFS Functions

References

IPFS Functions

uploadFileToIpfs

uploadFileToIpfs(file): Promise<string> Uploads a file to IPFS and returns the IPFS URL

Parameters

NameTypeDescription
fileFileThe file to upload

Returns

Promise<string> The IPFS URL of the uploaded file

uploadMetadataToIpfs

uploadMetadataToIpfs(metadata): Promise<string> Uploads metadata to IPFS and returns the IPFS URL

Parameters

NameTypeDescription
metadataRecord<string, unknown>The metadata to upload

Returns

Promise<string> The IPFS URL of the uploaded metadata

References

toEnvironmentName

Re-exports toEnvironmentName

getChainId

Re-exports getChainId

getChainName

Re-exports getChainName

createChainConfig

Re-exports createChainConfig

configureIpfs

Re-exports configureIpfs