An open API service indexing awesome lists of open source software.

https://github.com/steppsr/nftstorage-proofofconcept

proof of concept to upload file to nft.storage
https://github.com/steppsr/nftstorage-proofofconcept

bash chia chia-blockchain nft nftstorage script

Last synced: 11 months ago
JSON representation

proof of concept to upload file to nft.storage

Awesome Lists containing this project

README

          

# nftstorage-proofofconcept

> This script is a proof of concept. The goal is to build a script to be able to upload a file to
> nft.storage and get the CID back.

### Goals
* script upload to nft.storage
* verify local hash of file matches the hash of the file after being uploaded
* output the CID returned from nft.storage
* ouput the local file hash
* ouput the remote file hash (by downloading the remote file and then hashing)

### Prerequisites
You will need to install `jq` in order to parse the CID out of the JSON response from NFT.storage.
Here is how to do that install:
```
sudo apt install jq
```

### Preparing to run
You will need to edit the script and add in your file name.
You will also need an API key from nft.storage. You can create an account here: [Create NFT Storage Account](https://nft.storage/docs/#create-an-account)

### Running the script

```
bash poc.sh
```

**References**
[NFT.Storage HTTP API](https://nft.storage/api-docs/)