Quick Start
Get started with Fairseq in under 5 minutes. Generate your first temporal ordering proof.
Get started with Fairseq in under 5 minutes and generate your first temporal ordering proof.
1. Install the SDK
BASH
cargo add fairseq-sdk2. Initialize the client
RUST
use fairseq_sdk::{Config, Prover, Transaction};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = Config::from_env();
let prover = Prover::new(config).await?;
let transactions = vec![
Transaction::new("0xabc123...", 1704067200000000000),
Transaction::new("0xdef456...", 1704067200100000000),
];
let proof = prover.prove(transactions).await?;
println!("Proof generated: {}", proof.id);
Ok(())
}Next steps
Was this page helpful? /
Back to docs