[Blockchain Watcher] (FIX) Add content type header (#1114)
* Add content type header * Remove rcp for arbitrum --------- Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
This commit is contained in:
parent
c9bc9660f6
commit
ca8a5da9cf
|
@ -80,11 +80,7 @@
|
|||
},
|
||||
"arbitrum": {
|
||||
"network": "mainnet",
|
||||
"rpcs": [
|
||||
"https://arb1.arbitrum.io/rpc",
|
||||
"https://arbitrum.blockpi.network/v1/rpc/public",
|
||||
"https://arbitrum-one.public.blastapi.io"
|
||||
]
|
||||
"rpcs": ["https://arb1.arbitrum.io/rpc", "https://arbitrum.blockpi.network/v1/rpc/public"]
|
||||
},
|
||||
"optimism": {
|
||||
"network": "mainnet",
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
"version": "0.0.5",
|
||||
"description": "A process for watching blockchain events and moving them to persistent storage",
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"start": "node lib/start.js",
|
||||
"start:ncc": "node lib/index.js",
|
||||
|
|
|
@ -43,6 +43,9 @@ export class InstrumentedHttpProvider {
|
|||
method: method,
|
||||
body: JSON.stringify(body),
|
||||
signal: AbortSignal.timeout(opts?.timeout ?? this.timeout),
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
});
|
||||
} catch (err: AxiosError | any) {
|
||||
// Connection / timeout error:
|
||||
|
|
Loading…
Reference in New Issue