You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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, like
BLOCK_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)
The text was updated successfully, but these errors were encountered: