Skip to content

Commit aa548a3

Browse files
authored
Nebula docs (#6080)
1 parent eef52df commit aa548a3

File tree

1 file changed

+5
-6
lines changed
  • apps/portal/src/app/nebula/get-started

1 file changed

+5
-6
lines changed

apps/portal/src/app/nebula/get-started/page.mdx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,12 @@ npm install thirdweb
6060
Setup environmental variables.
6161

6262
<Callout variant="warning" title="Storing Secret Keys">
63-
Ensure you keep your secret key and private key safe and do not expose it in your codebase. We recommend using a
63+
Ensure you keep your secret key safe and do not expose it in your codebase. We recommend using a
6464
secret key manager such as [AWS Secret Manager](https://aws.amazon.com/secrets-manager/) or [Google Secret Manager](https://cloud.google.com/secret-manager).
6565
</Callout>
6666

6767
```jsx
6868
THIRDWEB_SECRET_KEY=your_thirdweb_secret_key
69-
EOA_PRIVATE_KEY=your_wallet_private_key
7069
```
7170
</Step>
7271

@@ -88,15 +87,15 @@ import {
8887
This function processes the API's response and executes blockchain transactions.
8988

9089
```jsx
90+
import { generateAccount } from "thirdweb/wallets";
91+
9192
async function handleNebulaResponse(response) {
9293
const client = createThirdwebClient({
9394
secretKey: process.env.THIRDWEB_SECRET_KEY,
9495
});
9596

96-
const account = privateKeyToAccount({
97-
client,
98-
privateKey: process.env.EOA_PRIVATE_KEY,
99-
});
97+
// You can use any wallet- see https://portal.thirdweb.com/typescript/v5/supported-wallets
98+
const account = await generateAccount({ client });
10099

101100
if (response.actions && response.actions.length > 0) {
102101
const action = response.actions[0];

0 commit comments

Comments
 (0)