Skip to main content

Metadata

Metadata & Arweave commands. Arweave is a decentralized storage network that allows you to store data permanently

validate

Validate JSON metadata files. This command will check if the metadata files in './assets' are valid JSON files. with corresponding image files in same directory.

$ lighthouse metadata validate

upload

Upload metadata files to Arweave. This command will upload the metadata files in './assets' to Arweave. It will upload every image files, then write the transaction IDs to the metadata files, then upload the metadata files and finally a manifest for creating root hash.

$ lighthouse metadata upload

Options

  • -w --wallet <wallet-path>: Path to Arweave keypair JSON file
  • -u --url <url>: Arweave gateway URL (default: https://arweave.net)

When you run the upload command,

a cache file will be created in the 'cache.json' file for tracking transaction IDs.

a 'log.json' file will be created for any errors.

If your upload gets interrupted, CLI will use the 'cache.json' file to resume the upload.