LTO Network
  • Getting started
  • What is LTO Network?
  • Tutorials
    • Buying and staking LTO
      • Exchanges
        • Binance
        • AscendEX (Bitmax)
        • Uniswap
        • PancakeSwap
        • Other exchanges
      • Creating your LTO web wallet
      • Using the LTO token bridge
      • Staking LTO tokens
    • Mining
      • Setup your node wallets
      • Node management
      • Public community nodes
    • Anchoring
      • Hashing
    • LetsFlow
  • Wallets
    • LTO Web Wallet
      • Using Ledger
    • Universal Wallet
    • LTO CLI
    • Third-Party Wallets
      • Stakely.io wallet
        • Web wallet
        • Commandline
    • ERC20 Token Swap
  • Running a node
    • Public node
      • Installation Guide
        • Mainnet & Testnet
        • Requirements
        • Configuration
        • (Virtual) Machine
        • Nginx reverse proxy (optional)
        • Troubleshooting FAQ
      • Cloud installation
        • Alibaba Cloud
        • AWS Elastic Beanstalk
        • Google Cloud
        • IBM Cloud
        • Microsoft Azure
        • OKD (OpenShift)
        • Raspberry Pi (Expert)
        • Ubuntu Linux with Container
        • Windows with Container
      • REST API
        • Address
        • Wallet
        • Lease Transactions
        • Peers
        • Blocks
        • Utils
        • FAQ
      • Security Notes
      • FAQ
      • Exchange integration guide
    • Anchor node
      • Installation Guide
        • Linux
        • MacOS
        • Windows
      • REST API
    • Identity node
      • Installation guide
        • Linux
        • MacOs
        • Windows
      • Configuration
        • Trust network
      • REST API
    • Workflow node
      • Installation Guide
        • MacOS
        • Windows
        • Ubuntu Linux
      • REST API
  • Ownables
    • What are Ownables?
    • Making your first ownable
    • Ownables SDK
      • Prerequisites
      • Setup
    • Ownables Architecture
      • Smart Contract
      • Widget
    • Ownables Bridge
  • Templates Overview
  • Libraries
    • JavaScript
      • Accounts
      • Transactions
      • Event chain
      • Messages
      • Identities
      • HTTP Authentication
    • Python
      • Accounts
      • Public layer
    • PHP
      • Accounts
      • Identities
      • Public layer
      • Private layer
      • HTTP Authentication
      • Commandline scripts
    • Java
  • Protocol
    • Cryptography
    • Accounts
      • ED25519
      • secp256k1
      • secp256r1
    • Identities
      • Decentralized identifiers (DID)
      • Trust network
      • Verifiable credentials
    • Public layer
      • Transactions
        • Transfer
        • Lease
        • Cancel Lease
        • Mass Transfer
        • Set Script
        • Data
        • Anchor
        • Association
        • Revoke Association
        • Sponsorship
        • Cancel Sponsorship
        • Register
        • Burn
        • Mapped Anchor
        • Statement
      • Transaction fees
      • Consensus protocol
      • Activation Protocol
      • Data Structures
    • Private layer
      • Event chain
        • Event
      • Messaging
        • Sending messages
Powered by GitBook
On this page
  • Cloning the base repository
  • Starting the demo wallet
  • Building the Ownable
  1. Ownables
  2. Ownables SDK

Setup

PreviousPrerequisitesNextOwnables Architecture

Last updated 1 year ago

Cloning the base repository

First, you will need to clone the base ownables-sdk and save it under your preferred location.

$ git clone git@github.com:ltonetwork/ownable-sdk.git
$ cd ownable-sdk

Open it in your preferred editor and proceed to the next section.

Starting the demo wallet

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 and you should see an empty wallet that is ready to import OWNABLES packages.

Building the Ownable

Now that the wallet is running, we need some Ownable packages that we can import.

There are a few handy commands for that.

The ownables:build script, which takes a --package parameter that specifies which OWNABLE should be packaged. The potion OWNABLE is built by running:

$ npm run ownables:build --package=potion

Running this will produce a zip file containing the Ownable under ownables folder.

After importing the potion Ownable package, there will be another option in the action menu named potion, clicking on which will issue the Ownable.

Success! The issued Ownable will be visible in your wallet.

Building all Ownables

In case you want to build all Ownables in your project at once, run:

$ npm run ownables:build-all

It will simply run the previous script in every directory under /ownables .

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.

To get more insight on how to build your own custom Ownable read about the .

➕
Ownable Architecture
repository
http://localhost:8080/
Empty wallet
Wallet with an Ownable