Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/api-reference/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ interface ClearNodeConfig {
}

const config = {
endpoint: 'wss://clearnet.yellow.com/ws',
endpoint: 'wss://clearnet-sandbox.yellow.com/ws', // or wss://clearnet.yellow.com/ws for production
timeout: 30000,
retryAttempts: 3
};
Expand Down Expand Up @@ -224,8 +224,8 @@ try {

```typescript
const CLEARNODE_ENDPOINTS = {
MAINNET: 'wss://clearnet.yellow.com/ws',
TESTNET: 'wss://testnet.clearnet.yellow.com/ws',
PRODUCTION: 'wss://clearnet.yellow.com/ws',
SANDBOX: 'wss://clearnet-sandbox.yellow.com/ws',
LOCAL: 'ws://localhost:8080/ws'
};

Expand Down
15 changes: 10 additions & 5 deletions docs/build/quick-start/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,18 @@ pnpm add @erc7824/nitrolite

## Step 2: Connect to ClearNode

Create a file `app.js` and connect to the Yellow Network:
Create a file `app.js` and connect to the Yellow Network.

:::tip Clearnode Endpoints
- **Production**: `wss://clearnet.yellow.com/ws`
- **Sandbox**: `wss://clearnet-sandbox.yellow.com/ws` (recommended for testing)
:::

```javascript title="app.js" showLineNumbers
import { createAppSessionMessage, parseRPCResponse } from '@erc7824/nitrolite';

// Connect to Yellow Network
const ws = new WebSocket('wss://clearnet.yellow.com/ws');
// Connect to Yellow Network (using sandbox for testing)
const ws = new WebSocket('wss://clearnet-sandbox.yellow.com/ws');

ws.onopen = () => {
console.log('✅ Connected to Yellow Network!');
Expand Down Expand Up @@ -245,8 +250,8 @@ class SimplePaymentApp {
this.userAddress = userAddress;
this.messageSigner = messageSigner;

// Step 2: Connect to ClearNode
this.ws = new WebSocket('wss://clearnet.yellow.com/ws');
// Step 2: Connect to ClearNode (sandbox for testing)
this.ws = new WebSocket('wss://clearnet-sandbox.yellow.com/ws');

this.ws.onopen = () => {
console.log('🟢 Connected to Yellow Network!');
Expand Down
293 changes: 0 additions & 293 deletions docs/learn/advanced/architecture.md

This file was deleted.

Loading