opensea-js icon indicating copy to clipboard operation
opensea-js copied to clipboard

change to flashbot with opensea-js

Open asafd11 opened this issue 4 years ago • 3 comments

hello am trying to change to flashbot and am not sure how to do it createing openseaport like this right now: const mnemonicWalletSubprovider = new MnemonicWalletSubprovider.MnemonicWalletSubprovider ({ mnemonic: MNEMONIC, baseDerivationPath: BASE_DERIVATION_PATH, });

const network = NETWORK === "mainnet" || NETWORK === "live" ? "mainnet" : "rinkeby"; const infuraRpcSubprovider = new RPCSubprovider({ rpcUrl: isInfura ? "https://" + network + ".infura.io/v3/" + NODE_API_KEY : "https://eth-" + network + ".alchemyapi.io/v2/" + NODE_API_KEY, });

const providerEngine = new Web3ProviderEngine(); providerEngine.addProvider(mnemonicWalletSubprovider); providerEngine.addProvider(infuraRpcSubprovider); providerEngine.start();

//providerEngine.max_gass_fee=200;

const seaport = new OpenSeaPort( providerEngine, { networkName: NETWORK === "mainnet" || NETWORK === "live" ? Network.Main : Network.Rinkeby, apiKey: YOUR_API_KEY, }, (arg) => console.log(arg) );

i tryed to replace this part :

const authSigner = Wallet.createRandom(); const flashbotsProvider = await FlashbotsBundleProvider.create( infuraRpcSubprovider, // a normal ethers.js provider, to perform gas estimiations and nonce lookups authSigner // ethers.js signer wallet, only for signing request payloads, not transactions )

const providerEngine = new Web3ProviderEngine(); providerEngine.addProvider(mnemonicWalletSubprovider); providerEngine.addProvider(flashbotsProvider); providerEngine.start();

but this not working 😫 anyone here done it befor ? work with flashbot and opensea sdk?

asafd11 avatar Dec 31 '21 15:12 asafd11

Hello, are you still running into this issue?

esteban-OpenSea avatar Apr 15 '22 15:04 esteban-OpenSea

Hello, I am running into the same issue. Is there anyway to use the opensea sdk with flashbots relay? @esteban-OpenSea

nickvarterian avatar Apr 16 '22 20:04 nickvarterian

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.

github-actions[bot] avatar May 24 '23 04:05 github-actions[bot]