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
To add gas estimation, use the [`eth_estimateGas`](/wallet/reference/json-rpc-methods/eth_estimategas)
218
+
RPC method.
219
+
212
220
```javascript
213
221
asyncfunctionestimateGas(transaction) {
214
222
try {
@@ -226,10 +234,6 @@ async function estimateGas(transaction) {
226
234
}
227
235
```
228
236
229
-
:::info
230
-
See the [Provider API](/wallet/reference/provider-api) reference and [JSON-RPC API](/wallet/reference/json-rpc-methods) reference for more information.
231
-
:::
232
-
233
237
## Best practices
234
238
235
239
Follow these best practices when handling transactions.
@@ -246,10 +249,6 @@ async function handleMint() {
246
249
</script>
247
250
```
248
251
249
-
:::info
250
-
See the [Provider API](/wallet/reference/provider-api) reference and [JSON-RPC API](/wallet/reference/json-rpc-methods) reference for more information.
251
-
:::
252
-
253
252
## Best practices
254
253
255
254
Follow these best practices when interacting with smart contracts.
and [`wallet_addEthereumChain`](/wallet/reference/json-rpc-methods/wallet_addethereumchain)
125
+
RPC methods:
121
126
122
127
```javascript
123
128
// Network configurations
@@ -182,10 +187,6 @@ Display the current network and a switch network button in HTML:
182
187
</div>
183
188
```
184
189
185
-
:::info
186
-
See the [Provider API](/wallet/reference/provider-api) reference and [JSON-RPC API](/wallet/reference/json-rpc-methods) reference for more information.
187
-
:::
188
-
189
190
## Best practices
190
191
191
192
Follow these best practices when managing networks.
0 commit comments