Skip to content

Commit a811756

Browse files
committed
chore: add changeset
1 parent d48cfd4 commit a811756

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
"thirdweb": minor
3+
---
4+
5+
Add support for backend wallets.
6+
7+
This is useful is you have a backend that is connected to an agent or what not that you want to have programmatic access to a wallet without managing private keys.
8+
9+
Here's how you'd do it:
10+
11+
```typescript
12+
const wallet = inAppWallet();
13+
const account = await wallet.connect({
14+
strategy: "backend",
15+
client: createThirdwebClient({
16+
secretKey: "...",
17+
}),
18+
walletSecret: "...",
19+
});
20+
console.log("account.address", account.address);
21+
```
22+
23+
Note that `walletSecret` would simply be something that you generate and store to uniquely identify the given wallet created under the particular `client`.

0 commit comments

Comments
 (0)