IPFS is a great fit for storing and addressing data for NFTs.
IPFS Server URL :
curl --location --request POST 'https://ipfs-dev.trnnfr.com/api/v0/add' \
--header 'apiKey: xxxxxxx.xxxxxxxxxxxxxxxxx' \
--form 'file=@"/path/to/file.jpg"'
var request = require('request');
var fs = require('fs');
var options = {
'method': 'POST',
'url': 'https://ipfs-dev.trnnfr.com/api/v0/add',
'headers': {
'apiKey': 'xxxxxxx.xxxxxxxxxxxxxxxxx'
},
formData: {
'file': {
'value': fs.createReadStream('/path/to/file.jpg'),
'options': {
'filename': 'file.jpg',
}
}
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});