Not all RPC methods are exposed as direct endpoints. You can use the request
endpoint for such a RPC call, see Using the EVM RPC canister | Internet Computer
If you’re developing in rust, check out Announcing ic-alloy - ICP signers and providers for the Ethereum support library Alloy