KRNL Platform Guidebook
KRNL Platformkrnl.xyz
  • Introduction
    • Introduction
    • How Does kOS Work?
  • Setup
    • Getting Started with KRNL
    • Quick Start (CLI)
    • Quick Start (Online IDE)
      • Quick Start (Remix IDE)
      • Quick Start (Atlas IDE)
    • create-krnl-app
    • Platform Registration
  • Kernel
    • What are Kernels?
    • Kernel Registration
      • Kernel Registration (on-chain)
      • Kernel Registration (off-chain)
    • Supported OpenAPI (Off-chain Kernel)
    • Staking
  • Smart Contract
    • Steps for Smart Contract Developers
    • Choosing Kernel(s)
    • Token Authority
      • What is a Token Authority?
      • How to Build a Token Authority?
      • Generic Token Authority
      • How to Deploy a Token Authority on Oasis?
    • Decoding Kernel Responses in Solidity
    • How to Integrate Your Smart Contract with kOS?
    • Smart Contract Registration
  • DApp
    • dApp Registration
    • KRNL SDK Installation
    • Usage
    • KRNL Node RPC
  • Miscellaneous
    • Overview
    • What is the KRNL Platform?
    • What are You Trying to BUIDL?
    • Smart Contract Fundamentals
      • Why Do I Have to Register a Smart Contract?
      • How to Deploy a Smart Contract?
    • Recommended Kernels List
  • Helpful Resources
    • New to Web3?
    • Dictionary
    • Testnet Faucets
    • How to Get Etherscan API Key?
  • Litepaper
    • Litepaper
      • Overview
      • Problem Statement
      • Current State Does Not Solve the Problem
      • Introducing Kernels
      • Ecosystem of Kernels
      • The KRNL Operating System (kOS)
      • Decentralization and Security Considerations
      • Use Cases for KRNL
  • Appendices
    • FAQ
    • Bounty Program
    • Social Medias
    • Thank You
  • Workshop
    • KRNL Workshop
    • Speed's Workshop
Powered by GitBook
On this page

Was this helpful?

  1. Kernel
  2. Kernel Registration

Kernel Registration (on-chain)

PreviousKernel RegistrationNextKernel Registration (off-chain)

Last updated 15 days ago

Was this helpful?

In this tutorial, we will have a view function on a smart contract. This will return the wallet score based on each wallet address. The input parameter is going to be the address of the wallet, and the output parameter is going to be the wallet score.

Let's assume that we have a smart contract on Optimism Sepolia that has already been deployed.

Fill in the blockchain network on which you have deployed the smart contract, along with the address of that contract. You will also have to define the Function Signature section - see the example below. As mentioned earlier, the input parameter of our function is the wallet address, as in the code block.

function getScore(address)

However, on the KRNL Platform, you do not need to put the word "function" as this is assumed. The value that you do have to put is in the snippet below.

getScore(address)

The Function Return Type of the function will have to be defined here as well.

Once you've filled in the required information, Fee Per Query will be the crucial field at this stage of the process. It is the part where you, as service providers, can define how much users have to pay when they execute your services. The picture below shows both the Fee Per Query and Staking sections. Additional Information contains optional fields where you can add a name, logo, and more.

After pressing the "Activate" button at the bottom of the page, the review window will pop up for you to revise and confirm, as shown in the below picture.

Once you have clicked "Confirm", the "Transaction Complete" window will be displayed.

Congratulations! You have successfully registered your service as one of our kernels!

Cover

Register Your Kernel