Setup
First, you will need to clone the base
ownables-sdk
repository and save it under your preferred location.$ git clone [email protected]:ltonetwork/ownable-sdk.git
$ cd ownable-sdk
Open it in your preferred editor and proceed to the next section.
First, navigate to the wallet directory and install the dependencies:
$ cd www/
$ npm i
We can now start the wallet:
$ npm run start
Once that is done, navigate to http://localhost:8080/ and you should see an empty wallet that is ready to import Ownable packages.

Empty wallet
Now that the wallet is running, we need some Ownable packages that we can import.
There are a few handy commands for that.
The
build-ownable
script, which takes a --path
parameter that specifies which Ownable should be packaged. The potion Ownable is built by running:$ npm run build-ownable --path=potion
Running this will produce a zip file containing the Ownable under
assets
folder.Now we can go back to our wallet and click the icon at the bottom right. This will open an action menu in which we can choose to import a new Ownable from a file and select the zipped package from the previous step.
➕
After importing the potion Ownable package, there will be another option in the action menu named potion, clicking on which will issue the Ownable.

Wallet with an Ownable
Success! The issued ownable will be visible in your wallet.
In case you want to build all Ownables in your project at once, run:
$ npm run build-ownables
It will simply run the previous script in every directory under
/ownables
.
Last modified 1mo ago