Creating a Keystore User for the Node

Each of Dijets node provides a built-in Keystore. The Keystore manages users which are authorised to interact with any of the Value, Utility or Method Chains in the Network.

  1. Create a Keystore User

    Create a keystore user on a node that you just started. The Node operator has access to user's password.

    Terminal
      curl -X POST --data '{
            "jsonrpc": "2.0",
            "id": 1,
            "method": "keystore.User",
            "params": {
                "username": "--type a username--",
                "password": "--type a password--"
            }
       }' -H 'content-type:application/json;' 127.0.0.1:9650/ext/keystore
  2. Node Response

    The response for the node call to keystore.User should be:

    localhost:9650
      {
            "jsonrpc":"2.0",
            "result":{"success":true},
            "id":1
       }
  3. Create an Address

    To create a new address on the Value Chain, call djtvalue.createAddress.

    Terminal
      curl -X POST --data '{
            "jsonrpc":"2.0",
            "id"     :2,
            "method" :"djtvalue.createAddress",
            "params" :{
                "username": "--type a username--",
                "password": "--type a password--"
            }
        }' -H 'content-type:application/json;' 127.0.0.1:9650/ext/bc/Value
  4. Node Response

    The bc/Value portion means the request was sent to the Value Chain. Response should look like:

    Terminal
     {
            "jsonrpc":"2.0",
            "id":2,
            "result" :{
                "address":"V-dijets1xaaj0h9fh3c5jn6fxjp0rg4g39jeh0hl27vf75"
            }
        }

Stuck somewhere? Setting up a Dijets Node can be a bit different across different build tools. Check our framework guides to see if we have more specific instructions for your particular setup.Create a Keystore User

What to read next

Explore some of the unique technical and economic concepts behind the Dijets Network & its Ternary Chain Ledgers.

  • Platform

    Infinitely scalable, utility-driven, extremely lightweight decentralised platform for the new web.

  • Ternary Chains

    Dijets is an ecosystem of heterogeneous blockchains namely Value Chain, Utility Chain & Method Chain.

  • Consensus

    Delivers a highly scalable & efficient blockchain network which can adapt to changing network conditions.

  • Network & Nodes

    There are two types of Validators for Dijets Network. A public Validator and a hardware node instance; Cacid.

  • Governance

    Read all about Dijets Governance and learn how to participate in Dijets Improvement Proposals.

  • Products & Services

    Dive into the extensive benefits and the wide ranging utilities of Dijets Products & services.