Table of contents
IPFS Functions
IPFS Functions
configureIpfs
▸ configureIpfs(config): void
Configure the IPFS client with API base URL and authentication
Parameters
Returns
void
uploadFileToIpfs
▸ uploadFileToIpfs(file): Promise<string>
Uploads a file to IPFS and returns the IPFS URL
Parameters
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
Returns
Promise<string>
The IPFS URL of the uploaded metadata
