UNPKG

flashbots-builder

Version:

"Flashbots protocol enables a crypto wallet to submit a sequence of ethereum transactions in one block, away from the prying eyes of frontrunning bots and miners, while being able to pay the gas fee for such transactions with another crypto wallet."

10 lines (9 loc) 835 B
import { FlashbotsBundleProvider, FlashbotsBundleRawTransaction, FlashbotsBundleTransaction } from "@flashbots/ethers-provider-bundle"; import { BigNumber, providers } from "ethers"; export declare const ETHER: BigNumber; export declare const GWEI: BigNumber; export declare function checkSimulation(flashbotsProvider: FlashbotsBundleProvider, signedBundle: Array<string>): Promise<BigNumber>; export declare function printTransactions(bundleTransactions: Array<FlashbotsBundleTransaction | FlashbotsBundleRawTransaction>, signedBundle: Array<string>): Promise<void>; export declare function gasPriceToGwei(gasPrice: BigNumber): number; export declare function urlToJsonRpcProvider(url: string): providers.JsonRpcBatchProvider; export declare function urlToStaticJsonRpcProvider(url: string): providers.StaticJsonRpcProvider;