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-sdkTypeScript / 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
- Read Configuration to set up time beacon anchoring.
- Follow Quick Start to produce your first proof.
Was this page helpful? /
Back to docs