From cf5e92539ddf400ac941a99c06622c20eef455f8 Mon Sep 17 00:00:00 2001 From: Paul Puey Date: Mon, 28 Aug 2023 18:33:37 -0700 Subject: [PATCH] Add Pokt RPC server --- src/ethereum/ethereumTypes.ts | 4 +++- src/ethereum/info/ethereumInfo.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ethereum/ethereumTypes.ts b/src/ethereum/ethereumTypes.ts index e298db6f3..318b70beb 100644 --- a/src/ethereum/ethereumTypes.ts +++ b/src/ethereum/ethereumTypes.ts @@ -27,6 +27,7 @@ export interface EthereumInitOptions { gasStationApiKey?: string quiknodeApiKey?: string alchemyApiKey?: string + poktPortalApiKey?: string } export const asEthereumInitOptions = asObject({ @@ -38,7 +39,8 @@ export const asEthereumInitOptions = asObject({ amberdataApiKey: asOptional(asString), gasStationApiKey: asOptional(asString), quiknodeApiKey: asOptional(asString), - alchemyApiKey: asOptional(asString) + alchemyApiKey: asOptional(asString), + poktPortalApiKey: asOptional(asString) }) function isKeyOfEthereumInitOptions( diff --git a/src/ethereum/info/ethereumInfo.ts b/src/ethereum/info/ethereumInfo.ts index 2b819fdd3..958d96737 100644 --- a/src/ethereum/info/ethereumInfo.ts +++ b/src/ethereum/info/ethereumInfo.ts @@ -1028,6 +1028,7 @@ export const networkInfo: EthereumNetworkInfo = { 'https://eth-mainnet.alchemyapi.io/v2/-{{alchemyApiKey}}', 'https://mainnet.infura.io/v3/{{infuraProjectId}}', 'https://rpc.ankr.com/eth', + 'https://eth-mainnet.gateway.pokt.network/v1/lb/{{poktPortalApiKey}}', 'https://cloudflare-eth.com' ],