kriptonio logo
| Blog

Published on 15 May 2023

How to Deploy and Supercharge Your Smart Contracts with REST API, UI, Analytics, Observability, and more with Kriptonio

#web3smartcontract

Problem with current Smart Contract deployment and interaction process

Deploying and interacting with smart contracts today requires deep technical expertise and managing multiple tools and external services. This includes:

  • Web3.js, ethers or similar library
  • Hardhat, Truffle or similar framework
  • Infura, Alchemy or similar RPC service
  • Wallet private keys
  • Blockchain Explorers
  • ...

To interact with a deployed smart contract through a UI, you either need to build your own UI or code an interface, or use an external dApp with WalletConnect or a similar protocol.

To call smart contract functions via a REST API, you typically need to develop an API from scratch and deal with security and scalability issues.

If you need to share access to a smart contract with some members of your team, this opens up a whole new set of challenges. Managing access to private keys is anything but easy.

Clearly, the current workflow is not fast and affordable for most individuals and organizations, especially those unfamiliar with blockchain development. It's a high entry barrier for the Web3 ecosystem.

Kriptonio aims to simplify smart contract deployment and interaction by abstracting away complexity and providing all necessary tools and infrastructure with just a few clicks, making it easy and fast for everyone.

How to create & deploy a Smart Contract via Kriptonio?

Here are the steps:

  • Register on Kriptonio, click "Smart Contracts" and then "New Smart Contract"
  • Select "By Providing Solidity Source Code" to create the contract by providing Solidity source code
  • Enter a Smart Contract title, choose the Blockchain Network (we'll use Polygon Mumbai)
  • Paste your smart contract code.

Example code we will use:

// SPDX-License-Identifier: MIT
contract ExampleContract {
  function sayHello() public pure returns (string memory) {
    return "Hello There!";
  }
}
  • Choose a wallet password
  • Click Save

Welcome to your Smart Contract control panel. 🚀

What just happened?

We compiled your smart contract, created a REST API and UI to interact with it, generated a wallet for you, created an RPC Node for your contract, and an explorer to monitor events and activity. Yes, all this with just a few clicks!

Next, you need to deploy your smart contract.

Deployment

To deploy, you'll need to fund your wallet. For testing, you can use faucets.

Go to the Wallet section of your smart contract and click "Funding & Wallet" details.

Wallet Funding

This will show a popup with funding instructions. For Polygon Mumbai, we'll use their faucet - just click the link, paste your wallet address and wait a minute to receive funds.

Finally, scroll down to "Deployment", enter your wallet password and click "Deploy Smart Contract". Deployment will begin, showing progress, and in a few seconds your smart contract will be deployed and ready to use.

How to interact with your Smart Contract?

After deploying, you can call smart contract functions via the REST API or UI. Let's try the UI first.

Go to "UI Interaction" in the menu, select a function and click "Call".

UI-Interaction

That's it, you can see the result of the function call. 🎉

To use the REST API, go to "API Interaction" tab and check the docs for our REST API.

In general, you can call the API by sending a POST request with the function name and parameters. For example:

curl -X POST 'https://api.kriptonio.com/v1/smart-contracts/<smart-contract-id>/call' \
-H 'X-Access-Token: <your-access-token>' \
-d '{ "fn": "sayHello", "params": [], "walletPassword": "<password>" }'

What about analytics and observability?

We provide insights into events from your smart contract, RPC method stats used, and detailed logs of each function call. A sneak peek at the detailed logs:

Logs

Every smart contracts gets stats about usage of RPC methods.

Stats

Closing thoughts

By abstracting away complexity and making smart contract development, deployment and operation easy, we hope to enable more developers and organizations to build Web3 applications.

Feel free to get in touch if you have any questions or feedback.

FAQ

I work in a team. Can I use Kriptonio?

Great. Kriptonio provides organizations, so you can collaborate with your team members and manage who can access and interact with smart contracts.

Is it secure?

Ensuring security is our top priority. We use industry best practices and standards to ensure that your smart contracts and wallets are safe.

Especially in teams where collaboration is required, it means that some team members will have direct access to a private key, in other words a password which cannot be changed. This is a huge security risk which Kriptonio solves by design. No one from your team has access to a private key. If your team member leaves the company, they are not leaving with your private key.

How much does it cost?

Kriptonio provides a free plan which is good for testing purposes, and even for some production use-cases. For more advanced use-cases, check our pricing page.

How to integrate my Smart Contract with dApps?

Kriptonio provides iOS and Android apps that support WalletConnect protocol, which allows you to connect your smart contract with any dApp that supports WalletConnect.

How to get in touch?

In case you need help getting started with Kriptonio, feel free to reach us via [email protected].

You may also like to read

Introducing Kriptonio: The All-in-One Platform for Building and Operating Web3 Applications

As the world increasingly embraces blockchain technology, the demand for Web3 applications that can take advantage of its unique features…

featured image

Published on 2 May 2023


How to create simple Smart Wallet based on ERC-4337 standard

Account abstraction based on the ERC-4337 standard is a new way to represent user wallets on Ethereum, offering multiple benefits for users.…

Published on 19 May 2023