doug pfp
doug
@pfeffunit
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 https://www.wander.app/ is the one. 2. You need $AR. I transfer Eth to Ar via https://simpleswap.io. There's a storage calculator you can use to figure out how much $AR you need at https://ar-fees.arweave.dev/. 3. Install the Arweave CLI: https://github.com/ardriveapp/ardrive-cli 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.
2 replies
3 recasts
24 reactions

doug pfp
doug
@pfeffunit
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, https://zk2wipqvqlavjz3tdh4hz6ibye3w5anz3b7bqbed3oqbzyoqnncq.arweave.net/yrVkPhWCwVTncxn4fPkBwTdugbnYfhgEg9ugHOHQa0U/images/999.png NOW DO THE WHOLE THING AGAIN WITH YOUR JSON, and finally set that root directory as the baseURI on your contract.
1 reply
0 recast
4 reactions

JonnieSparkles pfp
JonnieSparkles
@jonniesparkles
Here's a nice video if you want to use the ArDrive UI; https://youtu.be/MTSPjmCmdqs
1 reply
0 recast
0 reaction