[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:
Julian 2024-02-12 16:25:01 -03:00 committed by GitHub
parent c9bc9660f6
commit ca8a5da9cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 6 deletions

View File

@ -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",

View File

@ -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",

View File

@ -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: