Skip to content
Merged
Changes from 2 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
9 changes: 3 additions & 6 deletions apps/portal/src/app/nebula/get-started/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,12 @@ npm install thirdweb
Setup environmental variables.

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

```jsx
THIRDWEB_SECRET_KEY=your_thirdweb_secret_key
EOA_PRIVATE_KEY=your_wallet_private_key
```
</Step>

Expand All @@ -93,10 +92,8 @@ async function handleNebulaResponse(response) {
secretKey: process.env.THIRDWEB_SECRET_KEY,
});

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

if (response.actions && response.actions.length > 0) {
const action = response.actions[0];
Expand Down
Loading