Skip to main content

Installation

Install the IOTA Repstation SDK using your preferred package manager:

Basic Setup

1

Import the SDK

Import the appropriate client for your environment:
2

Initialize the Client

Create a client instance with your configuration:
3

Register Your Application (Server-side)

If you’re setting up a new platform, register it first:

Your First Integration

Let’s build a simple reputation check for a marketplace:

1. Check User Reputation

Before allowing a transaction, check the user’s reputation:

2. Create a Deal

When users start a transaction, create a deal:

3. Complete the Deal Flow

Handle the deal lifecycle:

4. Enable Ratings

After deal completion, allow users to rate each other:

Frontend Integration

Create a simple rating component:

Testing Your Integration

Use the built-in mock client for development:

Next Steps

Core Concepts

Understand deals, ratings, and reputation in depth.

API Reference

Explore the complete SDK API documentation.

Integration Examples

See detailed examples for different platform types.

Error Handling

Learn about error handling and best practices.
Start with the testnet for development and testing. When you’re ready for production, simply change the network parameter to 'mainnet'.
Always store deal IDs with your transaction records. You’ll need them for completing the deal lifecycle and enabling ratings.