Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thuglabs/arweave-image-uploader
Upload NFT metadata to the Arweave network
https://github.com/thuglabs/arweave-image-uploader
Last synced: 27 days ago
JSON representation
Upload NFT metadata to the Arweave network
- Host: GitHub
- URL: https://github.com/thuglabs/arweave-image-uploader
- Owner: thuglabs
- Created: 2021-08-28T15:13:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-24T10:50:57.000Z (about 3 years ago)
- Last Synced: 2024-10-29T00:32:15.138Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 614 KB
- Stars: 77
- Watchers: 2
- Forks: 43
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - thuglabs/arweave-image-uploader - Upload NFT metadata to the Arweave network (JavaScript)
- awesome-solana-nfts - Arweave Image Uploader - image-uploader.svg?style=social) (🙏 Community-built Tools / for Arweave)
- awesome-solana-nfts-v2 - Arweave Image Uploader - image-uploader.svg?style=social) (🙏 Community-built Tools / for Arweave)
README
# Arweave NFT Metadata Uploaded
This package can be used to create metadata files on the Arweave network. It first uploads NFT image and then creates a metadata JSON file for this NFT using this image and default fields from file `uploader.js`.
It is created with an idea to be used with Solana blockchain and uses [Metaplex NFT Standard](https://docs.metaplex.com/nft-standard) but it isn't bound to Solana in any case and can be used with any other blockchain as well.## ⚠️ Important note
I've disabled line which generates [new AR wallet](https://github.com/thuglabs/arweave-image-uploader/blob/main/uploader.js#L175) for the script use. From my understanding, newly generated wallets have 0 balance and shouldn't be able to approve TX on Arweave. Despite of it the script works well 🤷🏻♂️. So, to avoid any possible issues I've disabled it. Consider to use local Arweave wallet instead or this tool instead: [solana-nft-uploader by @moshthepitt](https://github.com/moshthepitt/solana-nft-uploader).
## Use
Prerequisites:
- all images need to be in PNG format
- all images need to be placed in `public/images/` folder
- CSV data need to be placed in `public/data.csv`Then run:
```
node ./uploader.js# or
node run upload
```The result json file will be saved to `./public/arweave-images.json`. This files consists of arrays of NFT objects with name / uri fields
## Result Sample
```
{
"0": {
"name": "ART #0000",
"uri": "https://arweave.net/eR4wgSnWusIG-xF2BZzsiOwVehQsvfCT8VAUC4NHQ5Y"
},
"1": {
"name": "ART #0001",
"uri": "https://arweave.net/NOvV7akJDBFZogZOKxDMwIhOauiDNhVqnIfUqJmmPR8"
},
"2": {
"name": "ART #0002",
"uri": "https://arweave.net/q6RS0m0cdoieJbbXI4H1A4yJcDeFi97YF3fHVhn-h9M"
}
}
```# TODO: More
There is React app to manually validate items. But it needs to be updated for better use.