Skip to content

Commit 8a7c089

Browse files
committed
Merge branch 'main' into greg/tool-5063-simplify-payments-docs
2 parents e801096 + 6e62a3a commit 8a7c089

File tree

29 files changed

+1788
-65
lines changed

29 files changed

+1788
-65
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/components/EngineCloudChartCard/EngineCloudBarChartCardUI.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export function EngineCloudBarChartCardUI({
6868
if (data.length === 0 || isAllEmpty) {
6969
return (
7070
<EmptyStateCard
71-
link="https://portal.thirdweb.com/engine/v3"
71+
link="https://portal.thirdweb.com/transactions"
7272
metric="Transactions"
7373
/>
7474
);

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/engine/dedicated/(general)/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function EngineLegacyBannerUI(props: {
104104
<Button asChild size="sm" variant="outline">
105105
<Link
106106
className="gap-2 bg-background"
107-
href="https://portal.thirdweb.com/engine/v3"
107+
href="https://portal.thirdweb.com/transactions"
108108
rel="noopener noreferrer"
109109
target="_blank"
110110
>

apps/portal/src/app/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const links = [
4040
name: "Payments",
4141
},
4242
{
43-
href: "/engine",
43+
href: "/transactions",
4444
name: "Transactions",
4545
},
4646
{
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui/tabs";
2+
import { TypeScriptIcon, EngineIcon } from "@/icons";
3+
import { createMetadata } from "@doc";
4+
5+
export const metadata = createMetadata({
6+
image: {
7+
title: "Server Wallets",
8+
icon: "wallets",
9+
},
10+
title: "Server Wallets",
11+
description:
12+
"Server wallets are wallets that are managed by your own application, like a treasury wallet or admin wallet. They are used to send transactions from the server.",
13+
});
14+
15+
# Server Wallets
16+
17+
Server wallets are wallets that are managed by your own application, like a treasury wallet or admin wallet. They are used to send transactions from the server.
18+
19+
### Create a new Server Wallet
20+
21+
You can create a new server wallet from your project dashboard.
22+
23+
---
24+
25+
<Tabs defaultValue="http">
26+
<TabsList>
27+
<TabsTrigger value="http" className="flex items-center gap-2 [&>p]:mb-0">
28+
<EngineIcon className="w-4 h-4 mr-2" />
29+
HTTP API
30+
</TabsTrigger>
31+
<TabsTrigger value="typescript" className="flex items-center gap-2 [&>p]:mb-0">
32+
<TypeScriptIcon className="w-4 h-4 mr-2" />
33+
TypeScript
34+
</TabsTrigger>
35+
</TabsList>
36+
37+
<TabsContent value="http">
38+
39+
### Use an existing Server Wallet
40+
41+
Once created, you can use your server wallet by passing it as the `from` field of the `executionOptions` of the [transactions API](https://engine.thirdweb.com/reference).
42+
43+
### Create a new Server Wallet Programmatically
44+
45+
```http
46+
POST /v1/accounts
47+
Content-Type: application/json
48+
x-secret-key: <your-project-secret-key>
49+
50+
{
51+
"label": "My Server Wallet"
52+
}
53+
```
54+
55+
### List all Server Wallets
56+
57+
```http
58+
GET /v1/accounts
59+
Content-Type: application/json
60+
x-secret-key: <your-project-secret-key>
61+
```
62+
63+
</TabsContent>
64+
65+
<TabsContent value="typescript">
66+
67+
### Use an existing Server Wallet
68+
69+
For existing server wallets, you can get a wallet object with the `serverWallet` function.
70+
71+
```typescript
72+
import { Engine, createThirdwebClient } from "thirdweb";
73+
74+
const client = createThirdwebClient({
75+
secretKey: "...", // your project secret key
76+
});
77+
78+
const wallet = Engine.serverWallet({
79+
client,
80+
address: "0x...", // your server wallet address
81+
});
82+
```
83+
84+
You can then use this wallet to send transactions just like user wallets with the thirdweb SDK.
85+
86+
### Create a new Server Wallet Programmatically
87+
88+
You can also create new server wallets programmatically with a label.
89+
90+
```typescript
91+
import { Engine } from "thirdweb";
92+
93+
const wallet = Engine.createServerWallet({
94+
client,
95+
label: "My Server Wallet",
96+
});
97+
```
98+
99+
### List all Server Wallets
100+
101+
You can list all server wallets for your project.
102+
103+
```typescript
104+
import { Engine } from "thirdweb";
105+
106+
const wallets = await Engine.getServerWallets({
107+
client,
108+
});
109+
```
110+
</TabsContent>
111+
</Tabs>

apps/portal/src/app/engine/v3/get-started/page.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Learn how to get started with thirdweb Transactions. This guide will walk you th
5555

5656
<TabsContent value="curl">
5757
```bash
58-
curl -X POST "https://engine-cloud-dev-l8wt.chainsaw-dev.zeet.app/v1/write/contract" \
58+
curl -X POST "https://engine.thirdweb.com/v1/write/contract" \
5959
-H "Content-Type: application/json" \
6060
-H "x-secret-key: <your-project-secret-key>" \
6161
-H "x-vault-access-token: <your-vault-access-token>" \
@@ -79,7 +79,7 @@ Learn how to get started with thirdweb Transactions. This guide will walk you th
7979
<TabsContent value="javascript">
8080
```typescript
8181
const response = await fetch(
82-
"https://engine-cloud-dev-l8wt.chainsaw-dev.zeet.app/v1/write/contract",
82+
"https://engine.thirdweb.com/v1/write/contract",
8383
{
8484
method: "POST",
8585
headers: {
@@ -110,7 +110,7 @@ Learn how to get started with thirdweb Transactions. This guide will walk you th
110110
import requests
111111
import json
112112

113-
url = "https://engine-cloud-dev-l8wt.chainsaw-dev.zeet.app/v1/write/contract"
113+
url = "https://engine.thirdweb.com/v1/write/contract"
114114
headers = {
115115
"Content-Type": "application/json",
116116
"x-secret-key": "<your-project-secret-key>",
@@ -147,7 +147,7 @@ Learn how to get started with thirdweb Transactions. This guide will walk you th
147147
)
148148

149149
func main() {
150-
url := "https://engine-cloud-dev-l8wt.chainsaw-dev.zeet.app/v1/write/contract"
150+
url := "https://engine.thirdweb.com/v1/write/contract"
151151

152152
// Create the request payload
153153
type Param struct {
@@ -213,7 +213,7 @@ Learn how to get started with thirdweb Transactions. This guide will walk you th
213213
{
214214
static async Task Main()
215215
{
216-
var url = "https://engine-cloud-dev-l8wt.chainsaw-dev.zeet.app/v1/write/contract";
216+
var url = "https://engine.thirdweb.com/v1/write/contract";
217217
218218
var requestData = new
219219
{

apps/portal/src/app/page.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,17 @@ function ReferenceSection() {
8989
/>
9090
<Grid>
9191
<SDKCard
92-
href="/typescript/v5"
92+
href="/references/typescript/v5"
9393
icon={TypeScriptIcon}
9494
title="TypeScript"
9595
/>
96-
<SDKCard href="/react/v5" icon={ReactIcon} title="React" />
9796
<SDKCard
98-
href="/react-native/v5"
97+
href="/references/typescript/v5"
98+
icon={ReactIcon}
99+
title="React"
100+
/>
101+
<SDKCard
102+
href="/references/typescript/v5"
99103
icon={ReactIcon}
100104
title="React Native"
101105
/>
@@ -177,7 +181,7 @@ function LearningResourcesSection() {
177181
/>
178182
<ArticleCardIndex
179183
description="Reliable transactions and monitoring"
180-
href="/engine"
184+
href="/transactions"
181185
icon={EngineIcon}
182186
title="Transactions"
183187
/>
34.9 KB
Loading
193 KB
Loading
44.5 KB
Loading
59.6 KB
Loading

0 commit comments

Comments
 (0)