I have to figure out how to post a batch of assets to Arweave once a year and it's always painful to sort out again. Here's how. If anyone has a better idea please share! 1. Make an Arweave wallet if you don't have one. I guess www.wander.app is the one. 2. You need $AR. I transfer Eth to Ar via simpleswap.io. There's a storage calculator you can use to figure out how much $AR you need at ar-fees.arweave.dev. 3. Install the Arweave CLI: github.com/ardriveapp/a... 4. You'll need to export that wallet from Wander, you can get a JSON from it. 5. Create a Drive: `ardrive create-drive --wallet-file your-wallet.json --public --drive-name "Lucky Ghouls"` 6. That's going to return a few values including its ID, you need that ID.
500+views
doug avatar
7. Upload your images: `ardrive upload-file --local-path /your-images --parent-folder-id <DRIVE_ID> --wallet-file your-wallet.json` 8. This will put `your-images` in your Drive. 9. Create a Manifest: ardrive create-manifest -f <DRIVE_ID> --wallet-file your-wallet.json Great! Now all your images are accessible in that single directory. e.g, zk2wipqvqlavjz3tdh4hz6ibye3w5anz3b7bqbed3oqbzyoqnncq.arweave.net/yrVkPhWCwVTn... NOW DO THE WHOLE THING AGAIN WITH YOUR JSON, and finally set that root directory as the baseURI on your contract.
Cast image embed
1
2
doug avatar
Oh and be sure to use the `ar://hash` style in your NFT metadata, not the HTTPS URLs that the manifest gives you. Then the NFT marketplaces know to use the Arweave protocol which is supposed to last forever, rather than just a normal HTTPS gateway that could go away.
3
3
doug avatar
ALSO you the ID you upload files to, that's the "rootFolderId" you can get if you run "list-all-drives". I guess you can make multiple folders per drive but i just made a drive for each folder.
2
JonnieSparkles avatar
Here's a nice video if you want to use the ArDrive UI;
Store your NFT data on Arweave
youtu.be
Store your NFT data on Arweave
1
doug avatar
I mostly saw a spinner on the site, I tried a few times :-/
2
doug avatar
IPFS used to have a really nice native desktop drag and drop uploader. Be awesome to have something like that! It was from nft.storage
1