The Kleros SDK (@kleros/kleros-sdk) is a TypeScript library for interacting with the Kleros V2 protocol. It succeeds Archon and provides utilities for dispute template population, evidence handling, and contract interactions.
The SDK is under active development. For production use, pin to a specific version and review the changelog before upgrading. ABIs from @kleros/kleros-v2-contracts are stable for direct contract interaction.
Installation
Packages
The SDK lives at github.com/kleros/kleros-v2 inside the kleros-sdk/ workspace. It is published as @kleros/kleros-sdk.
Key Features
Dispute Template Population
The SDK resolves templateDataMappings to populate {{variable}} placeholders in dispute templates. This is the primary use case - run mappings client-side to display rich dispute context.
Evidence Submission
Contract Discovery
Staking
Capabilities Summary
Source
GitHub - kleros/kleros-v2/kleros-sdk