Skip to main content

Overview

The IOTA Repstation SDK provides a comprehensive TypeScript API for integrating decentralized reputation management into your applications. The SDK supports both browser and server environments with full type safety.

Installation

Import Paths

The SDK provides optimized bundles for different environments:

Core Classes

RepstationClient

The main client class for interacting with the IOTA Repstation system:

Configuration Types

RepstationConfig

Deal Management Types

Deal Creation

Deal Lifecycle

Rating System Types

Rating Creation

Provider Management Types

Provider Registration

Reputation Query Types

Reputation Profile

Provider Metadata Query Types

Usage Examples

Basic Client Setup

Working with Deals

Rating and Reputation

Error Handling

The SDK provides comprehensive error handling with custom error types:

Common Error Codes

Mock Client

For development and testing, the SDK includes a mock client:

Bundle Information

The SDK provides optimized bundles:
  • ESM Bundle: ~27KB - Modern ES modules for bundlers
  • CJS Bundle: ~30KB - CommonJS for Node.js compatibility
  • Types Bundle: ~8KB - Full TypeScript definitions
  • Browser Bundle: Optimized for frontend applications
  • Server Bundle: Optimized for Node.js applications

Browser Compatibility

  • Chrome 91+
  • Firefox 90+
  • Safari 14+
  • Edge 91+

Node.js Compatibility

  • Node.js 16+
  • TypeScript 4.5+

Next Steps

Deal Management

Explore deal creation and lifecycle management APIs.

Rating System

Understand rating creation and management APIs.

Reputation Queries

Learn about reputation data retrieval.

Integration Examples

See real-world integration patterns.