Skip to content

Commit a49273f

Browse files
authored
Add mainnet connection docs (#88)
1 parent d3ed381 commit a49273f

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

get-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ await db.collection("City").create(["new-york", "New York"]);
118118
119119
You can update records by calling methods defined on your collection.
120120
121-
```js
121+
```typescript
122122
import { Polybase } from "@polybase/client";
123123
124124
const db = new Polybase({ defaultNamespace: "your-namespace" });

mainnet.mdx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "Private Mainnet"
3+
---
4+
5+
The Polybase Mainnet is currently invite-only. If you have a production use case and would like to join the private mainnet, please [apply here](https://ask.polybase.xyz/mainnet).
6+
7+
## Configuring the SDK
8+
9+
To connect to the Polybase Mainnet, you will need to configure the SDK with the following parameters:
10+
11+
```typescript
12+
import { Polybase } from "@polybase/client";
13+
14+
const db = new Polybase({
15+
baseURL: "https://mainnet.polybase.xyz/v0",
16+
defaultNamespace: "your-namespace"
17+
});
18+
19+
// Now you can use the SDK as normal
20+
await db.collection("City").call("setCountry", ["USA"]);
21+
```

mint.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"react",
7373
"faq",
7474
"upgrading",
75+
"mainnet",
7576
"how-it-works",
7677
"known-issues",
7778
"indexers",

0 commit comments

Comments
 (0)