SDK Intro
Installation
[dependencies]
aligned-sdk = { git = "https://github.com/yetanotherco/aligned_layer", tag="v0.20.0" }Hello World
use aligned_sdk::common::types::{PriceEstimate, AlignedVerificationData, Network, ProvingSystemId, VerificationData};
use aligned_sdk::verification_layer::{estimate_fee, submit_and_wait, get_nonce_from_ethereum};const NETWORK: Network = Network::Hoodi;
fn main() {
let rpc_url = args.rpc_url.clone();
let keystore_password = rpassword::prompt_password("Enter keystore password: ")
.expect("Failed to read keystore password");
let wallet = LocalWallet::decrypt_keystore(args.keystore_path, &keystore_password)
.expect("Failed to decrypt keystore")
.with_chain_id(560048u64);
// Call to SDK:
let nonce = get_nonce_from_ethereum(&rpc_url, wallet.address(), NETWORK).await
.expect("Failed to get next nonce");
}Last updated