Replies: 4 comments
-
|
@a-singh09 , thanks for such a detailed report! |
Beta Was this translation helpful? Give feedback.
-
|
@nksazonov Thanks for the quick reply! |
Beta Was this translation helpful? Give feedback.
-
|
@a-singh09 We have identified the issue. As you are specifying the wallet and the session key to be equal in the create channel request, the Clearnode should have denied signing your request. However, this check is missing in the handler, thus you got the response and sent a We will add the missing check in the next patch. Then your current code should be failing. |
Beta Was this translation helpful? Give feedback.
-
|
@nksazonov Thanks, the channels creation issue has been resolved. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Channel Not Found Error After Creation - ClearNode Integration Issue
Environment
wss://clearnet.yellow.com/ws@erc7824/nitrolitev0.4.00x3c499c542cEF5E3811e1192ce70d8cC03d5c3359)Problem Statement
Symptom
Channel is successfully created on-chain with confirmed transaction, but subsequent operations (specifically
resize_channelRPC) fail with error:Impact
Current Implementation Flow
1. Channel Creation Process
Result:
✅ Transaction succeeds, channel ID generated:
0x240a4b4e8e0024e024b42a8a5b6dad69e49f1ff16e6017151798f76dffc84798Transaction URL: https://polygonscan.com/tx/0x107e8d0ed2ea4f53e70c8e27a49e7a313311c592b8d07c0716a56555959f54f9
2. Channel Registration Listener (Implemented)
After channel creation, we listen for ClearNode's channel registration:
Result: ❌ Timeout after 60 seconds - NO
"cu"message received from ClearNode3. Attempted Resize Operation
After timeout, we attempt to resize the channel to move funds to unified balance:
Result: ❌ Error:
channel 0x240a4b4e8e0024e024b42a8a5b6dad69e49f1ff16e6017151798f76dffc84798 not found4. Verification with get_channels RPC
Result:
{ "channels": [] }ClearNode returns empty array - no knowledge of the channel we just created.
Extended WebSocket listener timeout from 30s to 60s.
Result: ❌ Still timeout, no
"cu"messageExpected Behavior
According to Nitrolite Documentation
From ClearNode API docs:
Expected Message:
{ "res": [ 1234567890123, "cu", { "channel_id": "0x240a4b4e8e0024e024b42a8a5b6dad69e49f1ff16e6017151798f76dffc84798", "participant": "0x5b8fc87af470a7f7f86f7633f5019e4a24bcac9a5a22cf2d4dfc6aa72de08c23", "status": "open", "token": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359", "amount": "10000", "chain_id": 137, "adjudicator": "0x14980dF216722f14c42CA7357b06dEa7eB408b10", "challenge": 3600, "nonce": 1, "version": 0, "created_at": "2025-10-21T...", "updated_at": "2025-10-21T..." }, 1619123456789 ], "sig": ["0x..."] }Actual Behavior: NO message received
Use Case Architecture
Our payment system relies on ClearNode's 3-layer architecture:
Blocked Step: Cannot move from Ledger Channel → Unified Balance because
resize_channelfails with "channel not found"Reproduction Steps
Prerequisites
wss://clearnet.yellow.com/wsAdditional Context
Multiple Channel Attempts
This issue is consistent across multiple channel creation attempts:
Channel 1:
0x072bbb2ac30c088534919d016bed33d55d83da676f61eeec137868dddaf78080Channel 2:
0xdd8fb06fc669e7a0d552f8a681bad8208c9c5c689064d7e9bf628fc961d69f71Channel 3:
0x240a4b4e8e0024e024b42a8a5b6dad69e49f1ff16e6017151798f76dffc84798(current)Pattern: 100% failure rate on channel detection/registration
ClearNode Client Implementation
Our WebSocket client wrapper:
Any help would be greatly appreciated! We're blocked on implementing our payment system for the project and need to understand why channels aren't being registered by ClearNode despite successful on-chain creation.
System Information
Thank you for your time and assistance! 🙏
Beta Was this translation helpful? Give feedback.
All reactions