serve eth_chainId from config

This commit is contained in:
Bryan Stitt 2022-12-14 18:49:40 -08:00
parent fbafcca528
commit 5fe88c6227

View File

@ -803,6 +803,9 @@ impl Web3ProxyApp {
}
}
}
"eth_chainId" => {
json!(self.config.chain_id)
}
// TODO: eth_callBundle (https://docs.flashbots.net/flashbots-auction/searchers/advanced/rpc-endpoint#eth_callbundle)
// TODO: eth_cancelPrivateTransaction (https://docs.flashbots.net/flashbots-auction/searchers/advanced/rpc-endpoint#eth_cancelprivatetransaction, but maybe just reject)
// TODO: eth_sendPrivateTransaction (https://docs.flashbots.net/flashbots-auction/searchers/advanced/rpc-endpoint#eth_sendprivatetransaction)