From 2e08586bc8694f947d15c30d66b88e435eb87145 Mon Sep 17 00:00:00 2001 From: Paul Noel Date: Fri, 2 Aug 2024 12:18:00 -0500 Subject: [PATCH] watcher: mock Base tests --- .../watchers/__tests__/BaseWatcher.test.ts | 60 +- .../eth_getBlockByNumber/0x178fef | 2105 +++++++++++++++++ .../eth_getBlockByNumber/0x17c3ac | 2076 ++++++++++++++++ .../eth_getLogs/0x178fef | 1 + .../eth_getLogs/0x17c3ac | 1804 ++++++++++++++ 5 files changed, 6045 insertions(+), 1 deletion(-) create mode 100644 watcher/src/watchers/__tests__/mock/developer-access-mainnet.base.org/eth_getBlockByNumber/0x178fef create mode 100644 watcher/src/watchers/__tests__/mock/developer-access-mainnet.base.org/eth_getBlockByNumber/0x17c3ac create mode 100644 watcher/src/watchers/__tests__/mock/developer-access-mainnet.base.org/eth_getLogs/0x178fef create mode 100644 watcher/src/watchers/__tests__/mock/developer-access-mainnet.base.org/eth_getLogs/0x17c3ac diff --git a/watcher/src/watchers/__tests__/BaseWatcher.test.ts b/watcher/src/watchers/__tests__/BaseWatcher.test.ts index 8893f6cf..e9cb86d1 100644 --- a/watcher/src/watchers/__tests__/BaseWatcher.test.ts +++ b/watcher/src/watchers/__tests__/BaseWatcher.test.ts @@ -1,15 +1,73 @@ import { expect, jest, test } from '@jest/globals'; import { INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN } from '@wormhole-foundation/wormhole-monitor-common'; import { EVMWatcher } from '../EVMWatcher'; +import { existsSync, readFileSync } from 'fs'; jest.setTimeout(60000); +jest.mock('axios', () => { + const originalAxios = jest.requireActual('axios') as any; + return { + get: jest.fn(async (url: string, config?: any) => { + const mockDataPath = `${__dirname}/mock/${url + .replace('http://', '') + .replace('https://', '')}`; + if (existsSync(mockDataPath)) { + return { data: JSON.parse(readFileSync(mockDataPath, 'utf8')) }; + } + return originalAxios.get(url, config); + }), + post: jest.fn(async (url: string, config?: any) => { + let mockDataPath = `${__dirname}/mock/${url.replace('http://', '').replace('https://', '')}`; + // console.log('post config', stringify(config)); + if (config) { + const configStr = JSON.stringify(config); + if (configStr.includes('eth_getLogs')) { + mockDataPath = `${mockDataPath}/eth_getLogs`; + } else if (configStr.includes('eth_getBlockByNumber')) { + mockDataPath = `${mockDataPath}/eth_getBlockByNumber`; + } + if (configStr.includes('0x178fef')) { + mockDataPath = `${mockDataPath}/0x178fef`; + } else if (configStr.includes('0x17c3ac')) { + mockDataPath = `${mockDataPath}/0x17c3ac`; + } else { + mockDataPath = `${mockDataPath}/default`; + } + } + // console.log('post mockDataPath', mockDataPath); + if (existsSync(mockDataPath)) { + return JSON.parse(readFileSync(mockDataPath, 'utf8')); + } + // console.log('axios.post', url); + const retval = await originalAxios.post(url, config); + // console.log('post retval', stringify(retval)); + return retval; + }), + }; +}); + +function stringify(obj: any) { + let cache: object[] = []; // Explicitly type cache as an array of objects + let str = JSON.stringify(obj, function (key, value) { + if (typeof value === 'object' && value !== null) { + if (cache.indexOf(value) !== -1) { + // Circular reference found, discard key + return; + } + // Store value in our collection + cache.push(value); + } + return value; + }); + cache = []; // reset the cache + return str; +} const initialBaseBlock = Number(INITIAL_DEPLOYMENT_BLOCK_BY_NETWORK_AND_CHAIN['Mainnet'].Base); test('getFinalizedBlockNumber', async () => { const watcher = new EVMWatcher('Mainnet', 'Base'); const blockNumber = await watcher.getFinalizedBlockNumber(); - console.log('blockNumber', blockNumber); expect(blockNumber).toBeGreaterThan(initialBaseBlock); }); diff --git a/watcher/src/watchers/__tests__/mock/developer-access-mainnet.base.org/eth_getBlockByNumber/0x178fef b/watcher/src/watchers/__tests__/mock/developer-access-mainnet.base.org/eth_getBlockByNumber/0x178fef new file mode 100644 index 00000000..5b75d03b --- /dev/null +++ b/watcher/src/watchers/__tests__/mock/developer-access-mainnet.base.org/eth_getBlockByNumber/0x178fef @@ -0,0 +1,2105 @@ +{ + "status": 200, + "statusText": "OK", + "headers": { + "date": "Fri, 02 Aug 2024 16:15:23 GMT", + "content-type": "application/json", + "content-length": "2934", + "connection": "keep-alive", + "access-control-max-age": "1728000", + "strict-transport-security": "max-age=31536000; includeSubDomains; preload", + "vary": "Origin, accept-encoding", + "x-envoy-upstream-service-time": "36", + "cf-cache-status": "DYNAMIC", + "x-content-type-options": "nosniff", + "server": "cloudflare", + "cf-ray": "8acf5dce39d249ef-ORD", + "alt-svc": "h3=\":443\"; ma=86400" + }, + "config": { + "transitional": { + "silentJSONParsing": true, + "forcedJSONParsing": true, + "clarifyTimeoutError": false + }, + "adapter": [ + "xhr", + "http", + "fetch" + ], + "transformRequest": [ + null + ], + "transformResponse": [ + null + ], + "timeout": 0, + "xsrfCookieName": "XSRF-TOKEN", + "xsrfHeaderName": "X-XSRF-TOKEN", + "maxContentLength": -1, + "maxBodyLength": -1, + "env": {}, + "headers": { + "Accept": "application/json, text/plain, */*", + "Content-Type": "application/json", + "User-Agent": "axios/1.7.2", + "Content-Length": "959", + "Accept-Encoding": "gzip, compress, deflate, br" + }, + "method": "post", + "url": "https://base-rpc.publicnode.com", + "data": "[{\"jsonrpc\":\"2.0\",\"id\":\"0\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x178fef\",false]},{\"jsonrpc\":\"2.0\",\"id\":\"1\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x178ff0\",false]},{\"jsonrpc\":\"2.0\",\"id\":\"2\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x178ff1\",false]},{\"jsonrpc\":\"2.0\",\"id\":\"3\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x178ff2\",false]},{\"jsonrpc\":\"2.0\",\"id\":\"4\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x178ff3\",false]},{\"jsonrpc\":\"2.0\",\"id\":\"5\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x178ff4\",false]},{\"jsonrpc\":\"2.0\",\"id\":\"6\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x178ff5\",false]},{\"jsonrpc\":\"2.0\",\"id\":\"7\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x178ff6\",false]},{\"jsonrpc\":\"2.0\",\"id\":\"8\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x178ff7\",false]},{\"jsonrpc\":\"2.0\",\"id\":\"9\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x178ff8\",false]},{\"jsonrpc\":\"2.0\",\"id\":\"10\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x178ff9\",false]}]" + }, + "request": { + "_events": {}, + "_eventsCount": 7, + "outputData": [], + "outputSize": 0, + "writable": true, + "destroyed": true, + "_last": false, + "chunkedEncoding": false, + "shouldKeepAlive": true, + "maxRequestsOnConnectionReached": false, + "_defaultKeepAlive": true, + "useChunkedEncodingByDefault": true, + "sendDate": false, + "_removedConnection": false, + "_removedContLen": false, + "_removedTE": false, + "strictContentLength": false, + "_contentLength": "959", + "_hasBody": true, + "_trailer": "", + "finished": true, + "_headerSent": true, + "_closed": true, + "socket": { + "_tlsOptions": { + "pipe": false, + "secureContext": { + "context": {} + }, + "isServer": false, + "requestCert": true, + "rejectUnauthorized": true + }, + "_secureEstablished": true, + "_securePending": false, + "_newSessionPending": false, + "_controlReleased": true, + "secureConnecting": false, + "_SNICallback": null, + "servername": "base-rpc.publicnode.com", + "alpnProtocol": false, + "authorized": true, + "authorizationError": null, + "encrypted": true, + "_events": { + "close": [ + null, + null, + null + ] + }, + "_eventsCount": 9, + "connecting": false, + "_hadError": false, + "_parent": null, + "_host": "base-rpc.publicnode.com", + "_closeAfterHandlingError": false, + "_readableState": { + "highWaterMark": 16384, + "buffer": [], + "bufferIndex": 0, + "length": 0, + "pipes": [], + "awaitDrainWriters": null + }, + "_writableState": { + "highWaterMark": 16384, + "length": 0, + "corked": 0, + "writelen": 0, + "bufferedIndex": 0, + "pendingcb": 0 + }, + "allowHalfOpen": false, + "_sockname": null, + "_pendingData": null, + "_pendingEncoding": "", + "_server": null, + "ssl": { + "_parent": { + "reading": true, + "onconnection": null + }, + "_parentWrap": null, + "reading": true + }, + "_requestCert": true, + "_rejectUnauthorized": true, + "timeout": 5000, + "parser": null, + "_httpMessage": null, + "autoSelectFamilyAttemptedAddresses": [ + "104.18.22.142:443" + ] + }, + "_header": "POST / HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nUser-Agent: axios/1.7.2\r\nContent-Length: 959\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: base-rpc.publicnode.com\r\nConnection: keep-alive\r\n\r\n", + "_keepAliveTimeout": 0, + "agent": { + "_events": {}, + "_eventsCount": 2, + "defaultPort": 443, + "protocol": "https:", + "options": { + "keepAlive": true, + "scheduling": "lifo", + "timeout": 5000, + "noDelay": true, + "path": null + }, + "requests": {}, + "sockets": {}, + "freeSockets": { + "base-rpc.publicnode.com:443:::::::::::::::::::::": [ + null + ] + }, + "keepAliveMsecs": 1000, + "keepAlive": true, + "maxSockets": null, + "maxFreeSockets": 256, + "scheduling": "lifo", + "maxTotalSockets": null, + "totalSocketCount": 1, + "maxCachedSessions": 100, + "_sessionCache": { + "map": { + "base-rpc.publicnode.com:443:::::::::::::::::::::": { + "type": "Buffer", + "data": [ + 48, + 130, + 5, + 49, + 2, + 1, + 1, + 2, + 2, + 3, + 4, + 4, + 2, + 19, + 2, + 4, + 32, + 93, + 74, + 125, + 191, + 174, + 59, + 202, + 173, + 5, + 25, + 80, + 205, + 72, + 164, + 123, + 64, + 110, + 2, + 162, + 35, + 124, + 41, + 88, + 160, + 247, + 207, + 202, + 152, + 119, + 155, + 179, + 110, + 4, + 48, + 32, + 242, + 61, + 68, + 96, + 179, + 73, + 23, + 6, + 237, + 170, + 255, + 63, + 148, + 83, + 60, + 109, + 77, + 26, + 61, + 226, + 105, + 167, + 13, + 86, + 15, + 114, + 232, + 167, + 62, + 193, + 160, + 74, + 252, + 246, + 136, + 235, + 190, + 74, + 139, + 185, + 178, + 104, + 56, + 124, + 142, + 188, + 249, + 161, + 6, + 2, + 4, + 102, + 173, + 6, + 27, + 162, + 4, + 2, + 2, + 28, + 32, + 163, + 130, + 3, + 177, + 48, + 130, + 3, + 173, + 48, + 130, + 3, + 83, + 160, + 3, + 2, + 1, + 2, + 2, + 17, + 0, + 233, + 140, + 99, + 200, + 193, + 66, + 45, + 30, + 17, + 249, + 93, + 200, + 252, + 171, + 222, + 114, + 48, + 10, + 6, + 8, + 42, + 134, + 72, + 206, + 61, + 4, + 3, + 2, + 48, + 59, + 49, + 11, + 48, + 9, + 6, + 3, + 85, + 4, + 6, + 19, + 2, + 85, + 83, + 49, + 30, + 48, + 28, + 6, + 3, + 85, + 4, + 10, + 19, + 21, + 71, + 111, + 111, + 103, + 108, + 101, + 32, + 84, + 114, + 117, + 115, + 116, + 32, + 83, + 101, + 114, + 118, + 105, + 99, + 101, + 115, + 49, + 12, + 48, + 10, + 6, + 3, + 85, + 4, + 3, + 19, + 3, + 87, + 69, + 49, + 48, + 30, + 23, + 13, + 50, + 52, + 48, + 54, + 50, + 57, + 50, + 49, + 48, + 53, + 50, + 55, + 90, + 23, + 13, + 50, + 52, + 48, + 57, + 50, + 55, + 50, + 49, + 48, + 53, + 50, + 54, + 90, + 48, + 25, + 49, + 23, + 48, + 21, + 6, + 3, + 85, + 4, + 3, + 19, + 14, + 112, + 117, + 98, + 108, + 105, + 99, + 110, + 111, + 100, + 101, + 46, + 99, + 111, + 109, + 48, + 89, + 48, + 19, + 6, + 7, + 42, + 134, + 72, + 206, + 61, + 2, + 1, + 6, + 8, + 42, + 134, + 72, + 206, + 61, + 3, + 1, + 7, + 3, + 66, + 0, + 4, + 176, + 135, + 222, + 116, + 98, + 106, + 119, + 175, + 108, + 150, + 33, + 79, + 219, + 170, + 118, + 18, + 50, + 99, + 11, + 113, + 205, + 54, + 40, + 126, + 107, + 225, + 143, + 3, + 168, + 253, + 35, + 167, + 45, + 126, + 179, + 93, + 193, + 44, + 254, + 54, + 219, + 58, + 136, + 68, + 79, + 149, + 131, + 227, + 148, + 161, + 95, + 148, + 242, + 43, + 26, + 155, + 232, + 204, + 172, + 206, + 30, + 215, + 114, + 142, + 163, + 130, + 2, + 88, + 48, + 130, + 2, + 84, + 48, + 14, + 6, + 3, + 85, + 29, + 15, + 1, + 1, + 255, + 4, + 4, + 3, + 2, + 7, + 128, + 48, + 19, + 6, + 3, + 85, + 29, + 37, + 4, + 12, + 48, + 10, + 6, + 8, + 43, + 6, + 1, + 5, + 5, + 7, + 3, + 1, + 48, + 12, + 6, + 3, + 85, + 29, + 19, + 1, + 1, + 255, + 4, + 2, + 48, + 0, + 48, + 29, + 6, + 3, + 85, + 29, + 14, + 4, + 22, + 4, + 20, + 144, + 172, + 61, + 16, + 49, + 57, + 66, + 92, + 151, + 161, + 138, + 61, + 93, + 49, + 144, + 19, + 73, + 119, + 125, + 159, + 48, + 31, + 6, + 3, + 85, + 29, + 35, + 4, + 24, + 48, + 22, + 128, + 20, + 144, + 119, + 146, + 53, + 103, + 196, + 255, + 168, + 204, + 169, + 230, + 123, + 217, + 128, + 121, + 123, + 204, + 147, + 249, + 56, + 48, + 94, + 6, + 8, + 43, + 6, + 1, + 5, + 5, + 7, + 1, + 1, + 4, + 82, + 48, + 80, + 48, + 39, + 6, + 8, + 43, + 6, + 1, + 5, + 5, + 7, + 48, + 1, + 134, + 27, + 104, + 116, + 116, + 112, + 58, + 47, + 47, + 111, + 46, + 112, + 107, + 105, + 46, + 103, + 111, + 111, + 103, + 47, + 115, + 47, + 119, + 101, + 49, + 47, + 54, + 89, + 119, + 48, + 37, + 6, + 8, + 43, + 6, + 1, + 5, + 5, + 7, + 48, + 2, + 134, + 25, + 104, + 116, + 116, + 112, + 58, + 47, + 47, + 105, + 46, + 112, + 107, + 105, + 46, + 103, + 111, + 111, + 103, + 47, + 119, + 101, + 49, + 46, + 99, + 114, + 116, + 48, + 43, + 6, + 3, + 85, + 29, + 17, + 4, + 36, + 48, + 34, + 130, + 14, + 112, + 117, + 98, + 108, + 105, + 99, + 110, + 111, + 100, + 101, + 46, + 99, + 111, + 109, + 130, + 16, + 42, + 46, + 112, + 117, + 98, + 108, + 105, + 99, + 110, + 111, + 100, + 101, + 46, + 99, + 111, + 109, + 48, + 19, + 6, + 3, + 85, + 29, + 32, + 4, + 12, + 48, + 10, + 48, + 8, + 6, + 6, + 103, + 129, + 12, + 1, + 2, + 1, + 48, + 54, + 6, + 3, + 85, + 29, + 31, + 4, + 47, + 48, + 45, + 48, + 43, + 160, + 41, + 160, + 39, + 134, + 37, + 104, + 116, + 116, + 112, + 58, + 47, + 47, + 99, + 46, + 112, + 107, + 105, + 46, + 103, + 111, + 111, + 103, + 47, + 119, + 101, + 49, + 47, + 85, + 83, + 79, + 68, + 102, + 113, + 99, + 79, + 120, + 86, + 77, + 46, + 99, + 114, + 108, + 48, + 130, + 1, + 3, + 6, + 10, + 43, + 6, + 1, + 4, + 1, + 214, + 121, + 2, + 4, + 2, + 4, + 129, + 244, + 4, + 129, + 241, + 0, + 239, + 0, + 117, + 0, + 218, + 182, + 191, + 107, + 63, + 181, + 182, + 34, + 159, + 155, + 194, + 187, + 92, + 107, + 232, + 112, + 145, + 113, + 108, + 187, + 81, + 132, + 133, + 52, + 189, + 164, + 61, + 48, + 72, + 215, + 251, + 171, + 0, + 0, + 1, + 144, + 102, + 8, + 37, + 206, + 0, + 0, + 4, + 3, + 0, + 70, + 48, + 68, + 2, + 32, + 3, + 83, + 9, + 68, + 126, + 217, + 58, + 47, + 229, + 255, + 73, + 78, + 171, + 32, + 159, + 219, + 91, + 214, + 48, + 97, + 195, + 190, + 194, + 101, + 203, + 31, + 208, + 213, + 154, + 139, + 165, + 86, + 2, + 32, + 8, + 52, + 97, + 219, + 190, + 94, + 176, + 84, + 27, + 153, + 244, + 209, + 24, + 171, + 175, + 4, + 163, + 199, + 197, + 176, + 109, + 100, + 186, + 173, + 144, + 97, + 209, + 56, + 119, + 222, + 2, + 248, + 0, + 118, + 0, + 238, + 205, + 208, + 100, + 213, + 219, + 26, + 206, + 197, + 92, + 183, + 157, + 180, + 205, + 19, + 162, + 50, + 135, + 70, + 124, + 188, + 236, + 222, + 195, + 81, + 72, + 89, + 70, + 113, + 31, + 181, + 155, + 0, + 0, + 1, + 144, + 102, + 8, + 36, + 202, + 0, + 0, + 4, + 3, + 0, + 71, + 48, + 69, + 2, + 32, + 30, + 188, + 180, + 69, + 145, + 27, + 213, + 42, + 109, + 74, + 182, + 251, + 255, + 190, + 41, + 7, + 228, + 157, + 47, + 187, + 125, + 16, + 185, + 185, + 58, + 207, + 230, + 19, + 26, + 247, + 11, + 177, + 2, + 33, + 0, + 233, + 36, + 111, + 76, + 57, + 223, + 167, + 187, + 93, + 198, + 177, + 79, + 200, + 65, + 251, + 188, + 210, + 144, + 27, + 33, + 33, + 127, + 159, + 126, + 179, + 115, + 116, + 203, + 1, + 30, + 170, + 145, + 48, + 10, + 6, + 8, + 42, + 134, + 72, + 206, + 61, + 4, + 3, + 2, + 3, + 72, + 0, + 48, + 69, + 2, + 32, + 53, + 33, + 16, + 81, + 194, + 105, + 41, + 119, + 51, + 47, + 73, + 113, + 232, + 138, + 125, + 166, + 136, + 35, + 41, + 99, + 58, + 3, + 113, + 154, + 74, + 134, + 210, + 247, + 196, + 224, + 89, + 99, + 2, + 33, + 0, + 211, + 235, + 218, + 33, + 128, + 226, + 33, + 146, + 198, + 71, + 244, + 219, + 235, + 239, + 238, + 225, + 37, + 26, + 130, + 35, + 26, + 216, + 95, + 190, + 74, + 218, + 179, + 12, + 116, + 102, + 129, + 226, + 164, + 2, + 4, + 0, + 166, + 25, + 4, + 23, + 98, + 97, + 115, + 101, + 45, + 114, + 112, + 99, + 46, + 112, + 117, + 98, + 108, + 105, + 99, + 110, + 111, + 100, + 101, + 46, + 99, + 111, + 109, + 169, + 5, + 2, + 3, + 0, + 253, + 32, + 170, + 129, + 211, + 4, + 129, + 208, + 22, + 135, + 185, + 131, + 132, + 197, + 136, + 205, + 219, + 241, + 130, + 48, + 21, + 94, + 104, + 235, + 180, + 247, + 157, + 193, + 30, + 74, + 243, + 103, + 78, + 95, + 71, + 24, + 235, + 45, + 133, + 12, + 218, + 169, + 34, + 96, + 222, + 226, + 172, + 92, + 1, + 159, + 129, + 79, + 184, + 83, + 4, + 74, + 220, + 209, + 163, + 88, + 49, + 0, + 177, + 209, + 59, + 122, + 24, + 247, + 138, + 218, + 143, + 45, + 179, + 253, + 39, + 92, + 18, + 243, + 89, + 81, + 241, + 172, + 139, + 221, + 233, + 20, + 140, + 129, + 116, + 22, + 140, + 75, + 75, + 10, + 37, + 137, + 193, + 77, + 233, + 213, + 164, + 38, + 221, + 16, + 166, + 93, + 79, + 154, + 44, + 205, + 50, + 248, + 191, + 69, + 129, + 128, + 115, + 130, + 199, + 16, + 166, + 112, + 126, + 0, + 37, + 30, + 168, + 172, + 247, + 241, + 94, + 28, + 206, + 21, + 15, + 244, + 30, + 52, + 61, + 71, + 57, + 253, + 85, + 33, + 210, + 64, + 212, + 23, + 131, + 62, + 54, + 9, + 26, + 231, + 22, + 90, + 209, + 52, + 157, + 56, + 71, + 89, + 91, + 25, + 196, + 10, + 147, + 19, + 214, + 219, + 193, + 130, + 154, + 30, + 62, + 189, + 194, + 221, + 0, + 231, + 88, + 228, + 191, + 88, + 100, + 188, + 210, + 85, + 196, + 84, + 196, + 103, + 8, + 225, + 84, + 211, + 56, + 169, + 205, + 30, + 10, + 145, + 198, + 252, + 17, + 175, + 190, + 164, + 18, + 101, + 119, + 128, + 73, + 74, + 203, + 131, + 174, + 6, + 2, + 4, + 39, + 200, + 139, + 128, + 175, + 4, + 2, + 2, + 56, + 0, + 179, + 3, + 2, + 1, + 29 + ] + } + }, + "list": [ + "base-rpc.publicnode.com:443:::::::::::::::::::::" + ] + } + }, + "method": "POST", + "path": "/", + "_ended": true, + "res": { + "_events": { + "close": [ + null, + null, + null + ], + "error": [ + null, + null, + null + ], + "end": [ + null, + null, + null + ], + "finish": [ + null, + null + ] + }, + "_readableState": { + "highWaterMark": 16384, + "buffer": [], + "bufferIndex": 0, + "length": 0, + "pipes": [], + "awaitDrainWriters": null + }, + "socket": null, + "httpVersionMajor": 1, + "httpVersionMinor": 1, + "httpVersion": "1.1", + "complete": true, + "rawHeaders": [ + "Date", + "Fri, 02 Aug 2024 16:15:23 GMT", + "Content-Type", + "application/json", + "Content-Length", + "2934", + "Connection", + "keep-alive", + "access-control-max-age", + "1728000", + "Content-Encoding", + "gzip", + "strict-transport-security", + "max-age=31536000; includeSubDomains; preload", + "vary", + "Origin, accept-encoding", + "x-envoy-upstream-service-time", + "36", + "CF-Cache-Status", + "DYNAMIC", + "X-Content-Type-Options", + "nosniff", + "Server", + "cloudflare", + "CF-RAY", + "8acf5dce39d249ef-ORD", + "alt-svc", + "h3=\":443\"; ma=86400" + ], + "rawTrailers": [], + "aborted": false, + "upgrade": false, + "url": "", + "method": null, + "statusCode": 200, + "statusMessage": "OK", + "_consuming": true, + "_dumped": false, + "_eventsCount": 4, + "responseUrl": "https://base-rpc.publicnode.com/", + "redirects": [] + }, + "aborted": false, + "timeoutCb": null, + "upgradeOrConnect": false, + "parser": null, + "maxHeadersCount": null, + "reusedSocket": true, + "host": "base-rpc.publicnode.com", + "protocol": "https:", + "_redirectable": { + "_events": {}, + "_writableState": { + "highWaterMark": 16384, + "length": 0, + "corked": 0, + "writelen": 0, + "bufferedIndex": 0, + "pendingcb": 0 + }, + "_options": { + "maxRedirects": 21, + "maxBodyLength": null, + "protocol": "https:", + "path": "/", + "method": "POST", + "headers": { + "Accept": "application/json, text/plain, */*", + "Content-Type": "application/json", + "User-Agent": "axios/1.7.2", + "Content-Length": "959", + "Accept-Encoding": "gzip, compress, deflate, br" + }, + "agents": {}, + "beforeRedirects": {}, + "hostname": "base-rpc.publicnode.com", + "port": "", + "nativeProtocols": { + "http:": { + "METHODS": [ + "ACL", + "BIND", + "CHECKOUT", + "CONNECT", + "COPY", + "DELETE", + "GET", + "HEAD", + "LINK", + "LOCK", + "M-SEARCH", + "MERGE", + "MKACTIVITY", + "MKCALENDAR", + "MKCOL", + "MOVE", + "NOTIFY", + "OPTIONS", + "PATCH", + "POST", + "PROPFIND", + "PROPPATCH", + "PURGE", + "PUT", + "REBIND", + "REPORT", + "SEARCH", + "SOURCE", + "SUBSCRIBE", + "TRACE", + "UNBIND", + "UNLINK", + "UNLOCK", + "UNSUBSCRIBE" + ], + "STATUS_CODES": { + "100": "Continue", + "101": "Switching Protocols", + "102": "Processing", + "103": "Early Hints", + "200": "OK", + "201": "Created", + "202": "Accepted", + "203": "Non-Authoritative Information", + "204": "No Content", + "205": "Reset Content", + "206": "Partial Content", + "207": "Multi-Status", + "208": "Already Reported", + "226": "IM Used", + "300": "Multiple Choices", + "301": "Moved Permanently", + "302": "Found", + "303": "See Other", + "304": "Not Modified", + "305": "Use Proxy", + "307": "Temporary Redirect", + "308": "Permanent Redirect", + "400": "Bad Request", + "401": "Unauthorized", + "402": "Payment Required", + "403": "Forbidden", + "404": "Not Found", + "405": "Method Not Allowed", + "406": "Not Acceptable", + "407": "Proxy Authentication Required", + "408": "Request Timeout", + "409": "Conflict", + "410": "Gone", + "411": "Length Required", + "412": "Precondition Failed", + "413": "Payload Too Large", + "414": "URI Too Long", + "415": "Unsupported Media Type", + "416": "Range Not Satisfiable", + "417": "Expectation Failed", + "418": "I'm a Teapot", + "421": "Misdirected Request", + "422": "Unprocessable Entity", + "423": "Locked", + "424": "Failed Dependency", + "425": "Too Early", + "426": "Upgrade Required", + "428": "Precondition Required", + "429": "Too Many Requests", + "431": "Request Header Fields Too Large", + "451": "Unavailable For Legal Reasons", + "500": "Internal Server Error", + "501": "Not Implemented", + "502": "Bad Gateway", + "503": "Service Unavailable", + "504": "Gateway Timeout", + "505": "HTTP Version Not Supported", + "506": "Variant Also Negotiates", + "507": "Insufficient Storage", + "508": "Loop Detected", + "509": "Bandwidth Limit Exceeded", + "510": "Not Extended", + "511": "Network Authentication Required" + }, + "maxHeaderSize": 16384, + "globalAgent": { + "_events": {}, + "_eventsCount": 2, + "defaultPort": 80, + "protocol": "http:", + "options": { + "keepAlive": true, + "scheduling": "lifo", + "timeout": 5000, + "noDelay": true, + "path": null + }, + "requests": {}, + "sockets": {}, + "freeSockets": {}, + "keepAliveMsecs": 1000, + "keepAlive": true, + "maxSockets": null, + "maxFreeSockets": 256, + "scheduling": "lifo", + "maxTotalSockets": null, + "totalSocketCount": 0 + } + }, + "https:": {} + }, + "pathname": "/" + }, + "_ended": true, + "_ending": true, + "_redirectCount": 0, + "_requestBodyLength": 959, + "_requestBodyBuffers": [], + "_eventsCount": 3, + "_currentUrl": "https://base-rpc.publicnode.com/" + } + }, + "data": [ + { + "jsonrpc": "2.0", + "id": "0", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0xb741", + "hash": "0xb8c1180962b335d3ac2b7d839aa53237e9aecaa7cb820eb550bf6414641f8f5f", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x50ede62049805c7c54cd12ee69e26779742b8d29158abc3fa55e71a69c4c2924", + "nonce": "0x0000000000000000", + "number": "0x178fef", + "parentHash": "0xde554e38d8b4181e1c19566e45a9dd814e14fff66862d3d3552dec924f2a8b48", + "receiptsRoot": "0x3f71ebd8822765e8146170b0f930f55f753dbb867f55e4e605894016cd32f1e2", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x365", + "stateRoot": "0x3b0d68e79a2a73508305a3718ed4274ca31b18756165a94e8d54355eb39216f7", + "timestamp": "0x64b97cc1", + "totalDifficulty": "0x0", + "transactions": [ + "0xc2f684bacea5eef3fe428e55dbe0ddcfaa70af0edda4e3876014478fef235766" + ], + "transactionsRoot": "0x6c5316ea2106fdccb0a987da2eedc6cd195d863701e5ed262a29f7d4efacafb3", + "uncles": [] + } + }, + { + "jsonrpc": "2.0", + "id": "1", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0xc545", + "hash": "0xfa6c22acced6da4165b6909c0d62c2ca56255485d138c388fcf6613bcb5ba3b1", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x2d8cb01bdb58bc572a2ce46301f7673628d160d502448cfe7e58d6a1ab92814a", + "nonce": "0x0000000000000000", + "number": "0x178ff0", + "parentHash": "0xb8c1180962b335d3ac2b7d839aa53237e9aecaa7cb820eb550bf6414641f8f5f", + "receiptsRoot": "0x0e7c255df3e2b7ca4d55b82047531f7f3e7437ab1eb33e22eca70653c874982d", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x365", + "stateRoot": "0x5d615fefe432c4728f894165af5ad3a4c1d47666448ba254985006efc7e7c6be", + "timestamp": "0x64b97cc3", + "totalDifficulty": "0x0", + "transactions": [ + "0x8f8249d6f05344a11679e1c357c600b4ee58ea30fd1a56d58d9f952fdd6a1ceb" + ], + "transactionsRoot": "0xf312340e64ef32a5e63621e21a20bde33337e00d5b64352e062fbd2e22f69453", + "uncles": [] + } + }, + { + "jsonrpc": "2.0", + "id": "2", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0x48f9c", + "hash": "0x585a16c0017bef59ef246055bd500d925858955482075bc3876d9cca0d401f10", + "logsBloom": "0x0000000040040010000000000000000000004240000000040000000000010012000000000000500000000000000000000000000000000000000000000000000000400000000080000000000800000000200000000000000010000000000000000004000000200b000000000000020000000000000000000000000010000000000000000440000801000040000000000000008000380000000000000000000000000000004000020000000000000000000002000000000000000000000000000000001002000008000800000000000000000000000000000000000020000000001080000000000000400000000000000100000000000000000000000000000000", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x2d8cb01bdb58bc572a2ce46301f7673628d160d502448cfe7e58d6a1ab92814a", + "nonce": "0x0000000000000000", + "number": "0x178ff1", + "parentHash": "0xfa6c22acced6da4165b6909c0d62c2ca56255485d138c388fcf6613bcb5ba3b1", + "receiptsRoot": "0x8b4c804bc995e0b5ecfb74e63993cd4e9a5fae97250aa19d96add2e01faa458f", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x566", + "stateRoot": "0x5056e1ca0f3ab915340281bc9fbbbb03ce17ba0fdc587606cdfd684150551e80", + "timestamp": "0x64b97cc5", + "totalDifficulty": "0x0", + "transactions": [ + "0xaed547ebbfdaeff1f6c34b44a826424bb4f19c7e5513256661215f7d778b54dc", + "0x8748a03481ac90ead4308da52b4ef21e750c001f39f2ef54c0fc88ee545617d8" + ], + "transactionsRoot": "0xd0bd927f838140824e40c03cae05c7c26730a1fd82e1f5976e63b46165917712", + "uncles": [] + } + }, + { + "jsonrpc": "2.0", + "id": "3", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0xb741", + "hash": "0x06b788a2f1cdb2735e4890c3a49c869a8c53e72f381b1594aaf14c264ac4ed00", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x2d8cb01bdb58bc572a2ce46301f7673628d160d502448cfe7e58d6a1ab92814a", + "nonce": "0x0000000000000000", + "number": "0x178ff2", + "parentHash": "0x585a16c0017bef59ef246055bd500d925858955482075bc3876d9cca0d401f10", + "receiptsRoot": "0x3f71ebd8822765e8146170b0f930f55f753dbb867f55e4e605894016cd32f1e2", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x365", + "stateRoot": "0x2eff3cf10e7d810e54426418739048e70ec4c6b0bc77d5ad212540b217b401a1", + "timestamp": "0x64b97cc7", + "totalDifficulty": "0x0", + "transactions": [ + "0x7aef438311adf7a92ad2aa287d4491c3f16ffc79f91c059353cecedf761ddb82" + ], + "transactionsRoot": "0xfcc8edcb31e0f05cbed1d15f3188ec76f23a3707131e8ea76fc63a35dab16ecd", + "uncles": [] + } + }, + { + "jsonrpc": "2.0", + "id": "4", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0xb741", + "hash": "0x19cfd6f52f91b0b20ef264a942f57920580e569419e182d3c89655e8efd12c6f", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x2d8cb01bdb58bc572a2ce46301f7673628d160d502448cfe7e58d6a1ab92814a", + "nonce": "0x0000000000000000", + "number": "0x178ff3", + "parentHash": "0x06b788a2f1cdb2735e4890c3a49c869a8c53e72f381b1594aaf14c264ac4ed00", + "receiptsRoot": "0x3f71ebd8822765e8146170b0f930f55f753dbb867f55e4e605894016cd32f1e2", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x365", + "stateRoot": "0x72359830e150a428699164a3fa230b6f04684c24b0a71bae561d7a40b518d0b0", + "timestamp": "0x64b97cc9", + "totalDifficulty": "0x0", + "transactions": [ + "0x97a2baf116c6d0398a7fd435fbc640b6c9b403d8250330122016fc479b803aa6" + ], + "transactionsRoot": "0x33fc75943b04757824d8ecfca5677b8d588b9e3b914b535335d1651da5647d51", + "uncles": [] + } + }, + { + "jsonrpc": "2.0", + "id": "5", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0xb741", + "hash": "0x541331f224f82dde938fb522c054ddf751f5db97de8a4a738983b83011efaef8", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x2d8cb01bdb58bc572a2ce46301f7673628d160d502448cfe7e58d6a1ab92814a", + "nonce": "0x0000000000000000", + "number": "0x178ff4", + "parentHash": "0x19cfd6f52f91b0b20ef264a942f57920580e569419e182d3c89655e8efd12c6f", + "receiptsRoot": "0x3f71ebd8822765e8146170b0f930f55f753dbb867f55e4e605894016cd32f1e2", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x365", + "stateRoot": "0x79dc72663032a0e47dc365c80a019b96daac9d09ffe232c64f3ab1f8f5ddedb7", + "timestamp": "0x64b97ccb", + "totalDifficulty": "0x0", + "transactions": [ + "0xfe6553ed822a07f84c6fac7e1a200b0f02af05f65d0a517c247d71fdd0a058f3" + ], + "transactionsRoot": "0xe78309931f6e8d10c08c62c6e146e85a4ca45f9d2a98f906e6be3c3d220046a9", + "uncles": [] + } + }, + { + "jsonrpc": "2.0", + "id": "6", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0xb741", + "hash": "0x6abaedcda34a32f44127a2e9bd8bd2847ac2ca87e8f4ec2352d66dfcf0f30212", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x2d8cb01bdb58bc572a2ce46301f7673628d160d502448cfe7e58d6a1ab92814a", + "nonce": "0x0000000000000000", + "number": "0x178ff5", + "parentHash": "0x541331f224f82dde938fb522c054ddf751f5db97de8a4a738983b83011efaef8", + "receiptsRoot": "0x3f71ebd8822765e8146170b0f930f55f753dbb867f55e4e605894016cd32f1e2", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x365", + "stateRoot": "0xb77d7b46f0fd99ec6418691f7323e27c9d53985f16c77e1c42ca24306459b19b", + "timestamp": "0x64b97ccd", + "totalDifficulty": "0x0", + "transactions": [ + "0xadfc62208808feef7a7093e357c225f32c6bea173cb86a5dfa0bb319b5a035bc" + ], + "transactionsRoot": "0x5cbb34d56df574c3e1e3f3c196343894c00b9a168fd8129b6070224978e1746b", + "uncles": [] + } + }, + { + "jsonrpc": "2.0", + "id": "7", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0xc545", + "hash": "0x96800fd25df0b00ca45dac863e6ca27f28fa410dfa0d1abbf27b81172b153f5e", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x6299f61c69a41a2dec944f1d19ea839c40d4581d78d9e179e8355ce38eead6df", + "nonce": "0x0000000000000000", + "number": "0x178ff6", + "parentHash": "0x6abaedcda34a32f44127a2e9bd8bd2847ac2ca87e8f4ec2352d66dfcf0f30212", + "receiptsRoot": "0x0e7c255df3e2b7ca4d55b82047531f7f3e7437ab1eb33e22eca70653c874982d", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x365", + "stateRoot": "0xfec3f65a30aeff15960201f0e7fb8820b4ec53a8b05d73cee5fd35d2958ef75d", + "timestamp": "0x64b97ccf", + "totalDifficulty": "0x0", + "transactions": [ + "0xaa2304187bb826e47b3357ac6f6a4df79ef1ef178139e0a15163ba34f2e21805" + ], + "transactionsRoot": "0xe18bdbd8845555f34c3ac9c5ee8e1a11a27f1b8553d85fd56db67b35ae2ae84f", + "uncles": [] + } + }, + { + "jsonrpc": "2.0", + "id": "8", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0xfa0d", + "hash": "0x86de05f7b152fb58082fd6e8acf139a2567cebbed5bcdd5e8f9ffb50e1bd68b6", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x6299f61c69a41a2dec944f1d19ea839c40d4581d78d9e179e8355ce38eead6df", + "nonce": "0x0000000000000000", + "number": "0x178ff7", + "parentHash": "0x96800fd25df0b00ca45dac863e6ca27f28fa410dfa0d1abbf27b81172b153f5e", + "receiptsRoot": "0x637d9e6847368bb52b56e90dd608facc34122c153872e8733cb0b01caa581f85", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x365", + "stateRoot": "0xf839be8c70f8bf750550888909f6b5570eead3d281f5bf079ebeff5b2ac7d474", + "timestamp": "0x64b97cd1", + "totalDifficulty": "0x0", + "transactions": [ + "0x800c2d5125612c21969346b22adf7cc46073b587b2f95f69cd93c1d2782bd1f1" + ], + "transactionsRoot": "0x43bbb5a52847078bc57083cfb1d330c498de171503951ed41ac7a3fd909f3ba3", + "uncles": [] + } + }, + { + "jsonrpc": "2.0", + "id": "9", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0x23ba5", + "hash": "0x8e34297a052a484b68b937ac616bd2b35af0796db13c87e4b17e385247f363fd", + "logsBloom": "0x00000000000000080000000000000000000002000000000000000002000000000000000000001000000000000000000000000002000000000000000000002000000000000000000000000000000000000000000000020000100000000000000000000000000002000040000400000000000000000008000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000010000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000100000000000040", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x6299f61c69a41a2dec944f1d19ea839c40d4581d78d9e179e8355ce38eead6df", + "nonce": "0x0000000000000000", + "number": "0x178ff8", + "parentHash": "0x86de05f7b152fb58082fd6e8acf139a2567cebbed5bcdd5e8f9ffb50e1bd68b6", + "receiptsRoot": "0x98f89093267aef47df9817419a2f2fdd2fd769ecfac00644b91fc81b050d3998", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x5d7", + "stateRoot": "0xf3d073711b73a50ac6b4a5a36d5ef62bf9c232c15091bc0e0f45b9af54ff14ed", + "timestamp": "0x64b97cd3", + "totalDifficulty": "0x0", + "transactions": [ + "0x76fdbf3ebaee1f5f23a0e69183c2d006cedc45140fd98e09cd10fc8262ad6e43", + "0x014b6fd52fccbdaeda32d912de64a895ac9ba65ba5fbe5a4bb38d6ca63753842" + ], + "transactionsRoot": "0x7fae427d1ab2a36cfbf54f9458645d2589f7b374082d8d22820dff2c3a36dc97", + "uncles": [] + } + }, + { + "jsonrpc": "2.0", + "id": "10", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0x1ecc7", + "hash": "0x22903e918011544e363a9d7fe0f47c9ae406f88b39bf07405ea53240461a2bb3", + "logsBloom": "0x00000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000400000000000000000008000000000000000000008000000000000000000000000000000000000000000000000020000000000000000000800000000000000000000000010000010000000000000000000000000010080000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000200000000000000", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x6299f61c69a41a2dec944f1d19ea839c40d4581d78d9e179e8355ce38eead6df", + "nonce": "0x0000000000000000", + "number": "0x178ff9", + "parentHash": "0x8e34297a052a484b68b937ac616bd2b35af0796db13c87e4b17e385247f363fd", + "receiptsRoot": "0xd2d54e09f33c96df6da0a1e154f3821b69b33c5af30dc1ec37d4fdaa63767f38", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x47f", + "stateRoot": "0xc51b4a07e7c0d19c74f19f5cbc30ddfca5058e9e3c3ad437ea269b5bad3c97ed", + "timestamp": "0x64b97cd5", + "totalDifficulty": "0x0", + "transactions": [ + "0x55e1f8dd4bf55bd054170b7752bcecaf761697a21f8f566bc2b79590f81b1ee0", + "0x5ff5abb8166610aff3b6246dff3b4b44132dca3afb4938577da738058b9769e6" + ], + "transactionsRoot": "0x75b2f8fa67bf646a64cef05eafccb315b719273fe3d086afd6ccac8bcc97a360", + "uncles": [] + } + } + ] +} diff --git a/watcher/src/watchers/__tests__/mock/developer-access-mainnet.base.org/eth_getBlockByNumber/0x17c3ac b/watcher/src/watchers/__tests__/mock/developer-access-mainnet.base.org/eth_getBlockByNumber/0x17c3ac new file mode 100644 index 00000000..5d454cf1 --- /dev/null +++ b/watcher/src/watchers/__tests__/mock/developer-access-mainnet.base.org/eth_getBlockByNumber/0x17c3ac @@ -0,0 +1,2076 @@ +{ + "status": 200, + "statusText": "OK", + "headers": { + "date": "Fri, 02 Aug 2024 17:02:04 GMT", + "content-type": "application/json", + "content-length": "2619", + "connection": "keep-alive", + "access-control-max-age": "1728000", + "strict-transport-security": "max-age=31536000; includeSubDomains; preload", + "vary": "Origin, accept-encoding", + "x-envoy-upstream-service-time": "19", + "cf-cache-status": "DYNAMIC", + "x-content-type-options": "nosniff", + "server": "cloudflare", + "cf-ray": "8acfa22e79235c90-ORD", + "alt-svc": "h3=\":443\"; ma=86400" + }, + "config": { + "transitional": { + "silentJSONParsing": true, + "forcedJSONParsing": true, + "clarifyTimeoutError": false + }, + "adapter": [ + "xhr", + "http", + "fetch" + ], + "transformRequest": [ + null + ], + "transformResponse": [ + null + ], + "timeout": 0, + "xsrfCookieName": "XSRF-TOKEN", + "xsrfHeaderName": "X-XSRF-TOKEN", + "maxContentLength": -1, + "maxBodyLength": -1, + "env": {}, + "headers": { + "Accept": "application/json, text/plain, */*", + "Content-Type": "application/json", + "User-Agent": "axios/1.7.2", + "Content-Length": "871", + "Accept-Encoding": "gzip, compress, deflate, br" + }, + "method": "post", + "url": "https://base-rpc.publicnode.com", + "data": "[{\"jsonrpc\":\"2.0\",\"id\":\"0\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x17c3ac\",false]},{\"jsonrpc\":\"2.0\",\"id\":\"1\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x17c3ad\",false]},{\"jsonrpc\":\"2.0\",\"id\":\"2\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x17c3ae\",false]},{\"jsonrpc\":\"2.0\",\"id\":\"3\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x17c3af\",false]},{\"jsonrpc\":\"2.0\",\"id\":\"4\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x17c3b0\",false]},{\"jsonrpc\":\"2.0\",\"id\":\"5\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x17c3b1\",false]},{\"jsonrpc\":\"2.0\",\"id\":\"6\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x17c3b2\",false]},{\"jsonrpc\":\"2.0\",\"id\":\"7\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x17c3b3\",false]},{\"jsonrpc\":\"2.0\",\"id\":\"8\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x17c3b4\",false]},{\"jsonrpc\":\"2.0\",\"id\":\"9\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"0x17c3b5\",false]}]" + }, + "request": { + "_events": {}, + "_eventsCount": 7, + "outputData": [], + "outputSize": 0, + "writable": true, + "destroyed": true, + "_last": false, + "chunkedEncoding": false, + "shouldKeepAlive": true, + "maxRequestsOnConnectionReached": false, + "_defaultKeepAlive": true, + "useChunkedEncodingByDefault": true, + "sendDate": false, + "_removedConnection": false, + "_removedContLen": false, + "_removedTE": false, + "strictContentLength": false, + "_contentLength": "871", + "_hasBody": true, + "_trailer": "", + "finished": true, + "_headerSent": true, + "_closed": true, + "socket": { + "_tlsOptions": { + "pipe": false, + "secureContext": { + "context": {} + }, + "isServer": false, + "requestCert": true, + "rejectUnauthorized": true + }, + "_secureEstablished": true, + "_securePending": false, + "_newSessionPending": false, + "_controlReleased": true, + "secureConnecting": false, + "_SNICallback": null, + "servername": "base-rpc.publicnode.com", + "alpnProtocol": false, + "authorized": true, + "authorizationError": null, + "encrypted": true, + "_events": { + "close": [ + null, + null, + null + ] + }, + "_eventsCount": 9, + "connecting": false, + "_hadError": false, + "_parent": null, + "_host": "base-rpc.publicnode.com", + "_closeAfterHandlingError": false, + "_readableState": { + "highWaterMark": 16384, + "buffer": [], + "bufferIndex": 0, + "length": 0, + "pipes": [], + "awaitDrainWriters": null + }, + "_writableState": { + "highWaterMark": 16384, + "length": 0, + "corked": 0, + "writelen": 0, + "bufferedIndex": 0, + "pendingcb": 0 + }, + "allowHalfOpen": false, + "_sockname": null, + "_pendingData": null, + "_pendingEncoding": "", + "_server": null, + "ssl": { + "_parent": { + "reading": true, + "onconnection": null + }, + "_parentWrap": null, + "reading": true + }, + "_requestCert": true, + "_rejectUnauthorized": true, + "timeout": 5000, + "parser": null, + "_httpMessage": null, + "autoSelectFamilyAttemptedAddresses": [ + "104.18.23.142:443" + ] + }, + "_header": "POST / HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nUser-Agent: axios/1.7.2\r\nContent-Length: 871\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: base-rpc.publicnode.com\r\nConnection: keep-alive\r\n\r\n", + "_keepAliveTimeout": 0, + "agent": { + "_events": {}, + "_eventsCount": 2, + "defaultPort": 443, + "protocol": "https:", + "options": { + "keepAlive": true, + "scheduling": "lifo", + "timeout": 5000, + "noDelay": true, + "path": null + }, + "requests": {}, + "sockets": {}, + "freeSockets": { + "base-rpc.publicnode.com:443:::::::::::::::::::::": [ + null + ] + }, + "keepAliveMsecs": 1000, + "keepAlive": true, + "maxSockets": null, + "maxFreeSockets": 256, + "scheduling": "lifo", + "maxTotalSockets": null, + "totalSocketCount": 1, + "maxCachedSessions": 100, + "_sessionCache": { + "map": { + "base-rpc.publicnode.com:443:::::::::::::::::::::": { + "type": "Buffer", + "data": [ + 48, + 130, + 5, + 50, + 2, + 1, + 1, + 2, + 2, + 3, + 4, + 4, + 2, + 19, + 2, + 4, + 32, + 65, + 185, + 169, + 49, + 223, + 19, + 133, + 195, + 193, + 239, + 118, + 247, + 209, + 144, + 91, + 197, + 180, + 224, + 73, + 55, + 55, + 60, + 154, + 102, + 188, + 180, + 32, + 107, + 80, + 177, + 203, + 37, + 4, + 48, + 23, + 115, + 15, + 165, + 241, + 187, + 201, + 131, + 91, + 144, + 221, + 30, + 153, + 74, + 140, + 118, + 147, + 73, + 252, + 184, + 112, + 72, + 180, + 237, + 224, + 5, + 63, + 106, + 213, + 146, + 16, + 50, + 136, + 47, + 84, + 130, + 1, + 247, + 118, + 122, + 186, + 244, + 77, + 202, + 110, + 241, + 136, + 9, + 161, + 6, + 2, + 4, + 102, + 173, + 17, + 12, + 162, + 4, + 2, + 2, + 28, + 32, + 163, + 130, + 3, + 177, + 48, + 130, + 3, + 173, + 48, + 130, + 3, + 83, + 160, + 3, + 2, + 1, + 2, + 2, + 17, + 0, + 233, + 140, + 99, + 200, + 193, + 66, + 45, + 30, + 17, + 249, + 93, + 200, + 252, + 171, + 222, + 114, + 48, + 10, + 6, + 8, + 42, + 134, + 72, + 206, + 61, + 4, + 3, + 2, + 48, + 59, + 49, + 11, + 48, + 9, + 6, + 3, + 85, + 4, + 6, + 19, + 2, + 85, + 83, + 49, + 30, + 48, + 28, + 6, + 3, + 85, + 4, + 10, + 19, + 21, + 71, + 111, + 111, + 103, + 108, + 101, + 32, + 84, + 114, + 117, + 115, + 116, + 32, + 83, + 101, + 114, + 118, + 105, + 99, + 101, + 115, + 49, + 12, + 48, + 10, + 6, + 3, + 85, + 4, + 3, + 19, + 3, + 87, + 69, + 49, + 48, + 30, + 23, + 13, + 50, + 52, + 48, + 54, + 50, + 57, + 50, + 49, + 48, + 53, + 50, + 55, + 90, + 23, + 13, + 50, + 52, + 48, + 57, + 50, + 55, + 50, + 49, + 48, + 53, + 50, + 54, + 90, + 48, + 25, + 49, + 23, + 48, + 21, + 6, + 3, + 85, + 4, + 3, + 19, + 14, + 112, + 117, + 98, + 108, + 105, + 99, + 110, + 111, + 100, + 101, + 46, + 99, + 111, + 109, + 48, + 89, + 48, + 19, + 6, + 7, + 42, + 134, + 72, + 206, + 61, + 2, + 1, + 6, + 8, + 42, + 134, + 72, + 206, + 61, + 3, + 1, + 7, + 3, + 66, + 0, + 4, + 176, + 135, + 222, + 116, + 98, + 106, + 119, + 175, + 108, + 150, + 33, + 79, + 219, + 170, + 118, + 18, + 50, + 99, + 11, + 113, + 205, + 54, + 40, + 126, + 107, + 225, + 143, + 3, + 168, + 253, + 35, + 167, + 45, + 126, + 179, + 93, + 193, + 44, + 254, + 54, + 219, + 58, + 136, + 68, + 79, + 149, + 131, + 227, + 148, + 161, + 95, + 148, + 242, + 43, + 26, + 155, + 232, + 204, + 172, + 206, + 30, + 215, + 114, + 142, + 163, + 130, + 2, + 88, + 48, + 130, + 2, + 84, + 48, + 14, + 6, + 3, + 85, + 29, + 15, + 1, + 1, + 255, + 4, + 4, + 3, + 2, + 7, + 128, + 48, + 19, + 6, + 3, + 85, + 29, + 37, + 4, + 12, + 48, + 10, + 6, + 8, + 43, + 6, + 1, + 5, + 5, + 7, + 3, + 1, + 48, + 12, + 6, + 3, + 85, + 29, + 19, + 1, + 1, + 255, + 4, + 2, + 48, + 0, + 48, + 29, + 6, + 3, + 85, + 29, + 14, + 4, + 22, + 4, + 20, + 144, + 172, + 61, + 16, + 49, + 57, + 66, + 92, + 151, + 161, + 138, + 61, + 93, + 49, + 144, + 19, + 73, + 119, + 125, + 159, + 48, + 31, + 6, + 3, + 85, + 29, + 35, + 4, + 24, + 48, + 22, + 128, + 20, + 144, + 119, + 146, + 53, + 103, + 196, + 255, + 168, + 204, + 169, + 230, + 123, + 217, + 128, + 121, + 123, + 204, + 147, + 249, + 56, + 48, + 94, + 6, + 8, + 43, + 6, + 1, + 5, + 5, + 7, + 1, + 1, + 4, + 82, + 48, + 80, + 48, + 39, + 6, + 8, + 43, + 6, + 1, + 5, + 5, + 7, + 48, + 1, + 134, + 27, + 104, + 116, + 116, + 112, + 58, + 47, + 47, + 111, + 46, + 112, + 107, + 105, + 46, + 103, + 111, + 111, + 103, + 47, + 115, + 47, + 119, + 101, + 49, + 47, + 54, + 89, + 119, + 48, + 37, + 6, + 8, + 43, + 6, + 1, + 5, + 5, + 7, + 48, + 2, + 134, + 25, + 104, + 116, + 116, + 112, + 58, + 47, + 47, + 105, + 46, + 112, + 107, + 105, + 46, + 103, + 111, + 111, + 103, + 47, + 119, + 101, + 49, + 46, + 99, + 114, + 116, + 48, + 43, + 6, + 3, + 85, + 29, + 17, + 4, + 36, + 48, + 34, + 130, + 14, + 112, + 117, + 98, + 108, + 105, + 99, + 110, + 111, + 100, + 101, + 46, + 99, + 111, + 109, + 130, + 16, + 42, + 46, + 112, + 117, + 98, + 108, + 105, + 99, + 110, + 111, + 100, + 101, + 46, + 99, + 111, + 109, + 48, + 19, + 6, + 3, + 85, + 29, + 32, + 4, + 12, + 48, + 10, + 48, + 8, + 6, + 6, + 103, + 129, + 12, + 1, + 2, + 1, + 48, + 54, + 6, + 3, + 85, + 29, + 31, + 4, + 47, + 48, + 45, + 48, + 43, + 160, + 41, + 160, + 39, + 134, + 37, + 104, + 116, + 116, + 112, + 58, + 47, + 47, + 99, + 46, + 112, + 107, + 105, + 46, + 103, + 111, + 111, + 103, + 47, + 119, + 101, + 49, + 47, + 85, + 83, + 79, + 68, + 102, + 113, + 99, + 79, + 120, + 86, + 77, + 46, + 99, + 114, + 108, + 48, + 130, + 1, + 3, + 6, + 10, + 43, + 6, + 1, + 4, + 1, + 214, + 121, + 2, + 4, + 2, + 4, + 129, + 244, + 4, + 129, + 241, + 0, + 239, + 0, + 117, + 0, + 218, + 182, + 191, + 107, + 63, + 181, + 182, + 34, + 159, + 155, + 194, + 187, + 92, + 107, + 232, + 112, + 145, + 113, + 108, + 187, + 81, + 132, + 133, + 52, + 189, + 164, + 61, + 48, + 72, + 215, + 251, + 171, + 0, + 0, + 1, + 144, + 102, + 8, + 37, + 206, + 0, + 0, + 4, + 3, + 0, + 70, + 48, + 68, + 2, + 32, + 3, + 83, + 9, + 68, + 126, + 217, + 58, + 47, + 229, + 255, + 73, + 78, + 171, + 32, + 159, + 219, + 91, + 214, + 48, + 97, + 195, + 190, + 194, + 101, + 203, + 31, + 208, + 213, + 154, + 139, + 165, + 86, + 2, + 32, + 8, + 52, + 97, + 219, + 190, + 94, + 176, + 84, + 27, + 153, + 244, + 209, + 24, + 171, + 175, + 4, + 163, + 199, + 197, + 176, + 109, + 100, + 186, + 173, + 144, + 97, + 209, + 56, + 119, + 222, + 2, + 248, + 0, + 118, + 0, + 238, + 205, + 208, + 100, + 213, + 219, + 26, + 206, + 197, + 92, + 183, + 157, + 180, + 205, + 19, + 162, + 50, + 135, + 70, + 124, + 188, + 236, + 222, + 195, + 81, + 72, + 89, + 70, + 113, + 31, + 181, + 155, + 0, + 0, + 1, + 144, + 102, + 8, + 36, + 202, + 0, + 0, + 4, + 3, + 0, + 71, + 48, + 69, + 2, + 32, + 30, + 188, + 180, + 69, + 145, + 27, + 213, + 42, + 109, + 74, + 182, + 251, + 255, + 190, + 41, + 7, + 228, + 157, + 47, + 187, + 125, + 16, + 185, + 185, + 58, + 207, + 230, + 19, + 26, + 247, + 11, + 177, + 2, + 33, + 0, + 233, + 36, + 111, + 76, + 57, + 223, + 167, + 187, + 93, + 198, + 177, + 79, + 200, + 65, + 251, + 188, + 210, + 144, + 27, + 33, + 33, + 127, + 159, + 126, + 179, + 115, + 116, + 203, + 1, + 30, + 170, + 145, + 48, + 10, + 6, + 8, + 42, + 134, + 72, + 206, + 61, + 4, + 3, + 2, + 3, + 72, + 0, + 48, + 69, + 2, + 32, + 53, + 33, + 16, + 81, + 194, + 105, + 41, + 119, + 51, + 47, + 73, + 113, + 232, + 138, + 125, + 166, + 136, + 35, + 41, + 99, + 58, + 3, + 113, + 154, + 74, + 134, + 210, + 247, + 196, + 224, + 89, + 99, + 2, + 33, + 0, + 211, + 235, + 218, + 33, + 128, + 226, + 33, + 146, + 198, + 71, + 244, + 219, + 235, + 239, + 238, + 225, + 37, + 26, + 130, + 35, + 26, + 216, + 95, + 190, + 74, + 218, + 179, + 12, + 116, + 102, + 129, + 226, + 164, + 2, + 4, + 0, + 166, + 25, + 4, + 23, + 98, + 97, + 115, + 101, + 45, + 114, + 112, + 99, + 46, + 112, + 117, + 98, + 108, + 105, + 99, + 110, + 111, + 100, + 101, + 46, + 99, + 111, + 109, + 169, + 5, + 2, + 3, + 0, + 253, + 32, + 170, + 129, + 211, + 4, + 129, + 208, + 25, + 35, + 99, + 165, + 72, + 184, + 146, + 206, + 81, + 24, + 94, + 151, + 72, + 159, + 56, + 33, + 96, + 191, + 27, + 201, + 82, + 136, + 255, + 86, + 120, + 135, + 175, + 201, + 210, + 18, + 46, + 86, + 7, + 100, + 250, + 94, + 214, + 237, + 82, + 117, + 155, + 185, + 247, + 127, + 87, + 225, + 41, + 213, + 17, + 131, + 79, + 189, + 2, + 213, + 203, + 137, + 76, + 64, + 73, + 161, + 165, + 224, + 143, + 243, + 126, + 34, + 2, + 25, + 230, + 98, + 25, + 82, + 216, + 156, + 126, + 122, + 171, + 24, + 126, + 77, + 83, + 130, + 113, + 170, + 228, + 76, + 251, + 249, + 174, + 223, + 23, + 244, + 161, + 56, + 171, + 243, + 55, + 36, + 118, + 252, + 27, + 46, + 125, + 204, + 145, + 231, + 37, + 176, + 76, + 166, + 252, + 27, + 14, + 251, + 39, + 199, + 231, + 36, + 123, + 57, + 42, + 253, + 62, + 167, + 197, + 8, + 113, + 61, + 21, + 186, + 70, + 211, + 231, + 179, + 185, + 155, + 106, + 34, + 111, + 42, + 179, + 54, + 33, + 160, + 176, + 244, + 12, + 201, + 180, + 246, + 175, + 154, + 10, + 69, + 205, + 62, + 165, + 127, + 165, + 3, + 90, + 253, + 102, + 110, + 228, + 39, + 51, + 199, + 142, + 175, + 114, + 134, + 43, + 92, + 181, + 248, + 21, + 189, + 252, + 34, + 128, + 55, + 170, + 44, + 136, + 209, + 173, + 111, + 5, + 143, + 224, + 10, + 170, + 252, + 202, + 177, + 132, + 254, + 22, + 11, + 83, + 131, + 15, + 230, + 248, + 156, + 53, + 114, + 174, + 7, + 2, + 5, + 0, + 232, + 131, + 11, + 66, + 175, + 4, + 2, + 2, + 56, + 0, + 179, + 3, + 2, + 1, + 29 + ] + } + }, + "list": [ + "base-rpc.publicnode.com:443:::::::::::::::::::::" + ] + } + }, + "method": "POST", + "path": "/", + "_ended": true, + "res": { + "_events": { + "close": [ + null, + null, + null + ], + "error": [ + null, + null, + null + ], + "end": [ + null, + null, + null + ], + "finish": [ + null, + null + ] + }, + "_readableState": { + "highWaterMark": 16384, + "buffer": [], + "bufferIndex": 0, + "length": 0, + "pipes": [], + "awaitDrainWriters": null + }, + "socket": null, + "httpVersionMajor": 1, + "httpVersionMinor": 1, + "httpVersion": "1.1", + "complete": true, + "rawHeaders": [ + "Date", + "Fri, 02 Aug 2024 17:02:04 GMT", + "Content-Type", + "application/json", + "Content-Length", + "2619", + "Connection", + "keep-alive", + "access-control-max-age", + "1728000", + "Content-Encoding", + "gzip", + "strict-transport-security", + "max-age=31536000; includeSubDomains; preload", + "vary", + "Origin, accept-encoding", + "x-envoy-upstream-service-time", + "19", + "CF-Cache-Status", + "DYNAMIC", + "X-Content-Type-Options", + "nosniff", + "Server", + "cloudflare", + "CF-RAY", + "8acfa22e79235c90-ORD", + "alt-svc", + "h3=\":443\"; ma=86400" + ], + "rawTrailers": [], + "aborted": false, + "upgrade": false, + "url": "", + "method": null, + "statusCode": 200, + "statusMessage": "OK", + "_consuming": true, + "_dumped": false, + "_eventsCount": 4, + "responseUrl": "https://base-rpc.publicnode.com/", + "redirects": [] + }, + "aborted": false, + "timeoutCb": null, + "upgradeOrConnect": false, + "parser": null, + "maxHeadersCount": null, + "reusedSocket": true, + "host": "base-rpc.publicnode.com", + "protocol": "https:", + "_redirectable": { + "_events": {}, + "_writableState": { + "highWaterMark": 16384, + "length": 0, + "corked": 0, + "writelen": 0, + "bufferedIndex": 0, + "pendingcb": 0 + }, + "_options": { + "maxRedirects": 21, + "maxBodyLength": null, + "protocol": "https:", + "path": "/", + "method": "POST", + "headers": { + "Accept": "application/json, text/plain, */*", + "Content-Type": "application/json", + "User-Agent": "axios/1.7.2", + "Content-Length": "871", + "Accept-Encoding": "gzip, compress, deflate, br" + }, + "agents": {}, + "beforeRedirects": {}, + "hostname": "base-rpc.publicnode.com", + "port": "", + "nativeProtocols": { + "http:": { + "METHODS": [ + "ACL", + "BIND", + "CHECKOUT", + "CONNECT", + "COPY", + "DELETE", + "GET", + "HEAD", + "LINK", + "LOCK", + "M-SEARCH", + "MERGE", + "MKACTIVITY", + "MKCALENDAR", + "MKCOL", + "MOVE", + "NOTIFY", + "OPTIONS", + "PATCH", + "POST", + "PROPFIND", + "PROPPATCH", + "PURGE", + "PUT", + "REBIND", + "REPORT", + "SEARCH", + "SOURCE", + "SUBSCRIBE", + "TRACE", + "UNBIND", + "UNLINK", + "UNLOCK", + "UNSUBSCRIBE" + ], + "STATUS_CODES": { + "100": "Continue", + "101": "Switching Protocols", + "102": "Processing", + "103": "Early Hints", + "200": "OK", + "201": "Created", + "202": "Accepted", + "203": "Non-Authoritative Information", + "204": "No Content", + "205": "Reset Content", + "206": "Partial Content", + "207": "Multi-Status", + "208": "Already Reported", + "226": "IM Used", + "300": "Multiple Choices", + "301": "Moved Permanently", + "302": "Found", + "303": "See Other", + "304": "Not Modified", + "305": "Use Proxy", + "307": "Temporary Redirect", + "308": "Permanent Redirect", + "400": "Bad Request", + "401": "Unauthorized", + "402": "Payment Required", + "403": "Forbidden", + "404": "Not Found", + "405": "Method Not Allowed", + "406": "Not Acceptable", + "407": "Proxy Authentication Required", + "408": "Request Timeout", + "409": "Conflict", + "410": "Gone", + "411": "Length Required", + "412": "Precondition Failed", + "413": "Payload Too Large", + "414": "URI Too Long", + "415": "Unsupported Media Type", + "416": "Range Not Satisfiable", + "417": "Expectation Failed", + "418": "I'm a Teapot", + "421": "Misdirected Request", + "422": "Unprocessable Entity", + "423": "Locked", + "424": "Failed Dependency", + "425": "Too Early", + "426": "Upgrade Required", + "428": "Precondition Required", + "429": "Too Many Requests", + "431": "Request Header Fields Too Large", + "451": "Unavailable For Legal Reasons", + "500": "Internal Server Error", + "501": "Not Implemented", + "502": "Bad Gateway", + "503": "Service Unavailable", + "504": "Gateway Timeout", + "505": "HTTP Version Not Supported", + "506": "Variant Also Negotiates", + "507": "Insufficient Storage", + "508": "Loop Detected", + "509": "Bandwidth Limit Exceeded", + "510": "Not Extended", + "511": "Network Authentication Required" + }, + "maxHeaderSize": 16384, + "globalAgent": { + "_events": {}, + "_eventsCount": 2, + "defaultPort": 80, + "protocol": "http:", + "options": { + "keepAlive": true, + "scheduling": "lifo", + "timeout": 5000, + "noDelay": true, + "path": null + }, + "requests": {}, + "sockets": {}, + "freeSockets": {}, + "keepAliveMsecs": 1000, + "keepAlive": true, + "maxSockets": null, + "maxFreeSockets": 256, + "scheduling": "lifo", + "maxTotalSockets": null, + "totalSocketCount": 0 + } + }, + "https:": {} + }, + "pathname": "/" + }, + "_ended": true, + "_ending": true, + "_redirectCount": 0, + "_requestBodyLength": 871, + "_requestBodyBuffers": [], + "_eventsCount": 3, + "_currentUrl": "https://base-rpc.publicnode.com/" + } + }, + "data": [ + { + "jsonrpc": "2.0", + "id": "0", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0xb741", + "hash": "0x6102499837a49eb9ec27c66e18e4c46914a34101bc36a4060512cc7815c5ed56", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x63b73982f4077d1636a7503803e79c55f4d8c9b2ed7b9891ef9ebbf3ac497a28", + "nonce": "0x0000000000000000", + "number": "0x17c3ac", + "parentHash": "0xd85d380d21579619ffa765f7b8f89b70d93f0a4eeb08f93862d099d5a67c30ee", + "receiptsRoot": "0x3f71ebd8822765e8146170b0f930f55f753dbb867f55e4e605894016cd32f1e2", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x365", + "stateRoot": "0x72025e5e01209ae7856b59001934e44e41b40d3364eb5b79be33efc6b17fb295", + "timestamp": "0x64b9e43b", + "totalDifficulty": "0x0", + "transactions": [ + "0x4d5122c75422d1caed89089ff5b065df4600d0c89b2f47dffdb4a354346a77eb" + ], + "transactionsRoot": "0x45150bc8872a6e433d78a7486ce42331aec10a8b6e0969c60340ff3592df1b14", + "uncles": [] + } + }, + { + "jsonrpc": "2.0", + "id": "1", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0xb741", + "hash": "0x632a8d9b1271ca01cbc3f46b7d5c73b774c4f0e414a36e5e70ea8f420b185c5f", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x63b73982f4077d1636a7503803e79c55f4d8c9b2ed7b9891ef9ebbf3ac497a28", + "nonce": "0x0000000000000000", + "number": "0x17c3ad", + "parentHash": "0x6102499837a49eb9ec27c66e18e4c46914a34101bc36a4060512cc7815c5ed56", + "receiptsRoot": "0x3f71ebd8822765e8146170b0f930f55f753dbb867f55e4e605894016cd32f1e2", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x365", + "stateRoot": "0xe5008b4cd2684d02eb62558613a73f599504ac9f33bfe298941c6bb24f3c1f91", + "timestamp": "0x64b9e43d", + "totalDifficulty": "0x0", + "transactions": [ + "0xee7863c3aa202422c5ab8026d3f10229a7a7808a9538b309cec9d77c880a86e7" + ], + "transactionsRoot": "0xea0160eb5b4660e55e68472acc367b7d716bbc08c5ac77a701128ebba087b060", + "uncles": [] + } + }, + { + "jsonrpc": "2.0", + "id": "2", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0xc545", + "hash": "0x27ca68c66f1ad0aaebf6c8853344308c316d60269a9ca4e4cc86b6ff258e4e69", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x07815f660a0aa28102027991e3c2e0c0f217cab67159896841553d14aaed47cb", + "nonce": "0x0000000000000000", + "number": "0x17c3ae", + "parentHash": "0x632a8d9b1271ca01cbc3f46b7d5c73b774c4f0e414a36e5e70ea8f420b185c5f", + "receiptsRoot": "0x0e7c255df3e2b7ca4d55b82047531f7f3e7437ab1eb33e22eca70653c874982d", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x365", + "stateRoot": "0x96e99406b0cb23e183f2bc42cf199f13caf5aa1dd28ba1860f1c417cc9449b9a", + "timestamp": "0x64b9e43f", + "totalDifficulty": "0x0", + "transactions": [ + "0x79c38464d8e0768c6dcbd597ec99e3bfb1ac033245ef90b7b2186f876a706e75" + ], + "transactionsRoot": "0x5f4b4bd1631ba41be517af1440c4519a31185d4c540cdbad471ff086b282d9bf", + "uncles": [] + } + }, + { + "jsonrpc": "2.0", + "id": "3", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0xfa0d", + "hash": "0xd5df5c54e164610384466c5ee488d0f677afcbeaaa17b5272580e979abfa698f", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x07815f660a0aa28102027991e3c2e0c0f217cab67159896841553d14aaed47cb", + "nonce": "0x0000000000000000", + "number": "0x17c3af", + "parentHash": "0x27ca68c66f1ad0aaebf6c8853344308c316d60269a9ca4e4cc86b6ff258e4e69", + "receiptsRoot": "0x637d9e6847368bb52b56e90dd608facc34122c153872e8733cb0b01caa581f85", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x365", + "stateRoot": "0xead47cad917467bf71201fb2fdaac5b0027828652c5dbe76d4cc080cb20be968", + "timestamp": "0x64b9e441", + "totalDifficulty": "0x0", + "transactions": [ + "0x944b0804e3308105ccac79dea413b1a5559defa0bd833a4834b6a96ec270ce10" + ], + "transactionsRoot": "0x68ae5c7e8fcf02f3963acd10d70831548c501be15b81e641a3c226e847e122b7", + "uncles": [] + } + }, + { + "jsonrpc": "2.0", + "id": "4", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0xb741", + "hash": "0xc7bf23e4fa214c6bb29e41363ef09215c8979630f54024e49100e33b2350dc86", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x07815f660a0aa28102027991e3c2e0c0f217cab67159896841553d14aaed47cb", + "nonce": "0x0000000000000000", + "number": "0x17c3b0", + "parentHash": "0xd5df5c54e164610384466c5ee488d0f677afcbeaaa17b5272580e979abfa698f", + "receiptsRoot": "0x3f71ebd8822765e8146170b0f930f55f753dbb867f55e4e605894016cd32f1e2", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x365", + "stateRoot": "0x2426eb527e0ed706e6547280d2da5d0f43a35b454d1cf224a3d237c8293eae16", + "timestamp": "0x64b9e443", + "totalDifficulty": "0x0", + "transactions": [ + "0xc4ccf8aee91e5e2840df05971ed35013f825449ee7511a523e7f4302073178aa" + ], + "transactionsRoot": "0x935b147af8c7809e3616bd62efe1781bb809ee2a98c2b6fedfa7332618aabe06", + "uncles": [] + } + }, + { + "jsonrpc": "2.0", + "id": "5", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0x190b7", + "hash": "0xe96649c51668aef6bdbfee8da255ac6c8c5b0eae106a7c4949fd33560434a095", + "logsBloom": "0x00000000000100000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000080000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000100000000000000000000000000000000000000000000000000000000", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x07815f660a0aa28102027991e3c2e0c0f217cab67159896841553d14aaed47cb", + "nonce": "0x0000000000000000", + "number": "0x17c3b1", + "parentHash": "0xc7bf23e4fa214c6bb29e41363ef09215c8979630f54024e49100e33b2350dc86", + "receiptsRoot": "0x0453592ade78b178ad06709504a58d5684854bb2663544705427c27e97f40a34", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x47f", + "stateRoot": "0xe9bc7efc38f9a8d5713d2e9d9b76261cd5fb3cfa7d71b3109f25889c71333d11", + "timestamp": "0x64b9e445", + "totalDifficulty": "0x0", + "transactions": [ + "0xba32939d89a65f82359c93df4dee2118a388378e4350ef2ca50030082e3ea182", + "0x9d217269dff740e74d21d32babbefe4bece7b88870b020f5505d3de3c6e59694" + ], + "transactionsRoot": "0x40c4651a136fb55cdf767e181593b9a80447d412807f1667ab89e7e547ad0ad4", + "uncles": [] + } + }, + { + "jsonrpc": "2.0", + "id": "6", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0xb741", + "hash": "0x9c1aac86770f978a788c086c696ac2ecaca5c5e5e6ee821a44c9a1ca49be7118", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x07815f660a0aa28102027991e3c2e0c0f217cab67159896841553d14aaed47cb", + "nonce": "0x0000000000000000", + "number": "0x17c3b2", + "parentHash": "0xe96649c51668aef6bdbfee8da255ac6c8c5b0eae106a7c4949fd33560434a095", + "receiptsRoot": "0x3f71ebd8822765e8146170b0f930f55f753dbb867f55e4e605894016cd32f1e2", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x365", + "stateRoot": "0x294c04769277d1153ea57d332b6bf48539926d8b4269032e99ae89128ddc6f55", + "timestamp": "0x64b9e447", + "totalDifficulty": "0x0", + "transactions": [ + "0x351064de557d278f552973d5b308ebd33fd87b5929f756b4259f821130c5e2ee" + ], + "transactionsRoot": "0xa1df4bb9436a365cd4025f906e96dfe7e652c745c65951cb63a4f345929693ad", + "uncles": [] + } + }, + { + "jsonrpc": "2.0", + "id": "7", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0xb741", + "hash": "0x547c7c7a798a1e1170f914c0b639d05cb39ad6a35063e818ceb30c632d56ef53", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x07815f660a0aa28102027991e3c2e0c0f217cab67159896841553d14aaed47cb", + "nonce": "0x0000000000000000", + "number": "0x17c3b3", + "parentHash": "0x9c1aac86770f978a788c086c696ac2ecaca5c5e5e6ee821a44c9a1ca49be7118", + "receiptsRoot": "0x3f71ebd8822765e8146170b0f930f55f753dbb867f55e4e605894016cd32f1e2", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x365", + "stateRoot": "0x4b11cc1ab045c96056c5374ecca178dca732ddee38353bf98f129ca256dbffdf", + "timestamp": "0x64b9e449", + "totalDifficulty": "0x0", + "transactions": [ + "0xf4c2f63b92702fb02644ba4707f26a71c4c1d3907903bec0f47dca1e3d4f46fe" + ], + "transactionsRoot": "0xd38f758dcb47fb575b5131131f212b7aafde95808bb9907ccb56b499371e471a", + "uncles": [] + } + }, + { + "jsonrpc": "2.0", + "id": "8", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0xb6cee", + "hash": "0x1e7c54861c200ae148bbaf15ae615e8f20ae4b2999f6f20bcc403679694ed4bc", + "logsBloom": "0x00100004000000000000000000000008000012000000000000000020000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000100800000000100000000000000000001000000000000000000000000000000200000000000000000000004000000808000000200000000000000004010000000000000000000020080000001000000000000000000000000000000000000000000000001000002000000100000000000020004000800080000000000000000000000020000000000000000000000000000000", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x1709611deb4621b865306a94a0d63d1b9dd2a6181f6dca9e620c3239491554e4", + "nonce": "0x0000000000000000", + "number": "0x17c3b4", + "parentHash": "0x547c7c7a798a1e1170f914c0b639d05cb39ad6a35063e818ceb30c632d56ef53", + "receiptsRoot": "0xf712af5f92ee62da2afad6b68ebda2260522243042669b0d7e1b5d0f20d1f4a0", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x6a0", + "stateRoot": "0xdaf34cf758fd0cf029b98bb5c6c85bfbffacf744523906e699addcb8541d38d9", + "timestamp": "0x64b9e44b", + "totalDifficulty": "0x0", + "transactions": [ + "0xb4c18df2157ef9062fec86ff5ff327a5c369425df9f126c98cc7432de05f5d7d", + "0xf1c3618a3d6fa8ef855ca8957f3cae1cb781ec8b20fe79f96705f1753b444efb" + ], + "transactionsRoot": "0xfaac3e277589326dbf68b04dc28c7d261d9af3f8f759e8183a2ef4d1a217fa86", + "uncles": [] + } + }, + { + "jsonrpc": "2.0", + "id": "9", + "result": { + "baseFeePerGas": "0x32", + "difficulty": "0x0", + "extraData": "0x", + "gasLimit": "0x1c9c380", + "gasUsed": "0xfa0d", + "hash": "0xcea2d9a12803b2d12b51c4d3cd0ee9b2d7307874c194b58ddae9a7c1289260fb", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "miner": "0x4200000000000000000000000000000000000011", + "mixHash": "0x1709611deb4621b865306a94a0d63d1b9dd2a6181f6dca9e620c3239491554e4", + "nonce": "0x0000000000000000", + "number": "0x17c3b5", + "parentHash": "0x1e7c54861c200ae148bbaf15ae615e8f20ae4b2999f6f20bcc403679694ed4bc", + "receiptsRoot": "0x637d9e6847368bb52b56e90dd608facc34122c153872e8733cb0b01caa581f85", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x365", + "stateRoot": "0x5e77783bdc83771b3990932f1183e5c8f16fe440fbafecba283b12a66c8ce367", + "timestamp": "0x64b9e44d", + "totalDifficulty": "0x0", + "transactions": [ + "0x0edec480e00b41b95ed2133181d1b38eafff698461c0fc587139a64db2dc674f" + ], + "transactionsRoot": "0x6ee4f170475947d97fae92a96f293000fcbdc90bc0430c7d491ddec54ce5e854", + "uncles": [] + } + } + ] +} diff --git a/watcher/src/watchers/__tests__/mock/developer-access-mainnet.base.org/eth_getLogs/0x178fef b/watcher/src/watchers/__tests__/mock/developer-access-mainnet.base.org/eth_getLogs/0x178fef new file mode 100644 index 00000000..160a9e33 --- /dev/null +++ b/watcher/src/watchers/__tests__/mock/developer-access-mainnet.base.org/eth_getLogs/0x178fef @@ -0,0 +1 @@ +{"status":200,"statusText":"OK","headers":{"date":"Fri, 02 Aug 2024 16:35:31 GMT","content-type":"application/json","content-length":"39","connection":"keep-alive","access-control-max-age":"1728000","strict-transport-security":"max-age=31536000; includeSubDomains; preload","vary":"Origin, accept-encoding","x-envoy-upstream-service-time":"10","cf-cache-status":"DYNAMIC","x-content-type-options":"nosniff","server":"cloudflare","cf-ray":"8acf7b4a9c221417-ORD","alt-svc":"h3=\":443\"; ma=86400"},"config":{"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false},"adapter":["xhr","http","fetch"],"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"env":{},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json","User-Agent":"axios/1.7.2","Content-Length":"241","Accept-Encoding":"gzip, compress, deflate, br"},"method":"post","url":"https://base-rpc.publicnode.com","data":"[{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x178fef\",\"toBlock\":\"0x178ff9\",\"address\":\"0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6\",\"topics\":[\"0x6eb224fb001ed210e379b335e35efe88672a8ce935d981a6896b27ffdf52a3b2\"]}]}]"},"request":{"_events":{},"_eventsCount":7,"outputData":[],"outputSize":0,"writable":true,"destroyed":true,"_last":false,"chunkedEncoding":false,"shouldKeepAlive":true,"maxRequestsOnConnectionReached":false,"_defaultKeepAlive":true,"useChunkedEncodingByDefault":true,"sendDate":false,"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"strictContentLength":false,"_contentLength":"241","_hasBody":true,"_trailer":"","finished":true,"_headerSent":true,"_closed":true,"socket":{"_tlsOptions":{"pipe":false,"secureContext":{"context":{}},"isServer":false,"requestCert":true,"rejectUnauthorized":true},"_secureEstablished":true,"_securePending":false,"_newSessionPending":false,"_controlReleased":true,"secureConnecting":false,"_SNICallback":null,"servername":"base-rpc.publicnode.com","alpnProtocol":false,"authorized":true,"authorizationError":null,"encrypted":true,"_events":{"close":[null,null,null]},"_eventsCount":9,"connecting":false,"_hadError":false,"_parent":null,"_host":"base-rpc.publicnode.com","_closeAfterHandlingError":false,"_readableState":{"highWaterMark":16384,"buffer":[],"bufferIndex":0,"length":0,"pipes":[],"awaitDrainWriters":null},"_writableState":{"highWaterMark":16384,"length":0,"corked":0,"writelen":0,"bufferedIndex":0,"pendingcb":0},"allowHalfOpen":false,"_sockname":null,"_pendingData":null,"_pendingEncoding":"","_server":null,"ssl":{"_parent":{"reading":true,"onconnection":null},"_parentWrap":null,"reading":true},"_requestCert":true,"_rejectUnauthorized":true,"timeout":5000,"parser":null,"_httpMessage":null,"autoSelectFamilyAttemptedAddresses":["104.18.23.142:443"]},"_header":"POST / HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nUser-Agent: axios/1.7.2\r\nContent-Length: 241\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: base-rpc.publicnode.com\r\nConnection: keep-alive\r\n\r\n","_keepAliveTimeout":0,"agent":{"_events":{},"_eventsCount":2,"defaultPort":443,"protocol":"https:","options":{"keepAlive":true,"scheduling":"lifo","timeout":5000,"noDelay":true,"path":null},"requests":{},"sockets":{},"freeSockets":{"base-rpc.publicnode.com:443:::::::::::::::::::::":[null]},"keepAliveMsecs":1000,"keepAlive":true,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":1,"maxCachedSessions":100,"_sessionCache":{"map":{"base-rpc.publicnode.com:443:::::::::::::::::::::":{"type":"Buffer","data":[48,130,5,50,2,1,1,2,2,3,4,4,2,19,2,4,32,242,184,210,152,55,104,79,131,10,203,33,76,202,189,149,161,166,165,50,46,163,207,45,152,132,79,43,183,113,151,201,147,4,48,122,1,155,2,16,202,176,118,246,76,74,20,111,247,44,148,91,9,10,140,49,19,127,215,197,239,225,69,165,54,145,226,0,246,64,174,156,4,97,234,161,112,27,37,36,80,223,114,161,6,2,4,102,173,10,211,162,4,2,2,28,32,163,130,3,177,48,130,3,173,48,130,3,83,160,3,2,1,2,2,17,0,233,140,99,200,193,66,45,30,17,249,93,200,252,171,222,114,48,10,6,8,42,134,72,206,61,4,3,2,48,59,49,11,48,9,6,3,85,4,6,19,2,85,83,49,30,48,28,6,3,85,4,10,19,21,71,111,111,103,108,101,32,84,114,117,115,116,32,83,101,114,118,105,99,101,115,49,12,48,10,6,3,85,4,3,19,3,87,69,49,48,30,23,13,50,52,48,54,50,57,50,49,48,53,50,55,90,23,13,50,52,48,57,50,55,50,49,48,53,50,54,90,48,25,49,23,48,21,6,3,85,4,3,19,14,112,117,98,108,105,99,110,111,100,101,46,99,111,109,48,89,48,19,6,7,42,134,72,206,61,2,1,6,8,42,134,72,206,61,3,1,7,3,66,0,4,176,135,222,116,98,106,119,175,108,150,33,79,219,170,118,18,50,99,11,113,205,54,40,126,107,225,143,3,168,253,35,167,45,126,179,93,193,44,254,54,219,58,136,68,79,149,131,227,148,161,95,148,242,43,26,155,232,204,172,206,30,215,114,142,163,130,2,88,48,130,2,84,48,14,6,3,85,29,15,1,1,255,4,4,3,2,7,128,48,19,6,3,85,29,37,4,12,48,10,6,8,43,6,1,5,5,7,3,1,48,12,6,3,85,29,19,1,1,255,4,2,48,0,48,29,6,3,85,29,14,4,22,4,20,144,172,61,16,49,57,66,92,151,161,138,61,93,49,144,19,73,119,125,159,48,31,6,3,85,29,35,4,24,48,22,128,20,144,119,146,53,103,196,255,168,204,169,230,123,217,128,121,123,204,147,249,56,48,94,6,8,43,6,1,5,5,7,1,1,4,82,48,80,48,39,6,8,43,6,1,5,5,7,48,1,134,27,104,116,116,112,58,47,47,111,46,112,107,105,46,103,111,111,103,47,115,47,119,101,49,47,54,89,119,48,37,6,8,43,6,1,5,5,7,48,2,134,25,104,116,116,112,58,47,47,105,46,112,107,105,46,103,111,111,103,47,119,101,49,46,99,114,116,48,43,6,3,85,29,17,4,36,48,34,130,14,112,117,98,108,105,99,110,111,100,101,46,99,111,109,130,16,42,46,112,117,98,108,105,99,110,111,100,101,46,99,111,109,48,19,6,3,85,29,32,4,12,48,10,48,8,6,6,103,129,12,1,2,1,48,54,6,3,85,29,31,4,47,48,45,48,43,160,41,160,39,134,37,104,116,116,112,58,47,47,99,46,112,107,105,46,103,111,111,103,47,119,101,49,47,85,83,79,68,102,113,99,79,120,86,77,46,99,114,108,48,130,1,3,6,10,43,6,1,4,1,214,121,2,4,2,4,129,244,4,129,241,0,239,0,117,0,218,182,191,107,63,181,182,34,159,155,194,187,92,107,232,112,145,113,108,187,81,132,133,52,189,164,61,48,72,215,251,171,0,0,1,144,102,8,37,206,0,0,4,3,0,70,48,68,2,32,3,83,9,68,126,217,58,47,229,255,73,78,171,32,159,219,91,214,48,97,195,190,194,101,203,31,208,213,154,139,165,86,2,32,8,52,97,219,190,94,176,84,27,153,244,209,24,171,175,4,163,199,197,176,109,100,186,173,144,97,209,56,119,222,2,248,0,118,0,238,205,208,100,213,219,26,206,197,92,183,157,180,205,19,162,50,135,70,124,188,236,222,195,81,72,89,70,113,31,181,155,0,0,1,144,102,8,36,202,0,0,4,3,0,71,48,69,2,32,30,188,180,69,145,27,213,42,109,74,182,251,255,190,41,7,228,157,47,187,125,16,185,185,58,207,230,19,26,247,11,177,2,33,0,233,36,111,76,57,223,167,187,93,198,177,79,200,65,251,188,210,144,27,33,33,127,159,126,179,115,116,203,1,30,170,145,48,10,6,8,42,134,72,206,61,4,3,2,3,72,0,48,69,2,32,53,33,16,81,194,105,41,119,51,47,73,113,232,138,125,166,136,35,41,99,58,3,113,154,74,134,210,247,196,224,89,99,2,33,0,211,235,218,33,128,226,33,146,198,71,244,219,235,239,238,225,37,26,130,35,26,216,95,190,74,218,179,12,116,102,129,226,164,2,4,0,166,25,4,23,98,97,115,101,45,114,112,99,46,112,117,98,108,105,99,110,111,100,101,46,99,111,109,169,5,2,3,0,253,32,170,129,211,4,129,208,22,135,185,131,132,197,136,205,219,241,130,48,21,94,104,235,71,219,144,63,215,62,90,94,237,227,227,12,168,51,221,128,42,88,29,40,86,74,185,246,53,74,88,59,194,52,250,208,252,221,3,158,72,20,103,163,232,193,28,29,149,153,6,190,248,106,106,249,6,25,123,197,154,97,70,26,34,27,75,174,204,182,4,26,85,55,40,30,83,46,241,118,217,26,39,33,109,212,234,91,210,233,94,246,38,44,102,157,56,49,216,114,76,38,222,14,85,248,235,33,244,164,125,233,106,50,7,123,112,61,236,167,25,225,68,224,196,153,72,110,56,24,44,127,233,226,107,193,29,174,122,73,237,234,41,180,154,151,118,48,192,177,139,154,209,23,88,46,175,52,148,15,225,56,172,36,181,174,109,75,12,200,162,65,35,235,187,60,4,103,193,214,85,104,170,69,253,13,13,214,132,207,60,32,126,158,190,200,174,7,2,5,0,169,82,179,143,175,4,2,2,56,0,179,3,2,1,29]}},"list":["base-rpc.publicnode.com:443:::::::::::::::::::::"]}},"method":"POST","path":"/","_ended":true,"res":{"_events":{"end":[null,null]},"_readableState":{"highWaterMark":16384,"buffer":[],"bufferIndex":0,"length":0,"pipes":[],"awaitDrainWriters":null},"socket":null,"httpVersionMajor":1,"httpVersionMinor":1,"httpVersion":"1.1","complete":true,"rawHeaders":["Date","Fri, 02 Aug 2024 16:35:31 GMT","Content-Type","application/json","Content-Length","39","Connection","keep-alive","access-control-max-age","1728000","strict-transport-security","max-age=31536000; includeSubDomains; preload","vary","Origin, accept-encoding","x-envoy-upstream-service-time","10","CF-Cache-Status","DYNAMIC","X-Content-Type-Options","nosniff","Server","cloudflare","CF-RAY","8acf7b4a9c221417-ORD","alt-svc","h3=\":443\"; ma=86400"],"rawTrailers":[],"aborted":false,"upgrade":false,"url":"","method":null,"statusCode":200,"statusMessage":"OK","_consuming":false,"_dumped":false,"_eventsCount":4,"responseUrl":"https://base-rpc.publicnode.com/","redirects":[]},"aborted":false,"timeoutCb":null,"upgradeOrConnect":false,"parser":null,"maxHeadersCount":null,"reusedSocket":false,"host":"base-rpc.publicnode.com","protocol":"https:","_redirectable":{"_events":{},"_writableState":{"highWaterMark":16384,"length":0,"corked":0,"writelen":0,"bufferedIndex":0,"pendingcb":0},"_options":{"maxRedirects":21,"maxBodyLength":null,"protocol":"https:","path":"/","method":"POST","headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json","User-Agent":"axios/1.7.2","Content-Length":"241","Accept-Encoding":"gzip, compress, deflate, br"},"agents":{},"beforeRedirects":{},"hostname":"base-rpc.publicnode.com","port":"","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"maxHeaderSize":16384,"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"protocol":"http:","options":{"keepAlive":true,"scheduling":"lifo","timeout":5000,"noDelay":true,"path":null},"requests":{},"sockets":{},"freeSockets":{},"keepAliveMsecs":1000,"keepAlive":true,"maxSockets":null,"maxFreeSockets":256,"scheduling":"lifo","maxTotalSockets":null,"totalSocketCount":0}},"https:":{}},"pathname":"/"},"_ended":true,"_ending":true,"_redirectCount":0,"_requestBodyLength":241,"_requestBodyBuffers":[],"_eventsCount":3,"_currentUrl":"https://base-rpc.publicnode.com/"}},"data":[{"jsonrpc":"2.0","id":1,"result":[]}]} diff --git a/watcher/src/watchers/__tests__/mock/developer-access-mainnet.base.org/eth_getLogs/0x17c3ac b/watcher/src/watchers/__tests__/mock/developer-access-mainnet.base.org/eth_getLogs/0x17c3ac new file mode 100644 index 00000000..3a90365c --- /dev/null +++ b/watcher/src/watchers/__tests__/mock/developer-access-mainnet.base.org/eth_getLogs/0x17c3ac @@ -0,0 +1,1804 @@ +{ + "status": 200, + "statusText": "OK", + "headers": { + "date": "Fri, 02 Aug 2024 17:02:04 GMT", + "content-type": "application/json", + "transfer-encoding": "chunked", + "connection": "keep-alive", + "access-control-max-age": "1728000", + "strict-transport-security": "max-age=31536000; includeSubDomains; preload", + "vary": "Origin, accept-encoding", + "x-envoy-upstream-service-time": "11", + "cf-cache-status": "DYNAMIC", + "x-content-type-options": "nosniff", + "server": "cloudflare", + "cf-ray": "8acfa22d981d5c90-ORD", + "alt-svc": "h3=\":443\"; ma=86400" + }, + "config": { + "transitional": { + "silentJSONParsing": true, + "forcedJSONParsing": true, + "clarifyTimeoutError": false + }, + "adapter": [ + "xhr", + "http", + "fetch" + ], + "transformRequest": [ + null + ], + "transformResponse": [ + null + ], + "timeout": 0, + "xsrfCookieName": "XSRF-TOKEN", + "xsrfHeaderName": "X-XSRF-TOKEN", + "maxContentLength": -1, + "maxBodyLength": -1, + "env": {}, + "headers": { + "Accept": "application/json, text/plain, */*", + "Content-Type": "application/json", + "User-Agent": "axios/1.7.2", + "Content-Length": "241", + "Accept-Encoding": "gzip, compress, deflate, br" + }, + "method": "post", + "url": "https://base-rpc.publicnode.com", + "data": "[{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"0x17c3ac\",\"toBlock\":\"0x17c3b5\",\"address\":\"0xbebdb6C8ddC678FfA9f8748f85C815C556Dd8ac6\",\"topics\":[\"0x6eb224fb001ed210e379b335e35efe88672a8ce935d981a6896b27ffdf52a3b2\"]}]}]" + }, + "request": { + "_events": {}, + "_eventsCount": 7, + "outputData": [], + "outputSize": 0, + "writable": true, + "destroyed": true, + "_last": false, + "chunkedEncoding": false, + "shouldKeepAlive": true, + "maxRequestsOnConnectionReached": false, + "_defaultKeepAlive": true, + "useChunkedEncodingByDefault": true, + "sendDate": false, + "_removedConnection": false, + "_removedContLen": false, + "_removedTE": false, + "strictContentLength": false, + "_contentLength": "241", + "_hasBody": true, + "_trailer": "", + "finished": true, + "_headerSent": true, + "_closed": true, + "socket": { + "_tlsOptions": { + "pipe": false, + "secureContext": { + "context": {} + }, + "isServer": false, + "requestCert": true, + "rejectUnauthorized": true + }, + "_secureEstablished": true, + "_securePending": false, + "_newSessionPending": false, + "_controlReleased": true, + "secureConnecting": false, + "_SNICallback": null, + "servername": "base-rpc.publicnode.com", + "alpnProtocol": false, + "authorized": true, + "authorizationError": null, + "encrypted": true, + "_events": { + "close": [ + null, + null, + null + ] + }, + "_eventsCount": 9, + "connecting": false, + "_hadError": false, + "_parent": null, + "_host": "base-rpc.publicnode.com", + "_closeAfterHandlingError": false, + "_readableState": { + "highWaterMark": 16384, + "buffer": [], + "bufferIndex": 0, + "length": 0, + "pipes": [], + "awaitDrainWriters": null + }, + "_writableState": { + "highWaterMark": 16384, + "length": 0, + "corked": 0, + "writelen": 0, + "bufferedIndex": 0, + "pendingcb": 0 + }, + "allowHalfOpen": false, + "_sockname": null, + "_pendingData": null, + "_pendingEncoding": "", + "_server": null, + "ssl": { + "_parent": { + "reading": true, + "onconnection": null + }, + "_parentWrap": null, + "reading": true + }, + "_requestCert": true, + "_rejectUnauthorized": true, + "timeout": 5000, + "parser": null, + "_httpMessage": null, + "autoSelectFamilyAttemptedAddresses": [ + "104.18.23.142:443" + ] + }, + "_header": "POST / HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nUser-Agent: axios/1.7.2\r\nContent-Length: 241\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: base-rpc.publicnode.com\r\nConnection: keep-alive\r\n\r\n", + "_keepAliveTimeout": 0, + "agent": { + "_events": {}, + "_eventsCount": 2, + "defaultPort": 443, + "protocol": "https:", + "options": { + "keepAlive": true, + "scheduling": "lifo", + "timeout": 5000, + "noDelay": true, + "path": null + }, + "requests": {}, + "sockets": {}, + "freeSockets": { + "base-rpc.publicnode.com:443:::::::::::::::::::::": [ + null + ] + }, + "keepAliveMsecs": 1000, + "keepAlive": true, + "maxSockets": null, + "maxFreeSockets": 256, + "scheduling": "lifo", + "maxTotalSockets": null, + "totalSocketCount": 1, + "maxCachedSessions": 100, + "_sessionCache": { + "map": { + "base-rpc.publicnode.com:443:::::::::::::::::::::": { + "type": "Buffer", + "data": [ + 48, + 130, + 5, + 50, + 2, + 1, + 1, + 2, + 2, + 3, + 4, + 4, + 2, + 19, + 2, + 4, + 32, + 65, + 185, + 169, + 49, + 223, + 19, + 133, + 195, + 193, + 239, + 118, + 247, + 209, + 144, + 91, + 197, + 180, + 224, + 73, + 55, + 55, + 60, + 154, + 102, + 188, + 180, + 32, + 107, + 80, + 177, + 203, + 37, + 4, + 48, + 23, + 115, + 15, + 165, + 241, + 187, + 201, + 131, + 91, + 144, + 221, + 30, + 153, + 74, + 140, + 118, + 147, + 73, + 252, + 184, + 112, + 72, + 180, + 237, + 224, + 5, + 63, + 106, + 213, + 146, + 16, + 50, + 136, + 47, + 84, + 130, + 1, + 247, + 118, + 122, + 186, + 244, + 77, + 202, + 110, + 241, + 136, + 9, + 161, + 6, + 2, + 4, + 102, + 173, + 17, + 12, + 162, + 4, + 2, + 2, + 28, + 32, + 163, + 130, + 3, + 177, + 48, + 130, + 3, + 173, + 48, + 130, + 3, + 83, + 160, + 3, + 2, + 1, + 2, + 2, + 17, + 0, + 233, + 140, + 99, + 200, + 193, + 66, + 45, + 30, + 17, + 249, + 93, + 200, + 252, + 171, + 222, + 114, + 48, + 10, + 6, + 8, + 42, + 134, + 72, + 206, + 61, + 4, + 3, + 2, + 48, + 59, + 49, + 11, + 48, + 9, + 6, + 3, + 85, + 4, + 6, + 19, + 2, + 85, + 83, + 49, + 30, + 48, + 28, + 6, + 3, + 85, + 4, + 10, + 19, + 21, + 71, + 111, + 111, + 103, + 108, + 101, + 32, + 84, + 114, + 117, + 115, + 116, + 32, + 83, + 101, + 114, + 118, + 105, + 99, + 101, + 115, + 49, + 12, + 48, + 10, + 6, + 3, + 85, + 4, + 3, + 19, + 3, + 87, + 69, + 49, + 48, + 30, + 23, + 13, + 50, + 52, + 48, + 54, + 50, + 57, + 50, + 49, + 48, + 53, + 50, + 55, + 90, + 23, + 13, + 50, + 52, + 48, + 57, + 50, + 55, + 50, + 49, + 48, + 53, + 50, + 54, + 90, + 48, + 25, + 49, + 23, + 48, + 21, + 6, + 3, + 85, + 4, + 3, + 19, + 14, + 112, + 117, + 98, + 108, + 105, + 99, + 110, + 111, + 100, + 101, + 46, + 99, + 111, + 109, + 48, + 89, + 48, + 19, + 6, + 7, + 42, + 134, + 72, + 206, + 61, + 2, + 1, + 6, + 8, + 42, + 134, + 72, + 206, + 61, + 3, + 1, + 7, + 3, + 66, + 0, + 4, + 176, + 135, + 222, + 116, + 98, + 106, + 119, + 175, + 108, + 150, + 33, + 79, + 219, + 170, + 118, + 18, + 50, + 99, + 11, + 113, + 205, + 54, + 40, + 126, + 107, + 225, + 143, + 3, + 168, + 253, + 35, + 167, + 45, + 126, + 179, + 93, + 193, + 44, + 254, + 54, + 219, + 58, + 136, + 68, + 79, + 149, + 131, + 227, + 148, + 161, + 95, + 148, + 242, + 43, + 26, + 155, + 232, + 204, + 172, + 206, + 30, + 215, + 114, + 142, + 163, + 130, + 2, + 88, + 48, + 130, + 2, + 84, + 48, + 14, + 6, + 3, + 85, + 29, + 15, + 1, + 1, + 255, + 4, + 4, + 3, + 2, + 7, + 128, + 48, + 19, + 6, + 3, + 85, + 29, + 37, + 4, + 12, + 48, + 10, + 6, + 8, + 43, + 6, + 1, + 5, + 5, + 7, + 3, + 1, + 48, + 12, + 6, + 3, + 85, + 29, + 19, + 1, + 1, + 255, + 4, + 2, + 48, + 0, + 48, + 29, + 6, + 3, + 85, + 29, + 14, + 4, + 22, + 4, + 20, + 144, + 172, + 61, + 16, + 49, + 57, + 66, + 92, + 151, + 161, + 138, + 61, + 93, + 49, + 144, + 19, + 73, + 119, + 125, + 159, + 48, + 31, + 6, + 3, + 85, + 29, + 35, + 4, + 24, + 48, + 22, + 128, + 20, + 144, + 119, + 146, + 53, + 103, + 196, + 255, + 168, + 204, + 169, + 230, + 123, + 217, + 128, + 121, + 123, + 204, + 147, + 249, + 56, + 48, + 94, + 6, + 8, + 43, + 6, + 1, + 5, + 5, + 7, + 1, + 1, + 4, + 82, + 48, + 80, + 48, + 39, + 6, + 8, + 43, + 6, + 1, + 5, + 5, + 7, + 48, + 1, + 134, + 27, + 104, + 116, + 116, + 112, + 58, + 47, + 47, + 111, + 46, + 112, + 107, + 105, + 46, + 103, + 111, + 111, + 103, + 47, + 115, + 47, + 119, + 101, + 49, + 47, + 54, + 89, + 119, + 48, + 37, + 6, + 8, + 43, + 6, + 1, + 5, + 5, + 7, + 48, + 2, + 134, + 25, + 104, + 116, + 116, + 112, + 58, + 47, + 47, + 105, + 46, + 112, + 107, + 105, + 46, + 103, + 111, + 111, + 103, + 47, + 119, + 101, + 49, + 46, + 99, + 114, + 116, + 48, + 43, + 6, + 3, + 85, + 29, + 17, + 4, + 36, + 48, + 34, + 130, + 14, + 112, + 117, + 98, + 108, + 105, + 99, + 110, + 111, + 100, + 101, + 46, + 99, + 111, + 109, + 130, + 16, + 42, + 46, + 112, + 117, + 98, + 108, + 105, + 99, + 110, + 111, + 100, + 101, + 46, + 99, + 111, + 109, + 48, + 19, + 6, + 3, + 85, + 29, + 32, + 4, + 12, + 48, + 10, + 48, + 8, + 6, + 6, + 103, + 129, + 12, + 1, + 2, + 1, + 48, + 54, + 6, + 3, + 85, + 29, + 31, + 4, + 47, + 48, + 45, + 48, + 43, + 160, + 41, + 160, + 39, + 134, + 37, + 104, + 116, + 116, + 112, + 58, + 47, + 47, + 99, + 46, + 112, + 107, + 105, + 46, + 103, + 111, + 111, + 103, + 47, + 119, + 101, + 49, + 47, + 85, + 83, + 79, + 68, + 102, + 113, + 99, + 79, + 120, + 86, + 77, + 46, + 99, + 114, + 108, + 48, + 130, + 1, + 3, + 6, + 10, + 43, + 6, + 1, + 4, + 1, + 214, + 121, + 2, + 4, + 2, + 4, + 129, + 244, + 4, + 129, + 241, + 0, + 239, + 0, + 117, + 0, + 218, + 182, + 191, + 107, + 63, + 181, + 182, + 34, + 159, + 155, + 194, + 187, + 92, + 107, + 232, + 112, + 145, + 113, + 108, + 187, + 81, + 132, + 133, + 52, + 189, + 164, + 61, + 48, + 72, + 215, + 251, + 171, + 0, + 0, + 1, + 144, + 102, + 8, + 37, + 206, + 0, + 0, + 4, + 3, + 0, + 70, + 48, + 68, + 2, + 32, + 3, + 83, + 9, + 68, + 126, + 217, + 58, + 47, + 229, + 255, + 73, + 78, + 171, + 32, + 159, + 219, + 91, + 214, + 48, + 97, + 195, + 190, + 194, + 101, + 203, + 31, + 208, + 213, + 154, + 139, + 165, + 86, + 2, + 32, + 8, + 52, + 97, + 219, + 190, + 94, + 176, + 84, + 27, + 153, + 244, + 209, + 24, + 171, + 175, + 4, + 163, + 199, + 197, + 176, + 109, + 100, + 186, + 173, + 144, + 97, + 209, + 56, + 119, + 222, + 2, + 248, + 0, + 118, + 0, + 238, + 205, + 208, + 100, + 213, + 219, + 26, + 206, + 197, + 92, + 183, + 157, + 180, + 205, + 19, + 162, + 50, + 135, + 70, + 124, + 188, + 236, + 222, + 195, + 81, + 72, + 89, + 70, + 113, + 31, + 181, + 155, + 0, + 0, + 1, + 144, + 102, + 8, + 36, + 202, + 0, + 0, + 4, + 3, + 0, + 71, + 48, + 69, + 2, + 32, + 30, + 188, + 180, + 69, + 145, + 27, + 213, + 42, + 109, + 74, + 182, + 251, + 255, + 190, + 41, + 7, + 228, + 157, + 47, + 187, + 125, + 16, + 185, + 185, + 58, + 207, + 230, + 19, + 26, + 247, + 11, + 177, + 2, + 33, + 0, + 233, + 36, + 111, + 76, + 57, + 223, + 167, + 187, + 93, + 198, + 177, + 79, + 200, + 65, + 251, + 188, + 210, + 144, + 27, + 33, + 33, + 127, + 159, + 126, + 179, + 115, + 116, + 203, + 1, + 30, + 170, + 145, + 48, + 10, + 6, + 8, + 42, + 134, + 72, + 206, + 61, + 4, + 3, + 2, + 3, + 72, + 0, + 48, + 69, + 2, + 32, + 53, + 33, + 16, + 81, + 194, + 105, + 41, + 119, + 51, + 47, + 73, + 113, + 232, + 138, + 125, + 166, + 136, + 35, + 41, + 99, + 58, + 3, + 113, + 154, + 74, + 134, + 210, + 247, + 196, + 224, + 89, + 99, + 2, + 33, + 0, + 211, + 235, + 218, + 33, + 128, + 226, + 33, + 146, + 198, + 71, + 244, + 219, + 235, + 239, + 238, + 225, + 37, + 26, + 130, + 35, + 26, + 216, + 95, + 190, + 74, + 218, + 179, + 12, + 116, + 102, + 129, + 226, + 164, + 2, + 4, + 0, + 166, + 25, + 4, + 23, + 98, + 97, + 115, + 101, + 45, + 114, + 112, + 99, + 46, + 112, + 117, + 98, + 108, + 105, + 99, + 110, + 111, + 100, + 101, + 46, + 99, + 111, + 109, + 169, + 5, + 2, + 3, + 0, + 253, + 32, + 170, + 129, + 211, + 4, + 129, + 208, + 25, + 35, + 99, + 165, + 72, + 184, + 146, + 206, + 81, + 24, + 94, + 151, + 72, + 159, + 56, + 33, + 96, + 191, + 27, + 201, + 82, + 136, + 255, + 86, + 120, + 135, + 175, + 201, + 210, + 18, + 46, + 86, + 7, + 100, + 250, + 94, + 214, + 237, + 82, + 117, + 155, + 185, + 247, + 127, + 87, + 225, + 41, + 213, + 17, + 131, + 79, + 189, + 2, + 213, + 203, + 137, + 76, + 64, + 73, + 161, + 165, + 224, + 143, + 243, + 126, + 34, + 2, + 25, + 230, + 98, + 25, + 82, + 216, + 156, + 126, + 122, + 171, + 24, + 126, + 77, + 83, + 130, + 113, + 170, + 228, + 76, + 251, + 249, + 174, + 223, + 23, + 244, + 161, + 56, + 171, + 243, + 55, + 36, + 118, + 252, + 27, + 46, + 125, + 204, + 145, + 231, + 37, + 176, + 76, + 166, + 252, + 27, + 14, + 251, + 39, + 199, + 231, + 36, + 123, + 57, + 42, + 253, + 62, + 167, + 197, + 8, + 113, + 61, + 21, + 186, + 70, + 211, + 231, + 179, + 185, + 155, + 106, + 34, + 111, + 42, + 179, + 54, + 33, + 160, + 176, + 244, + 12, + 201, + 180, + 246, + 175, + 154, + 10, + 69, + 205, + 62, + 165, + 127, + 165, + 3, + 90, + 253, + 102, + 110, + 228, + 39, + 51, + 199, + 142, + 175, + 114, + 134, + 43, + 92, + 181, + 248, + 21, + 189, + 252, + 34, + 128, + 55, + 170, + 44, + 136, + 209, + 173, + 111, + 5, + 143, + 224, + 10, + 170, + 252, + 202, + 177, + 132, + 254, + 22, + 11, + 83, + 131, + 15, + 230, + 248, + 156, + 53, + 114, + 174, + 7, + 2, + 5, + 0, + 232, + 131, + 11, + 66, + 175, + 4, + 2, + 2, + 56, + 0, + 179, + 3, + 2, + 1, + 29 + ] + } + }, + "list": [ + "base-rpc.publicnode.com:443:::::::::::::::::::::" + ] + } + }, + "method": "POST", + "path": "/", + "_ended": true, + "res": { + "_events": { + "close": [ + null, + null, + null + ], + "error": [ + null, + null, + null + ], + "end": [ + null, + null, + null + ], + "finish": [ + null, + null + ] + }, + "_readableState": { + "highWaterMark": 16384, + "buffer": [], + "bufferIndex": 0, + "length": 0, + "pipes": [], + "awaitDrainWriters": null + }, + "socket": null, + "httpVersionMajor": 1, + "httpVersionMinor": 1, + "httpVersion": "1.1", + "complete": true, + "rawHeaders": [ + "Date", + "Fri, 02 Aug 2024 17:02:04 GMT", + "Content-Type", + "application/json", + "Transfer-Encoding", + "chunked", + "Connection", + "keep-alive", + "access-control-max-age", + "1728000", + "strict-transport-security", + "max-age=31536000; includeSubDomains; preload", + "vary", + "Origin, accept-encoding", + "x-envoy-upstream-service-time", + "11", + "CF-Cache-Status", + "DYNAMIC", + "X-Content-Type-Options", + "nosniff", + "Server", + "cloudflare", + "CF-RAY", + "8acfa22d981d5c90-ORD", + "Content-Encoding", + "br", + "alt-svc", + "h3=\":443\"; ma=86400" + ], + "rawTrailers": [], + "aborted": false, + "upgrade": false, + "url": "", + "method": null, + "statusCode": 200, + "statusMessage": "OK", + "_consuming": true, + "_dumped": false, + "_eventsCount": 4, + "responseUrl": "https://base-rpc.publicnode.com/", + "redirects": [] + }, + "aborted": false, + "timeoutCb": null, + "upgradeOrConnect": false, + "parser": null, + "maxHeadersCount": null, + "reusedSocket": false, + "host": "base-rpc.publicnode.com", + "protocol": "https:", + "_redirectable": { + "_events": {}, + "_writableState": { + "highWaterMark": 16384, + "length": 0, + "corked": 0, + "writelen": 0, + "bufferedIndex": 0, + "pendingcb": 0 + }, + "_options": { + "maxRedirects": 21, + "maxBodyLength": null, + "protocol": "https:", + "path": "/", + "method": "POST", + "headers": { + "Accept": "application/json, text/plain, */*", + "Content-Type": "application/json", + "User-Agent": "axios/1.7.2", + "Content-Length": "241", + "Accept-Encoding": "gzip, compress, deflate, br" + }, + "agents": {}, + "beforeRedirects": {}, + "hostname": "base-rpc.publicnode.com", + "port": "", + "nativeProtocols": { + "http:": { + "METHODS": [ + "ACL", + "BIND", + "CHECKOUT", + "CONNECT", + "COPY", + "DELETE", + "GET", + "HEAD", + "LINK", + "LOCK", + "M-SEARCH", + "MERGE", + "MKACTIVITY", + "MKCALENDAR", + "MKCOL", + "MOVE", + "NOTIFY", + "OPTIONS", + "PATCH", + "POST", + "PROPFIND", + "PROPPATCH", + "PURGE", + "PUT", + "REBIND", + "REPORT", + "SEARCH", + "SOURCE", + "SUBSCRIBE", + "TRACE", + "UNBIND", + "UNLINK", + "UNLOCK", + "UNSUBSCRIBE" + ], + "STATUS_CODES": { + "100": "Continue", + "101": "Switching Protocols", + "102": "Processing", + "103": "Early Hints", + "200": "OK", + "201": "Created", + "202": "Accepted", + "203": "Non-Authoritative Information", + "204": "No Content", + "205": "Reset Content", + "206": "Partial Content", + "207": "Multi-Status", + "208": "Already Reported", + "226": "IM Used", + "300": "Multiple Choices", + "301": "Moved Permanently", + "302": "Found", + "303": "See Other", + "304": "Not Modified", + "305": "Use Proxy", + "307": "Temporary Redirect", + "308": "Permanent Redirect", + "400": "Bad Request", + "401": "Unauthorized", + "402": "Payment Required", + "403": "Forbidden", + "404": "Not Found", + "405": "Method Not Allowed", + "406": "Not Acceptable", + "407": "Proxy Authentication Required", + "408": "Request Timeout", + "409": "Conflict", + "410": "Gone", + "411": "Length Required", + "412": "Precondition Failed", + "413": "Payload Too Large", + "414": "URI Too Long", + "415": "Unsupported Media Type", + "416": "Range Not Satisfiable", + "417": "Expectation Failed", + "418": "I'm a Teapot", + "421": "Misdirected Request", + "422": "Unprocessable Entity", + "423": "Locked", + "424": "Failed Dependency", + "425": "Too Early", + "426": "Upgrade Required", + "428": "Precondition Required", + "429": "Too Many Requests", + "431": "Request Header Fields Too Large", + "451": "Unavailable For Legal Reasons", + "500": "Internal Server Error", + "501": "Not Implemented", + "502": "Bad Gateway", + "503": "Service Unavailable", + "504": "Gateway Timeout", + "505": "HTTP Version Not Supported", + "506": "Variant Also Negotiates", + "507": "Insufficient Storage", + "508": "Loop Detected", + "509": "Bandwidth Limit Exceeded", + "510": "Not Extended", + "511": "Network Authentication Required" + }, + "maxHeaderSize": 16384, + "globalAgent": { + "_events": {}, + "_eventsCount": 2, + "defaultPort": 80, + "protocol": "http:", + "options": { + "keepAlive": true, + "scheduling": "lifo", + "timeout": 5000, + "noDelay": true, + "path": null + }, + "requests": {}, + "sockets": {}, + "freeSockets": {}, + "keepAliveMsecs": 1000, + "keepAlive": true, + "maxSockets": null, + "maxFreeSockets": 256, + "scheduling": "lifo", + "maxTotalSockets": null, + "totalSocketCount": 0 + } + }, + "https:": {} + }, + "pathname": "/" + }, + "_ended": true, + "_ending": true, + "_redirectCount": 0, + "_requestBodyLength": 241, + "_requestBodyBuffers": [], + "_eventsCount": 3, + "_currentUrl": "https://base-rpc.publicnode.com/" + } + }, + "data": [ + { + "jsonrpc": "2.0", + "id": 1, + "result": [ + { + "address": "0xbebdb6c8ddc678ffa9f8748f85c815c556dd8ac6", + "topics": [ + "0x6eb224fb001ed210e379b335e35efe88672a8ce935d981a6896b27ffdf52a3b2", + "0x000000000000000000000000e2e2d9e31d7e1cc1178fe0d1c5950f6c809816a3" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bc614e000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000060102030405060000000000000000000000000000000000000000000000000000", + "blockNumber": "0x17c3b1", + "transactionHash": "0x9d217269dff740e74d21d32babbefe4bece7b88870b020f5505d3de3c6e59694", + "transactionIndex": "0x1", + "blockHash": "0xe96649c51668aef6bdbfee8da255ac6c8c5b0eae106a7c4949fd33560434a095", + "logIndex": "0x0", + "removed": false + } + ] + } + ] +}