Devol Accounts Kit
Table of Contents
Introduction
Welcome to the Devol Accounts Kit documentation. This comprehensive guide is designed to equip developers and system administrators with the knowledge and tools necessary to effectively implement and manage the Devol smart contract system.
Quick Start Guide
Setting Up Your Development Environment
To begin, ensure your development environment is set up with the necessary tools and libraries:
- Rust
- Solana CLI
Initialize Your Project
Create a new Rust project where you will integrate the Devol Accounts Kit:
Add Dependencies
Open your Cargo.toml file and add the necessary dependencies for working with the Solana blockchain and the Devol
Accounts Kit:
[]
= '*'
Sample Code to Interact with Devol Smart Contracts
Below is a basic example to set up your client and interact with the Devol smart contracts:
// Required imports
use FromStr;
use RpcClient;
use Pubkey;
use DvlClient;
use RootAccount;
use tokio;
// This attribute sets up the Tokio runtime for your async main
async
Run Your Application
To run your application and see the output:
This simple setup will help you start interacting with the Devol smart contract and explore more complex transactions and interactions as you progress in your development.
Advanced
Feature Configuration Options:
The Devol Accounts Kit is equipped with a set of features that cater to various use cases in blockchain application development. The library is structured with a default feature set, which compiles the entire library including all functionalities necessary for typical applications. Additionally, there is a specific feature designed for blockchain environments:
-
On-chain Feature
Theon-chainfeature is specifically designed for scenarios where the network-dependent functionalities are not required. When this feature is enabled, it removes all network-related parts of the library, making it suitable for deployment within smart contracts themselves. This feature ensures that the library is optimized for on-chain operations, reducing the footprint and enhancing performance for smart contract execution.
Documentation
For more detailed guidance DeVol Network Documentation