Ergo RustKit
Introduction
A SDK for building applications on the Ergo blockchain. Our goal is to create a library that creates a simple and easy to use interface for developers to build applications. Currently, the library is in the early stages of development and is not recommended for production use. The full roadmap can be found below!
Setup
The Ergo RustKit is published on crates.io. The crate can be found here.
ergo-rustkit = "0.2.0"
Examples
Simple Send
let mut w: RustKitWallet = new;
w.update_index_0_address;
let mut tx: RustKitTransaction = new;
tx.build;
tx.sign;
let resp: String = tx.submit.unwrap;
Send with token
let mut w: RustKitWallet = new;
w.update_index_0_address;
let mut tx: RustKitTransaction = new;
tx.add_token;
tx.build;
tx.sign;
let resp: String = tx.submit.unwrap;
Mint new token
let mut w: RustKitWallet = new;
w.update_index_0_address;
let mut tx: RustKitTransaction = new;
tx.mint_token;
tx.build;
tx.sign;
let resp: String = tx.submit.unwrap;
Multi-Recipient Send
let mut w: RustKitWallet = new;
w.update_index_0_address;
let mut tx: RustKitTransaction = new;
tx.add_token;
tx.add_reciever;
tx.build;
tx.sign;
let resp: String = tx.submit.unwrap;
Roadmap
- Wallet Utils
- Get P2PK address
- Get boxes for Wallet
- Transaction Utils
- Ergo Only Transactions
- Ergo + Assets Transactions
- Send Assets
- Mint Assets
- Set Data Inputs
- Set Registers
- Multi-Recipient Transactions
Projects using Ergo RustKit
Coming Soon...
Contributing
Rust-Ergo is always open for contributions! If you would like to contribute, please open a PR and we will review it as soon as possible.