Skip to main content

Add Materials

Prerequisites

To get started, make sure you have the PRE CLI installed. You can install it globally using bun:

bun install -g @getpre/pre-cli

And, you have a wallet set for your previous chain account.

Submit transcations

using command line interface

To add a material, use the following command:

pre material add FILE --account alice --password PASSWORD

Replace FILE with the path to the file you want to add as a material.

using polkadot.js

Accessing Materials

Once the material is added, you can access it through the Preimage link. For example, if the material's identifier is 0xabcd, you can access it at:

https://preimage.link/m/0xabcd

This link allows you to view the material you just added.