You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 =awaitwallet.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