This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ethers } from "ethers"; | |
import { | |
FlashbotsBundleProvider, | |
FlashbotsBundleResolution, | |
} from "@flashbots/ethers-provider-bundle"; | |
//const GWEI = 10n ** 9n; | |
const CHAIN_ID = 1;//11155111; // goerli测试网,如果用主网,chainid 改为 1 | |
// 1. 普通rpc (非flashbots rpc) |