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
| Module | Purpose |
|---|
secrets | Generate and validate commitment hashes. |
quotes | Normalize quote data and expiry handling. |
orders | Create and fetch orders. |
transactions | Prepare source initiation calls. |
claims | Submit direct and hop claims. |
status | Convert order fields into lifecycle states. |
This package is not public yet. Use the API reference directly until release.