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
publisher: "0x...", // optional, defaults to the thirdweb deployer
56
+
client,
57
+
chain,
58
+
account,
59
+
contractId: "MyPublishedContract",
60
+
contractParams: {
61
+
param1: "value1",
62
+
param2: 123,
63
+
},
64
+
publisher: "0x...", // optional, defaults to the thirdweb deployer
56
65
});
57
-
```
66
+
```
67
+
68
+
## Deploy via API
69
+
70
+
You can also deploy contracts via API by passing the contract bytecode and ABI. This will automatically verify the contract on block explorers and add it to your project dashboard.
You can write multiple functions to multiple contracts on the same chain in a single request atomically, which will result in a single transaction for optimal gas efficiency.
Copy file name to clipboardExpand all lines: apps/portal/src/app/wallets/server/page.mdx
+30-1Lines changed: 30 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,9 +33,38 @@ Server wallets are wallets that are managed by your own application, like a trea
33
33
34
34
Once created, you can use your server wallet by passing it as the `from` field of the [thirdweb API](https://api.thirdweb.com/reference#tag/transactions/post/v1/transactions).
35
35
36
+
### Create a new Server Wallet
37
+
38
+
You can create new server wallets via API by just passing an identifier. This can be any string, but we recommend using a descriptive name.
0 commit comments