Published on 15 May 2023
Deploying and interacting with smart contracts today requires deep technical expertise and managing multiple tools and external services. This includes:
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.
Here are the steps:
Example code we will use:
// SPDX-License-Identifier: MIT
contract ExampleContract {
function sayHello() public pure returns (string memory) {
return "Hello There!";
}
}
Welcome to your Smart Contract control panel. 🚀
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.
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.
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.
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".
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>" }'
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:
Every smart contracts gets stats about usage of RPC methods.
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.
Great. Kriptonio provides organizations, so you can collaborate with your team members and manage who can access and interact with smart contracts.
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.
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.
Kriptonio provides iOS and Android apps that support WalletConnect protocol, which allows you to connect your smart contract with any dApp that supports WalletConnect.
In case you need help getting started with Kriptonio, feel free to reach us via [email protected].
As the world increasingly embraces blockchain technology, the demand for Web3 applications that can take advantage of its unique features…
Published on 2 May 2023
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