Kernel Registration (on-chain)
Last updated
Last updated
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.
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.
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!