Skip to content

Commit

Permalink
🐛 Allow eth_call on free rpc + drpc
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Nov 26, 2024
1 parent c0f7fcf commit decf877
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/erpc/erpc-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,14 @@ const llamaFreeRpcUpstreamArb = buildEvmUpstream({
endpoint: "https://arbitrum.llamarpc.com",
rateLimitBudget: llamaFreeRpcRateLimits.id,
ignoreMethods: ["*"],
allowMethods: ["eth_chainId", "eth_getBlockByNumber"],
allowMethods: ["eth_chainId", "eth_getBlockByNumber", "eth_call"],
});
const tenderlyFreeRpcUpstreamArbSepolia = buildEvmUpstream({
id: "tenderly-arbitrum-sepolia-free-rpc",
endpoint: "https://arbitrum-sepolia.gateway.tenderly.co",
rateLimitBudget: tenderlyFreeRpcRateLimits.id,
ignoreMethods: ["*"],
allowMethods: ["eth_chainId", "eth_getBlockByNumber"],
allowMethods: ["eth_chainId", "eth_getBlockByNumber", "eth_call"],
});
const drpcUpstream: UpstreamConfig = {
id: "drpc-rpc",
Expand All @@ -207,7 +207,12 @@ const drpcUpstream: UpstreamConfig = {
endpoint: `drpc://${envVariable("DRPC_API_KEY")}`,
rateLimitBudget: drpcRpcRateLimits.id,
ignoreMethods: ["*"],
allowMethods: ["eth_chainId", "eth_getBlockByNumber", "eth_getLogs"],
allowMethods: [
"eth_chainId",
"eth_getBlockByNumber",
"eth_getLogs",
"eth_call",
],
};

// Build the ponder indexing project
Expand Down
3 changes: 3 additions & 0 deletions packages/erpc/erpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ projects:
allowMethods:
- eth_chainId
- eth_getBlockByNumber
- eth_call
autoIgnoreUnsupportedMethods: true
- &var2
id: drpc-rpc
Expand All @@ -92,6 +93,7 @@ projects:
- eth_chainId
- eth_getBlockByNumber
- eth_getLogs
- eth_call
- &var3
id: envio
endpoint: evm+envio://rpc.hypersync.xyz
Expand Down Expand Up @@ -135,6 +137,7 @@ projects:
allowMethods:
- eth_chainId
- eth_getBlockByNumber
- eth_call
autoIgnoreUnsupportedMethods: true
- *var2
- *var3
Expand Down

0 comments on commit decf877

Please sign in to comment.