Skip to content

Commit 4ce4327

Browse files
committed
fix: base URL polylayer.fyi -> polylayer.xyz
1 parent ad064d0 commit 4ce4327

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# polylayer
22

3-
Official TypeScript SDK for the [Polylayer](https://polylayer.fyi) API — Bearer-keyed trading on **Polymarket**, **Hyperliquid**, and **Jupiter Perpetuals** from one key.
3+
Official TypeScript SDK for the [Polylayer](https://polylayer.xyz) API — Bearer-keyed trading on **Polymarket**, **Hyperliquid**, and **Jupiter Perpetuals** from one key.
44

55
One API key trades your deposited funds on every venue. Polylayer resolves the key to your identity, signs inside a TEE with your deposit-wallet authority, and submits to the underlying venue (Polymarket V2 CLOB, Hyperliquid Exchange, on-chain Jupiter Perpetuals).
66

@@ -39,7 +39,7 @@ const { tx_signature } = await client.jupiter.open({
3939

4040
// Limit-buy YES at $0.62 on a Polymarket market ($10)
4141
await client.polymarket.placeOrder({
42-
market_id: "0x1234…", // CLOB token id (bytes32)
42+
market_id: "71321045679…", // CLOB token id (decimal uint256)
4343
side: "BUY",
4444
price: 0.62,
4545
size_usdc: "10000000", // 6-decimal base units
@@ -76,7 +76,7 @@ try {
7676
```ts
7777
new Polylayer({
7878
apiKey: "plyr_…", // required
79-
baseUrl: "https://api.polylayer.fyi", // default
79+
baseUrl: "https://polylayer.xyz", // default
8080
timeoutMs: 30_000, // per-request
8181
maxRetries: 2, // on 429 / 5xx
8282
fetch: customFetch, // optional (Node <18, proxies, tests)

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.0",
44
"description": "Official TypeScript SDK for the Polylayer API — Bearer-keyed trading on Polymarket, Hyperliquid, and Jupiter Perpetuals.",
55
"license": "MIT",
6-
"homepage": "https://polylayer.fyi",
6+
"homepage": "https://polylayer.xyz",
77
"repository": {
88
"type": "git",
99
"url": "https://github.com/polylayer/polylayer-ts.git"

‎src/client.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { PolylayerError, type PolylayerErrorCode } from "./errors.js";
1111
export interface PolylayerOptions {
1212
/** Your `plyr_<key>` bearer key. Required. */
1313
apiKey: string;
14-
/** Defaults to https://api.polylayer.fyi. */
14+
/** Defaults to https://polylayer.xyz. */
1515
baseUrl?: string;
1616
/** Per-request timeout in ms. Defaults 30000. */
1717
timeoutMs?: number;
@@ -21,7 +21,7 @@ export interface PolylayerOptions {
2121
fetch?: typeof fetch;
2222
}
2323

24-
const DEFAULT_BASE_URL = "https://api.polylayer.fyi";
24+
const DEFAULT_BASE_URL = "https://polylayer.xyz";
2525

2626
interface RequestOpts {
2727
method: "GET" | "POST" | "DELETE";

0 commit comments

Comments
 (0)