DEVELOPER DOCS
Commands
upload

upload

Uploads a single file.

Parameters

  • -h: The you'll node upload to
  • -t: The token to use when uploading.
  • -w: Your private key.
  • --tags: Tags to include, format <name> <value>
  • --provider-url: RPC URL to use. This is only required when using Devnet.

Examples

Nodes 1 and 2

irys upload myImage.png \
  -h https://node1.irys.xyz \
  -t matic \
  -w bf20......c9885307 \
  --tags tagName1 tagValue1 tagName2 tagValue2

Devnet

irys upload myImage.png \
  -h https://devnet.irys.xyz \
  -t matic \
  -w bf20......c9885307 \
  --tags tagName1 tagValue1 tagName2 tagValue2 \
  --provider-url https://rpc-mumbai.maticvigil.com
ℹ️

Devnet RPC URLs change often, use a recent one from https://chainlist.org/chain/80001 (opens in a new tab)

Downloading

Files uploaded via irys upload can be downloaded using the transaction ID provided after a successful upload.

irys upload myImage.png \
  -h https://node1.irys.xyz \
  -t matic \
  -w bf20......c9885307 \
  --tags tagName1 tagValue1 tagName2 tagValue2
 
Loaded address: 0xac568a981b1370b2e1baa8ce30bd5ac9e28c572d
Uploaded to https://gateway.irys.xyz/yPX6_rwxfJ_2gTvXSHGoumIvlFR-EwuRlUMmHpeLHUM