OriginTrail
  • Get started with OriginTrail
  • OriginTrail Ecosystem — Call for Papers (Coming Soon)
  • Key Concepts
    • Decentralized Knowledge Graph (DKG)
    • DKG key concepts
  • Build with DKG
    • Quickstart (test drive the DKG in 5 mins)
      • Quickstart with Node.js
      • Quickstart with Python
    • ChatDKG builder toolkit
      • DKG SDK
        • Development environment setup
        • DKG Javascript SDK (dkg.js)
          • Interact with DKG paranets
          • Knowledge submission & curation
          • Paranet's incentives pool implementation
        • DKG Python SDK (dkg.py)
      • DKG paranets
        • Deploying a DKG paranet
        • Building with DKG paranets
        • Syncing a DKG Paranet
        • Initial Paranet Offerings (IPOs)
          • IPO specification
          • Launching your IPO
          • Paranet's incentives pool
          • IPO voting
      • AI agents
        • ElizaOS DKG agent
        • Custom DKG Python agent
        • Custom DKG JavaScript agent
    • DKG Edge Node
      • DKG Edge Node architecture
      • Get started with the Edge Node boilerplate
        • Automated setup with the installer
        • Manual setup
        • Usage example
      • Customize & build with the Edge Node
      • Knowledge Mining and dRAG examples
      • Deploy your Edge Node based project
        • Automated deployment with installer
      • DKG Edge Node inception program
      • DKG Edge Node API documentation
    • DKG Core Node
      • Run a V8 Core Node on testnet
        • Preparation for V8 DKG Core Node deployment
        • V8 DKG Core Node installation
      • Run a V8 Core Node on mainnet
        • Preparation for V8 DKG Core Node deployment
        • V8 DKG Core Node installation
  • Delegated staking
    • Delegated staking—Introduction
      • Step-by-step staking
      • Redelegating stake
  • Integrated Blockchains
    • Base blockchain
      • Connect to Base
    • Gnosis chain
      • Connect to Gnosis
    • NeuroWeb
    • Teleport instructions - NeuroWeb
    • Bridging to Moonbeam
    • Deployed smart contracts
  • Bounties & rewards
    • General bug bounty
    • Code contributions & V8 bug bounty
  • Whitepapers & RFCs
    • OriginTrail whitepaper
    • OriginTrail RFCs
  • Useful Resources
    • What's new with OriginTrail V8
    • DKG V8 guidebook
      • Protocol updates
      • Feature roadmap
      • How to upgrade to V8?
    • Public nodes
    • Tutorials
    • Test token faucet
    • Development principles
    • Community created resources
    • Linked data & knowledge graphs
    • Available networks, network details and RPCs
    • OT Node Engine implementation details
      • Modules
      • Command Executor
    • Contribution guidelines
      • Guidelines for automated test contributions
    • Explore the OriginTrail ecosystem
Powered by GitBook
On this page
  • 1. Prepare for paranet deployment
  • 2. Create your paranet profile on the DKG
  • 3. Execute registerParanet transaction on the blockchain

Was this helpful?

Edit on GitHub
  1. Build with DKG
  2. ChatDKG builder toolkit
  3. DKG paranets

Deploying a DKG paranet

A guide for developers and paranet operators on launching their paranet on the DKG

PreviousDKG paranetsNextBuilding with DKG paranets

Last updated 2 months ago

Was this helpful?

1. Prepare for paranet deployment

To successfully deploy a paranet, you will have to create a knowledge collection on the DKG and execute paranet registration transactions on the blockchain. This guide assumes you already have a good idea of what purpose you are deploying your DKG paranet for and will focus only on the technical steps.

A Knowledge Asset is an individual knowledge graph entity or a piece of data, while a knowledge collection is a group of interconnected Knowledge Assets that form a broader set of information. Knowledge collections enable the creation of multiple Knowledge Assets through one atomic operation.

Below is the input you will need:

  • Decide which blockchain to deploy your paranet on. This is the blockchain on which knowledge mining will take place. All DKG-integrated blockchains can be used. However, initially, only the NeuroWeb and Base blockchains support .

  • Pick a paranet name and create a short description (which will be stored on-chain).

  • Decide what kind of permissions the paranet will have.

  • Prepare a paranet profile Knowledge Asset to represent your paranet as its profile on the DKG. It can be as minimal or as rich in content as you'd like.

2. Create your paranet profile on the DKG

A paranet profile is a Knowledge Asset that will uniquely identify your paranet and you as the paranet operator. As long as you own this Knowledge Asset, you will be able to manage paranet operator functions in the DKG paranet smart contracts.

An example paranet profile Knowledge Asset could look like this:

{
  "@context": "http://schema.org/",
  "@id": "urn:some-data:info:catalog",
  "@type": "DataCatalog",
  "name": "Super Paranet",
  "description": "This is the description of the super paranet!",
  "keywords": "keyword1, keyword2, keyword3 ...",
}

Paranet Knowledge Assets UAL looks like this:

did:dkg:otp:2043/0x8f678eB0E57ee8A109B295710E23076fA3a443fe/1497611/125

Once you create your paranet profile Knowledge Asset, save the Knowledge Asset UALs that are contained within the knowledge collection UAL, as you will need them for the next step.

As the paranet profile Knowledge Asset is an NFT on-chain, if you would like to change your operator key (wallet), all you need to do is transfer this NFT to your new address.

3. Execute registerParanet transaction on the blockchain

You can use DKG.js or execute the paranet transaction directly on the smart contracts.

Check the usage of the command DkgClient.paranet.create.

Here's a code snippet using dkg.js (from the above example)

// first we create a paranet Knowledge Collection

let content = {
        public: {
          "@context": "http://schema.org/",
          "@id": "urn:some-data:info:catalog",
          "@type": "DataCatalog",
          "name": "Super Paranet",
          "description": "This is the description of the super paranet!",
          "keywords": "keyword1, keyword2, keyword3 ...",
        },
    }; 

const paranetCollectionResult = await DkgClient.asset.create(content, { epochsNum: 2 });
    // Paranet UAL is a Knowledge Asset UAL (combination of Knowledge Collection UAL and Knowledge Asset token id)
    const paranetUAL = `${paranetCollectionResult.UAL}/1`;
    const paranetOptions = {
        paranetName: 'MyParanet',
        paranetDescription: 'This is my paranet on the DKG!',
        paranetNodesAccessPolicy: PARANET_NODES_ACCESS_POLICY.OPEN,
        paranetMinersAccessPolicy: PARANET_MINERS_ACCESS_POLICY.OPEN,
        paranetKcSubmissionPolicy: PARANET_KC_SUBMISSION_POLICY.OPEN,
    };
// using the paranet knowledge asset, create your paranet
    const paranetRegistered = await DkgClient.paranet.create(paranetUAL, paranetOptions);

That's it, you have successfully performed a minimal paranet deployment, and knowledge miners can now start mining knowledge via your paranet.

To proceed, we recommend setting up a DKG node that will continuously sync your paranet knowledge graph.

Here's a demo of paranets in action: .

Additionally, you might want to consider to incentivize knowledge miners.

If you have been running a paranet on the previous V6 version of the DKG, your paranet will not automatically update to the new system. If you need help updating, please contact the core developers in for assistance.

Initial Paranet Offerings (IPOs)
Paranet Demo
running an IPO
Discord