Wondering what the easiest way to save metadata json file to IPFS using the API. So, through cURL not using JavaScript.
Any ideas?
Thanks!
Wondering what the easiest way to save metadata json file to IPFS using the API. So, through cURL not using JavaScript.
Any ideas?
Thanks!
with curl you can just pass the metadata content in this way.
curl -X 'POST' \
'https://deep-index.moralis.io/api/v2/ipfs/uploadFolder' \
-H 'accept: application/json' \
-H 'X-API-Key: APIKEY' \
-H 'Content-Type: application/json' \
-d '[
{
"path": "moralis/logo.jpg",
"content": "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAApgAAAKYB3X3"
}
]'
Does that answer your question?