The TypeScript SDK is planned for browser, React, and Node integrations.

Target usage

import { OrynClient } from "@oryn/sdk";

const oryn = new OrynClient({
  orderbookUrl: "https://...",
  relayerUrl: "https://..."
});

const secret = await oryn.secrets.create();
const order = await oryn.orders.create({
  quoteId,
  source,
  destination,
  commitmentHash: secret.commitmentHash
});

await oryn.claims.submit({
  orderId: order.orderId,
  secret: secret.hex
});

Planned modules

ModulePurpose
secretsGenerate and validate commitment hashes.
quotesNormalize quote data and expiry handling.
ordersCreate and fetch orders.
transactionsPrepare source initiation calls.
claimsSubmit direct and hop claims.
statusConvert order fields into lifecycle states.
This package is not public yet. Use the API reference directly until release.