routing-api icon indicating copy to clipboard operation
routing-api copied to clipboard

Use RPC URL rather than Infura project ID

Open Kyrrui opened this issue 3 years ago • 1 comments

Hello, we are using the routing API and would like to spin up multiple routing API nodes with connections to different rpc URLS. It seems currently this project depends on an infura project ID. Is there a workaround or is roadmapped?

Cheers thanks for the project, Kyle

Kyrrui avatar Feb 19 '22 23:02 Kyrrui

RPC URL would be better but I have to change a few things in our deployment setup before I can make that change.

In the meantime you can workaround it by forking and change these lines of code: https://github.com/Uniswap/routing-api/blob/c99677a5dfc89f5c036c196384983c0099539c4a/lib/handlers/injector-sor.ts#L111-L112

willpote avatar Feb 25 '22 05:02 willpote