上传文件
Upload file(s) to MCS using the MCS SDK
def test_upload_file(wallet_info):
wallet_address = wallet_info['wallet_address']
api = McsAPI()
# upload file to mcs
file_path = "/*"
upload_file = api.upload_file(wallet_address, file_path)Parameters
Return
{
status: 'success',
data: {
source_file_upload_id: <ID>,
payload_cid: <'Qm...'>,
ipfs_url: <'https://calibration-ipfs.filswan.com/ipfs/Qm...'>,
file_size: <FILE_SIZE>,
w_cid: <UNIQUE_CID>
}
}Last updated