According to the constructor signature searcherClient(url: string, authKeypair: Keypair) and the example const c = searcherClient(blockEngineUrl, keypair); the constructor expects a url for the block engine.
It errors when using BLOCK_ENGINE_URL=https://frankfurt.mainnet.block-engine.jito.wtf.
Instead, it expects just the hostname, like BLOCK_ENGINE_URL=frankfurt.mainnet.block-engine.jito.wtf.
According to the constructor signature
searcherClient(url: string, authKeypair: Keypair)
and the exampleconst c = searcherClient(blockEngineUrl, keypair);
the constructor expects a url for the block engine.It errors when using
BLOCK_ENGINE_URL=https://frankfurt.mainnet.block-engine.jito.wtf
. Instead, it expects just the hostname, likeBLOCK_ENGINE_URL=frankfurt.mainnet.block-engine.jito.wtf
.Proposed solution: make sure it accepts urls and not just hostnames to make it consistent with the signature, example and jito docs (https://jito-labs.gitbook.io/mev/searcher-resources/block-engine/mainnet-addresses)