上传文件
Upload file(s) to MCS using the MCS SDK
McsAPI.upload_file(wallet_address, file_path)
You can use the upload function to upload a single file to FilSwan IPFS gateway. The function takes your MetaMask wallet address and the absolute path of the file for upload.
Parameters
wallet_address: MetaMask wallet address.
file_path: Absolute path of the file for upload.
Return
This function returns the upload API responses. This includes source_file_upload_id
, file_size
and w_cid
that will be used for payments.
Last updated