Launching-in-house-RecordsKeeper-Public-Blockchain

Launching In-House RecordsKeeper’s Public Blockchain

Launching in house RecordsKeeper’s Public Blockchain

This blog will help you to setup a RecordsKeeper’s Public Blockchain node on your local machine or remote server, you can download and install RecordsKeeper’s client on a local machine or remote server.

Here are the following steps to be followed to setup a Recordskeeper’s Public Blockchain node.

Step 1: Connecting to the RecordsKeeper Blockhain

To connect to RecordsKeeper Blockchain run the following command in bash or command prompt.

  • RecordsKeeper Testnet

rkd [email protected]:8379 -daemon

  • RecordsKeeper Mainnet

rkd [email protected]:7345 -daemon

When you run the above commands the create a node connected to the RecordsKeeper Main node. The command will automatically sets the permissions and consensus required for the Blockchain.

RecordsKeeper Testnet is a complete open Blockchain, when you connect to the Testnet you will have the permissions to connect, send, recieve and mine but the RecordsKeeper Mainnet is currently under consensus rule for a certain number of Blocks (You can read more about that in the RecordsKeeper Whitepaper) to avoid takeovers. When you connect to the RecordsKeeper Mainnet, you will recieve an address. You can send that address to us through RecordsKeeper Mining Permission .

Step 2: Interactive command line mode

Before we proceed, let’s enter interactive mode so we can issue commands to interact with RecordsKeeper Blockchain.

  • Testnet

      rk-cli recordskeeper-test

  • Mainnet

       rk-cli recordskeeper

Step 3: Some basic commands

Now your node is up and running you can issue some basic commands in the interactive mode to get some feel about the RecordsKeeper

  • To get general information about the RecordsKeeper Node:

            getinfo

  • See a list of all available commands for the RecordsKeeper Node:

            help

  • List you all addresses in the RecordsKeeper Node wallet:

            getaddresses

Step 4: Sending a transaction in RecordsKeeper

The RecordsKeeper Blockchain works on the same backend as Bitcoin algorithms. Both the RecordsKeeper Testnet and Mainnet can be used to send and recieve XRK tokens. Use the following interactive commands to send transactions in RecordsKeeper Blockchain.

  • Send

      send address amount (comment) (comment-to)
 

This command works like publish, but publishes the item from from-address. It is useful if the node has multiple addresses with different amounts. The mining fees is applied as per the transaction size.

This command is used to Send one or more XRK tokens to address, returning the txid. The amount field is the quantity of the XRK token and the address field is the address where you want to send the XRK tokens. This command will use the Node’s root address to send the transaction. Please make sure you have sufficient balance in the Node’s root address for transaction to propogate over the RecordsKeeper Blockchain. You can also provide specific comments for the transaction which are optional. The fees will be applied as per the transaction size.

  • Send from different database

      sendfrom from-address to-address amount
 

This command is also used to Send one or more XRK tokens to address, returning the txid. Using this command you can specify the from address which you want to use to send the transaction. The amount field is the quantity of the XRK token and the to-address field is the address where you want to send the XRK tokens. Please make sure you have sufficient balance in the from-address for transaction to propogate over the RecordsKeeper Blockchain. The from-address used here is also one of the address generated for the Node. You can also provide specific comments for the transaction which are optional. The fees will be applied as per the transaction size.

Step 5: Publishing and retrieving data in Recordskeeper

The RecordsKeeper Blockchain is a open public Key-Value based Database over the Blockchain. You can use the interactive command line to publish and retirive stored information. As the Blockahin is a shared concept you can view all the published data and retrive it only using a key or address. RecordsKeeper uses the streams to store the data. RecordsKeeper Streams provide a natural abstraction for RecordsKeeper blockchain which focus on general data retrieval, timestamping and archiving, rather than the transfer of tokens between participants.

The “root” stream is open to all and anyone can publish data into the root stream. Following commands will give you a brief about how to work with data over RecordsKeeper Blockchain.

  • Publish

         publish stream key data-hex

  • Publish from a different address

      publishfrom from-address stream key data-hex
 

This command works like publish, but publishes the item from from-address. It is useful if the node has multiple addresses with different amounts. The mining fees is applied as per the transaction size.

  • Send as transaction

     sendwithdata/sendwithmetadata address amount data-hex|object
 

This works similar to send, but with an additional data-only transaction output. You can pass raw data as data-hex hexadecimal string. It is also used to publish the data to a stream, pass an object like this {“for”:StreamName,”key”:”KeyName”,”data”:”DataHex”} where stream is a stream name, ref or creation txid, the key is in text form, and the data is hexadecimal. You can pass the amount as 0, if you are only using this to publish the data over the RecordsKeeper stream. You can also send some XRK tokens while publishing the data over the stream. The fees will be applied as per the transaction size.

This is custom heading element

    [recaptcha]

    Leave a Reply

    Your email address will not be published. Required fields are marked *