Skip to content

Commit a3b029b

Browse files
committed
Add force_http docs
1 parent 1ec78c4 commit a3b029b

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

book/src/libs/seth.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,12 @@ pending_nonce_protection_enabled = true
350350
pending_nonce_protection_timeout = "5m"
351351
```
352352

353+
If you want to use HTTP instead of WS you can do so with by setting to true:
354+
355+
```toml
356+
force_http = false
357+
```
358+
353359
You can add more networks like this:
354360

355361
```toml

seth/seth.toml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ check_rpc_health_on_start = false
6060
# only for tracing, when you want to make sure that no transactions are sent to the network.
6161
read_only = false
6262

63+
# when enabled SETH will initialize using HTTP instead of WS
64+
force_http = false
65+
6366
[gas_bumps]
6467
# when > 0 then we will bump gas price for transactions that are stuck in the mempool
6568
# by default the bump step is controlled by gas_price_estimation_tx_priority (check readme.md for more details)
@@ -77,7 +80,7 @@ key_sync_retries = 10
7780

7881
[[networks]]
7982
name = "Anvil"
80-
dial_timeout="1m"
83+
dial_timeout = "1m"
8184
transaction_timeout = "30s"
8285
urls_secret = ["ws://localhost:8545"]
8386
transfer_gas_fee = 21_000
@@ -91,7 +94,7 @@ gas_tip_cap = 1_000_000_000
9194

9295
[[networks]]
9396
name = "Geth"
94-
dial_timeout="1m"
97+
dial_timeout = "1m"
9598
transaction_timeout = "30s"
9699
urls_secret = ["ws://localhost:8546"]
97100
transfer_gas_fee = 21_000
@@ -105,7 +108,7 @@ gas_tip_cap = 3_000_000_000
105108

106109
[[networks]]
107110
name = "Default"
108-
dial_timeout="1m"
111+
dial_timeout = "1m"
109112
transaction_timeout = "30s"
110113
# enable EIP-1559 transactions, because Seth will disable them if they are not supported
111114
eip_1559_dynamic_fees = true
@@ -122,7 +125,7 @@ gas_tip_cap = 50_000_000_000 #50 gwei
122125

123126
[[networks]]
124127
name = "Fuji"
125-
dial_timeout="1m"
128+
dial_timeout = "1m"
126129
transaction_timeout = "30s"
127130
eip_1559_dynamic_fees = true
128131

@@ -145,7 +148,7 @@ eip_1559_dynamic_fees = true
145148

146149
[[networks]]
147150
name = "Sepolia"
148-
dial_timeout="1m"
151+
dial_timeout = "1m"
149152
transaction_timeout = "30s"
150153
eip_1559_dynamic_fees = true
151154

@@ -169,7 +172,7 @@ gas_tip_cap = 5_000_000_000
169172

170173
[[networks]]
171174
name = "Mumbai"
172-
dial_timeout="1m"
175+
dial_timeout = "1m"
173176
transaction_timeout = "30s"
174177
eip_1559_dynamic_fees = true
175178

@@ -196,7 +199,7 @@ gas_tip_cap = 30460480806
196199

197200
[[networks]]
198201
name = "zkEVM"
199-
dial_timeout="1m"
202+
dial_timeout = "1m"
200203
transaction_timeout = "30s"
201204
eip_1559_dynamic_fees = false
202205

@@ -220,7 +223,7 @@ gas_tip_cap = 1_800_000_000
220223

221224
[[networks]]
222225
name = "ARBITRUM_SEPOLIA"
223-
dial_timeout="1m"
226+
dial_timeout = "1m"
224227
transaction_timeout = "10m"
225228
transfer_gas_fee = 50_000
226229
# gas_limit = 15_000_000

0 commit comments

Comments
 (0)