Steps to Publish Your Chain Node on Link Market

Posted By : Niraj

Sep 28, 2020

What is ChainLink?

 

ChainLink is a general Purpose framework designed for designing oracle networks so that you can access External Data onto your Smart Contract. Oracle Network contains lots of nodes that act as middleware to get external data on our Smart Contracts. We can also define our Chainlink Node and make sync with Link Pool Market. Steps to publish node on the link Market are given below. 

 

How to make Oracle Account and Set Data onto Blockchain

 

  1. Open the Remix IDE
  2. Copy the following code on Remix and Save as Oracle.sol

                                       


pragma solidity 0.4.24;

import "https://github.com/smartcontractkit/chainlink/evm-contracts/src/v0.4/Oracle.sol";
  1. Compile the Oracle.sol in the remix ide with the appropriate version

 

  1.  

  2. Deploy the SmartContract on Specific Address

     

  3. Once the Deployment is successful. It will return the Contract Address

     

  4. Copy the chain-link node address and call the setFulfillment() method with chainlink node address and boolean value true

 

How to Add jobs on our Node

 

  • Start your chain link node
  • From the admin dashboard, click on New Job

     

  • Input job from above into the text field
{
  "initiators": [
    {
      "type": "runlog",
      "params": {
        "address": "Your Oracle Address"
      }
    }
  ],
  "tasks": [
    {
      "type": "httpget",
      "confirmations": null,
      "params": {
      }
    },
    {
      "type": "jsonparse",
      "confirmations": null,
      "params": {
      }
    },
    {
      "type": "ethbytes32",
      "confirmations": null,
      "params": {
      }
    },
    {
      "type": "ethtx",
      "confirmations": null,
      "params": {
      }
    }
  ],
  "startAt": null,
  "endAt": null
}
  •  While creating the job, we have to specify the oracle contract address  that we got from above.
  • Once the job is created, it will create the jobId which is required to execute the job

 

How to request Data from our Node

 

  1. After creating all the jobs we can get the data from the jobs
  2. In Remix, Create another smart contract to fetch  the data from our node
  3. After creating the file, deploy the smart contract.
  4. After deploying the smart contract, it will provide a smart contract address
  5. We have to fund this address with Link so that we can call to these jobs

How to the publish node on Market

  1. Open Link Market
  2. Create your own account on Chain Link Market
  3. After Creating Account, Go to UserProfile

     

  4. Create the Node by clicking on create a new Node

     

  5. Fill the Required Details of Node. Oracle Address would be the address we have got when we first deploy Oracle.sol
  6. Once Node is created, You need to verify the on-chain verification to be visible in the market.

Leave a

Comment

Name is required

Invalid Name

Comment is required

Recaptcha is required.

blog-detail

April 5, 2024 at 01:34 am

Your comment is awaiting moderation.

By using this site, you allow our use of cookies. For more information on the cookies we use and how to delete or block them, please read our cookie notice.

Chat with Us
Contact Us

Oodles | Blockchain Development Company

Name is required

Please enter a valid Name

Please enter a valid Phone Number

Please remove URL from text