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
Copy file name to clipboardExpand all lines: content/protocol-sdk/node-sdk-overview.mdx
+29-1Lines changed: 29 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,14 @@ Install the Spheron SDK for Node.js using npm or yarn or bun:
34
34
```
35
35
</Tabs.Tab>
36
36
</Tabs>
37
+
38
+
<Callouttype="info">
39
+
Note:
40
+
- With the release of **v2.0.0**, the Spheron SDK now has **Mainnet support**. Upgrade if you're on an older version to deploy on Spheron Mainnet.
41
+
-**Testnet usage is still available** for development, but requires running your own provider or Fizz Node.
42
+
-**Coming soon:** the Spheron team will host public Testnet providers and Fizz Nodes for community use.
43
+
</Callout>
44
+
37
45
## Usage
38
46
39
47
### Initializing the SDK
@@ -84,7 +92,9 @@ const sdk = new SpheronSDK({
84
92
-`bundlerUrl`: URL for the bundler service
85
93
-`paymasterUrl`: URL for the paymaster service
86
94
87
-
##### Using Gasless Transactions
95
+
#### Using Gasless Transactions
96
+
97
+
We have implemented gasless transactions for the Spheron network. For now, we support coinbase and biconomy gasless transactions. You can create your own paymaster and bundler from coinbase or biconomy to do gasless transactions using the Spheron SDK.
88
98
89
99
If you're using gasless transactions (`gaslessOptions`), you need to:
2. Deposit funds into your smart wallet before making any deposits using `depositBalance`.
100
110
111
+
#### RPC Configuration
112
+
113
+
To ensure reliable Base Mainnet deployments, you should supply your own dedicated base mainnet RPC endpoint. Public base mainnet RPCs are rate-limited and can lead to failed or stalled deployments under load.
114
+
115
+
1.**Obtain a Custom RPC URL**
116
+
117
+
Choose any popular provider and create a free API key:
**Note:** You can withdraw tokens from your unlocked balance at any time. However, if the tokens are in a locked state, you will not be able to withdraw them until you close your deployment. Upon closing, the locked tokens will be returned to the unlocked state after deducting provider charges and protocol fees.
90
90
</Callout>
91
91
92
-
### Set the private Base Mainnet RPC WSS URL
92
+
### Set the C Base Mainnet RPC WSS URL
93
93
94
-
Before deploying, you should set the private Base Mainnet RPC WSS URL by running the following command:
94
+
To ensure reliable Base Mainnet deployments, you should supply your own dedicated base mainnet RPC endpoint. Public base mainnet RPCs are rate-limited and can lead to failed or stalled deployments under load.
95
+
96
+
1.**Obtain a Custom RPC URL**
97
+
98
+
Choose any popular provider and create a free API key:
To ensure reliable Base Mainnet deployments, you should supply your own dedicated base mainnet RPC endpoint. Public base mainnet RPCs are rate-limited and can lead to failed or stalled deployments under load.
245
+
246
+
1.**Obtain a Custom RPC URL**
247
+
248
+
Choose any popular provider and create a free API key:
0 commit comments