Installation

Install the Fairseq Rust SDK and prepare your environment.

Fairseq ships primarily as a Rust crate and integrates into a sequencer, matching engine, or aggregation pipeline.

Rust SDK

BASH
cargo add fairseq-sdk

TypeScript / JavaScript

For TypeScript/JavaScript applications, use the REST API directly. See API Reference for endpoint documentation.

TYPESCRIPT
// Direct API usage (no SDK required)
const response = await fetch('https://api.fairseq.io/v1/proofs', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${process.env.FAIRSEQ_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    transactions: [
      { hash: '0xabc...', timestamp: Date.now() },
    ],
  }),
});

const { proof } = await response.json();

Platform notes

  • Fairseq runs on commodity infrastructure (no special hardware).
  • Make sure you can reliably capture:
    • transaction hash
    • ingress time / arrival ordering
    • the ordered batch you publish

Next steps

Was this page helpful? /
Back to docs