Skip to content

Update documentation based on source code changes #171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```mdx
---
title: "wallet_connect"
description: "Connect wallet and request account access"
Expand Down Expand Up @@ -38,7 +39,45 @@ A unique random string to prevent replay attacks.
<ParamField body="chainId" type="string" required>
The chain ID as a hexadecimal string (e.g., "0x2105" for Base Mainnet).
</ParamField>
</Expandable>

<ParamField body="version" type="string" optional>
The version of the sign-in request.
</ParamField>

<ParamField body="scheme" type="string" optional>
The scheme of the request.
</ParamField>

<ParamField body="domain" type="string" optional>
The domain associated with the request.
</ParamField>

<ParamField body="uri" type="string" optional>
The URI for the request.
</ParamField>

<ParamField body="statement" type="string" optional>
A statement associated with the request.
</ParamField>

<ParamField body="issuedAt" type="string" optional>
The timestamp when the request was issued.
</ParamField>

<ParamField body="expirationTime" type="string" optional>
The expiration time of the request.
</ParamField>

<ParamField body="notBefore" type="string" optional>
The time before which the request is not valid.
</ParamField>

<ParamField body="requestId" type="string" optional>
A unique identifier for the request.
</ParamField>

<ParamField body="resources" type="array" optional>
An array of resources associated with the request.
</ParamField>
</Expandable>
</ParamField>
Expand Down Expand Up @@ -76,6 +115,14 @@ The cryptographic signature of the message.
</ResponseField>
</Expandable>
</ResponseField>

<ResponseField name="subAccounts" type="array" optional>
Array of sub-account objects if requested.
</ResponseField>

<ResponseField name="spendPermissions" type="object" optional>
Spend permissions results if requested.
</ResponseField>
</Expandable>
</ResponseField>
</Expandable>
Expand Down Expand Up @@ -123,7 +170,12 @@ Whether the wallet is connected.
"capabilities": {
"signInWithEthereum": {
"nonce": "abc123def456",
"chainId": "0x2105"
"chainId": "0x2105",
"version": "1",
"domain": "localhost",
"uri": "http://localhost:3000",
"statement": "Sign in with Ethereum to the app.",
"issuedAt": "2024-01-15T10:30:00Z"
}
}
}]
Expand Down Expand Up @@ -195,3 +247,5 @@ You can use the `wallet_connect` with the [`signInWithEthereum`](/base-account/r
import PolicyBanner from "/snippets/PolicyBanner.mdx";

<PolicyBanner />

```