Skip to content

Commit 7d34045

Browse files
committed
chore: update docs and add changeset
1 parent d6161aa commit 7d34045

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.changeset/sixty-cats-doubt.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Add querying for in app wallet user details via externally linked wallet address:
6+
7+
```ts
8+
import { getUser } from "thirdweb";
9+
10+
// this is the wallet address that the user used to connect via SIWE to their in app wallet
11+
const user = await getUser({
12+
client,
13+
externalWalletAddress: "0x123...",
14+
});
15+
```
16+
17+
Add querying for ecosystem wallet user details:
18+
19+
```ts
20+
import { getUser } from "thirdweb";
21+
22+
const user = await getUser({
23+
client,
24+
ecosystem: {
25+
id: "ecosystem.YOUR_ID",
26+
partnerId: "OPTIONAL_PARTNER_ID"
27+
}
28+
29+
});
30+
```

apps/portal/src/app/connect/in-app-wallet/guides/get-user-details/page.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ You can query user details through the thirdweb SDK using a wallet address, emai
99
<Tabs defaultValue='wallet'>
1010
<TabsList>
1111
<TabsTrigger value='wallet'>Wallet</TabsTrigger>
12+
<TabsTrigger value='external-wallet'>External Wallet</TabsTrigger>
1213
<TabsTrigger value='email'>Email</TabsTrigger>
1314
<TabsTrigger value='phone'>Phone</TabsTrigger>
1415
<TabsTrigger value='id'>User ID</TabsTrigger>
@@ -18,13 +19,26 @@ You can query user details through the thirdweb SDK using a wallet address, emai
1819
```ts
1920
import { getUser } from "thirdweb";
2021

22+
// this is the wallet address that thirdweb has generated for the user
2123
const user = await getUser({
2224
client,
2325
walletAddress: "0x123...",
2426
});
2527
```
2628
</TabsContent>
2729

30+
<TabsContent value='external-wallet'>
31+
```ts
32+
import { getUser } from "thirdweb";
33+
34+
// this is the wallet address that the user used to connect via SIWE to their in app wallet
35+
const user = await getUser({
36+
client,
37+
externalWalletAddress: "0x123...",
38+
});
39+
```
40+
</TabsContent>
41+
2842
<TabsContent value='email'>
2943
```ts
3044
import { getUser } from "thirdweb";

0 commit comments

Comments
 (0)