Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.
Open
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
10 changes: 6 additions & 4 deletions docs/quick_start/connect_to_the_clearnode.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ const authRequestMsg = await createAuthRequestMessage({
participant: '0xYourSignerAddress',
app_name: 'Your Domain',
expire: Math.floor(Date.now() / 1000) + 3600, // 1 hour expiration
scope: 'console',
application: '0xYourApplicationAddress',
scope: 'console', // optional
application: '0xYourApplicationAddress', // optional
allowances: [],
});

Expand Down Expand Up @@ -319,6 +319,7 @@ ws.onmessage = async (event) => {
},
{
// Domain for EIP-712 signing
// Must be equal to your app_name from authRequestMsg
name: 'Your Domain',
},
)
Expand Down Expand Up @@ -374,8 +375,8 @@ ws.onopen = async () => {
participant: '0xYourSignerAddress',
app_name: 'Your Domain',
expire: Math.floor(Date.now() / 1000) + 3600, // 1 hour expiration
scope: 'console',
application: '0xYourApplicationAddress',
scope: 'console', // optional
application: '0xYourApplicationAddress', // optional
allowances: [],
});
ws.send(authRequestMsg);
Expand Down Expand Up @@ -406,6 +407,7 @@ ws.onmessage = async (event) => {
},
{
// Domain for EIP-712 signing
// Must be equal to your app_name from authRequestMsg
name: 'Your Domain',
},
)
Expand Down