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
| Name | Type | Description |
|---|---|---|
file | File | The 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
| Name | Type | Description |
|---|---|---|
metadata | Record<string, unknown> | The metadata to upload |
Returns
Promise<string>
The IPFS URL of the uploaded metadata

